znc-1.6.3/0000755000175000017500000000000012663147145012550 5ustar somebodysomebodyznc-1.6.3/src/0000755000175000017500000000000012663147145013337 5ustar somebodysomebodyznc-1.6.3/src/Csocket.cpp0000644000175000017500000031412612663147131015440 0ustar somebodysomebody/** * @file Csocket.cc * @author Jim Hull * * Copyright (c) 1999-2012 Jim Hull * All rights reserved * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list * of conditions and the following disclaimer in the documentation and/or other materials * provided with the distribution. * Redistributions in any form must be accompanied by information on how to obtain * complete source code for this software and any accompanying software that uses this software. * The source code must either be included in the distribution or be available for no more than * the cost of distribution plus a nominal fee, and must be freely redistributable * under reasonable conditions. For an executable file, complete source code means the source * code for all modules it contains. It does not include source code for modules or files * that typically accompany the major components of the operating system on which the executable file runs. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, * OR NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OF THIS SOFTWARE BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /*** * doing this because there seems to be a bug that is losing the "short" on htons when in optimize mode turns into a macro * gcc 4.3.4 */ #if defined(__OPTIMIZE__) && __GNUC__ == 4 && __GNUC_MINOR__ >= 3 #pragma GCC diagnostic warning "-Wconversion" #endif /* defined(__OPTIMIZE__) && __GNUC__ == 4 && __GNUC_MINOR__ >= 3 */ #include #ifdef __NetBSD__ #include #endif /* __NetBSD__ */ #ifdef HAVE_LIBSSL #include #include #include #include #endif /* HAVE_LIBSSL */ #ifdef HAVE_ICU #include #include #endif /* HAVE_ICU */ #include #define CS_SRANDBUFFER 128 using std::stringstream; using std::ostream; using std::endl; using std::min; using std::vector; #define CREATE_ARES_VER( a, b, c ) ((a<<16)|(b<<8)|c) #ifndef _NO_CSOCKET_NS // some people may not want to use a namespace namespace Csocket { #endif /* _NO_CSOCKET_NS */ static int s_iCsockSSLIdx = 0; //!< this gets setup once in InitSSL int GetCsockSSLIdx() { return( s_iCsockSSLIdx ); } #ifdef _WIN32 #if defined(_WIN32) && (!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0600)) //! thanks to KiNgMaR @ #znc for this wrapper static int inet_pton( int af, const char *src, void *dst ) { sockaddr_storage aAddress; int iAddrLen = sizeof( sockaddr_storage ); memset( &aAddress, 0, iAddrLen ); char * pTmp = strdup( src ); aAddress.ss_family = af; // this is important: // The function fails if the sin_family member of the SOCKADDR_IN structure is not set to AF_INET or AF_INET6. int iRet = WSAStringToAddressA( pTmp, af, NULL, ( sockaddr * )&aAddress, &iAddrLen ); free( pTmp ); if( iRet == 0 ) { if( af == AF_INET6 ) memcpy( dst, &( ( sockaddr_in6 * ) &aAddress )->sin6_addr, sizeof( in6_addr ) ); else memcpy( dst, &( ( sockaddr_in * ) &aAddress )->sin_addr, sizeof( in_addr ) ); return( 1 ); } return( -1 ); } #endif static inline void set_non_blocking( cs_sock_t fd ) { u_long iOpts = 1; ioctlsocket( fd, FIONBIO, &iOpts ); } /* * not used by anything anymore static inline void set_blocking(cs_sock_t fd) { u_long iOpts = 0; ioctlsocket( fd, FIONBIO, &iOpts ); } */ static inline void set_close_on_exec( cs_sock_t fd ) { // TODO add this for windows // see http://gcc.gnu.org/ml/java-patches/2002-q1/msg00696.html // for infos on how to do this } #else // _WIN32 static inline void set_non_blocking( cs_sock_t fd ) { int fdflags = fcntl( fd, F_GETFL, 0 ); if( fdflags < 0 ) return; // Ignore errors fcntl( fd, F_SETFL, fdflags|O_NONBLOCK ); } /* * not used by anything anymore static inline void set_blocking(cs_sock_t fd) { int fdflags = fcntl(fd, F_GETFL, 0); if( fdflags < 0 ) return; // Ignore errors fdflags &= ~O_NONBLOCK; fcntl( fd, F_SETFL, fdflags ); } */ static inline void set_close_on_exec( cs_sock_t fd ) { int fdflags = fcntl( fd, F_GETFD, 0 ); if( fdflags < 0 ) return; // Ignore errors fcntl( fd, F_SETFD, fdflags|FD_CLOEXEC ); } #endif /* _WIN32 */ void CSSockAddr::SinFamily() { #ifdef HAVE_IPV6 m_saddr6.sin6_family = PF_INET6; #endif /* HAVE_IPV6 */ m_saddr.sin_family = PF_INET; } void CSSockAddr::SinPort( uint16_t iPort ) { #ifdef HAVE_IPV6 m_saddr6.sin6_port = htons( iPort ); #endif /* HAVE_IPV6 */ m_saddr.sin_port = htons( iPort ); } void CSSockAddr::SetIPv6( bool b ) { #ifndef HAVE_IPV6 if( b ) { CS_DEBUG( "-DHAVE_IPV6 must be set during compile time to enable this feature" ); m_bIsIPv6 = false; return; } #endif /* HAVE_IPV6 */ m_bIsIPv6 = b; SinFamily(); } #ifdef HAVE_LIBSSL static int _PemPassCB( char *pBuff, int iBuffLen, int rwflag, void * pcSocket ) { Csock * pSock = static_cast( pcSocket ); const CS_STRING & sPassword = pSock->GetPemPass(); if( iBuffLen <= 0 ) return( 0 ); memset( pBuff, '\0', iBuffLen ); if( sPassword.empty() ) return( 0 ); int iUseBytes = min( iBuffLen - 1, ( int )sPassword.length() ); memcpy( pBuff, sPassword.data(), iUseBytes ); return( iUseBytes ); } static int _CertVerifyCB( int preverify_ok, X509_STORE_CTX *x509_ctx ) { Csock * pSock = GetCsockFromCTX( x509_ctx ); if( pSock ) return( pSock->VerifyPeerCertificate( preverify_ok, x509_ctx ) ); return( preverify_ok ); } static void _InfoCallback( const SSL * pSSL, int where, int ret ) { if( ( where & SSL_CB_HANDSHAKE_DONE ) && ret != 0 ) { Csock * pSock = static_cast( SSL_get_ex_data( pSSL, GetCsockSSLIdx() ) ); if( pSock ) pSock->SSLHandShakeFinished(); } } Csock * GetCsockFromCTX( X509_STORE_CTX * pCTX ) { Csock * pSock = NULL; SSL * pSSL = ( SSL * ) X509_STORE_CTX_get_ex_data( pCTX, SSL_get_ex_data_X509_STORE_CTX_idx() ); if( pSSL ) pSock = ( Csock * ) SSL_get_ex_data( pSSL, GetCsockSSLIdx() ); return( pSock ); } #endif /* HAVE_LIBSSL */ #ifdef USE_GETHOSTBYNAME // this issue here is getaddrinfo has a significant behavior difference when dealing with round robin dns on an // ipv4 network. This is not desirable IMHO. so when this is compiled without ipv6 support backwards compatibility // is maintained. static int __GetHostByName( const CS_STRING & sHostName, struct in_addr * paddr, u_int iNumRetries ) { int iReturn = HOST_NOT_FOUND; struct hostent * hent = NULL; #ifdef __linux__ char hbuff[2048]; struct hostent hentbuff; int err; for( u_int a = 0; a < iNumRetries; ++a ) { memset( ( char * ) hbuff, '\0', 2048 ); iReturn = gethostbyname_r( sHostName.c_str(), &hentbuff, hbuff, 2048, &hent, &err ); if( iReturn == 0 ) break; if( iReturn != TRY_AGAIN ) { CS_DEBUG( "gethostyname_r: " << hstrerror( h_errno ) ); break; } } if( !hent && iReturn == 0 ) iReturn = HOST_NOT_FOUND; #else for( u_int a = 0; a < iNumRetries; ++a ) { iReturn = HOST_NOT_FOUND; hent = gethostbyname( sHostName.c_str() ); if( hent ) { iReturn = 0; break; } if( h_errno != TRY_AGAIN ) { #ifndef _WIN32 CS_DEBUG( "gethostyname: " << hstrerror( h_errno ) ); #endif /* _WIN32 */ break; } } #endif /* __linux__ */ if( iReturn == 0 ) memcpy( &paddr->s_addr, hent->h_addr_list[0], sizeof( paddr->s_addr ) ); return( iReturn == TRY_AGAIN ? EAGAIN : iReturn ); } #endif /* !USE_GETHOSTBYNAME */ #ifdef HAVE_C_ARES void Csock::FreeAres() { if( m_pARESChannel ) { ares_destroy( m_pARESChannel ); m_pARESChannel = NULL; } } static void AresHostCallback( void * pArg, int status, int timeouts, struct hostent *hent ) { Csock * pSock = ( Csock * )pArg; if( status == ARES_SUCCESS && hent && hent->h_addr_list[0] != NULL ) { CSSockAddr * pSockAddr = pSock->GetCurrentAddr(); if( hent->h_addrtype == AF_INET ) { pSock->SetIPv6( false ); memcpy( pSockAddr->GetAddr(), hent->h_addr_list[0], sizeof( *( pSockAddr->GetAddr() ) ) ); } #ifdef HAVE_IPV6 else if( hent->h_addrtype == AF_INET6 ) { pSock->SetIPv6( true ); memcpy( pSockAddr->GetAddr6(), hent->h_addr_list[0], sizeof( *( pSockAddr->GetAddr6() ) ) ); } #endif /* HAVE_IPV6 */ else { status = ARES_ENOTFOUND; } } else { CS_DEBUG( ares_strerror( status ) ); if( status == ARES_SUCCESS ) { CS_DEBUG( "Received ARES_SUCCESS without any useful reply, using NODATA instead" ); status = ARES_ENODATA; } } pSock->SetAresFinished( status ); } #endif /* HAVE_C_ARES */ CGetAddrInfo::CGetAddrInfo( const CS_STRING & sHostname, Csock * pSock, CSSockAddr & csSockAddr ) : m_pSock( pSock ), m_csSockAddr( csSockAddr ) { m_sHostname = sHostname; m_pAddrRes = NULL; m_iRet = ETIMEDOUT; } CGetAddrInfo::~CGetAddrInfo() { if( m_pAddrRes ) freeaddrinfo( m_pAddrRes ); m_pAddrRes = NULL; } void CGetAddrInfo::Init() { memset( ( struct addrinfo * )&m_cHints, '\0', sizeof( m_cHints ) ); m_cHints.ai_family = m_csSockAddr.GetAFRequire(); m_cHints.ai_socktype = SOCK_STREAM; m_cHints.ai_protocol = IPPROTO_TCP; #ifdef AI_ADDRCONFIG // this is suppose to eliminate host from appearing that this system can not support m_cHints.ai_flags = AI_ADDRCONFIG; #endif /* AI_ADDRCONFIG */ if( m_pSock && ( m_pSock->GetType() == Csock::LISTENER || m_pSock->GetConState() == Csock::CST_BINDVHOST ) ) { // when doing a dns for bind only, set the AI_PASSIVE flag as suggested by the man page m_cHints.ai_flags |= AI_PASSIVE; } } int CGetAddrInfo::Process() { m_iRet = getaddrinfo( m_sHostname.c_str(), NULL, &m_cHints, &m_pAddrRes ); if( m_iRet == EAI_AGAIN ) return( EAGAIN ); else if( m_iRet == 0 ) return( 0 ); return( ETIMEDOUT ); } int CGetAddrInfo::Finish() { if( m_iRet == 0 && m_pAddrRes ) { std::list lpTryAddrs; bool bFound = false; for( struct addrinfo * pRes = m_pAddrRes; pRes; pRes = pRes->ai_next ) { // pass through the list building out a lean list of candidates to try. AI_CONFIGADDR doesn't always seem to work #ifdef __sun if( ( pRes->ai_socktype != SOCK_STREAM ) || ( pRes->ai_protocol != IPPROTO_TCP && pRes->ai_protocol != IPPROTO_IP ) ) #else if( ( pRes->ai_socktype != SOCK_STREAM ) || ( pRes->ai_protocol != IPPROTO_TCP ) ) #endif /* __sun work around broken impl of getaddrinfo */ continue; if( ( m_csSockAddr.GetAFRequire() != CSSockAddr::RAF_ANY ) && ( pRes->ai_family != m_csSockAddr.GetAFRequire() ) ) continue; // they requested a special type, so be certain we woop past anything unwanted lpTryAddrs.push_back( pRes ); } for( std::list::iterator it = lpTryAddrs.begin(); it != lpTryAddrs.end(); ) { // cycle through these, leaving the last iterator for the outside caller to call, so if there is an error it can call the events struct addrinfo * pRes = *it; bool bTryConnect = false; if( pRes->ai_family == AF_INET ) { if( m_pSock ) m_pSock->SetIPv6( false ); m_csSockAddr.SetIPv6( false ); struct sockaddr_in * pTmp = ( struct sockaddr_in * )pRes->ai_addr; memcpy( m_csSockAddr.GetAddr(), &( pTmp->sin_addr ), sizeof( *( m_csSockAddr.GetAddr() ) ) ); if( m_pSock && m_pSock->GetConState() == Csock::CST_DESTDNS && m_pSock->GetType() == Csock::OUTBOUND ) { bTryConnect = true; } else { bFound = true; break; } } #ifdef HAVE_IPV6 else if( pRes->ai_family == AF_INET6 ) { if( m_pSock ) m_pSock->SetIPv6( true ); m_csSockAddr.SetIPv6( true ); struct sockaddr_in6 * pTmp = ( struct sockaddr_in6 * )pRes->ai_addr; memcpy( m_csSockAddr.GetAddr6(), &( pTmp->sin6_addr ), sizeof( *( m_csSockAddr.GetAddr6() ) ) ); if( m_pSock && m_pSock->GetConState() == Csock::CST_DESTDNS && m_pSock->GetType() == Csock::OUTBOUND ) { bTryConnect = true; } else { bFound = true; break; } } #endif /* HAVE_IPV6 */ ++it; // increment the iterator her so we know if its the last element or not if( bTryConnect && it != lpTryAddrs.end() ) { // save the last attempt for the outer loop, the issue then becomes that the error is thrown on the last failure if( m_pSock->CreateSocksFD() && m_pSock->Connect() ) { m_pSock->SetSkipConnect( true ); // this tells the socket that the connection state has been started bFound = true; break; } m_pSock->CloseSocksFD(); } else if( bTryConnect ) { bFound = true; } } if( bFound ) // the data pointed to here is invalid now, but the pointer itself is a good test { return( 0 ); } } return( ETIMEDOUT ); } int GetAddrInfo( const CS_STRING & sHostname, Csock * pSock, CSSockAddr & csSockAddr ) { #ifdef USE_GETHOSTBYNAME if( pSock ) pSock->SetIPv6( false ); csSockAddr.SetIPv6( false ); int iRet = __GetHostByName( sHostname, csSockAddr.GetAddr(), 3 ); return( iRet ); #else CGetAddrInfo cInfo( sHostname, pSock, csSockAddr ); cInfo.Init(); int iRet = cInfo.Process(); if( iRet != 0 ) return( iRet ); return( cInfo.Finish() ); #endif /* USE_GETHOSTBYNAME */ } int Csock::ConvertAddress( const struct sockaddr_storage * pAddr, socklen_t iAddrLen, CS_STRING & sIP, uint16_t * piPort ) const { char szHostname[NI_MAXHOST]; char szServ[NI_MAXSERV]; int iRet = getnameinfo( ( const struct sockaddr * )pAddr, iAddrLen, szHostname, NI_MAXHOST, szServ, NI_MAXSERV, NI_NUMERICHOST|NI_NUMERICSERV ); if( iRet == 0 ) { sIP = szHostname; if( piPort ) *piPort = ( uint16_t )atoi( szServ ); } return( iRet ); } bool InitCsocket() { #ifdef _WIN32 WSADATA wsaData; int iResult = WSAStartup( MAKEWORD( 2, 2 ), &wsaData ); if( iResult != NO_ERROR ) return( false ); #endif /* _WIN32 */ #ifdef HAVE_C_ARES #if ARES_VERSION >= CREATE_ARES_VER( 1, 6, 1 ) if( ares_library_init( ARES_LIB_INIT_ALL ) != 0 ) return( false ); #endif /* ARES_VERSION >= CREATE_ARES_VER( 1, 6, 1 ) */ #endif /* HAVE_C_ARES */ #ifdef HAVE_LIBSSL if( !InitSSL() ) return( false ); #endif /* HAVE_LIBSSL */ return( true ); } void ShutdownCsocket() { #ifdef HAVE_LIBSSL ERR_remove_state( 0 ); ENGINE_cleanup(); CONF_modules_unload( 1 ); ERR_free_strings(); EVP_cleanup(); CRYPTO_cleanup_all_ex_data(); #endif /* HAVE_LIBSSL */ #ifdef HAVE_C_ARES #if ARES_VERSION >= CREATE_ARES_VER( 1, 6, 1 ) ares_library_cleanup(); #endif /* ARES_VERSION >= CREATE_ARES_VER( 1, 6, 1 ) */ #endif /* HAVE_C_ARES */ #ifdef _WIN32 WSACleanup(); #endif /* _WIN32 */ } #ifdef HAVE_LIBSSL bool InitSSL( ECompType eCompressionType ) { SSL_load_error_strings(); if( SSL_library_init() != 1 ) { CS_DEBUG( "SSL_library_init() failed!" ); return( false ); } #ifndef _WIN32 if( access( "/dev/urandom", R_OK ) == 0 ) { RAND_load_file( "/dev/urandom", 1024 ); } else if( access( "/dev/random", R_OK ) == 0 ) { RAND_load_file( "/dev/random", 1024 ); } else { CS_DEBUG( "Unable to locate entropy location! Tried /dev/urandom and /dev/random" ); return( false ); } #endif /* _WIN32 */ COMP_METHOD *cm = NULL; if( CT_ZLIB & eCompressionType ) { cm = COMP_zlib(); if( cm ) SSL_COMP_add_compression_method( CT_ZLIB, cm ); } if( CT_RLE & eCompressionType ) { cm = COMP_rle(); if( cm ) SSL_COMP_add_compression_method( CT_RLE, cm ); } // setting this up once in the begining s_iCsockSSLIdx = SSL_get_ex_new_index( 0, NULL, NULL, NULL, NULL ); return( true ); } void SSLErrors( const char *filename, u_int iLineNum ) { unsigned long iSSLError = 0; while( ( iSSLError = ERR_get_error() ) != 0 ) { CS_DEBUG( "at " << filename << ":" << iLineNum ); char szError[512]; memset( ( char * ) szError, '\0', 512 ); ERR_error_string_n( iSSLError, szError, 511 ); if( *szError ) CS_DEBUG( szError ); } } #endif /* HAVE_LIBSSL */ void CSAdjustTVTimeout( struct timeval & tv, long iTimeoutMS ) { if( iTimeoutMS >= 0 ) { long iCurTimeout = tv.tv_usec / 1000; iCurTimeout += tv.tv_sec * 1000; if( iCurTimeout > iTimeoutMS ) { tv.tv_sec = iTimeoutMS / 1000; tv.tv_usec = iTimeoutMS % 1000; } } } #define CS_UNKNOWN_ERROR "Unknown Error" static const char * CS_StrError( int iErrno, char * pszBuff, size_t uBuffLen ) { #if defined( sgi ) || defined(__sun) || defined(_WIN32) || (defined(__NetBSD_Version__) && __NetBSD_Version__ < 4000000000) return( strerror( iErrno ) ); #else memset( pszBuff, '\0', uBuffLen ); #if !defined( _GNU_SOURCE ) || !defined(__GLIBC__) || defined( __FreeBSD__ ) if( strerror_r( iErrno, pszBuff, uBuffLen ) == 0 ) return( pszBuff ); #else return( strerror_r( iErrno, pszBuff, uBuffLen ) ); #endif /* (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && !defined( _GNU_SOURCE ) */ #endif /* defined( sgi ) || defined(__sun) || defined(_WIN32) || (defined(__NetBSD_Version__) && __NetBSD_Version__ < 4000000000) */ return( CS_UNKNOWN_ERROR ); } void __Perror( const CS_STRING & s, const char * pszFile, u_int iLineNo ) { char szBuff[0xff]; std::cerr << s << "(" << pszFile << ":" << iLineNo << "): " << CS_StrError( GetSockError(), szBuff, 0xff ) << endl; } uint64_t millitime() { uint64_t iTime = 0; #ifdef _WIN32 struct timeb tm; ftime( &tm ); iTime = tm.time * 1000; iTime += tm.millitm; #else struct timeval tv; gettimeofday( &tv, NULL ); iTime = ( uint64_t )tv.tv_sec * 1000; iTime += ( ( uint64_t )tv.tv_usec / 1000 ); #endif /* _WIN32 */ return( iTime ); } #ifndef _NO_CSOCKET_NS // some people may not want to use a namespace } using namespace Csocket; #endif /* _NO_CSOCKET_NS */ CCron::CCron() { m_iCycles = 0; m_iMaxCycles = 0; m_bActive = true; timerclear( &m_tTime ); m_tTimeSequence.tv_sec = 60; m_tTimeSequence.tv_usec = 0; m_bPause = false; m_bRunOnNextCall = false; } void CCron::run( timeval & tNow ) { if( m_bPause ) return; if( !timerisset( &tNow ) ) gettimeofday( &tNow, NULL ); if( m_bActive && ( !timercmp( &tNow, &m_tTime, < ) || m_bRunOnNextCall ) ) { m_bRunOnNextCall = false; // Setting this here because RunJob() could set it back to true RunJob(); if( m_iMaxCycles > 0 && ++m_iCycles >= m_iMaxCycles ) m_bActive = false; else timeradd( &tNow, &m_tTimeSequence, &m_tTime ); } } void CCron::StartMaxCycles( double dTimeSequence, u_int iMaxCycles ) { timeval tNow; m_tTimeSequence.tv_sec = ( time_t ) dTimeSequence; // this could be done with modf(), but we're avoiding bringing in libm just for the one function. m_tTimeSequence.tv_usec = ( suseconds_t )( ( dTimeSequence - ( double )( ( time_t ) dTimeSequence ) ) * 1000000 ); gettimeofday( &tNow, NULL ); timeradd( &tNow, &m_tTimeSequence, &m_tTime ); m_iMaxCycles = iMaxCycles; m_bActive = true; } void CCron::StartMaxCycles( const timeval& tTimeSequence, u_int iMaxCycles ) { timeval tNow; m_tTimeSequence = tTimeSequence; gettimeofday( &tNow, NULL ); timeradd( &tNow, &m_tTimeSequence, &m_tTime ); m_iMaxCycles = iMaxCycles; m_bActive = true; } void CCron::Start( double dTimeSequence ) { StartMaxCycles( dTimeSequence, 0 ); } void CCron::Start( const timeval& tTimeSequence ) { StartMaxCycles( tTimeSequence, 0 ); } void CCron::Stop() { m_bActive = false; } void CCron::Pause() { m_bPause = true; } void CCron::UnPause() { m_bPause = false; } void CCron::Reset() { Stop(); Start(m_tTimeSequence); } timeval CCron::GetInterval() const { return( m_tTimeSequence ); } u_int CCron::GetMaxCycles() const { return( m_iMaxCycles ); } u_int CCron::GetCyclesLeft() const { return( ( m_iMaxCycles > m_iCycles ? ( m_iMaxCycles - m_iCycles ) : 0 ) ); } bool CCron::isValid() const { return( m_bActive ); } const CS_STRING & CCron::GetName() const { return( m_sName ); } void CCron::SetName( const CS_STRING & sName ) { m_sName = sName; } void CCron::RunJob() { CS_DEBUG( "This should be overridden" ); } bool CSMonitorFD::GatherFDsForSelect( std::map< cs_sock_t, short > & miiReadyFds, long & iTimeoutMS ) { iTimeoutMS = -1; // don't bother changing anything in the default implementation for( std::map< cs_sock_t, short >::iterator it = m_miiMonitorFDs.begin(); it != m_miiMonitorFDs.end(); ++it ) { miiReadyFds[it->first] = it->second; } return( m_bEnabled ); } bool CSMonitorFD::CheckFDs( const std::map< cs_sock_t, short > & miiReadyFds ) { std::map< cs_sock_t, short > miiTriggerdFds; for( std::map< cs_sock_t, short >::iterator it = m_miiMonitorFDs.begin(); it != m_miiMonitorFDs.end(); ++it ) { std::map< cs_sock_t, short >::const_iterator itFD = miiReadyFds.find( it->first ); if( itFD != miiReadyFds.end() ) miiTriggerdFds[itFD->first] = itFD->second; } if( !miiTriggerdFds.empty() ) return( FDsThatTriggered( miiTriggerdFds ) ); return( m_bEnabled ); } CSockCommon::~CSockCommon() { // delete any left over crons CleanupCrons(); CleanupFDMonitors(); } void CSockCommon::CleanupCrons() { for( size_t a = 0; a < m_vcCrons.size(); ++a ) CS_Delete( m_vcCrons[a] ); m_vcCrons.clear(); } void CSockCommon::CleanupFDMonitors() { for( size_t a = 0; a < m_vcMonitorFD.size(); ++a ) CS_Delete( m_vcMonitorFD[a] ); m_vcMonitorFD.clear(); } void CSockCommon::CheckFDs( const std::map< cs_sock_t, short > & miiReadyFds ) { for( size_t uMon = 0; uMon < m_vcMonitorFD.size(); ++uMon ) { if( !m_vcMonitorFD[uMon]->IsEnabled() || !m_vcMonitorFD[uMon]->CheckFDs( miiReadyFds ) ) m_vcMonitorFD.erase( m_vcMonitorFD.begin() + uMon-- ); } } void CSockCommon::AssignFDs( std::map< cs_sock_t, short > & miiReadyFds, struct timeval * tvtimeout ) { for( size_t uMon = 0; uMon < m_vcMonitorFD.size(); ++uMon ) { long iTimeoutMS = -1; if( m_vcMonitorFD[uMon]->IsEnabled() && m_vcMonitorFD[uMon]->GatherFDsForSelect( miiReadyFds, iTimeoutMS ) ) { CSAdjustTVTimeout( *tvtimeout, iTimeoutMS ); } else { CS_Delete( m_vcMonitorFD[uMon] ); m_vcMonitorFD.erase( m_vcMonitorFD.begin() + uMon-- ); } } } void CSockCommon::Cron() { timeval tNow; timerclear( &tNow ); for( vector::size_type a = 0; a < m_vcCrons.size(); ++a ) { CCron * pcCron = m_vcCrons[a]; if( !pcCron->isValid() ) { CS_Delete( pcCron ); m_vcCrons.erase( m_vcCrons.begin() + a-- ); } else { pcCron->run( tNow ); } } } void CSockCommon::AddCron( CCron * pcCron ) { m_vcCrons.push_back( pcCron ); } void CSockCommon::DelCron( const CS_STRING & sName, bool bDeleteAll, bool bCaseSensitive ) { for( size_t a = 0; a < m_vcCrons.size(); ++a ) { int ( *Cmp )( const char *, const char * ) = ( bCaseSensitive ? strcmp : strcasecmp ); if( Cmp( m_vcCrons[a]->GetName().c_str(), sName.c_str() ) == 0 ) { m_vcCrons[a]->Stop(); CS_Delete( m_vcCrons[a] ); m_vcCrons.erase( m_vcCrons.begin() + a-- ); if( !bDeleteAll ) break; } } } void CSockCommon::DelCron( u_int iPos ) { if( iPos < m_vcCrons.size() ) { m_vcCrons[iPos]->Stop(); CS_Delete( m_vcCrons[iPos] ); m_vcCrons.erase( m_vcCrons.begin() + iPos ); } } void CSockCommon::DelCronByAddr( CCron * pcCron ) { for( size_t a = 0; a < m_vcCrons.size(); ++a ) { if( m_vcCrons[a] == pcCron ) { m_vcCrons[a]->Stop(); CS_Delete( m_vcCrons[a] ); m_vcCrons.erase( m_vcCrons.begin() + a ); return; } } } Csock::Csock( int iTimeout ) : CSockCommon() { #ifdef HAVE_LIBSSL m_pCerVerifyCB = _CertVerifyCB; #endif /* HAVE_LIBSSL */ Init( "", 0, iTimeout ); } Csock::Csock( const CS_STRING & sHostname, uint16_t iport, int iTimeout ) : CSockCommon() { #ifdef HAVE_LIBSSL m_pCerVerifyCB = _CertVerifyCB; #endif /* HAVE_LIBSSL */ Init( sHostname, iport, iTimeout ); } // override this for accept sockets Csock *Csock::GetSockObj( const CS_STRING & sHostname, uint16_t iPort ) { return( NULL ); } #ifdef _WIN32 #define CS_CLOSE closesocket #else #define CS_CLOSE close #endif /* _WIN32 */ Csock::~Csock() { #ifdef _WIN32 // prevent successful closesocket() calls and such from // overwriting any possible previous errors. int iOldError = ::WSAGetLastError(); #endif /* _WIN32 */ #ifdef HAVE_C_ARES if( m_pARESChannel ) ares_cancel( m_pARESChannel ); FreeAres(); #endif /* HAVE_C_ARES */ #ifdef HAVE_LIBSSL FREE_SSL(); FREE_CTX(); #endif /* HAVE_LIBSSL */ CloseSocksFD(); #ifdef _WIN32 ::WSASetLastError( iOldError ); #endif /* _WIN32 */ } void Csock::CloseSocksFD() { if( m_iReadSock != m_iWriteSock ) { if( m_iReadSock != CS_INVALID_SOCK ) CS_CLOSE( m_iReadSock ); if( m_iWriteSock != CS_INVALID_SOCK ) CS_CLOSE( m_iWriteSock ); } else if( m_iReadSock != CS_INVALID_SOCK ) { CS_CLOSE( m_iReadSock ); } m_iReadSock = CS_INVALID_SOCK; m_iWriteSock = CS_INVALID_SOCK; } void Csock::Dereference() { m_iWriteSock = m_iReadSock = CS_INVALID_SOCK; #ifdef HAVE_LIBSSL m_ssl = NULL; m_ssl_ctx = NULL; #endif /* HAVE_LIBSSL */ // don't delete and erase, just erase since they were moved to the copied sock m_vcCrons.clear(); m_vcMonitorFD.clear(); Close( CLT_DEREFERENCE ); } void Csock::Copy( const Csock & cCopy ) { m_iTcount = cCopy.m_iTcount; m_iLastCheckTimeoutTime = cCopy.m_iLastCheckTimeoutTime; m_uPort = cCopy.m_uPort; m_iRemotePort = cCopy.m_iRemotePort; m_iLocalPort = cCopy.m_iLocalPort; m_iReadSock = cCopy.m_iReadSock; m_iWriteSock = cCopy.m_iWriteSock; m_iTimeout = cCopy.m_iTimeout; m_iMaxConns = cCopy.m_iMaxConns; m_iConnType = cCopy.m_iConnType; m_iMethod = cCopy.m_iMethod; m_bUseSSL = cCopy.m_bUseSSL; m_bIsConnected = cCopy.m_bIsConnected; m_bsslEstablished = cCopy.m_bsslEstablished; m_bEnableReadLine = cCopy.m_bEnableReadLine; m_bPauseRead = cCopy.m_bPauseRead; m_shostname = cCopy.m_shostname; m_sbuffer = cCopy.m_sbuffer; m_sSockName = cCopy.m_sSockName; m_sPemFile = cCopy.m_sPemFile; m_sCipherType = cCopy.m_sCipherType; m_sParentName = cCopy.m_sParentName; m_sSend = cCopy.m_sSend; m_sPemPass = cCopy.m_sPemPass; m_sLocalIP = cCopy.m_sLocalIP; m_sRemoteIP = cCopy.m_sRemoteIP; m_eCloseType = cCopy.m_eCloseType; m_iMaxMilliSeconds = cCopy.m_iMaxMilliSeconds; m_iLastSendTime = cCopy.m_iLastSendTime; m_iBytesRead = cCopy.m_iBytesRead; m_iBytesWritten = cCopy.m_iBytesWritten; m_iStartTime = cCopy.m_iStartTime; m_iMaxBytes = cCopy.m_iMaxBytes; m_iLastSend = cCopy.m_iLastSend; m_uSendBufferPos = cCopy.m_uSendBufferPos; m_iMaxStoredBufferLength = cCopy.m_iMaxStoredBufferLength; m_iTimeoutType = cCopy.m_iTimeoutType; m_address = cCopy.m_address; m_bindhost = cCopy.m_bindhost; m_bIsIPv6 = cCopy.m_bIsIPv6; m_bSkipConnect = cCopy.m_bSkipConnect; #ifdef HAVE_C_ARES FreeAres(); // Not copying this state, but making sure its nulled out m_iARESStatus = -1; // set it to unitialized m_pCurrAddr = NULL; #endif /* HAVE_C_ARES */ #ifdef HAVE_LIBSSL m_bNoSSLCompression = cCopy.m_bNoSSLCompression; m_bSSLCipherServerPreference = cCopy.m_bSSLCipherServerPreference; m_uDisableProtocols = cCopy.m_uDisableProtocols; m_iRequireClientCertFlags = cCopy.m_iRequireClientCertFlags; m_sSSLBuffer = cCopy.m_sSSLBuffer; FREE_SSL(); FREE_CTX(); // be sure to remove anything that was already here m_ssl = cCopy.m_ssl; m_ssl_ctx = cCopy.m_ssl_ctx; m_pCerVerifyCB = cCopy.m_pCerVerifyCB; if( m_ssl ) { SSL_set_ex_data( m_ssl, GetCsockSSLIdx(), this ); #if defined( SSL_CTX_set_tlsext_servername_callback ) SSL_CTX_set_tlsext_servername_arg( m_ssl_ctx, this ); #endif /* SSL_CTX_set_tlsext_servername_callback */ } #endif /* HAVE_LIBSSL */ #ifdef HAVE_ICU SetEncoding(cCopy.m_sEncoding); #endif CleanupCrons(); CleanupFDMonitors(); m_vcCrons = cCopy.m_vcCrons; m_vcMonitorFD = cCopy.m_vcMonitorFD; m_eConState = cCopy.m_eConState; m_sBindHost = cCopy.m_sBindHost; m_iCurBindCount = cCopy.m_iCurBindCount; m_iDNSTryCount = cCopy.m_iDNSTryCount; } Csock & Csock::operator<<( const CS_STRING & s ) { Write( s ); return( *this ); } Csock & Csock::operator<<( ostream & ( *io )( ostream & ) ) { Write( "\r\n" ); return( *this ); } Csock & Csock::operator<<( int32_t i ) { stringstream s; s << i; Write( s.str() ); return( *this ); } Csock & Csock::operator<<( uint32_t i ) { stringstream s; s << i; Write( s.str() ); return( *this ); } Csock & Csock::operator<<( int64_t i ) { stringstream s; s << i; Write( s.str() ); return( *this ); } Csock & Csock::operator<<( uint64_t i ) { stringstream s; s << i; Write( s.str() ); return( *this ); } Csock & Csock::operator<<( float i ) { stringstream s; s << i; Write( s.str() ); return( *this ); } Csock & Csock::operator<<( double i ) { stringstream s; s << i; Write( s.str() ); return( *this ); } bool Csock::Connect() { if( m_bSkipConnect ) { // this was already called, so skipping now. this is to allow easy pass through if( m_eConState != CST_OK ) { m_eConState = ( GetSSL() ? CST_CONNECTSSL : CST_OK ); } return( true ); } #ifndef _WIN32 set_non_blocking( m_iReadSock ); #else if( !GetIPv6() ) set_non_blocking( m_iReadSock ); // non-blocking sockets on Win32 do *not* return ENETUNREACH/EHOSTUNREACH if there's no IPv6 gateway. // we need those error codes for the v4 fallback in GetAddrInfo! #endif /* _WIN32 */ m_iConnType = OUTBOUND; int ret = -1; if( !GetIPv6() ) ret = connect( m_iReadSock, ( struct sockaddr * )m_address.GetSockAddr(), m_address.GetSockAddrLen() ); #ifdef HAVE_IPV6 else ret = connect( m_iReadSock, ( struct sockaddr * )m_address.GetSockAddr6(), m_address.GetSockAddrLen6() ); #endif /* HAVE_IPV6 */ #ifndef _WIN32 if( ret == -1 && GetSockError() != EINPROGRESS ) #else if( ret == -1 && GetSockError() != EINPROGRESS && GetSockError() != WSAEWOULDBLOCK ) #endif /* _WIN32 */ { CS_DEBUG( "Connect Failed. ERRNO [" << GetSockError() << "] FD [" << m_iReadSock << "]" ); return( false ); } #ifdef _WIN32 // do what we didn't do above since connect() is now over! if( GetIPv6() ) set_non_blocking( m_iReadSock ); #endif /* _WIN32 */ if( m_eConState != CST_OK ) { m_eConState = ( GetSSL() ? CST_CONNECTSSL : CST_OK ); } return( true ); } bool Csock::Listen( uint16_t iPort, int iMaxConns, const CS_STRING & sBindHost, u_int iTimeout, bool bDetach ) { m_iConnType = LISTENER; m_iTimeout = iTimeout; m_sBindHost = sBindHost; m_iMaxConns = iMaxConns; SetConState( Csock::CST_OK ); if( !m_sBindHost.empty() ) { if( bDetach ) { int iRet = GetAddrInfo( m_sBindHost, m_address ); if( iRet == ETIMEDOUT ) { CallSockError( EADDRNOTAVAIL ); return( false ); } else if( iRet == EAGAIN ) { SetConState( Csock::CST_BINDVHOST ); return( true ); } } else { // if not detaching, then must block to do DNS resolution, so might as well use internal resolver if( ::GetAddrInfo( m_sBindHost, this, m_address ) != 0 ) { CallSockError( EADDRNOTAVAIL ); return( false ); } } } m_iReadSock = m_iWriteSock = CreateSocket( true ); if( m_iReadSock == CS_INVALID_SOCK ) { CallSockError( EBADF ); return( false ); } #ifdef HAVE_IPV6 # ifdef _WIN32 # ifndef IPPROTO_IPV6 # define IPPROTO_IPV6 41 /* define for apps with _WIN32_WINNT < 0x0501 (XP) */ # endif /* !IPPROTO_IPV6 */ # ifndef IPV6_V6ONLY # define IPV6_V6ONLY 27 # endif /* check for IPV6_V6ONLY support at runtime */ OSVERSIONINFOW lvi = { sizeof( OSVERSIONINFOW ), 0 }; if( ::GetVersionExW( &lvi ) && lvi.dwMajorVersion >= 6 ) // IPV6_V6ONLY is supported on Windows Vista or later. { # endif /* _WIN32 */ # ifdef IPV6_V6ONLY if( GetIPv6() ) { // per RFC3493#5.3 const int on = ( m_address.GetAFRequire() == CSSockAddr::RAF_INET6 ? 1 : 0 ); if( setsockopt( m_iReadSock, IPPROTO_IPV6, IPV6_V6ONLY, ( char * )&on, sizeof( on ) ) != 0 ) PERROR( "IPV6_V6ONLY" ); } # endif /* IPV6_V6ONLY */ # ifdef _WIN32 } # endif /* _WIN32 */ #endif /* HAVE_IPV6 */ m_address.SinFamily(); m_address.SinPort( iPort ); if( !GetIPv6() ) { if( bind( m_iReadSock, ( struct sockaddr * ) m_address.GetSockAddr(), m_address.GetSockAddrLen() ) == -1 ) { CallSockError( GetSockError() ); return( false ); } } #ifdef HAVE_IPV6 else { if( bind( m_iReadSock, ( struct sockaddr * ) m_address.GetSockAddr6(), m_address.GetSockAddrLen6() ) == -1 ) { CallSockError( GetSockError() ); return( false ); } } #endif /* HAVE_IPV6 */ if( listen( m_iReadSock, iMaxConns ) == -1 ) { CallSockError( GetSockError() ); return( false ); } // set it none blocking set_non_blocking( m_iReadSock ); if( m_uPort == 0 || !m_sBindHost.empty() ) { struct sockaddr_storage cAddr; socklen_t iAddrLen = sizeof( cAddr ); if( getsockname( m_iReadSock, ( struct sockaddr * )&cAddr, &iAddrLen ) == 0 ) { ConvertAddress( &cAddr, iAddrLen, m_sBindHost, &m_uPort ); } } Listening( m_sBindHost, m_uPort ); return( true ); } cs_sock_t Csock::Accept( CS_STRING & sHost, uint16_t & iRPort ) { cs_sock_t iSock = CS_INVALID_SOCK; struct sockaddr_storage cAddr; socklen_t iAddrLen = sizeof( cAddr ); iSock = accept( m_iReadSock, ( struct sockaddr * )&cAddr, &iAddrLen ); if( iSock != CS_INVALID_SOCK && getpeername( iSock, ( struct sockaddr * )&cAddr, &iAddrLen ) == 0 ) { ConvertAddress( &cAddr, iAddrLen, sHost, &iRPort ); } if( iSock != CS_INVALID_SOCK ) { // Make it close-on-exec set_close_on_exec( iSock ); // make it none blocking set_non_blocking( iSock ); if( !ConnectionFrom( sHost, iRPort ) ) { CS_CLOSE( iSock ); iSock = CS_INVALID_SOCK; } } return( iSock ); } #ifdef HAVE_LIBSSL #if defined( SSL_CTX_set_tlsext_servername_callback ) static int __SNICallBack( SSL *pSSL, int *piAD, void *pData ) { if( !pSSL || !pData ) return( SSL_TLSEXT_ERR_NOACK ); const char * pServerName = SSL_get_servername( pSSL, TLSEXT_NAMETYPE_host_name ); if( !pServerName ) return( SSL_TLSEXT_ERR_NOACK ); Csock * pSock = static_cast( pData ); CS_STRING sPemFile, sPemPass; if( !pSock->SNIConfigureServer( pServerName, sPemFile, sPemPass ) ) return( SSL_TLSEXT_ERR_NOACK ); pSock->SetPemLocation( sPemFile ); pSock->SetPemPass( sPemPass ); SSL_CTX * pCTX = pSock->SetupServerCTX(); SSL_set_SSL_CTX( pSSL, pCTX ); pSock->SetCTXObject( pCTX, true ); return( SSL_TLSEXT_ERR_OK ); } #endif /* SSL_CTX_set_tlsext_servername_callback */ #endif /* HAVE_LIBSSL */ bool Csock::AcceptSSL() { #ifdef HAVE_LIBSSL if( !m_ssl ) if( !SSLServerSetup() ) return( false ); #if defined( SSL_CTX_set_tlsext_servername_callback ) SSL_CTX_set_tlsext_servername_callback( m_ssl_ctx, __SNICallBack ); SSL_CTX_set_tlsext_servername_arg( m_ssl_ctx, this ); #endif /* SSL_CTX_set_tlsext_servername_callback */ int err = SSL_accept( m_ssl ); if( err == 1 ) { return( true ); } int sslErr = SSL_get_error( m_ssl, err ); if( sslErr == SSL_ERROR_WANT_READ || sslErr == SSL_ERROR_WANT_WRITE ) return( true ); SSLErrors( __FILE__, __LINE__ ); #endif /* HAVE_LIBSSL */ return( false ); } #ifdef HAVE_LIBSSL bool Csock::ConfigureCTXOptions( SSL_CTX * pCTX ) { if( pCTX ) { if( SSL_CTX_set_cipher_list( pCTX, m_sCipherType.c_str() ) <= 0 ) { CS_DEBUG( "Could not assign cipher [" << m_sCipherType << "]" ); return( false ); } long uCTXOptions = 0; if( m_uDisableProtocols > 0 ) { #ifdef SSL_OP_NO_SSLv2 if( EDP_SSLv2 & m_uDisableProtocols ) uCTXOptions |= SSL_OP_NO_SSLv2; #endif /* SSL_OP_NO_SSLv2 */ #ifdef SSL_OP_NO_SSLv3 if( EDP_SSLv3 & m_uDisableProtocols ) uCTXOptions |= SSL_OP_NO_SSLv3; #endif /* SSL_OP_NO_SSLv3 */ #ifdef SSL_OP_NO_TLSv1 if( EDP_TLSv1 & m_uDisableProtocols ) uCTXOptions |= SSL_OP_NO_TLSv1; #endif /* SSL_OP_NO_TLSv1 */ #ifdef SSL_OP_NO_TLSv1_1 if( EDP_TLSv1_1 & m_uDisableProtocols ) uCTXOptions |= SSL_OP_NO_TLSv1_1; #endif /* SSL_OP_NO_TLSv1 */ #ifdef SSL_OP_NO_TLSv1_2 if( EDP_TLSv1_2 & m_uDisableProtocols ) uCTXOptions |= SSL_OP_NO_TLSv1_2; #endif /* SSL_OP_NO_TLSv1_2 */ } #ifdef SSL_OP_NO_COMPRESSION if( m_bNoSSLCompression ) uCTXOptions |= SSL_OP_NO_COMPRESSION; #endif /* SSL_OP_NO_COMPRESSION */ #ifdef SSL_OP_CIPHER_SERVER_PREFERENCE if( m_bSSLCipherServerPreference ) uCTXOptions |= SSL_OP_CIPHER_SERVER_PREFERENCE; #endif /* SSL_OP_CIPHER_SERVER_PREFERENCE */ if( uCTXOptions ) SSL_CTX_set_options( pCTX, uCTXOptions ); } return true; } #endif /* HAVE_LIBSSL */ bool Csock::SSLClientSetup() { #ifdef HAVE_LIBSSL m_bUseSSL = true; FREE_SSL(); FREE_CTX(); #ifdef _WIN64 if( m_iReadSock != ( int )m_iReadSock || m_iWriteSock != ( int )m_iWriteSock ) { // sanity check the FD to be sure its compatible with openssl CS_DEBUG( "ERROR: sockfd larger than OpenSSL can handle" ); return( false ); } #endif /* _WIN64 */ switch( m_iMethod ) { #ifndef OPENSSL_NO_SSL3 case SSL3: m_ssl_ctx = SSL_CTX_new( SSLv3_client_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv3_client_method failed!" ); return( false ); } break; #endif /* OPENSSL_NO_SSL3 */ /* Fall through if SSL3 is disabled */ case TLS12: #if defined( TLS1_2_VERSION ) && defined( OPENSSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x1000100f m_ssl_ctx = SSL_CTX_new( TLSv1_2_client_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_2_client_method failed!" ); return( false ); } break; #endif /* TLS1_2_VERSION */ case TLS11: #if defined( TLS1_1_VERSION ) && defined( OPENSSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x1000100f m_ssl_ctx = SSL_CTX_new( TLSv1_1_client_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_1_client_method failed!" ); return( false ); } break; #endif /* TLS1_1_VERSION */ case TLS1: m_ssl_ctx = SSL_CTX_new( TLSv1_client_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_client_method failed!" ); return( false ); } break; case SSL2: #ifndef OPENSSL_NO_SSL2 m_ssl_ctx = SSL_CTX_new( SSLv2_client_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv2_client_method failed!" ); return( false ); } break; #endif /* OPENSSL_NO_SSL2 */ /* Fall through if SSL2 is disabled */ case SSL23: default: if( m_iMethod != SSL23 ) { CS_DEBUG( "WARNING: SSL Client Method other than SSLv23 specified, but has passed through" ); } m_ssl_ctx = SSL_CTX_new( SSLv23_client_method() ); if( !m_ssl_ctx ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv23_client_method failed!" ); return( false ); } break; } SSL_CTX_set_default_verify_paths( m_ssl_ctx ); if( !m_sPemFile.empty() ) { // are we sending a client cerificate ? SSL_CTX_set_default_passwd_cb( m_ssl_ctx, _PemPassCB ); SSL_CTX_set_default_passwd_cb_userdata( m_ssl_ctx, ( void * )this ); // // set up the CTX if( SSL_CTX_use_certificate_file( m_ssl_ctx, m_sPemFile.c_str() , SSL_FILETYPE_PEM ) <= 0 ) { CS_DEBUG( "Error with PEM file [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); } if( SSL_CTX_use_PrivateKey_file( m_ssl_ctx, m_sPemFile.c_str(), SSL_FILETYPE_PEM ) <= 0 ) { CS_DEBUG( "Error with PEM file [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); } } if( !ConfigureCTXOptions( m_ssl_ctx ) ) { SSL_CTX_free( m_ssl_ctx ); m_ssl_ctx = NULL; return( false ); } m_ssl = SSL_new( m_ssl_ctx ); if( !m_ssl ) return( false ); SSL_set_rfd( m_ssl, ( int )m_iReadSock ); SSL_set_wfd( m_ssl, ( int )m_iWriteSock ); SSL_set_verify( m_ssl, SSL_VERIFY_PEER, m_pCerVerifyCB ); SSL_set_info_callback( m_ssl, _InfoCallback ); SSL_set_ex_data( m_ssl, GetCsockSSLIdx(), this ); #if defined( SSL_set_tlsext_host_name ) CS_STRING sSNIHostname; if( SNIConfigureClient( sSNIHostname ) ) SSL_set_tlsext_host_name( m_ssl, sSNIHostname.c_str() ); #endif /* SSL_set_tlsext_host_name */ SSLFinishSetup( m_ssl ); return( true ); #else return( false ); #endif /* HAVE_LIBSSL */ } #ifdef HAVE_LIBSSL SSL_CTX * Csock::SetupServerCTX() { SSL_CTX * pCTX = NULL; switch( m_iMethod ) { #ifndef OPENSSL_NO_SSL3 case SSL3: pCTX = SSL_CTX_new( SSLv3_server_method() ); if( !pCTX ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv3_server_method failed!" ); return( NULL ); } break; #endif /* OPENSSL_NO_SSL3 */ /* Fall through if SSL3 is disabled */ case TLS12: #if defined( TLS1_2_VERSION ) && defined( OPENSSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x1000100f pCTX = SSL_CTX_new( TLSv1_2_server_method() ); if( !pCTX ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_2_server_method failed!" ); return( NULL ); } break; #endif /* TLS1_2_VERSION */ case TLS11: #if defined( TLS1_1_VERSION ) && defined( OPENSSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x1000100f pCTX = SSL_CTX_new( TLSv1_1_server_method() ); if( !pCTX ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_1_server_method failed!" ); return( NULL ); } break; case TLS1: #endif /* TLS1_1_VERSION */ pCTX = SSL_CTX_new( TLSv1_server_method() ); if( !pCTX ) { CS_DEBUG( "WARNING: MakeConnection .... TLSv1_server_method failed!" ); return( NULL ); } break; case SSL2: #ifndef OPENSSL_NO_SSL2 pCTX = SSL_CTX_new( SSLv2_server_method() ); if( !pCTX ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv2_server_method failed!" ); return( NULL ); } break; #endif /* OPENSSL_NO_SSL2 */ /* Fall through if SSL2 is disabled */ case SSL23: default: if( m_iMethod != SSL23 ) { CS_DEBUG( "WARNING: SSL Server Method other than SSLv23 specified, but has passed through" ); } pCTX = SSL_CTX_new( SSLv23_server_method() ); if( !pCTX ) { CS_DEBUG( "WARNING: MakeConnection .... SSLv23_server_method failed!" ); return( NULL ); } break; } if( !pCTX ) { CS_DEBUG( "ERROR: NULL Ptr where there shouldn't be" ); return( NULL ); } SSL_CTX_set_default_verify_paths( pCTX ); // set the pemfile password SSL_CTX_set_default_passwd_cb( pCTX, _PemPassCB ); SSL_CTX_set_default_passwd_cb_userdata( pCTX, ( void * )this ); if( m_sPemFile.empty() || access( m_sPemFile.c_str(), R_OK ) != 0 ) { CS_DEBUG( "Empty, missing, or bad pemfile ... [" << m_sPemFile << "]" ); SSL_CTX_free( pCTX ); return( NULL ); } // // set up the CTX if( SSL_CTX_use_certificate_chain_file( pCTX, m_sPemFile.c_str() ) <= 0 ) { CS_DEBUG( "Error with PEM file [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); SSL_CTX_free( pCTX ); return( NULL ); } if( SSL_CTX_use_PrivateKey_file( pCTX, m_sPemFile.c_str(), SSL_FILETYPE_PEM ) <= 0 ) { CS_DEBUG( "Error with PEM file [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); SSL_CTX_free( pCTX ); return( NULL ); } // check to see if this pem file contains a DH structure for use with DH key exchange // https://github.com/znc/znc/pull/46 FILE *dhParamsFile = fopen( m_sPemFile.c_str(), "r" ); if( !dhParamsFile ) { CS_DEBUG( "There is a problem with [" << m_sPemFile << "]" ); SSL_CTX_free( pCTX ); return( NULL ); } DH * dhParams = PEM_read_DHparams( dhParamsFile, NULL, NULL, NULL ); fclose( dhParamsFile ); if( dhParams ) { SSL_CTX_set_options( pCTX, SSL_OP_SINGLE_DH_USE ); if( !SSL_CTX_set_tmp_dh( pCTX, dhParams ) ) { CS_DEBUG( "Error setting ephemeral DH parameters from [" << m_sPemFile << "]" ); SSLErrors( __FILE__, __LINE__ ); DH_free( dhParams ); SSL_CTX_free( pCTX ); return( NULL ); } DH_free( dhParams ); } else { // Presumably PEM_read_DHparams failed, as there was no DH structure. Clearing those errors here so they are removed off the stack ERR_clear_error(); } #ifndef OPENSSL_NO_ECDH // Errors for the following block are non-fatal (ECDHE is nice to have // but not a requirement) #if defined( SSL_CTX_set_ecdh_auto ) // Auto-select sensible curve if( !SSL_CTX_set_ecdh_auto( pCTX , 1 ) ) ERR_clear_error(); #elif defined( SSL_CTX_set_tmp_ecdh ) // Use a standard, widely-supported curve EC_KEY * ecdh = EC_KEY_new_by_curve_name( NID_X9_62_prime256v1 ); if( ecdh ) { if( !SSL_CTX_set_tmp_ecdh( pCTX, ecdh ) ) ERR_clear_error(); EC_KEY_free( ecdh ); } else { ERR_clear_error(); } #endif /* SSL_CTX_set_tmp_ecdh */ #endif /* OPENSSL_NO_ECDH */ if( !ConfigureCTXOptions( pCTX ) ) { SSL_CTX_free( pCTX ); return( NULL ); } return( pCTX ); } #endif /* HAVE_LIBSSL */ bool Csock::SSLServerSetup() { #ifdef HAVE_LIBSSL m_bUseSSL = true; FREE_SSL(); FREE_CTX(); #ifdef _WIN64 if( m_iReadSock != ( int )m_iReadSock || m_iWriteSock != ( int )m_iWriteSock ) { // sanity check the FD to be sure its compatible with openssl CS_DEBUG( "ERROR: sockfd larger than OpenSSL can handle" ); return( false ); } #endif /* _WIN64 */ m_ssl_ctx = SetupServerCTX(); // // setup the SSL m_ssl = SSL_new( m_ssl_ctx ); if( !m_ssl ) return( false ); #if defined( SSL_MODE_SEND_FALLBACK_SCSV ) SSL_set_mode( m_ssl, SSL_MODE_SEND_FALLBACK_SCSV ); #endif /* SSL_MODE_SEND_FALLBACK_SCSV */ // Call for client Verification SSL_set_rfd( m_ssl, ( int )m_iReadSock ); SSL_set_wfd( m_ssl, ( int )m_iWriteSock ); SSL_set_accept_state( m_ssl ); if( m_iRequireClientCertFlags ) { SSL_set_verify( m_ssl, m_iRequireClientCertFlags, m_pCerVerifyCB ); } SSL_set_info_callback( m_ssl, _InfoCallback ); SSL_set_ex_data( m_ssl, GetCsockSSLIdx(), this ); SSLFinishSetup( m_ssl ); return( true ); #else return( false ); #endif /* HAVE_LIBSSL */ } bool Csock::StartTLS() { if( m_iConnType == INBOUND ) return( AcceptSSL() ); if( m_iConnType == OUTBOUND ) return( ConnectSSL() ); CS_DEBUG( "Invalid connection type with StartTLS" ); return( false ); } bool Csock::ConnectSSL() { #ifdef HAVE_LIBSSL if( m_iReadSock == CS_INVALID_SOCK ) return( false ); // this should be long passed at this point if( !m_ssl && !SSLClientSetup() ) return( false ); bool bPass = true; int iErr = SSL_connect( m_ssl ); if( iErr != 1 ) { int sslErr = SSL_get_error( m_ssl, iErr ); bPass = false; if( sslErr == SSL_ERROR_WANT_READ || sslErr == SSL_ERROR_WANT_WRITE ) bPass = true; #ifdef _WIN32 else if( sslErr == SSL_ERROR_SYSCALL && iErr < 0 && GetLastError() == WSAENOTCONN ) { // this seems to be an issue with win32 only. I've seen it happen on slow connections // the issue is calling this before select(), which isn't a problem on unix. Allowing this // to pass in this case is fine because subsequent ssl transactions will occur and the handshake // will finish. At this point, its just instantiating the handshake. bPass = true; } #endif /* _WIN32 */ } else { bPass = true; } if( m_eConState != CST_OK ) m_eConState = CST_OK; return( bPass ); #else return( false ); #endif /* HAVE_LIBSSL */ } #ifdef HAVE_ICU inline bool icuConv( const CS_STRING& src, CS_STRING& tgt, UConverter* cnv_in, UConverter* cnv_out ) { const char* indata = src.c_str(); const char* indataend = indata + src.length(); tgt.clear(); char buf[100]; UChar pivotStart[100]; UChar* pivotSource = pivotStart; UChar* pivotTarget = pivotStart; UChar* pivotLimit = pivotStart + sizeof pivotStart / sizeof pivotStart[0]; const char* outdataend = buf + sizeof buf; bool reset = true; while( true ) { char* outdata = buf; icu::ErrorCode e; ucnv_convertEx( cnv_out, cnv_in, &outdata, outdataend, &indata, indataend, pivotStart, &pivotSource, &pivotTarget, pivotLimit, reset, true, e ); reset = false; if( e.isSuccess() ) { if( e != U_ZERO_ERROR ) { CS_DEBUG( "Warning during converting string encoding: " << e.errorName() ); } tgt.append( buf, outdata - buf ); break; } if( e == U_BUFFER_OVERFLOW_ERROR ) { tgt.append( buf, outdata - buf ); continue; } CS_DEBUG( "Error during converting string encoding: " << e.errorName() ); return false; } return true; } #endif /* HAVE_ICU */ bool Csock::AllowWrite( uint64_t & iNOW ) const { if( m_iMaxBytes > 0 && m_iMaxMilliSeconds > 0 ) { if( iNOW == 0 ) iNOW = millitime(); if( m_iLastSend < m_iMaxBytes ) return( true ); // allow sending if our out buffer was less than what we can send if( ( iNOW - m_iLastSendTime ) < m_iMaxMilliSeconds ) return( false ); } return( true ); } void Csock::ShrinkSendBuff() { if( m_uSendBufferPos > 0 ) { // just doing this to keep m_sSend from growing out of control m_sSend.erase( 0, m_uSendBufferPos ); m_uSendBufferPos = 0; } } void Csock::IncBuffPos( size_t uBytes ) { m_uSendBufferPos += uBytes; if( m_uSendBufferPos >= m_sSend.size() ) { m_uSendBufferPos = 0; m_sSend.clear(); } } bool Csock::Write( const char *data, size_t len ) { if( len > 0 ) { ShrinkSendBuff(); m_sSend.append( data, len ); } if( m_sSend.empty() ) return( true ); if( m_eConState != CST_OK ) return( true ); // rate shaping size_t iBytesToSend = 0; size_t uBytesInSend = m_sSend.size() - m_uSendBufferPos; #ifdef HAVE_LIBSSL if( m_bUseSSL && m_sSSLBuffer.empty() && !m_bsslEstablished ) { // to keep openssl from spinning, just initiate the connection with 1 byte so the connection establishes faster iBytesToSend = 1; } else #endif /* HAVE_LIBSSL */ if( m_iMaxBytes > 0 && m_iMaxMilliSeconds > 0 ) { uint64_t iNOW = millitime(); // figure out the shaping here // if NOW - m_iLastSendTime > m_iMaxMilliSeconds then send a full length of ( iBytesToSend ) if( ( iNOW - m_iLastSendTime ) > m_iMaxMilliSeconds ) { m_iLastSendTime = iNOW; iBytesToSend = m_iMaxBytes; m_iLastSend = 0; } else // otherwise send m_iMaxBytes - m_iLastSend iBytesToSend = m_iMaxBytes - m_iLastSend; // take which ever is lesser if( uBytesInSend < iBytesToSend ) iBytesToSend = uBytesInSend; // add up the bytes sent m_iLastSend += iBytesToSend; // so, are we ready to send anything ? if( iBytesToSend == 0 ) return( true ); } else { iBytesToSend = uBytesInSend; } #ifdef HAVE_LIBSSL if( m_bUseSSL ) { if( !m_ssl ) { CS_DEBUG( "SSL object is NULL but m_bUseSSL is true" ); return( false ); } if( m_sSSLBuffer.empty() ) // on retrying to write data, ssl wants the data in the SAME spot and the SAME size m_sSSLBuffer.append( m_sSend.data() + m_uSendBufferPos, iBytesToSend ); int iErr = SSL_write( m_ssl, m_sSSLBuffer.data(), ( int )m_sSSLBuffer.length() ); if( iErr < 0 && GetSockError() == ECONNREFUSED ) { // If ret == -1, the underlying BIO reported an I/O error (man SSL_get_error) ConnectionRefused(); return( false ); } switch( SSL_get_error( m_ssl, iErr ) ) { case SSL_ERROR_NONE: m_bsslEstablished = true; // all ok break; case SSL_ERROR_ZERO_RETURN: { // weird closer alert return( false ); } case SSL_ERROR_WANT_READ: // retry break; case SSL_ERROR_WANT_WRITE: // retry break; case SSL_ERROR_SSL: { SSLErrors( __FILE__, __LINE__ ); return( false ); } } if( iErr > 0 ) { m_sSSLBuffer.clear(); IncBuffPos( ( size_t )iErr ); // reset the timer on successful write (we have to set it here because the write // bit might not always be set, so need to trigger) if( TMO_WRITE & GetTimeoutType() ) ResetTimer(); m_iBytesWritten += ( uint64_t )iErr; } return( true ); } #endif /* HAVE_LIBSSL */ #ifdef _WIN32 cs_ssize_t bytes = send( m_iWriteSock, m_sSend.data() + m_uSendBufferPos, iBytesToSend, 0 ); #else cs_ssize_t bytes = write( m_iWriteSock, m_sSend.data() + m_uSendBufferPos, iBytesToSend ); #endif /* _WIN32 */ if( bytes == -1 && GetSockError() == ECONNREFUSED ) { ConnectionRefused(); return( false ); } #ifdef _WIN32 if( bytes <= 0 && GetSockError() != WSAEWOULDBLOCK ) return( false ); #else if( bytes <= 0 && GetSockError() != EAGAIN ) return( false ); #endif /* _WIN32 */ // delete the bytes we sent if( bytes > 0 ) { IncBuffPos( ( size_t )bytes ); if( TMO_WRITE & GetTimeoutType() ) ResetTimer(); // reset the timer on successful write m_iBytesWritten += ( uint64_t )bytes; } return( true ); } bool Csock::Write( const CS_STRING & sData ) { #ifdef HAVE_ICU if( m_cnvExt.isValid() && !m_cnvSendUTF8 ) { CS_STRING sBinary; if( icuConv( sData, sBinary, m_cnvInt.getAlias(), m_cnvExt.getAlias() ) ) { return( Write( sBinary.c_str(), sBinary.length() ) ); } } // can't convert our UTF-8 string to that encoding, just put it as is... #endif /* HAVE_ICU */ return( Write( sData.c_str(), sData.length() ) ); } cs_ssize_t Csock::Read( char *data, size_t len ) { cs_ssize_t bytes = 0; if( IsReadPaused() && SslIsEstablished() ) return( READ_EAGAIN ); // allow the handshake to complete first #ifdef HAVE_LIBSSL if( m_bUseSSL ) { if( !m_ssl ) { CS_DEBUG( "SSL object is NULL but m_bUseSSL is true" ); return( READ_ERR ); } bytes = SSL_read( m_ssl, data, ( int )len ); if( bytes >= 0 ) m_bsslEstablished = true; // this means all is good in the realm of ssl } else #endif /* HAVE_LIBSSL */ #ifdef _WIN32 bytes = recv( m_iReadSock, data, len, 0 ); #else bytes = read( m_iReadSock, data, len ); #endif /* _WIN32 */ if( bytes == -1 ) { if( GetSockError() == ECONNREFUSED ) return( READ_CONNREFUSED ); if( GetSockError() == ETIMEDOUT ) return( READ_TIMEDOUT ); if( GetSockError() == EINTR || GetSockError() == EAGAIN ) return( READ_EAGAIN ); #ifdef _WIN32 if( GetSockError() == WSAEWOULDBLOCK ) return( READ_EAGAIN ); #endif /* _WIN32 */ #ifdef HAVE_LIBSSL if( m_ssl ) { int iErr = SSL_get_error( m_ssl, ( int )bytes ); if( iErr != SSL_ERROR_WANT_READ && iErr != SSL_ERROR_WANT_WRITE ) return( READ_ERR ); else return( READ_EAGAIN ); } #else return( READ_ERR ); #endif /* HAVE_LIBSSL */ } if( bytes > 0 ) // becareful not to add negative bytes :P m_iBytesRead += ( uint64_t )bytes; return( bytes ); } CS_STRING Csock::GetLocalIP() const { if( !m_sLocalIP.empty() ) return( m_sLocalIP ); cs_sock_t iSock = GetSock(); if( iSock == CS_INVALID_SOCK ) return( "" ); struct sockaddr_storage cAddr; socklen_t iAddrLen = sizeof( cAddr ); if( getsockname( iSock, ( struct sockaddr * )&cAddr, &iAddrLen ) == 0 ) { ConvertAddress( &cAddr, iAddrLen, m_sLocalIP, &m_iLocalPort ); } return( m_sLocalIP ); } CS_STRING Csock::GetRemoteIP() const { if( !m_sRemoteIP.empty() ) return( m_sRemoteIP ); cs_sock_t iSock = GetSock(); if( iSock == CS_INVALID_SOCK ) return( "" ); struct sockaddr_storage cAddr; socklen_t iAddrLen = sizeof( cAddr ); if( getpeername( iSock, ( struct sockaddr * )&cAddr, &iAddrLen ) == 0 ) { ConvertAddress( &cAddr, iAddrLen, m_sRemoteIP, &m_iRemotePort ); } return( m_sRemoteIP ); } bool Csock::IsConnected() const { return( m_bIsConnected ); } void Csock::SetIsConnected( bool b ) { m_bIsConnected = b; } cs_sock_t & Csock::GetRSock() { return( m_iReadSock ); } const cs_sock_t & Csock::GetRSock() const { return( m_iReadSock ); } void Csock::SetRSock( cs_sock_t iSock ) { m_iReadSock = iSock; } cs_sock_t & Csock::GetWSock() { return( m_iWriteSock ); } const cs_sock_t & Csock::GetWSock() const { return( m_iWriteSock ); } void Csock::SetWSock( cs_sock_t iSock ) { m_iWriteSock = iSock; } void Csock::SetSock( cs_sock_t iSock ) { m_iWriteSock = iSock; m_iReadSock = iSock; } cs_sock_t & Csock::GetSock() { return( m_iReadSock ); } const cs_sock_t & Csock::GetSock() const { return( m_iReadSock ); } void Csock::ResetTimer() { m_iLastCheckTimeoutTime = 0; m_iTcount = 0; } void Csock::PauseRead() { m_bPauseRead = true; } bool Csock::IsReadPaused() const { return( m_bPauseRead ); } void Csock::UnPauseRead() { m_bPauseRead = false; ResetTimer(); PushBuff( "", 0, true ); } void Csock::SetTimeout( int iTimeout, u_int iTimeoutType ) { m_iTimeoutType = iTimeoutType; m_iTimeout = iTimeout; } void Csock::CallSockError( int iErrno, const CS_STRING & sDescription ) { if( !sDescription.empty() ) { SockError( iErrno, sDescription ); } else { char szBuff[0xff]; SockError( iErrno, CS_StrError( iErrno, szBuff, 0xff ) ); } } void Csock::SetTimeoutType( u_int iTimeoutType ) { m_iTimeoutType = iTimeoutType; } int Csock::GetTimeout() const { return m_iTimeout; } u_int Csock::GetTimeoutType() const { return( m_iTimeoutType ); } bool Csock::CheckTimeout( time_t iNow ) { if( m_iLastCheckTimeoutTime == 0 ) { m_iLastCheckTimeoutTime = iNow; return( false ); } if( IsReadPaused() ) return( false ); time_t iDiff = 0; if( iNow > m_iLastCheckTimeoutTime ) { iDiff = iNow - m_iLastCheckTimeoutTime; } else { // this is weird, but its possible if someone changes a clock and it went back in time, this essentially has to reset the last check // the worst case scenario is the timeout is about to it and the clock changes, it would then cause // this to pass over the last half the time m_iLastCheckTimeoutTime = iNow; } if( m_iTimeout > 0 ) { // this is basically to help stop a clock adjust ahead, stuff could reset immediatly on a clock jump // otherwise time_t iRealTimeout = m_iTimeout; if( iRealTimeout <= 1 ) m_iTcount++; else if( m_iTcount == 0 ) iRealTimeout /= 2; if( iDiff >= iRealTimeout ) { if( m_iTcount == 0 ) m_iLastCheckTimeoutTime = iNow - iRealTimeout; if( m_iTcount++ >= 1 ) { Timeout(); return( true ); } } } return( false ); } void Csock::PushBuff( const char *data, size_t len, bool bStartAtZero ) { if( !m_bEnableReadLine ) return; // If the ReadLine event is disabled, just ditch here size_t iStartPos = ( m_sbuffer.empty() || bStartAtZero ? 0 : m_sbuffer.length() - 1 ); if( data ) m_sbuffer.append( data, len ); while( !m_bPauseRead && GetCloseType() == CLT_DONT ) { CS_STRING::size_type iFind = m_sbuffer.find( "\n", iStartPos ); if( iFind != CS_STRING::npos ) { CS_STRING sBuff = m_sbuffer.substr( 0, iFind + 1 ); // read up to(including) the newline m_sbuffer.erase( 0, iFind + 1 ); // erase past the newline #ifdef HAVE_ICU if( m_cnvExt.isValid() ) { CS_STRING sUTF8; if( ( m_cnvTryUTF8 && icuConv( sBuff, sUTF8, m_cnvIntStrict.getAlias(), m_cnvIntStrict.getAlias() ) ) // maybe it's already UTF-8? || icuConv( sBuff, sUTF8, m_cnvExt.getAlias(), m_cnvInt.getAlias() ) ) { ReadLine( sUTF8 ); } else { CS_DEBUG( "Can't convert received line to UTF-8" ); } } else #endif /* HAVE_ICU */ { ReadLine( sBuff ); } iStartPos = 0; // reset this back to 0, since we need to look for the next newline here. } else { break; } } if( m_iMaxStoredBufferLength > 0 && m_sbuffer.length() > m_iMaxStoredBufferLength ) ReachedMaxBuffer(); // call the max read buffer event } #ifdef HAVE_ICU void Csock::IcuExtToUCallback( UConverterToUnicodeArgs* toArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode* err) { if( reason <= UCNV_IRREGULAR ) { *err = U_ZERO_ERROR; ucnv_cbToUWriteSub( toArgs, 0, err ); } } void Csock::IcuExtFromUCallback( UConverterFromUnicodeArgs* fromArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode * err) { if( reason <= UCNV_IRREGULAR ) { *err = U_ZERO_ERROR; ucnv_cbFromUWriteSub( fromArgs, 0, err ); } } static void icuExtToUCallback( const void* context, UConverterToUnicodeArgs* toArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode* err) { Csock* pcSock = (Csock*)context; pcSock->IcuExtToUCallback(toArgs, codeUnits, length, reason, err); } static void icuExtFromUCallback( const void* context, UConverterFromUnicodeArgs* fromArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode* err) { Csock* pcSock = (Csock*)context; pcSock->IcuExtFromUCallback(fromArgs, codeUnits, length, codePoint, reason, err); } void Csock::SetEncoding( const CS_STRING& sEncoding ) { m_sEncoding = sEncoding; if( sEncoding.empty() ) { m_cnvExt.adoptInstead( NULL ); } else { m_cnvTryUTF8 = sEncoding[0] == '*' || sEncoding[0] == '^'; m_cnvSendUTF8 = sEncoding[0] == '^'; const char* sEncodingName = sEncoding.c_str(); if( m_cnvTryUTF8 ) sEncodingName++; icu::ErrorCode e; m_cnvExt.adoptInstead( ucnv_open( sEncodingName, e ) ); if( e.isFailure() ) { CS_DEBUG( "Can't set encoding to " << sEncoding << ": " << e.errorName() ); } if( m_cnvExt.isValid() ) { ucnv_setToUCallBack( m_cnvExt.getAlias(), icuExtToUCallback, this, NULL, NULL, e ); ucnv_setFromUCallBack( m_cnvExt.getAlias(), icuExtFromUCallback, this, NULL, NULL, e ); } } } #endif /* HAVE_ICU */ CS_STRING & Csock::GetInternalReadBuffer() { return( m_sbuffer ); } CS_STRING & Csock::GetInternalWriteBuffer() { // in the event that some is grabbing this for some reason, we need to // clean it up so it's what they are expecting. ShrinkSendBuff(); return( m_sSend ); } void Csock::SetMaxBufferThreshold( u_int iThreshold ) { m_iMaxStoredBufferLength = iThreshold; } u_int Csock::GetMaxBufferThreshold() const { return( m_iMaxStoredBufferLength ); } int Csock::GetType() const { return( m_iConnType ); } void Csock::SetType( int iType ) { m_iConnType = iType; } const CS_STRING & Csock::GetSockName() const { return( m_sSockName ); } void Csock::SetSockName( const CS_STRING & sName ) { m_sSockName = sName; } const CS_STRING & Csock::GetHostName() const { return( m_shostname ); } void Csock::SetHostName( const CS_STRING & sHostname ) { m_shostname = sHostname; } uint64_t Csock::GetStartTime() const { return( m_iStartTime ); } void Csock::ResetStartTime() { m_iStartTime = 0; } uint64_t Csock::GetBytesRead() const { return( m_iBytesRead ); } void Csock::ResetBytesRead() { m_iBytesRead = 0; } uint64_t Csock::GetBytesWritten() const { return( m_iBytesWritten ); } void Csock::ResetBytesWritten() { m_iBytesWritten = 0; } double Csock::GetAvgRead( uint64_t iSample ) const { uint64_t iDifference = ( millitime() - m_iStartTime ); if( m_iBytesRead == 0 || iSample > iDifference ) return( ( double )m_iBytesRead ); return( ( ( double )m_iBytesRead / ( ( double )iDifference / ( double )iSample ) ) ); } double Csock::GetAvgWrite( uint64_t iSample ) const { uint64_t iDifference = ( millitime() - m_iStartTime ); if( m_iBytesWritten == 0 || iSample > iDifference ) return( ( double )m_iBytesWritten ); return( ( ( double )m_iBytesWritten / ( ( double )iDifference / ( double )iSample ) ) ); } uint16_t Csock::GetRemotePort() const { if( m_iRemotePort > 0 ) return( m_iRemotePort ); GetRemoteIP(); return( m_iRemotePort ); } uint16_t Csock::GetLocalPort() const { if( m_iLocalPort > 0 ) return( m_iLocalPort ); GetLocalIP(); return( m_iLocalPort ); } uint16_t Csock::GetPort() const { return( m_uPort ); } void Csock::SetPort( uint16_t iPort ) { m_uPort = iPort; } void Csock::Close( ECloseType eCloseType ) { m_eCloseType = eCloseType; } void Csock::NonBlockingIO() { set_non_blocking( m_iReadSock ); if( m_iReadSock != m_iWriteSock ) { set_non_blocking( m_iWriteSock ); } } bool Csock::GetSSL() const { return( m_bUseSSL ); } void Csock::SetSSL( bool b ) { m_bUseSSL = b; } #ifdef HAVE_LIBSSL void Csock::SetCipher( const CS_STRING & sCipher ) { m_sCipherType = sCipher; } const CS_STRING & Csock::GetCipher() const { return( m_sCipherType ); } void Csock::SetPemLocation( const CS_STRING & sPemFile ) { m_sPemFile = sPemFile; } const CS_STRING & Csock::GetPemLocation() const { return( m_sPemFile ); } void Csock::SetPemPass( const CS_STRING & sPassword ) { m_sPemPass = sPassword; } const CS_STRING & Csock::GetPemPass() const { return( m_sPemPass ); } void Csock::SetSSLMethod( int iMethod ) { m_iMethod = iMethod; } int Csock::GetSSLMethod() const { return( m_iMethod ); } void Csock::SetSSLObject( SSL *ssl, bool bDeleteExisting ) { if( bDeleteExisting ) FREE_SSL(); m_ssl = ssl; } void Csock::SetCTXObject( SSL_CTX *sslCtx, bool bDeleteExisting ) { if( bDeleteExisting ) FREE_CTX(); m_ssl_ctx = sslCtx; } SSL_SESSION * Csock::GetSSLSession() const { if( m_ssl ) return( SSL_get_session( m_ssl ) ); return( NULL ); } #endif /* HAVE_LIBSSL */ bool Csock::HasWriteBuffer() const { // the fact that this has data in it is good enough. Checking m_uSendBufferPos is a moot point // since once m_uSendBufferPos is at the same position as m_sSend it's cleared (in Write) return( !m_sSend.empty() ); } void Csock::ClearWriteBuffer() { m_sSend.clear(); m_uSendBufferPos = 0; } bool Csock::SslIsEstablished() const { return ( m_bsslEstablished ); } bool Csock::ConnectInetd( bool bIsSSL, const CS_STRING & sHostname ) { if( !sHostname.empty() ) m_sSockName = sHostname; // set our hostname if( m_sSockName.empty() ) { struct sockaddr_in client; socklen_t clen = sizeof( client ); if( getpeername( 0, ( struct sockaddr * )&client, &clen ) < 0 ) { m_sSockName = "0.0.0.0:0"; } else { stringstream s; s << inet_ntoa( client.sin_addr ) << ":" << ntohs( client.sin_port ); m_sSockName = s.str(); } } return( ConnectFD( 0, 1, m_sSockName, bIsSSL, INBOUND ) ); } bool Csock::ConnectFD( int iReadFD, int iWriteFD, const CS_STRING & sName, bool bIsSSL, ETConn eDirection ) { if( eDirection == LISTENER ) { CS_DEBUG( "You can not use a LISTENER type here!" ); return( false ); } // set our socket type SetType( eDirection ); // set the hostname m_sSockName = sName; // set the file descriptors SetRSock( iReadFD ); SetWSock( iWriteFD ); // set it up as non-blocking io NonBlockingIO(); if( bIsSSL ) { if( eDirection == INBOUND && !AcceptSSL() ) return( false ); else if( eDirection == OUTBOUND && !ConnectSSL() ) return( false ); } return( true ); } #ifdef HAVE_LIBSSL X509 *Csock::GetX509() const { if( m_ssl ) return( SSL_get_peer_certificate( m_ssl ) ); return( NULL ); } CS_STRING Csock::GetPeerPubKey() const { CS_STRING sKey; SSL_SESSION * pSession = GetSSLSession(); if( pSession && pSession->peer ) { EVP_PKEY * pKey = X509_get_pubkey( pSession->peer ); if( pKey ) { char *hxKey = NULL; switch( pKey->type ) { case EVP_PKEY_RSA: { hxKey = BN_bn2hex( pKey->pkey.rsa->n ); break; } case EVP_PKEY_DSA: { hxKey = BN_bn2hex( pKey->pkey.dsa->pub_key ); break; } default: { CS_DEBUG( "Not Prepared for Public Key Type [" << pKey->type << "]" ); break; } } if( hxKey ) { sKey = hxKey; OPENSSL_free( hxKey ); } EVP_PKEY_free( pKey ); } } return( sKey ); } long Csock::GetPeerFingerprint( CS_STRING & sFP ) const { sFP.clear(); if( !m_ssl ) return( 0 ); X509 * pCert = GetX509(); // Inspired by charybdis if( pCert ) { for( int i = 0; i < SHA_DIGEST_LENGTH; i++ ) { char buf[3]; snprintf( buf, 3, "%02x", pCert->sha1_hash[i] ); sFP += buf; } X509_free( pCert ); } return( SSL_get_verify_result( m_ssl ) ); } u_int Csock::GetRequireClientCertFlags() const { return( m_iRequireClientCertFlags ); } void Csock::SetRequiresClientCert( bool bRequiresCert ) { m_iRequireClientCertFlags = ( bRequiresCert ? SSL_VERIFY_FAIL_IF_NO_PEER_CERT|SSL_VERIFY_PEER : 0 ); } #endif /* HAVE_LIBSSL */ void Csock::SetParentSockName( const CS_STRING & sParentName ) { m_sParentName = sParentName; } const CS_STRING & Csock::GetParentSockName() const { return( m_sParentName ); } void Csock::SetRate( u_int iBytes, uint64_t iMilliseconds ) { m_iMaxBytes = iBytes; m_iMaxMilliSeconds = iMilliseconds; } u_int Csock::GetRateBytes() const { return( m_iMaxBytes ); } uint64_t Csock::GetRateTime() const { return( m_iMaxMilliSeconds ); } void Csock::EnableReadLine() { m_bEnableReadLine = true; } void Csock::DisableReadLine() { m_bEnableReadLine = false; m_sbuffer.clear(); } void Csock::ReachedMaxBuffer() { std::cerr << "Warning, Max Buffer length Warning Threshold has been hit" << endl; std::cerr << "If you don't care, then set SetMaxBufferThreshold to 0" << endl; } time_t Csock::GetTimeSinceLastDataTransaction( time_t iNow ) const { if( m_iLastCheckTimeoutTime == 0 ) return( 0 ); return( ( iNow > 0 ? iNow : time( NULL ) ) - m_iLastCheckTimeoutTime ); } time_t Csock::GetNextCheckTimeout( time_t iNow ) const { if( iNow == 0 ) iNow = time( NULL ); time_t iTimeout = m_iTimeout; time_t iDiff = iNow - m_iLastCheckTimeoutTime; /* CheckTimeout() wants to be called after half the timeout */ if( m_iTcount == 0 ) iTimeout /= 2; if( iDiff > iTimeout ) iTimeout = 0; else iTimeout -= iDiff; return( iNow + iTimeout ); } int Csock::GetPending() const { #ifdef HAVE_LIBSSL if( m_ssl ) { // in v23 method, the pending function is initialized to ssl_undefined_const_function // which throws SSL_UNDEFINED_CONST_FUNCTION on to the error stack // this is one of the more stupid things in openssl, it seems bizarre that even though SSL_pending // returns an int, they don't bother returning in error to notify us, so basically // we have to always clear errors here generated by SSL_pending, otherwise the stack could // have a lame error on it causing SSL_write to fail in certain instances. #if defined( OPENSSL_VERSION_NUMBER ) && OPENSSL_VERSION_NUMBER >= 0x00908000 ERR_set_mark(); int iBytes = SSL_pending( m_ssl ); ERR_pop_to_mark(); return( iBytes ); #else int iBytes = SSL_pending( m_ssl ); ERR_clear_error(); // to get safer handling, upgrade your openssl version! return( iBytes ); #endif /* OPENSSL_VERSION_NUMBER */ } else return( 0 ); #else return( 0 ); #endif /* HAVE_LIBSSL */ } bool Csock::CreateSocksFD() { if( m_iReadSock != CS_INVALID_SOCK ) return( true ); m_iReadSock = m_iWriteSock = CreateSocket(); if( m_iReadSock == CS_INVALID_SOCK ) return( false ); m_address.SinFamily(); m_address.SinPort( m_uPort ); return( true ); } int Csock::GetAddrInfo( const CS_STRING & sHostname, CSSockAddr & csSockAddr ) { #ifdef HAVE_IPV6 if( csSockAddr.GetAFRequire() != AF_INET && inet_pton( AF_INET6, sHostname.c_str(), csSockAddr.GetAddr6() ) > 0 ) { SetIPv6( true ); return( 0 ); } #endif /* HAVE_IPV6 */ if( inet_pton( AF_INET, sHostname.c_str(), csSockAddr.GetAddr() ) > 0 ) { #ifdef HAVE_IPV6 SetIPv6( false ); #endif /* HAVE_IPV6 */ return( 0 ); } #ifdef HAVE_C_ARES // need to compute this up here if( !m_pARESChannel ) { if( ares_init( &m_pARESChannel ) != ARES_SUCCESS ) { // TODO throw some debug? FreeAres(); return( ETIMEDOUT ); } m_pCurrAddr = &csSockAddr; // flag its starting int iFamily = AF_INET; #ifdef HAVE_IPV6 #if ARES_VERSION >= CREATE_ARES_VER( 1, 7, 5 ) // as of ares 1.7.5, it falls back to af_inet only when AF_UNSPEC is specified // so this can finally let the code flow through as anticipated :) iFamily = csSockAddr.GetAFRequire(); #else // as of ares 1.6.0 if it fails on af_inet6, it falls back to af_inet, // this code was here in the previous Csocket version, just adding the comment as a reminder iFamily = csSockAddr.GetAFRequire() == CSSockAddr::RAF_ANY ? AF_INET6 : csSockAddr.GetAFRequire(); #endif /* CREATE_ARES_VER( 1, 7, 5 ) */ #endif /* HAVE_IPV6 */ ares_gethostbyname( m_pARESChannel, sHostname.c_str(), iFamily, AresHostCallback, this ); } if( !m_pCurrAddr ) { // this means its finished FreeAres(); #ifdef HAVE_IPV6 if( GetType() != LISTENER && m_iARESStatus == ARES_SUCCESS && csSockAddr.GetAFRequire() == CSSockAddr::RAF_ANY && GetIPv6() ) { // this means that ares_host returned an ipv6 host, so try a connect right away if( CreateSocksFD() && Connect() ) { SetSkipConnect( true ); } #ifndef _WIN32 else if( GetSockError() == ENETUNREACH ) #else else if( GetSockError() == WSAENETUNREACH || GetSockError() == WSAEHOSTUNREACH ) #endif /* !_WIN32 */ { // the Connect() failed, so throw a retry back in with ipv4, and let it process normally CS_DEBUG( "Failed ipv6 connection with PF_UNSPEC, falling back to ipv4" ); m_iARESStatus = -1; CloseSocksFD(); SetAFRequire( CSSockAddr::RAF_INET ); return( GetAddrInfo( sHostname, csSockAddr ) ); } } #if ARES_VERSION < CREATE_ARES_VER( 1, 5, 3 ) if( m_iARESStatus != ARES_SUCCESS && csSockAddr.GetAFRequire() == CSSockAddr::RAF_ANY ) { // this is a workaround for ares < 1.5.3 where the builtin retry on failed AF_INET6 isn't there yet CS_DEBUG( "Retry for older version of c-ares with AF_INET only" ); // this means we tried previously with AF_INET6 and failed, so force AF_INET and retry SetAFRequire( CSSockAddr::RAF_INET ); return( GetAddrInfo( sHostname, csSockAddr ) ); } #endif /* ARES_VERSION < CREATE_ARES_VER( 1, 5, 3 ) */ #endif /* HAVE_IPV6 */ return( m_iARESStatus == ARES_SUCCESS ? 0 : ETIMEDOUT ); } return( EAGAIN ); #else /* HAVE_C_ARES */ return( ::GetAddrInfo( sHostname, this, csSockAddr ) ); #endif /* HAVE_C_ARES */ } int Csock::DNSLookup( EDNSLType eDNSLType ) { if( eDNSLType == DNS_VHOST ) { if( m_sBindHost.empty() ) { if( m_eConState != CST_OK ) m_eConState = CST_DESTDNS; // skip binding, there is no vhost return( 0 ); } m_bindhost.SinFamily(); m_bindhost.SinPort( 0 ); } int iRet = ETIMEDOUT; if( eDNSLType == DNS_VHOST ) { iRet = GetAddrInfo( m_sBindHost, m_bindhost ); #ifdef HAVE_IPV6 if( m_bindhost.GetIPv6() ) { SetAFRequire( CSSockAddr::RAF_INET6 ); } else { SetAFRequire( CSSockAddr::RAF_INET ); } #endif /* HAVE_IPV6 */ } else { iRet = GetAddrInfo( m_shostname, m_address ); } if( iRet == 0 ) { if( !CreateSocksFD() ) { m_iDNSTryCount = 0; return( ETIMEDOUT ); } if( m_eConState != CST_OK ) m_eConState = ( ( eDNSLType == DNS_VHOST ) ? CST_BINDVHOST : CST_CONNECT ); m_iDNSTryCount = 0; return( 0 ); } else if( iRet == EAGAIN ) { #ifndef HAVE_C_ARES m_iDNSTryCount++; if( m_iDNSTryCount > 20 ) { m_iDNSTryCount = 0; return( ETIMEDOUT ); } #endif /* HAVE_C_ARES */ return( EAGAIN ); } m_iDNSTryCount = 0; return( ETIMEDOUT ); } bool Csock::SetupVHost() { if( m_sBindHost.empty() ) { if( m_eConState != CST_OK ) m_eConState = CST_DESTDNS; return( true ); } int iRet = -1; if( !GetIPv6() ) iRet = bind( m_iReadSock, ( struct sockaddr * ) m_bindhost.GetSockAddr(), m_bindhost.GetSockAddrLen() ); #ifdef HAVE_IPV6 else iRet = bind( m_iReadSock, ( struct sockaddr * ) m_bindhost.GetSockAddr6(), m_bindhost.GetSockAddrLen6() ); #endif /* HAVE_IPV6 */ if( iRet == 0 ) { if( m_eConState != CST_OK ) m_eConState = CST_DESTDNS; return( true ); } m_iCurBindCount++; if( m_iCurBindCount > 3 ) { CS_DEBUG( "Failure to bind to " << m_sBindHost ); return( false ); } return( true ); } #ifdef HAVE_LIBSSL void Csock::FREE_SSL() { if( m_ssl ) { SSL_shutdown( m_ssl ); SSL_free( m_ssl ); } m_ssl = NULL; } void Csock::FREE_CTX() { if( m_ssl_ctx ) SSL_CTX_free( m_ssl_ctx ); m_ssl_ctx = NULL; } #endif /* HAVE_LIBSSL */ cs_sock_t Csock::CreateSocket( bool bListen ) { #ifdef HAVE_IPV6 cs_sock_t iRet = socket( ( GetIPv6() ? PF_INET6 : PF_INET ), SOCK_STREAM, IPPROTO_TCP ); #else cs_sock_t iRet = socket( PF_INET, SOCK_STREAM, IPPROTO_TCP ); #endif /* HAVE_IPV6 */ if( iRet != CS_INVALID_SOCK ) { set_close_on_exec( iRet ); if( bListen ) { const int on = 1; if( setsockopt( iRet, SOL_SOCKET, SO_REUSEADDR, ( char * ) &on, sizeof( on ) ) != 0 ) PERROR( "SO_REUSEADDR" ); } } else { PERROR( "socket" ); } return( iRet ); } void Csock::Init( const CS_STRING & sHostname, uint16_t uPort, int iTimeout ) { #ifdef HAVE_LIBSSL m_ssl = NULL; m_ssl_ctx = NULL; m_iRequireClientCertFlags = 0; m_uDisableProtocols = 0; m_bNoSSLCompression = false; m_bSSLCipherServerPreference = false; #endif /* HAVE_LIBSSL */ m_iTcount = 0; m_iReadSock = CS_INVALID_SOCK; m_iWriteSock = CS_INVALID_SOCK; m_iTimeout = iTimeout; m_iMaxConns = SOMAXCONN; m_bUseSSL = false; m_bIsConnected = false; m_uPort = uPort; m_shostname = sHostname; m_sbuffer.clear(); m_eCloseType = CLT_DONT; /* * While I appreciate the line ... * "It's 2014, no idea how this made it as a default for the past 16 years..." * TLS 1.2 was introduced in 2008. That being said, it's still not widely supported so I'm not * ready to make it the default. SSL 3.0 is still the most widely supported standard and that's * what a sane default is supposed to be. Additionally, OpenSSL is smart with SSLv23_client_method * as it will check for TLS in addition to SSL (per the manual) which is the reason for its choice. * * https://www.openssl.org/docs/ssl/SSL_CTX_new.html */ m_iMethod = SSL23; m_sCipherType = "ALL"; m_iMaxBytes = 0; m_iMaxMilliSeconds = 0; m_iLastSendTime = 0; m_iLastSend = 0; m_uSendBufferPos = 0; m_bsslEstablished = false; m_bEnableReadLine = false; m_iMaxStoredBufferLength = 1024; m_iConnType = INBOUND; m_iRemotePort = 0; m_iLocalPort = 0; m_iBytesRead = 0; m_iBytesWritten = 0; m_iStartTime = millitime(); m_bPauseRead = false; m_iTimeoutType = TMO_ALL; m_eConState = CST_OK; // default should be ok m_iDNSTryCount = 0; m_iCurBindCount = 0; m_bIsIPv6 = false; m_bSkipConnect = false; m_iLastCheckTimeoutTime = 0; #ifdef HAVE_C_ARES m_pARESChannel = NULL; m_pCurrAddr = NULL; m_iARESStatus = -1; #endif /* HAVE_C_ARES */ #ifdef HAVE_ICU m_cnvTryUTF8 = false; m_cnvSendUTF8 = false; icu::ErrorCode e; m_cnvInt.adoptInstead( ucnv_open( "UTF-8", e ) ); m_cnvIntStrict.adoptInstead( ucnv_open( "UTF-8", e ) ); ucnv_setToUCallBack( m_cnvIntStrict.getAlias(), UCNV_TO_U_CALLBACK_STOP, NULL, NULL, NULL, e ); ucnv_setFromUCallBack( m_cnvIntStrict.getAlias(), UCNV_FROM_U_CALLBACK_STOP, NULL, NULL, NULL, e ); #endif /* HAVE_ICU */ } ////////////////////////// CSocketManager ////////////////////////// CSocketManager::CSocketManager() : std::vector(), CSockCommon() { m_errno = SUCCESS; m_iCallTimeouts = millitime(); m_iSelectWait = 100000; // Default of 100 milliseconds m_iBytesRead = 0; m_iBytesWritten = 0; } CSocketManager::~CSocketManager() { clear(); } void CSocketManager::clear() { while( !this->empty() ) DelSock( 0 ); } void CSocketManager::Cleanup() { CleanupCrons(); CleanupFDMonitors(); clear(); } Csock * CSocketManager::GetSockObj( const CS_STRING & sHostname, uint16_t uPort, int iTimeout ) { return( new Csock( sHostname, uPort, iTimeout ) ); } void CSocketManager::Connect( const CSConnection & cCon, Csock * pcSock ) { // create the new object if( !pcSock ) pcSock = GetSockObj( cCon.GetHostname(), cCon.GetPort(), cCon.GetTimeout() ); else { pcSock->SetHostName( cCon.GetHostname() ); pcSock->SetPort( cCon.GetPort() ); pcSock->SetTimeout( cCon.GetTimeout() ); } if( cCon.GetAFRequire() != CSSockAddr::RAF_ANY ) pcSock->SetAFRequire( cCon.GetAFRequire() ); // bind the vhost pcSock->SetBindHost( cCon.GetBindHost() ); #ifdef HAVE_LIBSSL pcSock->SetSSL( cCon.GetIsSSL() ); if( cCon.GetIsSSL() ) { if( !cCon.GetPemLocation().empty() ) { pcSock->SetPemLocation( cCon.GetPemLocation() ); pcSock->SetPemPass( cCon.GetPemPass() ); } if( !cCon.GetCipher().empty() ) pcSock->SetCipher( cCon.GetCipher() ); } #endif /* HAVE_LIBSSL */ pcSock->SetType( Csock::OUTBOUND ); pcSock->SetConState( Csock::CST_START ); AddSock( pcSock, cCon.GetSockName() ); } bool CSocketManager::Listen( const CSListener & cListen, Csock * pcSock, uint16_t * piRandPort ) { if( !pcSock ) pcSock = GetSockObj( "", 0 ); if( cListen.GetAFRequire() != CSSockAddr::RAF_ANY ) { pcSock->SetAFRequire( cListen.GetAFRequire() ); #ifdef HAVE_IPV6 if( cListen.GetAFRequire() == CSSockAddr::RAF_INET6 ) pcSock->SetIPv6( true ); #endif /* HAVE_IPV6 */ } #ifdef HAVE_IPV6 else { pcSock->SetIPv6( true ); } #endif /* HAVE_IPV6 */ #ifdef HAVE_LIBSSL pcSock->SetSSL( cListen.GetIsSSL() ); if( cListen.GetIsSSL() && !cListen.GetPemLocation().empty() ) { pcSock->SetPemLocation( cListen.GetPemLocation() ); pcSock->SetPemPass( cListen.GetPemPass() ); pcSock->SetCipher( cListen.GetCipher() ); pcSock->SetRequireClientCertFlags( cListen.GetRequireClientCertFlags() ); } #endif /* HAVE_LIBSSL */ if( piRandPort ) *piRandPort = 0; bool bDetach = ( cListen.GetDetach() && !piRandPort ); // can't detach if we're waiting for the port to come up right now if( pcSock->Listen( cListen.GetPort(), cListen.GetMaxConns(), cListen.GetBindHost(), cListen.GetTimeout(), bDetach ) ) { AddSock( pcSock, cListen.GetSockName() ); if( piRandPort && cListen.GetPort() == 0 ) { cs_sock_t iSock = pcSock->GetSock(); if( iSock == CS_INVALID_SOCK ) { CS_DEBUG( "Failed to attain a valid file descriptor" ); pcSock->Close(); return( false ); } struct sockaddr_in mLocalAddr; socklen_t mLocalLen = sizeof( mLocalAddr ); getsockname( iSock, ( struct sockaddr * ) &mLocalAddr, &mLocalLen ); *piRandPort = ntohs( mLocalAddr.sin_port ); } return( true ); } CS_Delete( pcSock ); return( false ); } bool CSocketManager::HasFDs() const { return( !this->empty() || !m_vcMonitorFD.empty() ); } void CSocketManager::Loop() { for( size_t a = 0; a < this->size(); ++a ) { Csock * pcSock = this->at( a ); if( pcSock->GetType() != Csock::OUTBOUND || pcSock->GetConState() == Csock::CST_OK ) continue; if( pcSock->GetConState() == Csock::CST_DNS ) { if( pcSock->DNSLookup( Csock::DNS_VHOST ) == ETIMEDOUT ) { pcSock->CallSockError( EDOM, "DNS Lookup for bind host failed" ); DelSock( a-- ); continue; } } if( pcSock->GetConState() == Csock::CST_BINDVHOST ) { if( !pcSock->SetupVHost() ) { pcSock->CallSockError( GetSockError(), "Failed to setup bind host" ); DelSock( a-- ); continue; } } if( pcSock->GetConState() == Csock::CST_DESTDNS ) { if( pcSock->DNSLookup( Csock::DNS_DEST ) == ETIMEDOUT ) { pcSock->CallSockError( EADDRNOTAVAIL, "Unable to resolve requested address" ); DelSock( a-- ); continue; } } if( pcSock->GetConState() == Csock::CST_CONNECT ) { if( !pcSock->Connect() ) { if( GetSockError() == ECONNREFUSED ) pcSock->ConnectionRefused(); else pcSock->CallSockError( GetSockError() ); DelSock( a-- ); continue; } } #ifdef HAVE_LIBSSL if( pcSock->GetConState() == Csock::CST_CONNECTSSL ) { if( pcSock->GetSSL() ) { if( !pcSock->ConnectSSL() ) { if( GetSockError() == ECONNREFUSED ) pcSock->ConnectionRefused(); else pcSock->CallSockError( GetSockError() == 0 ? ECONNABORTED : GetSockError() ); DelSock( a-- ); continue; } } } #endif /* HAVE_LIBSSL */ } std::map mpeSocks; Select( mpeSocks ); switch( m_errno ) { case SUCCESS: { for( std::map::iterator itSock = mpeSocks.begin(); itSock != mpeSocks.end(); itSock++ ) { Csock * pcSock = itSock->first; EMessages iErrno = itSock->second; if( iErrno == SUCCESS ) { // read in data // if this is a int iLen = 0; if( pcSock->GetSSL() ) iLen = pcSock->GetPending(); if( iLen <= 0 ) iLen = CS_BLOCKSIZE; CSCharBuffer cBuff( iLen ); cs_ssize_t bytes = pcSock->Read( cBuff(), iLen ); if( bytes != Csock::READ_TIMEDOUT && bytes != Csock::READ_CONNREFUSED && bytes != Csock::READ_ERR && !pcSock->IsConnected() ) { pcSock->SetIsConnected( true ); pcSock->Connected(); } switch( bytes ) { case Csock::READ_EOF: { DelSockByAddr( pcSock ); break; } case Csock::READ_ERR: { bool bHandled = false; #ifdef HAVE_LIBSSL if( pcSock->GetSSL() ) { unsigned long iSSLError = ERR_peek_error(); if( iSSLError ) { char szError[512]; memset( ( char * ) szError, '\0', 512 ); ERR_error_string_n( iSSLError, szError, 511 ); SSLErrors( __FILE__, __LINE__ ); pcSock->CallSockError( GetSockError(), szError ); bHandled = true; } } #endif if( !bHandled ) pcSock->CallSockError( GetSockError() ); DelSockByAddr( pcSock ); break; } case Csock::READ_EAGAIN: break; case Csock::READ_CONNREFUSED: pcSock->ConnectionRefused(); DelSockByAddr( pcSock ); break; case Csock::READ_TIMEDOUT: pcSock->Timeout(); DelSockByAddr( pcSock ); break; default: { if( Csock::TMO_READ & pcSock->GetTimeoutType() ) pcSock->ResetTimer(); // reset the timeout timer pcSock->ReadData( cBuff(), bytes ); // Call ReadData() before PushBuff() so that it is called before the ReadLine() event - LD 07/18/05 pcSock->PushBuff( cBuff(), bytes ); break; } } } else if( iErrno == SELECT_ERROR ) { // a socket came back with an error // usually means it was closed DelSockByAddr( pcSock ); } } break; } case SELECT_TIMEOUT: case SELECT_TRYAGAIN: case SELECT_ERROR: default : break; } uint64_t iMilliNow = millitime(); if( ( iMilliNow - m_iCallTimeouts ) >= 1000 ) { m_iCallTimeouts = iMilliNow; // call timeout on all the sockets that recieved no data for( size_t i = 0; i < this->size(); ++i ) { if( this->at( i )->GetConState() != Csock::CST_OK ) continue; if( this->at( i )->CheckTimeout( ( time_t )( iMilliNow / 1000 ) ) ) DelSock( i-- ); } } // run any Manager Crons we may have Cron(); } void CSocketManager::DynamicSelectLoop( uint64_t iLowerBounds, uint64_t iUpperBounds, time_t iMaxResolution ) { SetSelectTimeout( iLowerBounds ); if( m_errno == SELECT_TIMEOUT ) { // only do this if the previous call to select was a timeout timeval tMaxResolution; timeval tNow; tMaxResolution.tv_sec = iMaxResolution; tMaxResolution.tv_usec = 0; gettimeofday( &tNow, NULL ); timeval tSelectTimeout = GetDynamicSleepTime( tNow, tMaxResolution ); uint64_t iSelectTimeout = tSelectTimeout.tv_sec * 1000000 + tSelectTimeout.tv_usec; iSelectTimeout = std::max( iLowerBounds, iSelectTimeout ); iSelectTimeout = std::min( iSelectTimeout, iUpperBounds ); if( iLowerBounds != iSelectTimeout ) SetSelectTimeout( iSelectTimeout ); } Loop(); } void CSocketManager::AddSock( Csock * pcSock, const CS_STRING & sSockName ) { pcSock->SetSockName( sSockName ); this->push_back( pcSock ); } Csock * CSocketManager::FindSockByRemotePort( uint16_t iPort ) { for( size_t i = 0; i < this->size(); ++i ) { if( this->at( i )->GetRemotePort() == iPort ) return( this->at( i ) ); } return( NULL ); } Csock * CSocketManager::FindSockByLocalPort( uint16_t iPort ) { for( size_t i = 0; i < this->size(); ++i ) { if( this->at( i )->GetLocalPort() == iPort ) return( this->at( i ) ); } return( NULL ); } Csock * CSocketManager::FindSockByName( const CS_STRING & sName ) { std::vector::iterator it; std::vector::iterator it_end = this->end(); for( it = this->begin(); it != it_end; it++ ) { if( ( *it )->GetSockName() == sName ) return( *it ); } return( NULL ); } Csock * CSocketManager::FindSockByFD( cs_sock_t iFD ) { for( size_t i = 0; i < this->size(); ++i ) { if( this->at( i )->GetRSock() == iFD || this->at( i )->GetWSock() == iFD ) return( this->at( i ) ); } return( NULL ); } std::vector CSocketManager::FindSocksByName( const CS_STRING & sName ) { std::vector vpSocks; for( size_t i = 0; i < this->size(); ++i ) { if( this->at( i )->GetSockName() == sName ) vpSocks.push_back( this->at( i ) ); } return( vpSocks ); } std::vector CSocketManager::FindSocksByRemoteHost( const CS_STRING & sHostname ) { std::vector vpSocks; for( size_t i = 0; i < this->size(); ++i ) { if( this->at( i )->GetHostName() == sHostname ) vpSocks.push_back( this->at( i ) ); } return( vpSocks ); } void CSocketManager::DelSockByAddr( Csock * pcSock ) { for( size_t a = 0; a < this->size(); ++a ) { if( pcSock == this->at( a ) ) { DelSock( a ); return; } } } void CSocketManager::DelSock( size_t iPos ) { if( iPos >= this->size() ) { CS_DEBUG( "Invalid Sock Position Requested! [" << iPos << "]" ); return; } Csock * pSock = this->at( iPos ); if( pSock->GetCloseType() != Csock::CLT_DEREFERENCE ) { if( pSock->IsConnected() ) { pSock->SetIsConnected( false ); pSock->Disconnected(); // only call disconnected event if connected event was called (IE IsConnected was set) } m_iBytesRead += pSock->GetBytesRead(); m_iBytesWritten += pSock->GetBytesWritten(); } CS_Delete( pSock ); this->erase( this->begin() + iPos ); } bool CSocketManager::SwapSockByIdx( Csock * pNewSock, size_t iOrginalSockIdx ) { if( iOrginalSockIdx >= this->size() ) { CS_DEBUG( "Invalid Sock Position Requested! [" << iOrginalSockIdx << "]" ); return( false ); } Csock * pSock = this->at( iOrginalSockIdx ); pNewSock->Copy( *pSock ); pSock->Dereference(); this->at( iOrginalSockIdx ) = ( Csock * )pNewSock; this->push_back( ( Csock * )pSock ); // this allows it to get cleaned up return( true ); } bool CSocketManager::SwapSockByAddr( Csock * pNewSock, Csock * pOrigSock ) { for( size_t a = 0; a < this->size(); ++a ) { if( this->at( a ) == pOrigSock ) return( SwapSockByIdx( pNewSock, a ) ); } return( false ); } uint64_t CSocketManager::GetBytesRead() const { // Start with the total bytes read from destroyed sockets uint64_t iRet = m_iBytesRead; // Add in the outstanding bytes read from active sockets for( size_t a = 0; a < this->size(); ++a ) iRet += this->at( a )->GetBytesRead(); return( iRet ); } uint64_t CSocketManager::GetBytesWritten() const { // Start with the total bytes written to destroyed sockets uint64_t iRet = m_iBytesWritten; // Add in the outstanding bytes written to active sockets for( size_t a = 0; a < this->size(); ++a ) iRet += this->at( a )->GetBytesWritten(); return( iRet ); } void CSocketManager::FDSetCheck( cs_sock_t iFd, std::map< cs_sock_t, short > & miiReadyFds, ECheckType eType ) { std::map< cs_sock_t, short >::iterator it = miiReadyFds.find( iFd ); if( it != miiReadyFds.end() ) it->second = ( short )( it->second | eType ); // TODO need to figure out why |= throws 'short int' from 'int' may alter its value else miiReadyFds[iFd] = eType; } bool CSocketManager::FDHasCheck( cs_sock_t iFd, std::map< cs_sock_t, short > & miiReadyFds, ECheckType eType ) { std::map< cs_sock_t, short >::iterator it = miiReadyFds.find( iFd ); if( it != miiReadyFds.end() ) return( ( it->second & eType ) != 0 ); return( false ); } int CSocketManager::Select( std::map< cs_sock_t, short > & miiReadyFds, struct timeval *tvtimeout ) { AssignFDs( miiReadyFds, tvtimeout ); #ifdef CSOCK_USE_POLL if( miiReadyFds.empty() ) return( select( 0, NULL, NULL, NULL, tvtimeout ) ); struct pollfd * pFDs = ( struct pollfd * )malloc( sizeof( struct pollfd ) * miiReadyFds.size() ); size_t uCurrPoll = 0; for( std::map< cs_sock_t, short >::iterator it = miiReadyFds.begin(); it != miiReadyFds.end(); ++it, ++uCurrPoll ) { short iEvents = 0; if( it->second & ECT_Read ) iEvents |= POLLIN; if( it->second & ECT_Write ) iEvents |= POLLOUT; pFDs[uCurrPoll].fd = it->first; pFDs[uCurrPoll].events = iEvents; pFDs[uCurrPoll].revents = 0; } int iTimeout = ( int )( tvtimeout->tv_usec / 1000 ); iTimeout += ( int )( tvtimeout->tv_sec * 1000 ); size_t uMaxFD = miiReadyFds.size(); int iRet = poll( pFDs, uMaxFD, iTimeout ); miiReadyFds.clear(); for( uCurrPoll = 0; uCurrPoll < uMaxFD; ++uCurrPoll ) { short iEvents = 0; if( pFDs[uCurrPoll].revents & ( POLLIN|POLLERR|POLLHUP|POLLNVAL ) ) iEvents |= ECT_Read; if( pFDs[uCurrPoll].revents & POLLOUT ) iEvents |= ECT_Write; std::map< cs_sock_t, short >::iterator it = miiReadyFds.find( pFDs[uCurrPoll].fd ); if( it != miiReadyFds.end() ) it->second = ( short )( it->second | iEvents ); // TODO need to figure out why |= throws 'short int' from 'int' may alter its value else miiReadyFds[pFDs[uCurrPoll].fd] = iEvents; } free( pFDs ); #else fd_set rfds, wfds; TFD_ZERO( &rfds ); TFD_ZERO( &wfds ); bool bHasWrite = false; int iHighestFD = 0; for( std::map< cs_sock_t, short >::iterator it = miiReadyFds.begin(); it != miiReadyFds.end(); ++it ) { #ifndef _WIN32 // the first argument to select() is not used on Win32. iHighestFD = std::max( it->first, iHighestFD ); #endif /* _WIN32 */ if( it->second & ECT_Read ) { TFD_SET( it->first, &rfds ); } if( it->second & ECT_Write ) { bHasWrite = true; TFD_SET( it->first, &wfds ); } } int iRet = select( iHighestFD + 1, &rfds, ( bHasWrite ? &wfds : NULL ), NULL, tvtimeout ); if( iRet <= 0 ) { miiReadyFds.clear(); } else { for( std::map< cs_sock_t, short >::iterator it = miiReadyFds.begin(); it != miiReadyFds.end(); ++it ) { if( ( it->second & ECT_Read ) && !TFD_ISSET( it->first, &rfds ) ) it->second &= ~ECT_Read; if( ( it->second & ECT_Write ) && !TFD_ISSET( it->first, &wfds ) ) it->second &= ~ECT_Write; } } #endif /* CSOCK_USE_POLL */ return( iRet ); } void CSocketManager::Select( std::map & mpeSocks ) { mpeSocks.clear(); struct timeval tv; std::map< cs_sock_t, short > miiReadyFds; tv.tv_sec = ( time_t )( m_iSelectWait / 1000000 ); tv.tv_usec = ( time_t )( m_iSelectWait % 1000000 ); u_int iQuickReset = 1000; if( m_iSelectWait == 0 ) iQuickReset = 0; bool bHasAvailSocks = false; uint64_t iNOW = 0; for( size_t i = 0; i < this->size(); ++i ) { Csock * pcSock = this->at( i ); Csock::ECloseType eCloseType = pcSock->GetCloseType(); if( eCloseType == Csock::CLT_NOW || eCloseType == Csock::CLT_DEREFERENCE || ( eCloseType == Csock::CLT_AFTERWRITE && !pcSock->HasWriteBuffer() ) ) { DelSock( i-- ); // close any socks that have requested it continue; } else { pcSock->Cron(); // call the Cron handler here } cs_sock_t & iRSock = pcSock->GetRSock(); cs_sock_t & iWSock = pcSock->GetWSock(); #if !defined(CSOCK_USE_POLL) && !defined(_WIN32) if( iRSock > ( cs_sock_t )FD_SETSIZE || iWSock > ( cs_sock_t )FD_SETSIZE ) { CS_DEBUG( "FD is larger than select() can handle" ); DelSock( i-- ); continue; } #endif /* CSOCK_USE_POLL */ #ifdef HAVE_C_ARES ares_channel pChannel = pcSock->GetAresChannel(); if( pChannel ) { ares_socket_t aiAresSocks[1]; aiAresSocks[0] = ARES_SOCKET_BAD; int iSockMask = ares_getsock( pChannel, aiAresSocks, 1 ); if( ARES_GETSOCK_READABLE( iSockMask, 0 ) ) FDSetCheck( aiAresSocks[0], miiReadyFds, ECT_Read ); if( ARES_GETSOCK_WRITABLE( iSockMask, 0 ) ) FDSetCheck( aiAresSocks[0], miiReadyFds, ECT_Write ); // let ares drop the timeout if it has something timing out sooner then whats in tv currently ares_timeout( pChannel, &tv, &tv ); } #endif /* HAVE_C_ARES */ if( pcSock->GetType() == Csock::LISTENER && pcSock->GetConState() == Csock::CST_BINDVHOST ) { if( !pcSock->Listen( pcSock->GetPort(), pcSock->GetMaxConns(), pcSock->GetBindHost(), pcSock->GetTimeout(), true ) ) { pcSock->Close(); DelSock( i-- ); } continue; } pcSock->AssignFDs( miiReadyFds, &tv ); if( pcSock->GetConState() != Csock::CST_OK ) continue; bHasAvailSocks = true; bool bIsReadPaused = pcSock->IsReadPaused(); if( bIsReadPaused ) { pcSock->ReadPaused(); bIsReadPaused = pcSock->IsReadPaused(); // re-read it again, incase it changed status) } if( iRSock == CS_INVALID_SOCK || iWSock == CS_INVALID_SOCK ) { SelectSock( mpeSocks, SUCCESS, pcSock ); continue; // invalid sock fd } if( pcSock->GetType() != Csock::LISTENER ) { bool bHasWriteBuffer = pcSock->HasWriteBuffer(); if( !bIsReadPaused ) FDSetCheck( iRSock, miiReadyFds, ECT_Read ); if( pcSock->AllowWrite( iNOW ) && ( !pcSock->IsConnected() || bHasWriteBuffer ) ) { if( !pcSock->IsConnected() ) { // set the write bit if not connected yet FDSetCheck( iWSock, miiReadyFds, ECT_Write ); } else if( bHasWriteBuffer && !pcSock->GetSSL() ) { // always set the write bit if there is data to send when NOT ssl FDSetCheck( iWSock, miiReadyFds, ECT_Write ); } else if( bHasWriteBuffer && pcSock->GetSSL() && pcSock->SslIsEstablished() ) { // ONLY set the write bit if there is data to send and the SSL handshake is finished FDSetCheck( iWSock, miiReadyFds, ECT_Write ); } } if( pcSock->GetSSL() && !pcSock->SslIsEstablished() && bHasWriteBuffer ) { // if this is an unestabled SSL session with data to send ... try sending it // do this here, cause otherwise ssl will cause a small // cpu spike waiting for the handshake to finish // resend this data if( !pcSock->Write( "" ) ) { pcSock->Close(); } // warning ... setting write bit in here causes massive CPU spinning on invalid SSL servers // http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631590 // however, we can set the select WAY down and it will retry quickly, but keep it from spinning at 100% tv.tv_usec = iQuickReset; tv.tv_sec = 0; } } else { FDSetCheck( iRSock, miiReadyFds, ECT_Read ); } if( pcSock->GetSSL() && pcSock->GetType() != Csock::LISTENER ) { if( pcSock->GetPending() > 0 && !pcSock->IsReadPaused() ) SelectSock( mpeSocks, SUCCESS, pcSock ); } } // old fashion select, go fer it int iSel; if( !mpeSocks.empty() ) // .1 ms pause to see if anything else is ready (IE if there is SSL data pending, don't wait too long) { tv.tv_usec = iQuickReset; tv.tv_sec = 0; } else if( !this->empty() && !bHasAvailSocks ) { tv.tv_usec = iQuickReset; tv.tv_sec = 0; } iSel = Select( miiReadyFds, &tv ); if( iSel == 0 ) { if( mpeSocks.empty() ) m_errno = SELECT_TIMEOUT; else m_errno = SUCCESS; #ifdef HAVE_C_ARES // run through ares channels and process timeouts for( size_t uSock = 0; uSock < this->size(); ++uSock ) { Csock * pcSock = this->at( uSock ); ares_channel pChannel = pcSock->GetAresChannel(); if( pChannel ) ares_process_fd( pChannel, ARES_SOCKET_BAD, ARES_SOCKET_BAD ); } #endif /* HAVE_C_ARES */ return; } if( iSel == -1 && errno == EINTR ) { if( mpeSocks.empty() ) m_errno = SELECT_TRYAGAIN; else m_errno = SUCCESS; return; } else if( iSel == -1 ) { if( mpeSocks.empty() ) m_errno = SELECT_ERROR; else m_errno = SUCCESS; return; } else { m_errno = SUCCESS; } CheckFDs( miiReadyFds ); // find out wich one is ready for( size_t i = 0; i < this->size(); ++i ) { Csock * pcSock = this->at( i ); #ifdef HAVE_C_ARES ares_channel pChannel = pcSock->GetAresChannel(); if( pChannel ) { ares_socket_t aiAresSocks[1]; aiAresSocks[0] = ARES_SOCKET_BAD; ares_getsock( pChannel, aiAresSocks, 1 ); if( FDHasCheck( aiAresSocks[0], miiReadyFds, ECT_Read ) || FDHasCheck( aiAresSocks[0], miiReadyFds, ECT_Write ) ) ares_process_fd( pChannel, aiAresSocks[0], aiAresSocks[0] ); } #endif /* HAVE_C_ARES */ pcSock->CheckFDs( miiReadyFds ); if( pcSock->GetConState() != Csock::CST_OK ) continue; cs_sock_t & iRSock = pcSock->GetRSock(); cs_sock_t & iWSock = pcSock->GetWSock(); EMessages iErrno = SUCCESS; if( iRSock == CS_INVALID_SOCK || iWSock == CS_INVALID_SOCK ) { // trigger a success so it goes through the normal motions // and an error is produced SelectSock( mpeSocks, SUCCESS, pcSock ); continue; // watch for invalid socks } if( FDHasCheck( iWSock, miiReadyFds, ECT_Write ) ) { if( iSel > 0 ) { iErrno = SUCCESS; if( pcSock->HasWriteBuffer() && pcSock->IsConnected() ) { // write whats in the socks send buffer if( !pcSock->Write( "" ) ) { // write failed, sock died :( iErrno = SELECT_ERROR; } } } else { iErrno = SELECT_ERROR; } SelectSock( mpeSocks, iErrno, pcSock ); } else if( FDHasCheck( iRSock, miiReadyFds, ECT_Read ) ) { if( iSel > 0 ) iErrno = SUCCESS; else iErrno = SELECT_ERROR; if( pcSock->GetType() != Csock::LISTENER ) { SelectSock( mpeSocks, iErrno, pcSock ); } else // someone is coming in! { CS_STRING sHost; uint16_t port; cs_sock_t inSock = pcSock->Accept( sHost, port ); if( inSock != CS_INVALID_SOCK ) { if( Csock::TMO_ACCEPT & pcSock->GetTimeoutType() ) pcSock->ResetTimer(); // let them now it got dinged // if we have a new sock, then add it Csock * NewpcSock = ( Csock * )pcSock->GetSockObj( sHost, port ); if( !NewpcSock ) NewpcSock = GetSockObj( sHost, port ); NewpcSock->SetType( Csock::INBOUND ); NewpcSock->SetRSock( inSock ); NewpcSock->SetWSock( inSock ); NewpcSock->SetIPv6( pcSock->GetIPv6() ); bool bAddSock = true; #ifdef HAVE_LIBSSL // // is this ssl ? if( pcSock->GetSSL() ) { NewpcSock->SetCipher( pcSock->GetCipher() ); NewpcSock->SetPemLocation( pcSock->GetPemLocation() ); NewpcSock->SetPemPass( pcSock->GetPemPass() ); NewpcSock->SetRequireClientCertFlags( pcSock->GetRequireClientCertFlags() ); bAddSock = NewpcSock->AcceptSSL(); } #endif /* HAVE_LIBSSL */ if( bAddSock ) { // set the name of the listener NewpcSock->SetParentSockName( pcSock->GetSockName() ); NewpcSock->SetRate( pcSock->GetRateBytes(), pcSock->GetRateTime() ); if( NewpcSock->GetSockName().empty() ) { std::stringstream s; s << sHost << ":" << port; AddSock( NewpcSock, s.str() ); } else { AddSock( NewpcSock, NewpcSock->GetSockName() ); } } else { CS_Delete( NewpcSock ); } } #ifdef _WIN32 else if( GetSockError() != WSAEWOULDBLOCK ) #else /* _WIN32 */ else if( GetSockError() != EAGAIN ) #endif /* _WIN32 */ { pcSock->CallSockError( GetSockError() ); } } } } } inline void MinimizeTime( timeval& min, const timeval& another ) { if( timercmp( &min, &another, > ) ) { min = another; } } timeval CSocketManager::GetDynamicSleepTime( const timeval& tNow, const timeval& tMaxResolution ) const { timeval tNextRunTime; timeradd( &tNow, &tMaxResolution, &tNextRunTime ); std::vector::const_iterator it; // This is safe, because we don't modify the vector. std::vector::const_iterator it_end = this->end(); for( it = this->begin(); it != it_end; ++it ) { Csock* pSock = *it; if( pSock->GetConState() != Csock::CST_OK ) tNextRunTime = tNow; // this is in a nebulous state, need to let it proceed like normal time_t iTimeoutInSeconds = pSock->GetTimeout(); if( iTimeoutInSeconds > 0 ) { timeval tNextTimeout; tNextTimeout.tv_sec = pSock->GetNextCheckTimeout( 0 ); // TODO convert socket timeouts to timeval too? tNextTimeout.tv_usec = 0; MinimizeTime( tNextRunTime, tNextTimeout ); } const std::vector & vCrons = pSock->GetCrons(); std::vector::const_iterator cit; std::vector::const_iterator cit_end = vCrons.end(); for( cit = vCrons.begin(); cit != cit_end; ++cit ) MinimizeTime( tNextRunTime, ( *cit )->GetNextRun() ); } std::vector::const_iterator cit; std::vector::const_iterator cit_end = m_vcCrons.end(); for( cit = m_vcCrons.begin(); cit != cit_end; ++cit ) MinimizeTime( tNextRunTime, ( *cit )->GetNextRun() ); timeval tReturnValue; if( timercmp( &tNextRunTime, &tNow, < ) ) { timerclear( &tReturnValue ); return( tReturnValue ); // smallest unit possible } timersub( &tNextRunTime, &tNow, &tReturnValue ); MinimizeTime( tReturnValue, tMaxResolution ); return( tReturnValue ); } void CSocketManager::SelectSock( std::map & mpeSocks, EMessages eErrno, Csock * pcSock ) { if( mpeSocks.find( pcSock ) != mpeSocks.end() ) return; mpeSocks[pcSock] = eErrno; } znc-1.6.3/src/FileUtils.cpp0000644000175000017500000003563112663147131015746 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include #include #ifndef HAVE_LSTAT # define lstat(a, b) stat(a, b) #endif #ifndef O_BINARY # define O_BINARY 0 #endif CString CFile::m_sHomePath; CFile::CFile() { m_iFD = -1; ResetError(); } CFile::CFile(const CString& sLongName) { m_iFD = -1; ResetError(); SetFileName(sLongName); } CFile::~CFile() { Close(); } void CFile::SetFileName(const CString& sLongName) { if (sLongName.Left(2) == "~/") { m_sLongName = CFile::GetHomePath() + sLongName.substr(1); } else m_sLongName = sLongName; m_sShortName = sLongName; m_sShortName.TrimRight("/"); CString::size_type uPos = m_sShortName.rfind('/'); if (uPos != CString::npos) { m_sShortName = m_sShortName.substr(uPos +1); } } bool CFile::IsDir(const CString& sLongName, bool bUseLstat) { if (sLongName.Equals("/")) return CFile::FType(sLongName, FT_DIRECTORY, bUseLstat); // Some OS don't like trailing slashes for directories return CFile::FType(sLongName.TrimRight_n("/"), FT_DIRECTORY, bUseLstat); } bool CFile::IsReg(const CString& sLongName, bool bUseLstat) { return CFile::FType(sLongName, FT_REGULAR, bUseLstat); } bool CFile::IsChr(const CString& sLongName, bool bUseLstat) { return CFile::FType(sLongName, FT_CHARACTER, bUseLstat); } bool CFile::IsBlk(const CString& sLongName, bool bUseLstat) { return CFile::FType(sLongName, FT_BLOCK, bUseLstat); } bool CFile::IsFifo(const CString& sLongName, bool bUseLstat) { return CFile::FType(sLongName, FT_FIFO, bUseLstat); } bool CFile::IsLnk(const CString& sLongName, bool bUseLstat) { return CFile::FType(sLongName, FT_LINK, bUseLstat); } bool CFile::IsSock(const CString& sLongName, bool bUseLstat) { return CFile::FType(sLongName, FT_SOCK, bUseLstat); } bool CFile::IsReg(bool bUseLstat) const { return CFile::IsReg(m_sLongName, bUseLstat); } bool CFile::IsDir(bool bUseLstat) const { return CFile::IsDir(m_sLongName, bUseLstat); } bool CFile::IsChr(bool bUseLstat) const { return CFile::IsChr(m_sLongName, bUseLstat); } bool CFile::IsBlk(bool bUseLstat) const { return CFile::IsBlk(m_sLongName, bUseLstat); } bool CFile::IsFifo(bool bUseLstat) const { return CFile::IsFifo(m_sLongName, bUseLstat); } bool CFile::IsLnk(bool bUseLstat) const { return CFile::IsLnk(m_sLongName, bUseLstat); } bool CFile::IsSock(bool bUseLstat) const { return CFile::IsSock(m_sLongName, bUseLstat); } // for gettin file types, using fstat instead bool CFile::FType(const CString& sFileName, EFileTypes eType, bool bUseLstat) { struct stat st; if (!bUseLstat) { if (stat(sFileName.c_str(), &st) != 0) { return false; } } else { if (lstat(sFileName.c_str(), &st) != 0) { return false; } } switch (eType) { case FT_REGULAR: return S_ISREG(st.st_mode); case FT_DIRECTORY: return S_ISDIR(st.st_mode); case FT_CHARACTER: return S_ISCHR(st.st_mode); case FT_BLOCK: return S_ISBLK(st.st_mode); case FT_FIFO: return S_ISFIFO(st.st_mode); case FT_LINK: return S_ISLNK(st.st_mode); case FT_SOCK: return S_ISSOCK(st.st_mode); default: break; } return false; } // // Functions to retrieve file information // bool CFile::Exists() const { return CFile::Exists(m_sLongName); } off_t CFile::GetSize() const { return CFile::GetSize(m_sLongName); } time_t CFile::GetATime() const { return CFile::GetATime(m_sLongName); } time_t CFile::GetMTime() const { return CFile::GetMTime(m_sLongName); } time_t CFile::GetCTime() const { return CFile::GetCTime(m_sLongName); } uid_t CFile::GetUID() const { return CFile::GetUID(m_sLongName); } gid_t CFile::GetGID() const { return CFile::GetGID(m_sLongName); } bool CFile::Exists(const CString& sFile) { struct stat st; return (stat(sFile.c_str(), &st) == 0); } off_t CFile::GetSize(const CString& sFile) { struct stat st; if (stat(sFile.c_str(), &st) != 0) { return 0; } return (S_ISREG(st.st_mode)) ? st.st_size : 0; } time_t CFile::GetATime(const CString& sFile) { struct stat st; return (stat(sFile.c_str(), &st) != 0) ? 0 : st.st_atime; } time_t CFile::GetMTime(const CString& sFile) { struct stat st; return (stat(sFile.c_str(), &st) != 0) ? 0 : st.st_mtime; } time_t CFile::GetCTime(const CString& sFile) { struct stat st; return (stat(sFile.c_str(), &st) != 0) ? 0 : st.st_ctime; } uid_t CFile::GetUID(const CString& sFile) { struct stat st; return (stat(sFile.c_str(), &st) != 0) ? -1 : (int) st.st_uid; } gid_t CFile::GetGID(const CString& sFile) { struct stat st; return (stat(sFile.c_str(), &st) != 0) ? -1 : (int) st.st_gid; } int CFile::GetInfo(const CString& sFile, struct stat& st) { return stat(sFile.c_str(), &st); } // // Functions to manipulate the file on the filesystem // bool CFile::Delete() { if (CFile::Delete(m_sLongName)) return true; m_bHadError = true; return false; } bool CFile::Move(const CString& sNewFileName, bool bOverwrite) { if (CFile::Move(m_sLongName, sNewFileName, bOverwrite)) return true; m_bHadError = true; return false; } bool CFile::Copy(const CString& sNewFileName, bool bOverwrite) { if (CFile::Copy(m_sLongName, sNewFileName, bOverwrite)) return true; m_bHadError = true; return false; } bool CFile::Delete(const CString& sFileName) { return (unlink(sFileName.c_str()) == 0) ? true : false; } bool CFile::Move(const CString& sOldFileName, const CString& sNewFileName, bool bOverwrite) { if (CFile::Exists(sNewFileName)) { if (!bOverwrite) { errno = EEXIST; return false; } #ifdef _WIN32 // rename() never overwrites files on Windows. DWORD dFlags = MOVEFILE_WRITE_THROUGH | MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING; return (::MoveFileExA(sOldFileName.c_str(), sNewFileName.c_str(), dFlags) != 0); #endif } return (rename(sOldFileName.c_str(), sNewFileName.c_str()) == 0); } bool CFile::Copy(const CString& sOldFileName, const CString& sNewFileName, bool bOverwrite) { if ((!bOverwrite) && (CFile::Exists(sNewFileName))) { errno = EEXIST; return false; } CFile OldFile(sOldFileName); CFile NewFile(sNewFileName); if (!OldFile.Open()) { return false; } if (!NewFile.Open(O_WRONLY | O_CREAT | O_TRUNC)) { return false; } char szBuf[8192]; ssize_t len = 0; while ((len = OldFile.Read(szBuf, 8192))) { if (len < 0) { DEBUG("CFile::Copy() failed: " << strerror(errno)); OldFile.Close(); // That file is only a partial copy, get rid of it NewFile.Close(); NewFile.Delete(); return false; } NewFile.Write(szBuf, len); } OldFile.Close(); NewFile.Close(); struct stat st; GetInfo(sOldFileName, st); Chmod(sNewFileName, st.st_mode); return true; } bool CFile::Chmod(mode_t mode) { if (m_iFD == -1) { errno = EBADF; return false; } if (fchmod(m_iFD, mode) != 0) { m_bHadError = true; return false; } return true; } bool CFile::Chmod(const CString& sFile, mode_t mode) { return (chmod(sFile.c_str(), mode) == 0); } bool CFile::Seek(off_t uPos) { /* This sets errno in case m_iFD == -1 */ errno = EBADF; if (m_iFD != -1 && lseek(m_iFD, uPos, SEEK_SET) == uPos) { ClearBuffer(); return true; } m_bHadError = true; return false; } bool CFile::Truncate() { /* This sets errno in case m_iFD == -1 */ errno = EBADF; if (m_iFD != -1 && ftruncate(m_iFD, 0) == 0) { ClearBuffer(); return true; } m_bHadError = true; return false; } bool CFile::Sync() { /* This sets errno in case m_iFD == -1 */ errno = EBADF; if (m_iFD != -1 && fsync(m_iFD) == 0) return true; m_bHadError = true; return false; } bool CFile::Open(const CString& sFileName, int iFlags, mode_t iMode) { SetFileName(sFileName); return Open(iFlags, iMode); } bool CFile::Open(int iFlags, mode_t iMode) { if (m_iFD != -1) { errno = EEXIST; m_bHadError = true; return false; } // We never want to get a controlling TTY through this -> O_NOCTTY iMode |= O_NOCTTY; // Some weird OS from MS needs O_BINARY or else it generates fake EOFs // when reading ^Z from a file. iMode |= O_BINARY; m_iFD = open(m_sLongName.c_str(), iFlags, iMode); if (m_iFD < 0) { m_bHadError = true; return false; } /* Make sure this FD isn't given to childs */ SetFdCloseOnExec(m_iFD); return true; } ssize_t CFile::Read(char *pszBuffer, int iBytes) { if (m_iFD == -1) { errno = EBADF; return -1; } ssize_t res = read(m_iFD, pszBuffer, iBytes); if (res != iBytes) m_bHadError = true; return res; } bool CFile::ReadLine(CString& sData, const CString & sDelimiter) { char buff[4096]; ssize_t iBytes; if (m_iFD == -1) { errno = EBADF; return false; } do { CString::size_type iFind = m_sBuffer.find(sDelimiter); if (iFind != CString::npos) { // We found a line, return it sData = m_sBuffer.substr(0, iFind + sDelimiter.length()); m_sBuffer.erase(0, iFind + sDelimiter.length()); return true; } iBytes = read(m_iFD, buff, sizeof(buff)); if (iBytes > 0) { m_sBuffer.append(buff, iBytes); } } while (iBytes > 0); // We are at the end of the file or an error happened if (!m_sBuffer.empty()) { // ..but there is still some partial line in the buffer sData = m_sBuffer; m_sBuffer.clear(); return true; } // Nothing left for reading :( return false; } bool CFile::ReadFile(CString& sData, size_t iMaxSize) { char buff[4096]; size_t iBytesRead = 0; sData.clear(); while (iBytesRead < iMaxSize) { ssize_t iBytes = Read(buff, sizeof(buff)); if (iBytes < 0) // Error return false; if (iBytes == 0) // EOF return true; sData.append(buff, iBytes); iBytesRead += iBytes; } // Buffer limit reached return false; } ssize_t CFile::Write(const char *pszBuffer, size_t iBytes) { if (m_iFD == -1) { errno = EBADF; return -1; } ssize_t res = write(m_iFD, pszBuffer, iBytes); if (-1 == res) m_bHadError = true; return res; } ssize_t CFile::Write(const CString & sData) { return Write(sData.data(), sData.size()); } void CFile::Close() { if (m_iFD >= 0) { if (close(m_iFD) < 0) { m_bHadError = true; DEBUG("CFile::Close(): close() failed with [" << strerror(errno) << "]"); } } m_iFD = -1; ClearBuffer(); } void CFile::ClearBuffer() { m_sBuffer.clear(); } bool CFile::TryExLock(const CString& sLockFile, int iFlags) { Open(sLockFile, iFlags); return TryExLock(); } bool CFile::TryExLock() { return Lock(F_WRLCK, false); } bool CFile::ExLock() { return Lock(F_WRLCK, true); } bool CFile::UnLock() { return Lock(F_UNLCK, true); } bool CFile::Lock(short iType, bool bBlocking) { struct flock fl; if (m_iFD == -1) { return false; } fl.l_type = iType; fl.l_whence = SEEK_SET; fl.l_start = 0; fl.l_len = 0; return (fcntl(m_iFD, (bBlocking ? F_SETLKW : F_SETLK), &fl) != -1); } bool CFile::IsOpen() const { return (m_iFD != -1); } CString CFile::GetLongName() const { return m_sLongName; } CString CFile::GetShortName() const { return m_sShortName; } CString CFile::GetDir() const { CString sDir(m_sLongName); while (!sDir.empty() && sDir.Right(1) != "/" && sDir.Right(1) != "\\") { sDir.RightChomp(); } return sDir; } void CFile::InitHomePath(const CString& sFallback) { const char *home = getenv("HOME"); m_sHomePath.clear(); if (home) { m_sHomePath = home; } if (m_sHomePath.empty()) { const struct passwd* pUserInfo = getpwuid(getuid()); if (pUserInfo) { m_sHomePath = pUserInfo->pw_dir; } } if (m_sHomePath.empty()) { m_sHomePath = sFallback; } } CString CDir::ChangeDir(const CString& sPath, const CString& sAdd, const CString& sHome) { CString sHomeDir(sHome); if (sHomeDir.empty()) { sHomeDir = CFile::GetHomePath(); } if (sAdd == "~") { return sHomeDir; } CString sAddDir(sAdd); if (sAddDir.Left(2) == "~/") { sAddDir.LeftChomp(); sAddDir = sHomeDir + sAddDir; } CString sRet = ((sAddDir.size()) && (sAddDir[0] == '/')) ? "" : sPath; sAddDir += "/"; CString sCurDir; if (sRet.Right(1) == "/") { sRet.RightChomp(); } for (unsigned int a = 0; a < sAddDir.size(); a++) { switch (sAddDir[a]) { case '/': if (sCurDir == "..") { sRet = sRet.substr(0, sRet.rfind('/')); } else if ((sCurDir != "") && (sCurDir != ".")) { sRet += "/" + sCurDir; } sCurDir = ""; break; default: sCurDir += sAddDir[a]; break; } } return (sRet.empty()) ? "/" : sRet; } CString CDir::CheckPathPrefix(const CString& sPath, const CString& sAdd, const CString& sHomeDir) { CString sPrefix = sPath.Replace_n("//", "/").TrimRight_n("/") + "/"; CString sAbsolutePath = ChangeDir(sPrefix, sAdd, sHomeDir); if (sAbsolutePath.Left(sPrefix.length()) != sPrefix) return ""; return sAbsolutePath; } bool CDir::MakeDir(const CString& sPath, mode_t iMode) { CString sDir; VCString dirs; VCString::iterator it; // Just in case someone tries this... if (sPath.empty()) { errno = ENOENT; return false; } // If this is an absolute path, we need to handle this now! if (sPath.Left(1) == "/") sDir = "/"; // For every single subpath, do... sPath.Split("/", dirs, false); for (it = dirs.begin(); it != dirs.end(); ++it) { // Add this to the path we already created sDir += *it; int i = mkdir(sDir.c_str(), iMode); if (i != 0) { // All errors except EEXIST are fatal if (errno != EEXIST) return false; // If it's EEXIST we have to make sure it's a dir if (!CFile::IsDir(sDir)) return false; } sDir += "/"; } // All went well return true; } int CExecSock::popen2(int & iReadFD, int & iWriteFD, const CString & sCommand) { int rpipes[2] = { -1, -1 }; int wpipes[2] = { -1, -1 }; iReadFD = -1; iWriteFD = -1; if (pipe(rpipes) < 0) return -1; if (pipe(wpipes) < 0) { close(rpipes[0]); close(rpipes[1]); return -1; } int iPid = fork(); if (iPid == -1) { close(rpipes[0]); close(rpipes[1]); close(wpipes[0]); close(wpipes[1]); return -1; } if (iPid == 0) { close(wpipes[1]); close(rpipes[0]); dup2(wpipes[0], 0); dup2(rpipes[1], 1); dup2(rpipes[1], 2); close(wpipes[0]); close(rpipes[1]); const char * pArgv[] = { "sh", "-c", sCommand.c_str(), NULL }; execvp("sh", (char * const *) pArgv); // if execvp returns, there was an error perror("execvp"); exit(1); } close(wpipes[0]); close(rpipes[1]); iWriteFD = wpipes[1]; iReadFD = rpipes[0]; return iPid; } void CExecSock::close2(int iPid, int iReadFD, int iWriteFD) { close(iReadFD); close(iWriteFD); time_t iNow = time(NULL); while (waitpid(iPid, NULL, WNOHANG) == 0) { if ((time(NULL) - iNow) > 5) break; // giveup usleep(100); } return; } znc-1.6.3/src/Buffer.cpp0000644000175000017500000000567312663147131015262 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include CBufLine::CBufLine(const CString& sFormat, const CString& sText, const timeval* ts) { m_sFormat = sFormat; m_sText = sText; if (ts == NULL) UpdateTime(); else m_time = *ts; } CBufLine::~CBufLine() {} void CBufLine::UpdateTime() { if (0 == gettimeofday(&m_time, NULL)) { return; } m_time.tv_sec = time(NULL); m_time.tv_usec = 0; } CString CBufLine::GetLine(const CClient& Client, const MCString& msParams) const { MCString msThisParams = msParams; if (Client.HasServerTime()) { msThisParams["text"] = m_sText; CString sStr = CString::NamedFormat(m_sFormat, msThisParams); return "@time=" + CUtils::FormatServerTime(m_time) + " " + sStr; } else { msThisParams["text"] = Client.GetUser()->AddTimestamp(m_time.tv_sec, m_sText); return CString::NamedFormat(m_sFormat, msThisParams); } } CBuffer::CBuffer(unsigned int uLineCount) { m_uLineCount = uLineCount; } CBuffer::~CBuffer() {} CBuffer::size_type CBuffer::AddLine(const CString& sFormat, const CString& sText, const timeval* ts) { if (!m_uLineCount) { return 0; } while (size() >= m_uLineCount) { erase(begin()); } push_back(CBufLine(sFormat, sText, ts)); return size(); } CBuffer::size_type CBuffer::UpdateLine(const CString& sMatch, const CString& sFormat, const CString& sText) { for (iterator it = begin(); it != end(); ++it) { if (it->GetFormat().compare(0, sMatch.length(), sMatch) == 0) { it->SetFormat(sFormat); it->SetText(sText); it->UpdateTime(); return size(); } } return AddLine(sFormat, sText); } CBuffer::size_type CBuffer::UpdateExactLine(const CString& sFormat, const CString& sText) { for (iterator it = begin(); it != end(); ++it) { if (it->GetFormat() == sFormat && it->GetText() == sText) { return size(); } } return AddLine(sFormat, sText); } const CBufLine& CBuffer::GetBufLine(unsigned int uIdx) const { return (*this)[uIdx]; } CString CBuffer::GetLine(size_type uIdx, const CClient& Client, const MCString& msParams) const { return (*this)[uIdx].GetLine(Client, msParams); } bool CBuffer::SetLineCount(unsigned int u, bool bForce) { if (!bForce && u > CZNC::Get().GetMaxBufferSize()) { return false; } m_uLineCount = u; // We may need to shrink the buffer if the allowed size got smaller while (size() > m_uLineCount) { erase(begin()); } return true; } znc-1.6.3/src/WebModules.cpp0000644000175000017500000006530412663147131016114 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include using std::pair; using std::vector; /// @todo Do we want to make this a configure option? #define _SKINDIR_ _DATADIR_ "/webskins" const unsigned int CWebSock::m_uiMaxSessions = 5; // We need this class to make sure the contained maps and their content is // destroyed in the order that we want. struct CSessionManager { // Sessions are valid for a day, (24h, ...) CSessionManager() : m_mspSessions(24 * 60 * 60 * 1000) {} ~CSessionManager() { // Make sure all sessions are destroyed before any of our maps // are destroyed m_mspSessions.Clear(); } CWebSessionMap m_mspSessions; std::multimap m_mIPSessions; }; typedef std::multimap::iterator mIPSessionsIterator; static CSessionManager Sessions; class CWebAuth : public CAuthBase { public: CWebAuth(CWebSock* pWebSock, const CString& sUsername, const CString& sPassword, bool bBasic); virtual ~CWebAuth() {} void SetWebSock(CWebSock* pWebSock) { m_pWebSock = pWebSock; } void AcceptedLogin(CUser& User); void RefusedLogin(const CString& sReason); void Invalidate(); private: protected: CWebSock* m_pWebSock; bool m_bBasic; }; void CWebSock::FinishUserSessions(const CUser& User) { Sessions.m_mspSessions.FinishUserSessions(User); } CWebSession::~CWebSession() { // Find our entry in mIPSessions pair p = Sessions.m_mIPSessions.equal_range(m_sIP); mIPSessionsIterator it = p.first; mIPSessionsIterator end = p.second; while (it != end) { if (it->second == this) { Sessions.m_mIPSessions.erase(it++); } else { ++it; } } } CZNCTagHandler::CZNCTagHandler(CWebSock& WebSock) : CTemplateTagHandler(), m_WebSock(WebSock) { } bool CZNCTagHandler::HandleTag(CTemplate& Tmpl, const CString& sName, const CString& sArgs, CString& sOutput) { if (sName.Equals("URLPARAM")) { //sOutput = CZNC::Get() sOutput = m_WebSock.GetParam(sArgs.Token(0), false); return true; } return false; } CWebSession::CWebSession(const CString& sId, const CString& sIP) : m_sId(sId), m_sIP(sIP) { m_pUser = NULL; Sessions.m_mIPSessions.insert(make_pair(sIP, this)); UpdateLastActive(); } void CWebSession::UpdateLastActive() { time(&m_tmLastActive); } bool CWebSession::IsAdmin() const { return IsLoggedIn() && m_pUser->IsAdmin(); } CWebAuth::CWebAuth(CWebSock* pWebSock, const CString& sUsername, const CString& sPassword, bool bBasic) : CAuthBase(sUsername, sPassword, pWebSock) { m_pWebSock = pWebSock; m_bBasic = bBasic; } void CWebSession::ClearMessageLoops() { m_vsErrorMsgs.clear(); m_vsSuccessMsgs.clear(); } void CWebSession::FillMessageLoops(CTemplate& Tmpl) { for (unsigned int a = 0; a < m_vsErrorMsgs.size(); a++) { CTemplate& Row = Tmpl.AddRow("ErrorLoop"); Row["Message"] = m_vsErrorMsgs[a]; } for (unsigned int b = 0; b < m_vsSuccessMsgs.size(); b++) { CTemplate& Row = Tmpl.AddRow("SuccessLoop"); Row["Message"] = m_vsSuccessMsgs[b]; } } size_t CWebSession::AddError(const CString& sMessage) { m_vsErrorMsgs.push_back(sMessage); return m_vsErrorMsgs.size(); } size_t CWebSession::AddSuccess(const CString& sMessage) { m_vsSuccessMsgs.push_back(sMessage); return m_vsSuccessMsgs.size(); } void CWebSessionMap::FinishUserSessions(const CUser& User) { iterator it = m_mItems.begin(); while (it != m_mItems.end()) { if (it->second.second->GetUser() == &User) { m_mItems.erase(it++); } else { ++it; } } } void CWebAuth::AcceptedLogin(CUser& User) { if (m_pWebSock) { std::shared_ptr spSession = m_pWebSock->GetSession(); spSession->SetUser(&User); m_pWebSock->SetLoggedIn(true); m_pWebSock->UnPauseRead(); if (m_bBasic) { m_pWebSock->ReadLine(""); } else { m_pWebSock->Redirect("/?cookie_check=true"); } DEBUG("Successful login attempt ==> USER [" + User.GetUserName() + "] ==> SESSION [" + spSession->GetId() + "]"); } } void CWebAuth::RefusedLogin(const CString& sReason) { if (m_pWebSock) { std::shared_ptr spSession = m_pWebSock->GetSession(); spSession->AddError("Invalid login!"); spSession->SetUser(NULL); m_pWebSock->SetLoggedIn(false); m_pWebSock->UnPauseRead(); if (m_bBasic) { m_pWebSock->AddHeader("WWW-Authenticate", "Basic realm=\"ZNC\""); m_pWebSock->CHTTPSock::PrintErrorPage(401, "Unauthorized", "HTTP Basic authentication attemped with invalid credentials"); // Why CWebSock makes this function protected?.. } else { m_pWebSock->Redirect("/?cookie_check=true"); } DEBUG("UNSUCCESSFUL login attempt ==> REASON [" + sReason + "] ==> SESSION [" + spSession->GetId() + "]"); } } void CWebAuth::Invalidate() { CAuthBase::Invalidate(); m_pWebSock = NULL; } CWebSock::CWebSock(const CString& sURIPrefix) : CHTTPSock(NULL, sURIPrefix) { m_bPathsSet = false; m_Template.AddTagHandler(std::make_shared(*this)); } CWebSock::~CWebSock() { if (m_spAuth) { m_spAuth->Invalidate(); } // we have to account for traffic here because CSocket does // not have a valid CModule* pointer. CUser *pUser = GetSession()->GetUser(); if (pUser) { pUser->AddBytesWritten(GetBytesWritten()); pUser->AddBytesRead(GetBytesRead()); } else { CZNC::Get().AddBytesWritten(GetBytesWritten()); CZNC::Get().AddBytesRead(GetBytesRead()); } // bytes have been accounted for, so make sure they don't get again: ResetBytesWritten(); ResetBytesRead(); } void CWebSock::GetAvailSkins(VCString& vRet) const { vRet.clear(); CString sRoot(GetSkinPath("_default_")); sRoot.TrimRight("/"); sRoot.TrimRight("_default_"); sRoot.TrimRight("/"); if (!sRoot.empty()) { sRoot += "/"; } if (!sRoot.empty() && CFile::IsDir(sRoot)) { CDir Dir(sRoot); for (unsigned int d = 0; d < Dir.size(); d++) { const CFile& SubDir = *Dir[d]; if (SubDir.IsDir() && SubDir.GetShortName() == "_default_") { vRet.push_back(SubDir.GetShortName()); break; } } for (unsigned int e = 0; e < Dir.size(); e++) { const CFile& SubDir = *Dir[e]; if (SubDir.IsDir() && SubDir.GetShortName() != "_default_" && SubDir.GetShortName() != ".svn") { vRet.push_back(SubDir.GetShortName()); } } } } VCString CWebSock::GetDirs(CModule* pModule, bool bIsTemplate) { CString sHomeSkinsDir(CZNC::Get().GetZNCPath() + "/webskins/"); CString sSkinName(GetSkinName()); VCString vsResult; // Module specific paths if (pModule) { const CString& sModName(pModule->GetModName()); // 1. ~/.znc/webskins//mods// // if (!sSkinName.empty()) { vsResult.push_back(GetSkinPath(sSkinName) + "/mods/" + sModName + "/"); } // 2. ~/.znc/webskins/_default_/mods// // vsResult.push_back(GetSkinPath("_default_") + "/mods/" + sModName + "/"); // 3. ./modules//tmpl/ // vsResult.push_back(pModule->GetModDataDir() + "/tmpl/"); // 4. ~/.znc/webskins//mods// // if (!sSkinName.empty()) { vsResult.push_back(GetSkinPath(sSkinName) + "/mods/" + sModName + "/"); } // 5. ~/.znc/webskins/_default_/mods// // vsResult.push_back(GetSkinPath("_default_") + "/mods/" + sModName + "/"); } // 6. ~/.znc/webskins// // if (!sSkinName.empty()) { vsResult.push_back(GetSkinPath(sSkinName) + CString(bIsTemplate ? "/tmpl/" : "/")); } // 7. ~/.znc/webskins/_default_/ // vsResult.push_back(GetSkinPath("_default_") + CString(bIsTemplate ? "/tmpl/" : "/")); return vsResult; } CString CWebSock::FindTmpl(CModule* pModule, const CString& sName) { VCString vsDirs = GetDirs(pModule, true); CString sFile = pModule->GetModName() + "_" + sName; for (size_t i = 0; i < vsDirs.size(); ++i) { if (CFile::Exists(CDir::ChangeDir(vsDirs[i], sFile))) { m_Template.AppendPath(vsDirs[i]); return sFile; } } return sName; } void CWebSock::SetPaths(CModule* pModule, bool bIsTemplate) { m_Template.ClearPaths(); VCString vsDirs = GetDirs(pModule, bIsTemplate); for (size_t i = 0; i < vsDirs.size(); ++i) { m_Template.AppendPath(vsDirs[i]); } m_bPathsSet = true; } void CWebSock::SetVars() { m_Template["SessionUser"] = GetUser(); m_Template["SessionIP"] = GetRemoteIP(); m_Template["Tag"] = CZNC::GetTag(GetSession()->GetUser() != NULL, true); m_Template["Version"] = CZNC::GetVersion(); m_Template["SkinName"] = GetSkinName(); m_Template["_CSRF_Check"] = GetCSRFCheck(); m_Template["URIPrefix"] = GetURIPrefix(); if (GetSession()->IsAdmin()) { m_Template["IsAdmin"] = "true"; } GetSession()->FillMessageLoops(m_Template); GetSession()->ClearMessageLoops(); // Global Mods CModules& vgMods = CZNC::Get().GetModules(); for (unsigned int a = 0; a < vgMods.size(); a++) { AddModLoop("GlobalModLoop", *vgMods[a]); } // User Mods if (IsLoggedIn()) { CModules& vMods = GetSession()->GetUser()->GetModules(); for (unsigned int a = 0; a < vMods.size(); a++) { AddModLoop("UserModLoop", *vMods[a]); } vector vNetworks = GetSession()->GetUser()->GetNetworks(); vector::iterator it; for (it = vNetworks.begin(); it != vNetworks.end(); ++it) { CModules& vnMods = (*it)->GetModules(); CTemplate& Row = m_Template.AddRow("NetworkModLoop"); Row["NetworkName"] = (*it)->GetName(); for (unsigned int a = 0; a < vnMods.size(); a++) { AddModLoop("ModLoop", *vnMods[a], &Row); } } } if (IsLoggedIn()) { m_Template["LoggedIn"] = "true"; } } bool CWebSock::AddModLoop(const CString& sLoopName, CModule& Module, CTemplate *pTemplate) { if (!pTemplate) { pTemplate = &m_Template; } CString sTitle(Module.GetWebMenuTitle()); if (!sTitle.empty() && (IsLoggedIn() || (!Module.WebRequiresLogin() && !Module.WebRequiresAdmin())) && (GetSession()->IsAdmin() || !Module.WebRequiresAdmin())) { CTemplate& Row = pTemplate->AddRow(sLoopName); bool bActiveModule = false; Row["ModName"] = Module.GetModName(); Row["ModPath"] = Module.GetWebPath(); Row["Title"] = sTitle; if (m_sModName == Module.GetModName()) { CString sModuleType = GetPath().Token(1, false, "/"); if (sModuleType == "global" && Module.GetType() == CModInfo::GlobalModule) { bActiveModule = true; } else if (sModuleType == "user" && Module.GetType() == CModInfo::UserModule) { bActiveModule = true; } else if (sModuleType == "network" && Module.GetType() == CModInfo::NetworkModule) { CIRCNetwork *Network = Module.GetNetwork(); if (Network) { CString sNetworkName = GetPath().Token(2, false, "/"); if (sNetworkName == Network->GetName()) { bActiveModule = true; } } else { bActiveModule = true; } } } if (bActiveModule) { Row["Active"] = "true"; } if (Module.GetUser()) { Row["Username"] = Module.GetUser()->GetUserName(); } VWebSubPages& vSubPages = Module.GetSubPages(); for (unsigned int a = 0; a < vSubPages.size(); a++) { TWebSubPage& SubPage = vSubPages[a]; // bActive is whether or not the current url matches this subpage (params will be checked below) bool bActive = (m_sModName == Module.GetModName() && m_sPage == SubPage->GetName() && bActiveModule); if (SubPage->RequiresAdmin() && !GetSession()->IsAdmin()) { continue; // Don't add admin-only subpages to requests from non-admin users } CTemplate& SubRow = Row.AddRow("SubPageLoop"); SubRow["ModName"] = Module.GetModName(); SubRow["ModPath"] = Module.GetWebPath(); SubRow["PageName"] = SubPage->GetName(); SubRow["Title"] = SubPage->GetTitle().empty() ? SubPage->GetName() : SubPage->GetTitle(); CString& sParams = SubRow["Params"]; const VPair& vParams = SubPage->GetParams(); for (size_t b = 0; b < vParams.size(); b++) { pair ssNV = vParams[b]; if (!sParams.empty()) { sParams += "&"; } if (!ssNV.first.empty()) { if (!ssNV.second.empty()) { sParams += ssNV.first.Escape_n(CString::EURL); sParams += "="; sParams += ssNV.second.Escape_n(CString::EURL); } if (bActive && GetParam(ssNV.first, false) != ssNV.second) { bActive = false; } } } if (bActive) { SubRow["Active"] = "true"; } } return true; } return false; } CWebSock::EPageReqResult CWebSock::PrintStaticFile(const CString& sPath, CString& sPageRet, CModule* pModule) { SetPaths(pModule); CString sFile = m_Template.ExpandFile(sPath.TrimLeft_n("/")); DEBUG("About to print [" + sFile+ "]"); // Either PrintFile() fails and sends an error page or it suceeds and // sends a result. In both cases we don't have anything more to do. PrintFile(sFile); return PAGE_DONE; } CWebSock::EPageReqResult CWebSock::PrintTemplate(const CString& sPageName, CString& sPageRet, CModule* pModule) { SetVars(); m_Template["PageName"] = sPageName; if (pModule) { m_Template["ModName"] = pModule->GetModName(); if (m_Template.find("Title") == m_Template.end()) { m_Template["Title"] = pModule->GetWebMenuTitle(); } std::vector* breadcrumbs = m_Template.GetLoop("BreadCrumbs"); if (breadcrumbs->size() == 1 && m_Template["Title"] != pModule->GetModName()) { // Module didn't add its own breadcrumbs, so add a generic one... // But it'll be useless if it's the same as module name CTemplate& bread = m_Template.AddRow("BreadCrumbs"); bread["Text"] = m_Template["Title"]; } } if (!m_bPathsSet) { SetPaths(pModule, true); } if (m_Template.GetFileName().empty() && !m_Template.SetFile(sPageName + ".tmpl")) { return PAGE_NOTFOUND; } if (m_Template.PrintString(sPageRet)) { return PAGE_PRINT; } else { return PAGE_NOTFOUND; } } CString CWebSock::GetSkinPath(const CString& sSkinName) { CString sRet = CZNC::Get().GetZNCPath() + "/webskins/" + sSkinName; if (!CFile::IsDir(sRet)) { sRet = CZNC::Get().GetCurPath() + "/webskins/" + sSkinName; if (!CFile::IsDir(sRet)) { sRet = CString(_SKINDIR_) + "/" + sSkinName; } } return sRet + "/"; } bool CWebSock::ForceLogin() { if (GetSession()->IsLoggedIn()) { return true; } GetSession()->AddError("You must login to view that page"); Redirect("/"); return false; } CString CWebSock::GetRequestCookie(const CString& sKey) { const CString sPrefixedKey = CString(GetLocalPort()) + "-" + sKey; CString sRet; if (!m_sModName.empty()) { sRet = CHTTPSock::GetRequestCookie("Mod-" + m_sModName + "-" + sPrefixedKey); } if (sRet.empty()) { return CHTTPSock::GetRequestCookie(sPrefixedKey); } return sRet; } bool CWebSock::SendCookie(const CString& sKey, const CString& sValue) { const CString sPrefixedKey = CString(GetLocalPort()) + "-" + sKey; if (!m_sModName.empty()) { return CHTTPSock::SendCookie("Mod-" + m_sModName + "-" + sPrefixedKey, sValue); } return CHTTPSock::SendCookie(sPrefixedKey, sValue); } void CWebSock::OnPageRequest(const CString& sURI) { CString sPageRet; EPageReqResult eRet = OnPageRequestInternal(sURI, sPageRet); switch (eRet) { case PAGE_PRINT: PrintPage(sPageRet); break; case PAGE_DEFERRED: // Something else will later call Close() break; case PAGE_DONE: // Redirect or something like that, it's done, just make sure // the connection will be closed Close(CLT_AFTERWRITE); break; case PAGE_NOTFOUND: default: PrintNotFound(); break; } } CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CString& sPageRet) { // Check that their session really belongs to their IP address. IP-based // authentication is bad, but here it's just an extra layer that makes // stealing cookies harder to pull off. // // When their IP is wrong, we give them an invalid cookie. This makes // sure that they will get a new cookie on their next request. if (CZNC::Get().GetProtectWebSessions() && GetSession()->GetIP() != GetRemoteIP()) { DEBUG("Expected IP: " << GetSession()->GetIP()); DEBUG("Remote IP: " << GetRemoteIP()); SendCookie("SessionId", "WRONG_IP_FOR_SESSION"); PrintErrorPage(403, "Access denied", "This session does not belong to your IP."); return PAGE_DONE; } // Check that they really POSTed from one our forms by checking if they // know the "secret" CSRF check value. Don't do this for login since // CSRF against the login form makes no sense and the login form does a // cookies-enabled check which would break otherwise. if (IsPost() && GetParam("_CSRF_Check") != GetCSRFCheck() && sURI != "/login") { DEBUG("Expected _CSRF_Check: " << GetCSRFCheck()); DEBUG("Actual _CSRF_Check: " << GetParam("_CSRF_Check")); PrintErrorPage(403, "Access denied", "POST requests need to send " "a secret token to prevent cross-site request forgery attacks."); return PAGE_DONE; } SendCookie("SessionId", GetSession()->GetId()); if (GetSession()->IsLoggedIn()) { m_sUser = GetSession()->GetUser()->GetUserName(); m_bLoggedIn = true; } // Handle the static pages that don't require a login if (sURI == "/") { if(!m_bLoggedIn && GetParam("cookie_check", false).ToBool() && GetRequestCookie("SessionId").empty()) { GetSession()->AddError("Your browser does not have cookies enabled for this site!"); } return PrintTemplate("index", sPageRet); } else if (sURI == "/favicon.ico") { return PrintStaticFile("/pub/favicon.ico", sPageRet); } else if (sURI == "/robots.txt") { return PrintStaticFile("/pub/robots.txt", sPageRet); } else if (sURI == "/logout") { GetSession()->SetUser(NULL); SetLoggedIn(false); Redirect("/"); // We already sent a reply return PAGE_DONE; } else if (sURI == "/login") { if (GetParam("submitted").ToBool()) { m_sUser = GetParam("user"); m_sPass = GetParam("pass"); m_bLoggedIn = OnLogin(m_sUser, m_sPass, false); // AcceptedLogin()/RefusedLogin() will call Redirect() return PAGE_DEFERRED; } Redirect("/"); // the login form is here return PAGE_DONE; } else if (sURI.Left(5) == "/pub/") { return PrintStaticFile(sURI, sPageRet); } else if (sURI.Left(11) == "/skinfiles/") { CString sSkinName = sURI.substr(11); CString::size_type uPathStart = sSkinName.find("/"); if (uPathStart != CString::npos) { CString sFilePath = sSkinName.substr(uPathStart + 1); sSkinName.erase(uPathStart); m_Template.ClearPaths(); m_Template.AppendPath(GetSkinPath(sSkinName) + "pub"); if (PrintFile(m_Template.ExpandFile(sFilePath))) { return PAGE_DONE; } else { return PAGE_NOTFOUND; } } return PAGE_NOTFOUND; } else if (sURI.Left(6) == "/mods/" || sURI.Left(10) == "/modfiles/") { // Make sure modules are treated as directories if (sURI.Right(1) != "/" && sURI.find(".") == CString::npos && sURI.TrimLeft_n("/mods/").TrimLeft_n("/").find("/") == CString::npos) { Redirect(sURI + "/"); return PAGE_DONE; } // The URI looks like: // /mods/[type]/([network]/)?[module][/page][?arg1=val1&arg2=val2...] m_sPath = GetPath().TrimLeft_n("/"); m_sPath.TrimPrefix("mods/"); m_sPath.TrimPrefix("modfiles/"); CString sType = m_sPath.Token(0, false, "/"); m_sPath = m_sPath.Token(1, true, "/"); CModInfo::EModuleType eModType; if (sType.Equals("global")) { eModType = CModInfo::GlobalModule; } else if (sType.Equals("user")) { eModType = CModInfo::UserModule; } else if (sType.Equals("network")) { eModType = CModInfo::NetworkModule; } else { PrintErrorPage(403, "Forbidden", "Unknown module type [" + sType + "]"); return PAGE_DONE; } if ((eModType != CModInfo::GlobalModule) && !ForceLogin()) { // Make sure we have a valid user return PAGE_DONE; } CIRCNetwork *pNetwork = NULL; if (eModType == CModInfo::NetworkModule) { CString sNetwork = m_sPath.Token(0, false, "/"); m_sPath = m_sPath.Token(1, true, "/"); pNetwork = GetSession()->GetUser()->FindNetwork(sNetwork); if (!pNetwork) { PrintErrorPage(404, "Not Found", "Network [" + sNetwork + "] not found."); return PAGE_DONE; } } m_sModName = m_sPath.Token(0, false, "/"); m_sPage = m_sPath.Token(1, true, "/"); if (m_sPage.empty()) { m_sPage = "index"; } DEBUG("Path [" + m_sPath + "], Module [" + m_sModName + "], Page [" + m_sPage + "]"); CModule *pModule = NULL; switch (eModType) { case CModInfo::GlobalModule: pModule = CZNC::Get().GetModules().FindModule(m_sModName); break; case CModInfo::UserModule: pModule = GetSession()->GetUser()->GetModules().FindModule(m_sModName); break; case CModInfo::NetworkModule: pModule = pNetwork->GetModules().FindModule(m_sModName); break; } if (!pModule) return PAGE_NOTFOUND; m_Template["ModPath"] = pModule->GetWebPath(); m_Template["ModFilesPath"] = pModule->GetWebFilesPath(); if (pModule->WebRequiresLogin() && !ForceLogin()) { return PAGE_PRINT; } else if (pModule->WebRequiresAdmin() && !GetSession()->IsAdmin()) { PrintErrorPage(403, "Forbidden", "You need to be an admin to access this module"); return PAGE_DONE; } else if (pModule->GetType() != CModInfo::GlobalModule && pModule->GetUser() != GetSession()->GetUser()) { PrintErrorPage(403, "Forbidden", "You must login as " + pModule->GetUser()->GetUserName() + " in order to view this page"); return PAGE_DONE; } else if (pModule->OnWebPreRequest(*this, m_sPage)) { return PAGE_DEFERRED; } VWebSubPages& vSubPages = pModule->GetSubPages(); for (unsigned int a = 0; a < vSubPages.size(); a++) { TWebSubPage& SubPage = vSubPages[a]; bool bActive = (m_sModName == pModule->GetModName() && m_sPage == SubPage->GetName()); if (bActive && SubPage->RequiresAdmin() && !GetSession()->IsAdmin()) { PrintErrorPage(403, "Forbidden", "You need to be an admin to access this page"); return PAGE_DONE; } } if (pModule && pModule->GetType() != CModInfo::GlobalModule && (!IsLoggedIn() || pModule->GetUser() != GetSession()->GetUser())) { AddModLoop("UserModLoop", *pModule); } if (sURI.Left(10) == "/modfiles/") { m_Template.AppendPath(GetSkinPath(GetSkinName()) + "/mods/" + m_sModName + "/files/"); m_Template.AppendPath(pModule->GetModDataDir() + "/files/"); if (PrintFile(m_Template.ExpandFile(m_sPage.TrimLeft_n("/")))) { return PAGE_PRINT; } else { return PAGE_NOTFOUND; } } else { SetPaths(pModule, true); CTemplate& breadModule = m_Template.AddRow("BreadCrumbs"); breadModule["Text"] = pModule->GetModName(); breadModule["URL"] = pModule->GetWebPath(); /* if a module returns false from OnWebRequest, it does not want the template to be printed, usually because it did a redirect. */ if (pModule->OnWebRequest(*this, m_sPage, m_Template)) { // If they already sent a reply, let's assume // they did what they wanted to do. if (SentHeader()) { return PAGE_DONE; } return PrintTemplate(m_sPage, sPageRet, pModule); } if (!SentHeader()) { PrintErrorPage(404, "Not Implemented", "The requested module does not acknowledge web requests"); } return PAGE_DONE; } } else { CString sPage(sURI.Trim_n("/")); if (sPage.length() < 32) { for (unsigned int a = 0; a < sPage.length(); a++) { unsigned char c = sPage[a]; if ((c < '0' || c > '9') && (c < 'a' || c > 'z') && (c < 'A' || c > 'Z') && c != '_') { return PAGE_NOTFOUND; } } return PrintTemplate(sPage, sPageRet); } } return PAGE_NOTFOUND; } void CWebSock::PrintErrorPage(const CString& sMessage) { m_Template.SetFile("Error.tmpl"); m_Template["Action"] = "error"; m_Template["Title"] = "Error"; m_Template["Error"] = sMessage; } static inline bool compareLastActive(const std::pair &first, const std::pair &second) { return first.second->GetLastActive() < second.second->GetLastActive(); } std::shared_ptr CWebSock::GetSession() { if (m_spSession) { return m_spSession; } const CString sCookieSessionId = GetRequestCookie("SessionId"); std::shared_ptr *pSession = Sessions.m_mspSessions.GetItem(sCookieSessionId); if (pSession != NULL) { // Refresh the timeout Sessions.m_mspSessions.AddItem((*pSession)->GetId(), *pSession); (*pSession)->UpdateLastActive(); m_spSession = *pSession; DEBUG("Found existing session from cookie: [" + sCookieSessionId + "] IsLoggedIn(" + CString((*pSession)->IsLoggedIn() ? "true, " + ((*pSession)->GetUser()->GetUserName()) : "false") + ")"); return *pSession; } if (Sessions.m_mIPSessions.count(GetRemoteIP()) > m_uiMaxSessions) { pair p = Sessions.m_mIPSessions.equal_range(GetRemoteIP()); mIPSessionsIterator it = std::min_element(p.first, p.second, compareLastActive); DEBUG("Remote IP: " << GetRemoteIP() << "; discarding session [" << it->second->GetId() << "]"); Sessions.m_mspSessions.RemItem(it->second->GetId()); } CString sSessionID; do { sSessionID = CString::RandomString(32); sSessionID += ":" + GetRemoteIP() + ":" + CString(GetRemotePort()); sSessionID += ":" + GetLocalIP() + ":" + CString(GetLocalPort()); sSessionID += ":" + CString(time(NULL)); sSessionID = sSessionID.SHA256(); DEBUG("Auto generated session: [" + sSessionID + "]"); } while (Sessions.m_mspSessions.HasItem(sSessionID)); std::shared_ptr spSession(new CWebSession(sSessionID, GetRemoteIP())); Sessions.m_mspSessions.AddItem(spSession->GetId(), spSession); m_spSession = spSession; return spSession; } CString CWebSock::GetCSRFCheck() { std::shared_ptr pSession = GetSession(); return pSession->GetId().MD5(); } bool CWebSock::OnLogin(const CString& sUser, const CString& sPass, bool bBasic) { DEBUG("=================== CWebSock::OnLogin(), basic auth? " << std::boolalpha << bBasic); m_spAuth = std::make_shared(this, sUser, sPass, bBasic); // Some authentication module could need some time, block this socket // until then. CWebAuth will UnPauseRead(). PauseRead(); CZNC::Get().AuthUser(m_spAuth); // If CWebAuth already set this, don't change it. return IsLoggedIn(); } Csock* CWebSock::GetSockObj(const CString& sHost, unsigned short uPort) { // All listening is done by CListener, thus CWebSock should never have // to listen, but since GetSockObj() is pure virtual... DEBUG("CWebSock::GetSockObj() called - this should never happen!"); return NULL; } CString CWebSock::GetSkinName() { std::shared_ptr spSession = GetSession(); if (spSession->IsLoggedIn() && !spSession->GetUser()->GetSkinName().empty()) { return spSession->GetUser()->GetSkinName(); } return CZNC::Get().GetSkinName(); } znc-1.6.3/src/Modules.cpp0000644000175000017500000014014112663147131015447 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include #include using std::map; using std::set; using std::vector; bool ZNC_NO_NEED_TO_DO_ANYTHING_ON_MODULE_CALL_EXITER; #ifndef RTLD_LOCAL # define RTLD_LOCAL 0 # warning "your crap box doesnt define RTLD_LOCAL !?" #endif #define MODUNLOADCHK(func) \ for (unsigned int a = 0; a < size(); a++) { \ try { \ CModule* pMod = (CModule *) (*this)[a]; \ CClient* pOldClient = pMod->GetClient(); \ pMod->SetClient(m_pClient); \ CUser* pOldUser = NULL; \ if (m_pUser) { \ pOldUser = pMod->GetUser(); \ pMod->SetUser(m_pUser); \ } \ CIRCNetwork* pNetwork = NULL; \ if (m_pNetwork) { \ pNetwork = pMod->GetNetwork(); \ pMod->SetNetwork(m_pNetwork); \ } \ pMod->func; \ if (m_pUser) \ pMod->SetUser(pOldUser); \ if (m_pNetwork) \ pMod->SetNetwork(pNetwork); \ pMod->SetClient(pOldClient); \ } catch (const CModule::EModException& e) { \ if (e == CModule::UNLOAD) { \ UnloadModule((*this)[a]->GetModName()); \ } \ } \ } #define MODHALTCHK(func) \ bool bHaltCore = false; \ for (unsigned int a = 0; a < size(); a++) { \ try { \ CModule* pMod = (CModule*) (*this)[a]; \ CModule::EModRet e = CModule::CONTINUE; \ CClient* pOldClient = pMod->GetClient(); \ pMod->SetClient(m_pClient); \ CUser* pOldUser = NULL; \ if (m_pUser) { \ pOldUser = pMod->GetUser(); \ pMod->SetUser(m_pUser); \ } \ CIRCNetwork* pNetwork = NULL; \ if (m_pNetwork) { \ pNetwork = pMod->GetNetwork(); \ pMod->SetNetwork(m_pNetwork); \ } \ e = pMod->func; \ if (m_pUser) \ pMod->SetUser(pOldUser); \ if (m_pNetwork) \ pMod->SetNetwork(pNetwork); \ pMod->SetClient(pOldClient); \ if (e == CModule::HALTMODS) { \ break; \ } else if (e == CModule::HALTCORE) { \ bHaltCore = true; \ } else if (e == CModule::HALT) { \ bHaltCore = true; \ break; \ } \ } catch (const CModule::EModException& e) { \ if (e == CModule::UNLOAD) { \ UnloadModule((*this)[a]->GetModName()); \ } \ } \ } \ return bHaltCore; /////////////////// Timer /////////////////// CTimer::CTimer(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CCron() { SetName(sLabel); m_sDescription = sDescription; m_pModule = pModule; if (uCycles) { StartMaxCycles(uInterval, uCycles); } else { Start(uInterval); } } CTimer::~CTimer() { m_pModule->UnlinkTimer(this); } void CTimer::SetModule(CModule* p) { m_pModule = p; } void CTimer::SetDescription(const CString& s) { m_sDescription = s; } CModule* CTimer::GetModule() const { return m_pModule; } const CString& CTimer::GetDescription() const { return m_sDescription; } /////////////////// !Timer /////////////////// CModule::CModule(ModHandle pDLL, CUser* pUser, CIRCNetwork* pNetwork, const CString& sModName, const CString& sDataDir) { m_pDLL = pDLL; m_pManager = &(CZNC::Get().GetManager());; m_pUser = pUser; m_pNetwork = pNetwork; m_pClient = NULL; m_sModName = sModName; m_sDataDir = sDataDir; if (m_pNetwork) { m_sSavePath = m_pNetwork->GetNetworkPath() + "/moddata/" + m_sModName; } else if (m_pUser) { m_sSavePath = m_pUser->GetUserPath() + "/moddata/" + m_sModName; } else { m_sSavePath = CZNC::Get().GetZNCPath() + "/moddata/" + m_sModName; } LoadRegistry(); } CModule::~CModule() { while (!m_sTimers.empty()) { RemTimer(*m_sTimers.begin()); } while (!m_sSockets.empty()) { RemSocket(*m_sSockets.begin()); } SaveRegistry(); #ifdef HAVE_PTHREAD CancelJobs(m_sJobs); #endif } void CModule::SetUser(CUser* pUser) { m_pUser = pUser; } void CModule::SetNetwork(CIRCNetwork* pNetwork) { m_pNetwork = pNetwork; } void CModule::SetClient(CClient* pClient) { m_pClient = pClient; } CString CModule::ExpandString(const CString& sStr) const { CString sRet; return ExpandString(sStr, sRet); } CString& CModule::ExpandString(const CString& sStr, CString& sRet) const { sRet = sStr; if (m_pNetwork) { return m_pNetwork->ExpandString(sRet, sRet); } if (m_pUser) { return m_pUser->ExpandString(sRet, sRet); } return sRet; } const CString& CModule::GetSavePath() const { if (!CFile::Exists(m_sSavePath)) { CDir::MakeDir(m_sSavePath); } return m_sSavePath; } CString CModule::GetWebPath() { switch (m_eType) { case CModInfo::GlobalModule: return "/mods/global/" + GetModName() + "/"; case CModInfo::UserModule: return "/mods/user/" + GetModName() + "/"; case CModInfo::NetworkModule: return "/mods/network/" + m_pNetwork->GetName() + "/" + GetModName() + "/"; default: return "/"; } } CString CModule::GetWebFilesPath() { switch (m_eType) { case CModInfo::GlobalModule: return "/modfiles/global/" + GetModName() + "/"; case CModInfo::UserModule: return "/modfiles/user/" + GetModName() + "/"; case CModInfo::NetworkModule: return "/modfiles/network/" + m_pNetwork->GetName() + "/" + GetModName() + "/"; default: return "/"; } } bool CModule::LoadRegistry() { //CString sPrefix = (m_pUser) ? m_pUser->GetUserName() : ".global"; return (m_mssRegistry.ReadFromDisk(GetSavePath() + "/.registry") == MCString::MCS_SUCCESS); } bool CModule::SaveRegistry() const { //CString sPrefix = (m_pUser) ? m_pUser->GetUserName() : ".global"; return (m_mssRegistry.WriteToDisk(GetSavePath() + "/.registry", 0600) == MCString::MCS_SUCCESS); } bool CModule::MoveRegistry(const CString& sPath) { if (m_sSavePath != sPath) { CFile fOldNVFile = CFile(m_sSavePath + "/.registry"); if (!fOldNVFile.Exists()) { return false; } if (!CFile::Exists(sPath) && !CDir::MakeDir(sPath)) { return false; } fOldNVFile.Copy(sPath + "/.registry"); m_sSavePath = sPath; return true; } return false; } bool CModule::SetNV(const CString & sName, const CString & sValue, bool bWriteToDisk) { m_mssRegistry[sName] = sValue; if (bWriteToDisk) { return SaveRegistry(); } return true; } CString CModule::GetNV(const CString & sName) const { MCString::const_iterator it = m_mssRegistry.find(sName); if (it != m_mssRegistry.end()) { return it->second; } return ""; } bool CModule::DelNV(const CString & sName, bool bWriteToDisk) { MCString::iterator it = m_mssRegistry.find(sName); if (it != m_mssRegistry.end()) { m_mssRegistry.erase(it); } else { return false; } if (bWriteToDisk) { return SaveRegistry(); } return true; } bool CModule::ClearNV(bool bWriteToDisk) { m_mssRegistry.clear(); if (bWriteToDisk) { return SaveRegistry(); } return true; } bool CModule::AddTimer(CTimer* pTimer) { if ((!pTimer) || (!pTimer->GetName().empty() && FindTimer(pTimer->GetName()))) { delete pTimer; return false; } if (!m_sTimers.insert(pTimer).second) // Was already added return true; m_pManager->AddCron(pTimer); return true; } bool CModule::AddTimer(FPTimer_t pFBCallback, const CString& sLabel, u_int uInterval, u_int uCycles, const CString& sDescription) { CFPTimer *pTimer = new CFPTimer(this, uInterval, uCycles, sLabel, sDescription); pTimer->SetFPCallback(pFBCallback); return AddTimer(pTimer); } bool CModule::RemTimer(CTimer* pTimer) { if (m_sTimers.erase(pTimer) == 0) return false; m_pManager->DelCronByAddr(pTimer); return true; } bool CModule::RemTimer(const CString& sLabel) { CTimer *pTimer = FindTimer(sLabel); if (!pTimer) return false; return RemTimer(pTimer); } bool CModule::UnlinkTimer(CTimer* pTimer) { set::iterator it; for (it = m_sTimers.begin(); it != m_sTimers.end(); ++it) { if (pTimer == *it) { m_sTimers.erase(it); return true; } } return false; } CTimer* CModule::FindTimer(const CString& sLabel) { if (sLabel.empty()) { return NULL; } set::iterator it; for (it = m_sTimers.begin(); it != m_sTimers.end(); ++it) { CTimer* pTimer = *it; if (pTimer->GetName().Equals(sLabel)) { return pTimer; } } return NULL; } void CModule::ListTimers() { if (m_sTimers.empty()) { PutModule("You have no timers running."); return; } CTable Table; Table.AddColumn("Name"); Table.AddColumn("Secs"); Table.AddColumn("Cycles"); Table.AddColumn("Description"); set::iterator it; for (it = m_sTimers.begin(); it != m_sTimers.end(); ++it) { CTimer* pTimer = *it; unsigned int uCycles = pTimer->GetCyclesLeft(); timeval Interval = pTimer->GetInterval(); Table.AddRow(); Table.SetCell("Name", pTimer->GetName()); Table.SetCell("Secs", CString(Interval.tv_sec) + "seconds" + (Interval.tv_usec ? " " + CString(Interval.tv_usec) + " microseconds" : "")); Table.SetCell("Cycles", ((uCycles) ? CString(uCycles) : "INF")); Table.SetCell("Description", pTimer->GetDescription()); } PutModule(Table); } bool CModule::AddSocket(CSocket* pSocket) { if (!pSocket) { return false; } m_sSockets.insert(pSocket); return true; } bool CModule::RemSocket(CSocket* pSocket) { set::iterator it; for (it = m_sSockets.begin(); it != m_sSockets.end(); ++it) { if (*it == pSocket) { m_sSockets.erase(it); m_pManager->DelSockByAddr(pSocket); return true; } } return false; } bool CModule::RemSocket(const CString& sSockName) { set::iterator it; for (it = m_sSockets.begin(); it != m_sSockets.end(); ++it) { CSocket* pSocket = *it; if (pSocket->GetSockName().Equals(sSockName)) { m_sSockets.erase(it); m_pManager->DelSockByAddr(pSocket); return true; } } return false; } bool CModule::UnlinkSocket(CSocket* pSocket) { set::iterator it; for (it = m_sSockets.begin(); it != m_sSockets.end(); ++it) { if (pSocket == *it) { m_sSockets.erase(it); return true; } } return false; } CSocket* CModule::FindSocket(const CString& sSockName) { set::iterator it; for (it = m_sSockets.begin(); it != m_sSockets.end(); ++it) { CSocket* pSocket = *it; if (pSocket->GetSockName().Equals(sSockName)) { return pSocket; } } return NULL; } void CModule::ListSockets() { if (m_sSockets.empty()) { PutModule("You have no open sockets."); return; } CTable Table; Table.AddColumn("Name"); Table.AddColumn("State"); Table.AddColumn("LocalPort"); Table.AddColumn("SSL"); Table.AddColumn("RemoteIP"); Table.AddColumn("RemotePort"); set::iterator it; for (it = m_sSockets.begin(); it != m_sSockets.end(); ++it) { CSocket* pSocket = *it; Table.AddRow(); Table.SetCell("Name", pSocket->GetSockName()); if (pSocket->GetType() == CSocket::LISTENER) { Table.SetCell("State", "Listening"); } else { Table.SetCell("State", (pSocket->IsConnected() ? "Connected" : "")); } Table.SetCell("LocalPort", CString(pSocket->GetLocalPort())); Table.SetCell("SSL", (pSocket->GetSSL() ? "yes" : "no")); Table.SetCell("RemoteIP", pSocket->GetRemoteIP()); Table.SetCell("RemotePort", (pSocket->GetRemotePort()) ? CString(pSocket->GetRemotePort()) : CString("")); } PutModule(Table); } #ifdef HAVE_PTHREAD CModuleJob::~CModuleJob() { m_pModule->UnlinkJob(this); } void CModule::AddJob(CModuleJob *pJob) { CThreadPool::Get().addJob(pJob); m_sJobs.insert(pJob); } void CModule::CancelJob(CModuleJob *pJob) { if (pJob == NULL) return; // Destructor calls UnlinkJob and removes the job from m_sJobs CThreadPool::Get().cancelJob(pJob); } bool CModule::CancelJob(const CString& sJobName) { set::iterator it; for (it = m_sJobs.begin(); it != m_sJobs.end(); ++it) { if ((*it)->GetName().Equals(sJobName)) { CancelJob(*it); return true; } } return false; } void CModule::CancelJobs(const std::set& sJobs) { set sPlainJobs(sJobs.begin(), sJobs.end()); // Destructor calls UnlinkJob and removes the jobs from m_sJobs CThreadPool::Get().cancelJobs(sPlainJobs); } bool CModule::UnlinkJob(CModuleJob *pJob) { return 0 != m_sJobs.erase(pJob); } #endif bool CModule::AddCommand(const CModCommand& Command) { if (Command.GetFunction() == NULL) return false; if (Command.GetCommand().find(' ') != CString::npos) return false; if (FindCommand(Command.GetCommand()) != NULL) return false; m_mCommands[Command.GetCommand()] = Command; return true; } bool CModule::AddCommand(const CString& sCmd, CModCommand::ModCmdFunc func, const CString& sArgs, const CString& sDesc) { CModCommand cmd(sCmd, this, func, sArgs, sDesc); return AddCommand(cmd); } bool CModule::AddCommand(const CString& sCmd, const CString& sArgs, const CString& sDesc, std::function func) { CModCommand cmd(sCmd, std::move(func), sArgs, sDesc); return AddCommand(std::move(cmd)); } void CModule::AddHelpCommand() { AddCommand("Help", &CModule::HandleHelpCommand, "search", "Generate this output"); } bool CModule::RemCommand(const CString& sCmd) { return m_mCommands.erase(sCmd) > 0; } const CModCommand* CModule::FindCommand(const CString& sCmd) const { map::const_iterator it; for (it = m_mCommands.begin(); it != m_mCommands.end(); ++it) { if (!it->first.Equals(sCmd)) continue; return &it->second; } return NULL; } bool CModule::HandleCommand(const CString& sLine) { const CString& sCmd = sLine.Token(0); const CModCommand* pCmd = FindCommand(sCmd); if (pCmd) { pCmd->Call(sLine); return true; } OnUnknownModCommand(sLine); return false; } void CModule::HandleHelpCommand(const CString& sLine) { CString sFilter = sLine.Token(1).AsLower(); CString::size_type iFilterLength = sFilter.size(); CTable Table; map::const_iterator it; CModCommand::InitHelp(Table); for (it = m_mCommands.begin(); it != m_mCommands.end(); ++it) { CString sCmd = it->second.GetCommand().AsLower(); if (sFilter.empty() || (sCmd.Equals(sFilter, true, iFilterLength)) || sCmd.WildCmp(sFilter)) { it->second.AddHelp(Table); } } if (Table.empty()) { PutModule("No matches for '" + sFilter + "'"); } else { PutModule(Table); } } CString CModule::GetModNick() const { return ((m_pUser) ? m_pUser->GetStatusPrefix() : "*") + m_sModName; } // Webmods bool CModule::OnWebPreRequest(CWebSock& WebSock, const CString& sPageName) { return false; } bool CModule::OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { return false; } bool CModule::OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { return false; } // !Webmods bool CModule::OnLoad(const CString& sArgs, CString& sMessage) { sMessage = ""; return true; } bool CModule::OnBoot() { return true; } void CModule::OnPreRehash() {} void CModule::OnPostRehash() {} void CModule::OnIRCDisconnected() {} void CModule::OnIRCConnected() {} CModule::EModRet CModule::OnIRCConnecting(CIRCSock *IRCSock) { return CONTINUE; } void CModule::OnIRCConnectionError(CIRCSock *IRCSock) {} CModule::EModRet CModule::OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { return CONTINUE; } CModule::EModRet CModule::OnBroadcast(CString& sMessage) { return CONTINUE; } void CModule::OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { if (pOpNick) OnChanPermission(*pOpNick, Nick, Channel, uMode, bAdded, bNoChange); } void CModule::OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (pOpNick) OnOp(*pOpNick, Nick, Channel, bNoChange); } void CModule::OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (pOpNick) OnDeop(*pOpNick, Nick, Channel, bNoChange); } void CModule::OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (pOpNick) OnVoice(*pOpNick, Nick, Channel, bNoChange); } void CModule::OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { if (pOpNick) OnDevoice(*pOpNick, Nick, Channel, bNoChange); } void CModule::OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { if (pOpNick) OnRawMode(*pOpNick, Channel, sModes, sArgs); } void CModule::OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { if (pOpNick) OnMode(*pOpNick, Channel, uMode, sArg, bAdded, bNoChange); } void CModule::OnChanPermission(const CNick& pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) {} void CModule::OnOp(const CNick& pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnDeop(const CNick& pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnVoice(const CNick& pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnDevoice(const CNick& pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) {} void CModule::OnRawMode(const CNick& pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) {} void CModule::OnMode(const CNick& pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) {} CModule::EModRet CModule::OnRaw(CString& sLine) { return CONTINUE; } CModule::EModRet CModule::OnStatusCommand(CString& sCommand) { return CONTINUE; } void CModule::OnModNotice(const CString& sMessage) {} void CModule::OnModCTCP(const CString& sMessage) {} void CModule::OnModCommand(const CString& sCommand) { HandleCommand(sCommand); } void CModule::OnUnknownModCommand(const CString& sLine) { if (m_mCommands.empty()) // This function is only called if OnModCommand wasn't // overriden, so no false warnings for modules which don't use // CModCommand for command handling. PutModule("This module doesn't implement any commands."); else PutModule("Unknown command!"); } void CModule::OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) {} void CModule::OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) {} void CModule::OnKick(const CNick& Nick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) {} CModule::EModRet CModule::OnJoining(CChan& Channel) { return CONTINUE; } void CModule::OnJoin(const CNick& Nick, CChan& Channel) {} void CModule::OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) {} CModule::EModRet CModule::OnInvite(const CNick& Nick, const CString& sChan) { return CONTINUE; } CModule::EModRet CModule::OnChanBufferStarting(CChan& Chan, CClient& Client) { return CONTINUE; } CModule::EModRet CModule::OnChanBufferEnding(CChan& Chan, CClient& Client) { return CONTINUE; } CModule::EModRet CModule::OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) { return CONTINUE; } CModule::EModRet CModule::OnPrivBufferPlayLine(CClient& Client, CString& sLine) { return CONTINUE; } CModule::EModRet CModule::OnChanBufferPlayLine2(CChan& Chan, CClient& Client, CString& sLine, const timeval& tv) { return OnChanBufferPlayLine(Chan, Client, sLine); } CModule::EModRet CModule::OnPrivBufferPlayLine2(CClient& Client, CString& sLine, const timeval& tv) { return OnPrivBufferPlayLine(Client, sLine); } void CModule::OnClientLogin() {} void CModule::OnClientDisconnect() {} CModule::EModRet CModule::OnUserRaw(CString& sLine) { return CONTINUE; } CModule::EModRet CModule::OnUserCTCPReply(CString& sTarget, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnUserCTCP(CString& sTarget, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnUserAction(CString& sTarget, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnUserMsg(CString& sTarget, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnUserNotice(CString& sTarget, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnUserJoin(CString& sChannel, CString& sKey) { return CONTINUE; } CModule::EModRet CModule::OnUserPart(CString& sChannel, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnUserTopic(CString& sChannel, CString& sTopic) { return CONTINUE; } CModule::EModRet CModule::OnUserTopicRequest(CString& sChannel) { return CONTINUE; } CModule::EModRet CModule::OnCTCPReply(CNick& Nick, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnPrivCTCP(CNick& Nick, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnPrivAction(CNick& Nick, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnPrivMsg(CNick& Nick, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnPrivNotice(CNick& Nick, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { return CONTINUE; } CModule::EModRet CModule::OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { return CONTINUE; } CModule::EModRet CModule::OnTimerAutoJoin(CChan& Channel) { return CONTINUE; } CModule::EModRet CModule::OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) { return CONTINUE; } CModule::EModRet CModule::OnDeleteNetwork(CIRCNetwork& Network) { return CONTINUE; } CModule::EModRet CModule::OnSendToClient(CString& sLine, CClient& Client) { return CONTINUE; } CModule::EModRet CModule::OnSendToIRC(CString& sLine) { return CONTINUE; } bool CModule::OnServerCapAvailable(const CString& sCap) { return false; } void CModule::OnServerCapResult(const CString& sCap, bool bSuccess) {} bool CModule::PutIRC(const CString& sLine) { return (m_pNetwork) ? m_pNetwork->PutIRC(sLine) : false; } bool CModule::PutUser(const CString& sLine) { return (m_pNetwork) ? m_pNetwork->PutUser(sLine, m_pClient) : false; } bool CModule::PutStatus(const CString& sLine) { return (m_pNetwork) ? m_pNetwork->PutStatus(sLine, m_pClient) : false; } unsigned int CModule::PutModule(const CTable& table) { if (!m_pUser) return 0; unsigned int idx = 0; CString sLine; while (table.GetLine(idx++, sLine)) PutModule(sLine); return idx - 1; } bool CModule::PutModule(const CString& sLine) { if (m_pClient) { m_pClient->PutModule(GetModName(), sLine); return true; } if (m_pNetwork) { return m_pNetwork->PutModule(GetModName(), sLine); } if (m_pUser) { return m_pUser->PutModule(GetModName(), sLine); } return false; } bool CModule::PutModNotice(const CString& sLine) { if (!m_pUser) return false; if (m_pClient) { m_pClient->PutModNotice(GetModName(), sLine); return true; } return m_pUser->PutModNotice(GetModName(), sLine); } /////////////////// // Global Module // /////////////////// CModule::EModRet CModule::OnAddUser(CUser& User, CString& sErrorRet) { return CONTINUE; } CModule::EModRet CModule::OnDeleteUser(CUser& User) { return CONTINUE; } void CModule::OnClientConnect(CZNCSock* pClient, const CString& sHost, unsigned short uPort) {} CModule::EModRet CModule::OnLoginAttempt(std::shared_ptr Auth) { return CONTINUE; } void CModule::OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) {} CModule::EModRet CModule::OnUnknownUserRaw(CClient* pClient, CString& sLine) { return CONTINUE; } void CModule::OnClientCapLs(CClient* pClient, SCString& ssCaps) {} bool CModule::IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState) { return false; } void CModule::OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState) {} CModule::EModRet CModule::OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) { return CONTINUE; } CModule::EModRet CModule::OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) { return CONTINUE; } CModule::EModRet CModule::OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) { return CONTINUE; } void CModule::OnGetAvailableMods(set& ssMods, CModInfo::EModuleType eType) {} CModules::CModules() { m_pUser = NULL; m_pNetwork = NULL; m_pClient = NULL; } CModules::~CModules() { UnloadAll(); } void CModules::UnloadAll() { while (size()) { CString sRetMsg; CString sModName = back()->GetModName(); UnloadModule(sModName, sRetMsg); } } bool CModules::OnBoot() { for (unsigned int a = 0; a < size(); a++) { try { if (!(*this)[a]->OnBoot()) { return true; } } catch (const CModule::EModException& e) { if (e == CModule::UNLOAD) { UnloadModule((*this)[a]->GetModName()); } } } return false; } bool CModules::OnPreRehash() { MODUNLOADCHK(OnPreRehash()); return false; } bool CModules::OnPostRehash() { MODUNLOADCHK(OnPostRehash()); return false; } bool CModules::OnIRCConnected() { MODUNLOADCHK(OnIRCConnected()); return false; } bool CModules::OnIRCConnecting(CIRCSock *pIRCSock) { MODHALTCHK(OnIRCConnecting(pIRCSock)); } bool CModules::OnIRCConnectionError(CIRCSock *pIRCSock) { MODUNLOADCHK(OnIRCConnectionError(pIRCSock)); return false; } bool CModules::OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { MODHALTCHK(OnIRCRegistration(sPass, sNick, sIdent, sRealName)); } bool CModules::OnBroadcast(CString& sMessage) { MODHALTCHK(OnBroadcast(sMessage)); } bool CModules::OnIRCDisconnected() { MODUNLOADCHK(OnIRCDisconnected()); return false; } bool CModules::OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { MODUNLOADCHK(OnChanPermission2(pOpNick, Nick, Channel, uMode, bAdded, bNoChange)); return false; } bool CModules::OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { MODUNLOADCHK(OnChanPermission(OpNick, Nick, Channel, uMode, bAdded, bNoChange)); return false; } bool CModules::OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnOp2(pOpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnOp(OpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnDeop2(pOpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnDeop(OpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnVoice2(pOpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnVoice(OpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnDevoice2(pOpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { MODUNLOADCHK(OnDevoice(OpNick, Nick, Channel, bNoChange)); return false; } bool CModules::OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { MODUNLOADCHK(OnRawMode2(pOpNick, Channel, sModes, sArgs)); return false; } bool CModules::OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { MODUNLOADCHK(OnRawMode(OpNick, Channel, sModes, sArgs)); return false; } bool CModules::OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { MODUNLOADCHK(OnMode2(pOpNick, Channel, uMode, sArg, bAdded, bNoChange)); return false; } bool CModules::OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { MODUNLOADCHK(OnMode(OpNick, Channel, uMode, sArg, bAdded, bNoChange)); return false; } bool CModules::OnRaw(CString& sLine) { MODHALTCHK(OnRaw(sLine)); } bool CModules::OnClientLogin() { MODUNLOADCHK(OnClientLogin()); return false; } bool CModules::OnClientDisconnect() { MODUNLOADCHK(OnClientDisconnect()); return false; } bool CModules::OnUserRaw(CString& sLine) { MODHALTCHK(OnUserRaw(sLine)); } bool CModules::OnUserCTCPReply(CString& sTarget, CString& sMessage) { MODHALTCHK(OnUserCTCPReply(sTarget, sMessage)); } bool CModules::OnUserCTCP(CString& sTarget, CString& sMessage) { MODHALTCHK(OnUserCTCP(sTarget, sMessage)); } bool CModules::OnUserAction(CString& sTarget, CString& sMessage) { MODHALTCHK(OnUserAction(sTarget, sMessage)); } bool CModules::OnUserMsg(CString& sTarget, CString& sMessage) { MODHALTCHK(OnUserMsg(sTarget, sMessage)); } bool CModules::OnUserNotice(CString& sTarget, CString& sMessage) { MODHALTCHK(OnUserNotice(sTarget, sMessage)); } bool CModules::OnUserJoin(CString& sChannel, CString& sKey) { MODHALTCHK(OnUserJoin(sChannel, sKey)); } bool CModules::OnUserPart(CString& sChannel, CString& sMessage) { MODHALTCHK(OnUserPart(sChannel, sMessage)); } bool CModules::OnUserTopic(CString& sChannel, CString& sTopic) { MODHALTCHK(OnUserTopic(sChannel, sTopic)); } bool CModules::OnUserTopicRequest(CString& sChannel) { MODHALTCHK(OnUserTopicRequest(sChannel)); } bool CModules::OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { MODUNLOADCHK(OnQuit(Nick, sMessage, vChans)); return false; } bool CModules::OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) { MODUNLOADCHK(OnNick(Nick, sNewNick, vChans)); return false; } bool CModules::OnKick(const CNick& Nick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { MODUNLOADCHK(OnKick(Nick, sKickedNick, Channel, sMessage)); return false; } bool CModules::OnJoining(CChan& Channel) { MODHALTCHK(OnJoining(Channel)); } bool CModules::OnJoin(const CNick& Nick, CChan& Channel) { MODUNLOADCHK(OnJoin(Nick, Channel)); return false; } bool CModules::OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { MODUNLOADCHK(OnPart(Nick, Channel, sMessage)); return false; } bool CModules::OnInvite(const CNick& Nick, const CString& sChan) { MODHALTCHK(OnInvite(Nick, sChan)); } bool CModules::OnChanBufferStarting(CChan& Chan, CClient& Client) { MODHALTCHK(OnChanBufferStarting(Chan, Client)); } bool CModules::OnChanBufferEnding(CChan& Chan, CClient& Client) { MODHALTCHK(OnChanBufferEnding(Chan, Client)); } bool CModules::OnChanBufferPlayLine2(CChan& Chan, CClient& Client, CString& sLine, const timeval& tv) { MODHALTCHK(OnChanBufferPlayLine2(Chan, Client, sLine, tv)); } bool CModules::OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) { MODHALTCHK(OnChanBufferPlayLine(Chan, Client, sLine)); } bool CModules::OnPrivBufferPlayLine2(CClient& Client, CString& sLine, const timeval& tv) { MODHALTCHK(OnPrivBufferPlayLine2(Client, sLine, tv)); } bool CModules::OnPrivBufferPlayLine(CClient& Client, CString& sLine) { MODHALTCHK(OnPrivBufferPlayLine(Client, sLine)); } bool CModules::OnCTCPReply(CNick& Nick, CString& sMessage) { MODHALTCHK(OnCTCPReply(Nick, sMessage)); } bool CModules::OnPrivCTCP(CNick& Nick, CString& sMessage) { MODHALTCHK(OnPrivCTCP(Nick, sMessage)); } bool CModules::OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { MODHALTCHK(OnChanCTCP(Nick, Channel, sMessage)); } bool CModules::OnPrivAction(CNick& Nick, CString& sMessage) { MODHALTCHK(OnPrivAction(Nick, sMessage)); } bool CModules::OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { MODHALTCHK(OnChanAction(Nick, Channel, sMessage)); } bool CModules::OnPrivMsg(CNick& Nick, CString& sMessage) { MODHALTCHK(OnPrivMsg(Nick, sMessage)); } bool CModules::OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { MODHALTCHK(OnChanMsg(Nick, Channel, sMessage)); } bool CModules::OnPrivNotice(CNick& Nick, CString& sMessage) { MODHALTCHK(OnPrivNotice(Nick, sMessage)); } bool CModules::OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { MODHALTCHK(OnChanNotice(Nick, Channel, sMessage)); } bool CModules::OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { MODHALTCHK(OnTopic(Nick, Channel, sTopic)); } bool CModules::OnTimerAutoJoin(CChan& Channel) { MODHALTCHK(OnTimerAutoJoin(Channel)); } bool CModules::OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) { MODHALTCHK(OnAddNetwork(Network, sErrorRet)); } bool CModules::OnDeleteNetwork(CIRCNetwork& Network) { MODHALTCHK(OnDeleteNetwork(Network)); } bool CModules::OnSendToClient(CString& sLine, CClient& Client) { MODHALTCHK(OnSendToClient(sLine, Client)); } bool CModules::OnSendToIRC(CString& sLine) { MODHALTCHK(OnSendToIRC(sLine)); } bool CModules::OnStatusCommand(CString& sCommand) { MODHALTCHK(OnStatusCommand(sCommand)); } bool CModules::OnModCommand(const CString& sCommand) { MODUNLOADCHK(OnModCommand(sCommand)); return false; } bool CModules::OnModNotice(const CString& sMessage) { MODUNLOADCHK(OnModNotice(sMessage)); return false; } bool CModules::OnModCTCP(const CString& sMessage) { MODUNLOADCHK(OnModCTCP(sMessage)); return false; } // Why MODHALTCHK works only with functions returning EModRet ? :( bool CModules::OnServerCapAvailable(const CString& sCap) { bool bResult = false; for (unsigned int a = 0; a < size(); ++a) { try { CModule* pMod = (*this)[a]; CClient* pOldClient = pMod->GetClient(); pMod->SetClient(m_pClient); if (m_pUser) { CUser* pOldUser = pMod->GetUser(); pMod->SetUser(m_pUser); bResult |= pMod->OnServerCapAvailable(sCap); pMod->SetUser(pOldUser); } else { // WTF? Is that possible? bResult |= pMod->OnServerCapAvailable(sCap); } pMod->SetClient(pOldClient); } catch (const CModule::EModException& e) { if (CModule::UNLOAD == e) { UnloadModule((*this)[a]->GetModName()); } } } return bResult; } bool CModules::OnServerCapResult(const CString& sCap, bool bSuccess) { MODUNLOADCHK(OnServerCapResult(sCap, bSuccess)); return false; } //////////////////// // Global Modules // //////////////////// bool CModules::OnAddUser(CUser& User, CString& sErrorRet) { MODHALTCHK(OnAddUser(User, sErrorRet)); } bool CModules::OnDeleteUser(CUser& User) { MODHALTCHK(OnDeleteUser(User)); } bool CModules::OnClientConnect(CZNCSock* pClient, const CString& sHost, unsigned short uPort) { MODUNLOADCHK(OnClientConnect(pClient, sHost, uPort)); return false; } bool CModules::OnLoginAttempt(std::shared_ptr Auth) { MODHALTCHK(OnLoginAttempt(Auth)); } bool CModules::OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) { MODUNLOADCHK(OnFailedLogin(sUsername, sRemoteIP)); return false; } bool CModules::OnUnknownUserRaw(CClient* pClient, CString& sLine) { MODHALTCHK(OnUnknownUserRaw(pClient, sLine)); } bool CModules::OnClientCapLs(CClient* pClient, SCString& ssCaps) { MODUNLOADCHK(OnClientCapLs(pClient, ssCaps)); return false; } // Maybe create new macro for this? bool CModules::IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState) { bool bResult = false; for (unsigned int a = 0; a < size(); ++a) { try { CModule* pMod = (CModule*) (*this)[a]; CClient* pOldClient = pMod->GetClient(); pMod->SetClient(m_pClient); if (m_pUser) { CUser* pOldUser = pMod->GetUser(); pMod->SetUser(m_pUser); bResult |= pMod->IsClientCapSupported(pClient, sCap, bState); pMod->SetUser(pOldUser); } else { // WTF? Is that possible? bResult |= pMod->IsClientCapSupported(pClient, sCap, bState); } pMod->SetClient(pOldClient); } catch (const CModule::EModException& e) { if (CModule::UNLOAD == e) { UnloadModule((*this)[a]->GetModName()); } } } return bResult; } bool CModules::OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState) { MODUNLOADCHK(OnClientCapRequest(pClient, sCap, bState)); return false; } bool CModules::OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) { MODHALTCHK(OnModuleLoading(sModName, sArgs, eType, bSuccess, sRetMsg)); } bool CModules::OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) { MODHALTCHK(OnModuleUnloading(pModule, bSuccess, sRetMsg)); } bool CModules::OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) { MODHALTCHK(OnGetModInfo(ModInfo, sModule, bSuccess, sRetMsg)); } bool CModules::OnGetAvailableMods(set& ssMods, CModInfo::EModuleType eType) { MODUNLOADCHK(OnGetAvailableMods(ssMods, eType)); return false; } CModule* CModules::FindModule(const CString& sModule) const { for (unsigned int a = 0; a < size(); a++) { if (sModule.Equals((*this)[a]->GetModName())) { return (*this)[a]; } } return NULL; } bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CModInfo::EModuleType eType, CUser* pUser, CIRCNetwork *pNetwork, CString& sRetMsg) { sRetMsg = ""; if (FindModule(sModule) != NULL) { sRetMsg = "Module [" + sModule + "] already loaded."; return false; } bool bSuccess; bool bHandled = false; _GLOBALMODULECALL(OnModuleLoading(sModule, sArgs, eType, bSuccess, sRetMsg), pUser, pNetwork, NULL, &bHandled); if (bHandled) return bSuccess; CString sModPath, sDataPath; bool bVersionMismatch; CModInfo Info; if (!FindModPath(sModule, sModPath, sDataPath)) { sRetMsg = "Unable to find module [" + sModule + "]"; return false; } ModHandle p = OpenModule(sModule, sModPath, bVersionMismatch, Info, sRetMsg); if (!p) return false; if (bVersionMismatch) { dlclose(p); sRetMsg = "Version mismatch, recompile this module."; return false; } if (!Info.SupportsType(eType)) { dlclose(p); sRetMsg = "Module [" + sModule + "] does not support module type [" + CModInfo::ModuleTypeToString(eType) + "]."; return false; } if (!pUser && eType == CModInfo::UserModule) { dlclose(p); sRetMsg = "Module [" + sModule + "] requires a user."; return false; } if (!pNetwork && eType == CModInfo::NetworkModule) { dlclose(p); sRetMsg = "Module [" + sModule + "] requires a network."; return false; } CModule* pModule = Info.GetLoader()(p, pUser, pNetwork, sModule, sDataPath); pModule->SetDescription(Info.GetDescription()); pModule->SetType(eType); pModule->SetArgs(sArgs); pModule->SetModPath(CDir::ChangeDir(CZNC::Get().GetCurPath(), sModPath)); push_back(pModule); bool bLoaded; try { bLoaded = pModule->OnLoad(sArgs, sRetMsg); } catch (const CModule::EModException&) { bLoaded = false; sRetMsg = "Caught an exception"; } if (!bLoaded) { UnloadModule(sModule, sModPath); if (!sRetMsg.empty()) sRetMsg = "Module [" + sModule + "] aborted: " + sRetMsg; else sRetMsg = "Module [" + sModule + "] aborted."; return false; } if (!sRetMsg.empty()) { sRetMsg += " "; } sRetMsg += "[" + sModPath + "]"; return true; } bool CModules::UnloadModule(const CString& sModule) { CString s; return UnloadModule(sModule, s); } bool CModules::UnloadModule(const CString& sModule, CString& sRetMsg) { CString sMod = sModule; // Make a copy incase the reference passed in is from CModule::GetModName() CModule* pModule = FindModule(sMod); sRetMsg = ""; if (!pModule) { sRetMsg = "Module [" + sMod + "] not loaded."; return false; } bool bSuccess; bool bHandled = false; _GLOBALMODULECALL(OnModuleUnloading(pModule, bSuccess, sRetMsg), pModule->GetUser(), pModule->GetNetwork(), NULL, &bHandled); if (bHandled) return bSuccess; ModHandle p = pModule->GetDLL(); if (p) { delete pModule; for (iterator it = begin(); it != end(); ++it) { if (*it == pModule) { erase(it); break; } } dlclose(p); sRetMsg = "Module [" + sMod + "] unloaded"; return true; } sRetMsg = "Unable to unload module [" + sMod + "]"; return false; } bool CModules::ReloadModule(const CString& sModule, const CString& sArgs, CUser* pUser, CIRCNetwork* pNetwork, CString& sRetMsg) { CString sMod = sModule; // Make a copy incase the reference passed in is from CModule::GetModName() CModule *pModule = FindModule(sMod); if (!pModule) { sRetMsg = "Module [" + sMod + "] not loaded"; return false; } CModInfo::EModuleType eType = pModule->GetType(); pModule = NULL; sRetMsg = ""; if (!UnloadModule(sMod, sRetMsg)) { return false; } if (!LoadModule(sMod, sArgs, eType, pUser, pNetwork, sRetMsg)) { return false; } sRetMsg = "Reloaded module [" + sMod + "]"; return true; } bool CModules::GetModInfo(CModInfo& ModInfo, const CString& sModule, CString& sRetMsg) { CString sModPath, sTmp; bool bSuccess; bool bHandled = false; GLOBALMODULECALL(OnGetModInfo(ModInfo, sModule, bSuccess, sRetMsg), &bHandled); if (bHandled) return bSuccess; if (!FindModPath(sModule, sModPath, sTmp)) { sRetMsg = "Unable to find module [" + sModule + "]"; return false; } return GetModPathInfo(ModInfo, sModule, sModPath, sRetMsg); } bool CModules::GetModPathInfo(CModInfo& ModInfo, const CString& sModule, const CString& sModPath, CString& sRetMsg) { bool bVersionMismatch; ModHandle p = OpenModule(sModule, sModPath, bVersionMismatch, ModInfo, sRetMsg); if (!p) return false; ModInfo.SetName(sModule); ModInfo.SetPath(sModPath); if (bVersionMismatch) { ModInfo.SetDescription("--- Version mismatch, recompile this module. ---"); } dlclose(p); return true; } void CModules::GetAvailableMods(set& ssMods, CModInfo::EModuleType eType) { ssMods.clear(); unsigned int a = 0; CDir Dir; ModDirList dirs = GetModDirs(); while (!dirs.empty()) { Dir.FillByWildcard(dirs.front().first, "*.so"); dirs.pop(); for (a = 0; a < Dir.size(); a++) { CFile& File = *Dir[a]; CString sName = File.GetShortName(); CString sPath = File.GetLongName(); CModInfo ModInfo; sName.RightChomp(3); CString sIgnoreRetMsg; if (GetModPathInfo(ModInfo, sName, sPath, sIgnoreRetMsg)) { if (ModInfo.SupportsType(eType)) { ssMods.insert(ModInfo); } } } } GLOBALMODULECALL(OnGetAvailableMods(ssMods, eType), NOTHING); } void CModules::GetDefaultMods(set& ssMods, CModInfo::EModuleType eType) { GetAvailableMods(ssMods, eType); const map ns = { { "chansaver", CModInfo::UserModule }, { "controlpanel", CModInfo::UserModule }, { "simple_away", CModInfo::NetworkModule }, { "webadmin", CModInfo::GlobalModule } }; auto it = ssMods.begin(); while (it != ssMods.end()) { auto it2 = ns.find(it->GetName()); if (it2 != ns.end() && it2->second == eType) { ++it; } else { it = ssMods.erase(it); } } } bool CModules::FindModPath(const CString& sModule, CString& sModPath, CString& sDataPath) { CString sMod = sModule; CString sDir = sMod; if (sModule.find(".") == CString::npos) sMod += ".so"; ModDirList dirs = GetModDirs(); while (!dirs.empty()) { sModPath = dirs.front().first + sMod; sDataPath = dirs.front().second; dirs.pop(); if (CFile::Exists(sModPath)) { sDataPath += sDir; return true; } } return false; } CModules::ModDirList CModules::GetModDirs() { ModDirList ret; CString sDir; #ifdef RUN_FROM_SOURCE // ./modules sDir = CZNC::Get().GetCurPath() + "/modules/"; ret.push(std::make_pair(sDir, sDir + "data/")); #endif // ~/.znc/modules sDir = CZNC::Get().GetModPath() + "/"; ret.push(std::make_pair(sDir, sDir)); // and (/lib/znc) ret.push(std::make_pair(_MODDIR_ + CString("/"), _DATADIR_ + CString("/modules/"))); return ret; } ModHandle CModules::OpenModule(const CString& sModule, const CString& sModPath, bool &bVersionMismatch, CModInfo& Info, CString& sRetMsg) { // Some sane defaults in case anything errors out below bVersionMismatch = false; sRetMsg.clear(); for (unsigned int a = 0; a < sModule.length(); a++) { if (((sModule[a] < '0') || (sModule[a] > '9')) && ((sModule[a] < 'a') || (sModule[a] > 'z')) && ((sModule[a] < 'A') || (sModule[a] > 'Z')) && (sModule[a] != '_')) { sRetMsg = "Module names can only contain letters, numbers and underscores, [" + sModule + "] is invalid."; return NULL; } } // The second argument to dlopen() has a long history. It seems clear // that (despite what the man page says) we must include either of // RTLD_NOW and RTLD_LAZY and either of RTLD_GLOBAL and RTLD_LOCAL. // // RTLD_NOW vs. RTLD_LAZY: We use RTLD_NOW to avoid ZNC dying due to // failed symbol lookups later on. Doesn't really seem to have much of a // performance impact. // // RTLD_GLOBAL vs. RTLD_LOCAL: If perl is loaded with RTLD_LOCAL and later on // loads own modules (which it apparently does with RTLD_LAZY), we will die in a // name lookup since one of perl's symbols isn't found. That's worse // than any theoretical issue with RTLD_GLOBAL. ModHandle p = dlopen((sModPath).c_str(), RTLD_NOW | RTLD_GLOBAL); if (!p) { // dlerror() returns pointer to static buffer, which may be overwritten very soon with another dl call // also it may just return null. const char* cDlError = dlerror(); CString sDlError = cDlError ? cDlError : "Unknown error"; sRetMsg = "Unable to open module [" + sModule + "] [" + sDlError + "]"; return NULL; } typedef bool (*InfoFP)(double, CModInfo&); InfoFP ZNCModInfo = (InfoFP) dlsym(p, "ZNCModInfo"); if (!ZNCModInfo) { dlclose(p); sRetMsg = "Could not find ZNCModInfo() in module [" + sModule + "]"; return NULL; } if (ZNCModInfo(CModule::GetCoreVersion(), Info)) { sRetMsg = ""; bVersionMismatch = false; } else { bVersionMismatch = true; sRetMsg = "Version mismatch, recompile this module."; } return p; } CModCommand::CModCommand() : m_sCmd(), m_pFunc(NULL), m_sArgs(), m_sDesc() { } CModCommand::CModCommand(const CString& sCmd, CModule* pMod, ModCmdFunc func, const CString& sArgs, const CString& sDesc) : m_sCmd(sCmd), m_pFunc([pMod, func](const CString& sLine) { (pMod->*func)(sLine); }), m_sArgs(sArgs), m_sDesc(sDesc) {} CModCommand::CModCommand(const CString& sCmd, CmdFunc func, const CString& sArgs, const CString& sDesc) : m_sCmd(sCmd), m_pFunc(std::move(func)), m_sArgs(sArgs), m_sDesc(sDesc) {} CModCommand::CModCommand(const CModCommand& other) : m_sCmd(other.m_sCmd), m_pFunc(other.m_pFunc), m_sArgs(other.m_sArgs), m_sDesc(other.m_sDesc) { } CModCommand& CModCommand::operator=(const CModCommand& other) { m_sCmd = other.m_sCmd; m_pFunc = other.m_pFunc; m_sArgs = other.m_sArgs; m_sDesc = other.m_sDesc; return *this; } void CModCommand::InitHelp(CTable& Table) { Table.AddColumn("Command"); Table.AddColumn("Arguments"); Table.AddColumn("Description"); } void CModCommand::AddHelp(CTable& Table) const { Table.AddRow(); Table.SetCell("Command", GetCommand()); Table.SetCell("Arguments", GetArgs()); Table.SetCell("Description", GetDescription()); } znc-1.6.3/src/Chan.cpp0000644000175000017500000004237012663147131014715 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include using std::set; using std::vector; using std::map; CChan::CChan(const CString& sName, CIRCNetwork* pNetwork, bool bInConfig, CConfig *pConfig) { m_sName = sName.Token(0); m_sKey = sName.Token(1); m_pNetwork = pNetwork; if (!m_pNetwork->IsChan(m_sName)) { m_sName = "#" + m_sName; } m_bInConfig = bInConfig; m_Nick.SetNetwork(m_pNetwork); m_bDetached = false; m_bDisabled = false; m_bHasBufferCountSet = false; m_bHasAutoClearChanBufferSet = false; m_Buffer.SetLineCount(m_pNetwork->GetUser()->GetBufferCount(), true); m_bAutoClearChanBuffer = m_pNetwork->GetUser()->AutoClearChanBuffer(); Reset(); if (pConfig) { CString sValue; if (pConfig->FindStringEntry("buffer", sValue)) SetBufferCount(sValue.ToUInt(), true); if (pConfig->FindStringEntry("autoclearchanbuffer", sValue)) SetAutoClearChanBuffer(sValue.ToBool()); if (pConfig->FindStringEntry("keepbuffer", sValue)) SetAutoClearChanBuffer(!sValue.ToBool()); // XXX Compatibility crap, added in 0.207 if (pConfig->FindStringEntry("detached", sValue)) SetDetached(sValue.ToBool()); if (pConfig->FindStringEntry("disabled", sValue)) if (sValue.ToBool()) Disable(); if (pConfig->FindStringEntry("autocycle", sValue)) if (sValue.Equals("true")) CUtils::PrintError("WARNING: AutoCycle has been removed, instead try -> LoadModule = autocycle " + sName); if (pConfig->FindStringEntry("key", sValue)) SetKey(sValue); if (pConfig->FindStringEntry("modes", sValue)) SetDefaultModes(sValue); } } CChan::~CChan() { ClearNicks(); } void CChan::Reset() { m_bIsOn = false; m_bModeKnown = false; m_musModes.clear(); m_sTopic = ""; m_sTopicOwner = ""; m_ulTopicDate = 0; m_ulCreationDate = 0; m_Nick.Reset(); ClearNicks(); ResetJoinTries(); } CConfig CChan::ToConfig() const { CConfig config; if (m_bHasBufferCountSet) config.AddKeyValuePair("Buffer", CString(GetBufferCount())); if (m_bHasAutoClearChanBufferSet) config.AddKeyValuePair("AutoClearChanBuffer", CString(AutoClearChanBuffer())); if (IsDetached()) config.AddKeyValuePair("Detached", "true"); if (IsDisabled()) config.AddKeyValuePair("Disabled", "true"); if (!GetKey().empty()) config.AddKeyValuePair("Key", GetKey()); if (!GetDefaultModes().empty()) config.AddKeyValuePair("Modes", GetDefaultModes()); return config; } void CChan::Clone(CChan& chan) { // We assume that m_sName and m_pNetwork are equal SetBufferCount(chan.GetBufferCount(), true); SetAutoClearChanBuffer(chan.AutoClearChanBuffer()); SetKey(chan.GetKey()); SetDefaultModes(chan.GetDefaultModes()); if (IsDetached() != chan.IsDetached()) { // Only send something if it makes sense // (= Only detach if client is on the channel // and only attach if we are on the channel) if (IsOn()) { if (IsDetached()) { AttachUser(); } else { DetachUser(); } } SetDetached(chan.IsDetached()); } } void CChan::Cycle() const { m_pNetwork->PutIRC("PART " + GetName() + "\r\nJOIN " + GetName() + " " + GetKey()); } void CChan::JoinUser(const CString& sKey) { if (!IsOn() && !sKey.empty()) { SetKey(sKey); } m_pNetwork->PutIRC("JOIN " + GetName() + " " + GetKey()); } void CChan::AttachUser(CClient* pClient) { m_pNetwork->PutUser(":" + m_pNetwork->GetIRCNick().GetNickMask() + " JOIN :" + GetName(), pClient); if (!GetTopic().empty()) { m_pNetwork->PutUser(":" + m_pNetwork->GetIRCServer() + " 332 " + m_pNetwork->GetIRCNick().GetNick() + " " + GetName() + " :" + GetTopic(), pClient); m_pNetwork->PutUser(":" + m_pNetwork->GetIRCServer() + " 333 " + m_pNetwork->GetIRCNick().GetNick() + " " + GetName() + " " + GetTopicOwner() + " " + CString(GetTopicDate()), pClient); } CString sPre = ":" + m_pNetwork->GetIRCServer() + " 353 " + m_pNetwork->GetIRCNick().GetNick() + " " + GetModeForNames() + " " + GetName() + " :"; CString sLine = sPre; CString sPerm, sNick; const vector& vpClients = m_pNetwork->GetClients(); for (vector::const_iterator it = vpClients.begin(); it != vpClients.end(); ++it) { CClient* pThisClient; if (!pClient) pThisClient = *it; else pThisClient = pClient; for (map::iterator a = m_msNicks.begin(); a != m_msNicks.end(); ++a) { if (pThisClient->HasNamesx()) { sPerm = a->second.GetPermStr(); } else { char c = a->second.GetPermChar(); sPerm = ""; if (c != '\0') { sPerm += c; } } if (pThisClient->HasUHNames() && !a->second.GetIdent().empty() && !a->second.GetHost().empty()) { sNick = a->first + "!" + a->second.GetIdent() + "@" + a->second.GetHost(); } else { sNick = a->first; } sLine += sPerm + sNick; if (sLine.size() >= 490 || a == (--m_msNicks.end())) { m_pNetwork->PutUser(sLine, pThisClient); sLine = sPre; } else { sLine += " "; } } if (pClient) // We only want to do this for one client break; } m_pNetwork->PutUser(":" + m_pNetwork->GetIRCServer() + " 366 " + m_pNetwork->GetIRCNick().GetNick() + " " + GetName() + " :End of /NAMES list.", pClient); m_bDetached = false; // Send Buffer SendBuffer(pClient); } void CChan::DetachUser() { if (!m_bDetached) { m_pNetwork->PutUser(":" + m_pNetwork->GetIRCNick().GetNickMask() + " PART " + GetName()); m_bDetached = true; } } CString CChan::GetModeString() const { CString sModes, sArgs; for (map::const_iterator it = m_musModes.begin(); it != m_musModes.end(); ++it) { sModes += it->first; if (it->second.size()) { sArgs += " " + it->second; } } return sModes.empty() ? sModes : CString("+" + sModes + sArgs); } CString CChan::GetModeForNames() const { CString sMode; for (map::const_iterator it = m_musModes.begin(); it != m_musModes.end(); ++it) { if (it->first == 's') { sMode = "@"; } else if ((it->first == 'p') && sMode.empty()){ sMode = "*"; } } return (sMode.empty() ? "=" : sMode); } void CChan::SetModes(const CString& sModes) { m_musModes.clear(); ModeChange(sModes); } void CChan::SetAutoClearChanBuffer(bool b) { m_bHasAutoClearChanBufferSet = true; m_bAutoClearChanBuffer = b; if (m_bAutoClearChanBuffer && !IsDetached() && m_pNetwork->IsUserOnline()) { ClearBuffer(); } } void CChan::InheritAutoClearChanBuffer(bool b) { if (!m_bHasAutoClearChanBufferSet) { m_bAutoClearChanBuffer = b; if (m_bAutoClearChanBuffer && !IsDetached() && m_pNetwork->IsUserOnline()) { ClearBuffer(); } } } void CChan::OnWho(const CString& sNick, const CString& sIdent, const CString& sHost) { CNick* pNick = FindNick(sNick); if (pNick) { pNick->SetIdent(sIdent); pNick->SetHost(sHost); } } void CChan::ModeChange(const CString& sModes, const CNick* pOpNick) { CString sModeArg = sModes.Token(0); CString sArgs = sModes.Token(1, true); bool bAdd = true; /* Try to find a CNick* from this channel so that pOpNick->HasPerm() * works as expected. */ if (pOpNick) { CNick* OpNick = FindNick(pOpNick->GetNick()); /* If nothing was found, use the original pOpNick, else use the * CNick* from FindNick() */ if (OpNick) pOpNick = OpNick; } NETWORKMODULECALL(OnRawMode2(pOpNick, *this, sModeArg, sArgs), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); for (unsigned int a = 0; a < sModeArg.size(); a++) { const unsigned char& uMode = sModeArg[a]; if (uMode == '+') { bAdd = true; } else if (uMode == '-') { bAdd = false; } else if (m_pNetwork->GetIRCSock()->IsPermMode(uMode)) { CString sArg = GetModeArg(sArgs); CNick* pNick = FindNick(sArg); if (pNick) { unsigned char uPerm = m_pNetwork->GetIRCSock()->GetPermFromMode(uMode); if (uPerm) { bool bNoChange = (pNick->HasPerm(uPerm) == bAdd); if (bAdd) { pNick->AddPerm(uPerm); if (pNick->NickEquals(m_pNetwork->GetCurNick())) { AddPerm(uPerm); } } else { pNick->RemPerm(uPerm); if (pNick->NickEquals(m_pNetwork->GetCurNick())) { RemPerm(uPerm); } } NETWORKMODULECALL(OnChanPermission2(pOpNick, *pNick, *this, uMode, bAdd, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); if (uMode == CChan::M_Op) { if (bAdd) { NETWORKMODULECALL(OnOp2(pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } else { NETWORKMODULECALL(OnDeop2(pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } } else if (uMode == CChan::M_Voice) { if (bAdd) { NETWORKMODULECALL(OnVoice2(pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } else { NETWORKMODULECALL(OnDevoice2(pOpNick, *pNick, *this, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); } } } } } else { bool bList = false; CString sArg; switch (m_pNetwork->GetIRCSock()->GetModeType(uMode)) { case CIRCSock::ListArg: bList = true; sArg = GetModeArg(sArgs); break; case CIRCSock::HasArg: sArg = GetModeArg(sArgs); break; case CIRCSock::NoArg: break; case CIRCSock::ArgWhenSet: if (bAdd) { sArg = GetModeArg(sArgs); } break; } bool bNoChange; if (bList) { bNoChange = false; } else if (bAdd) { bNoChange = HasMode(uMode) && GetModeArg(uMode) == sArg; } else { bNoChange = !HasMode(uMode); } NETWORKMODULECALL(OnMode2(pOpNick, *this, uMode, sArg, bAdd, bNoChange), m_pNetwork->GetUser(), m_pNetwork, NULL, NOTHING); if (!bList) { (bAdd) ? AddMode(uMode, sArg) : RemMode(uMode); } // This is called when we join (ZNC requests the channel modes // on join) *and* when someone changes the channel keys. // We ignore channel key "*" because of some broken nets. if (uMode == 'k' && !bNoChange && bAdd && sArg != "*") { SetKey(sArg); } } } } CString CChan::GetOptions() const { VCString vsRet; if (IsDetached()) { vsRet.push_back("Detached"); } if (AutoClearChanBuffer()) { if (HasAutoClearChanBufferSet()) { vsRet.push_back("AutoClearChanBuffer"); } else { vsRet.push_back("AutoClearChanBuffer (default)"); } } return CString(", ").Join(vsRet.begin(), vsRet.end()); } CString CChan::GetModeArg(unsigned char uMode) const { if (uMode) { map::const_iterator it = m_musModes.find(uMode); if (it != m_musModes.end()) { return it->second; } } return ""; } bool CChan::HasMode(unsigned char uMode) const { return (uMode && m_musModes.find(uMode) != m_musModes.end()); } bool CChan::AddMode(unsigned char uMode, const CString& sArg) { m_musModes[uMode] = sArg; return true; } bool CChan::RemMode(unsigned char uMode) { if (!HasMode(uMode)) { return false; } m_musModes.erase(uMode); return true; } CString CChan::GetModeArg(CString& sArgs) const { CString sRet = sArgs.substr(0, sArgs.find(' ')); sArgs = (sRet.size() < sArgs.size()) ? sArgs.substr(sRet.size() +1) : ""; return sRet; } void CChan::ClearNicks() { m_msNicks.clear(); } int CChan::AddNicks(const CString& sNicks) { int iRet = 0; VCString vsNicks; VCString::iterator it; sNicks.Split(" ", vsNicks, false); for (it = vsNicks.begin(); it != vsNicks.end(); ++it) { if (AddNick(*it)) { iRet++; } } return iRet; } bool CChan::AddNick(const CString& sNick) { const char* p = sNick.c_str(); CString sPrefix, sTmp, sIdent, sHost; while (m_pNetwork->GetIRCSock()->IsPermChar(*p)) { sPrefix += *p; if (!*++p) { return false; } } sTmp = p; // The UHNames extension gets us nick!ident@host instead of just plain nick sIdent = sTmp.Token(1, true, "!"); sHost = sIdent.Token(1, true, "@"); sIdent = sIdent.Token(0, false, "@"); // Get the nick sTmp = sTmp.Token(0, false, "!"); CNick tmpNick(sTmp); CNick* pNick = FindNick(sTmp); if (!pNick) { pNick = &tmpNick; pNick->SetNetwork(m_pNetwork); } if (!sIdent.empty()) pNick->SetIdent(sIdent); if (!sHost.empty()) pNick->SetHost(sHost); for (CString::size_type i = 0; i < sPrefix.length(); i++) { pNick->AddPerm(sPrefix[i]); } if (pNick->NickEquals(m_pNetwork->GetCurNick())) { for (CString::size_type i = 0; i < sPrefix.length(); i++) { AddPerm(sPrefix[i]); } } m_msNicks[pNick->GetNick()] = *pNick; return true; } map CChan::GetPermCounts() const { map mRet; map::const_iterator it; for (it = m_msNicks.begin(); it != m_msNicks.end(); ++it) { CString sPerms = it->second.GetPermStr(); for (unsigned int p = 0; p < sPerms.size(); p++) { mRet[sPerms[p]]++; } } return mRet; } bool CChan::RemNick(const CString& sNick) { map::iterator it; set::iterator it2; it = m_msNicks.find(sNick); if (it == m_msNicks.end()) { return false; } m_msNicks.erase(it); return true; } bool CChan::ChangeNick(const CString& sOldNick, const CString& sNewNick) { map::iterator it = m_msNicks.find(sOldNick); if (it == m_msNicks.end()) { return false; } // Rename this nick it->second.SetNick(sNewNick); // Insert a new element into the map then erase the old one, do this to change the key to the new nick m_msNicks[sNewNick] = it->second; m_msNicks.erase(it); return true; } const CNick* CChan::FindNick(const CString& sNick) const { map::const_iterator it = m_msNicks.find(sNick); return (it != m_msNicks.end()) ? &it->second : NULL; } CNick* CChan::FindNick(const CString& sNick) { map::iterator it = m_msNicks.find(sNick); return (it != m_msNicks.end()) ? &it->second : NULL; } void CChan::SendBuffer(CClient* pClient) { SendBuffer(pClient, m_Buffer); if (AutoClearChanBuffer()) { ClearBuffer(); } } void CChan::SendBuffer(CClient* pClient, const CBuffer& Buffer) { if (m_pNetwork && m_pNetwork->IsUserAttached()) { // in the event that pClient is NULL, need to send this to all clients for the user // I'm presuming here that pClient is listed inside vClients thus vClients at this // point can't be empty. // // This loop has to be cycled twice to maintain the existing behavior which is // 1. OnChanBufferStarting // 2. OnChanBufferPlayLine // 3. ClearBuffer() if not keeping the buffer // 4. OnChanBufferEnding // // With the exception of ClearBuffer(), this needs to happen per client, and // if pClient is not NULL, the loops break after the first iteration. // // Rework this if you like ... if (!Buffer.IsEmpty()) { const vector & vClients = m_pNetwork->GetClients(); for (size_t uClient = 0; uClient < vClients.size(); ++uClient) { CClient * pUseClient = (pClient ? pClient : vClients[uClient]); bool bWasPlaybackActive = pUseClient->IsPlaybackActive(); pUseClient->SetPlaybackActive(true); bool bSkipStatusMsg = pUseClient->HasServerTime(); NETWORKMODULECALL(OnChanBufferStarting(*this, *pUseClient), m_pNetwork->GetUser(), m_pNetwork, NULL, &bSkipStatusMsg); if (!bSkipStatusMsg) { m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + GetName() + " :Buffer Playback...", pUseClient); } bool bBatch = pUseClient->HasBatch(); CString sBatchName = GetName().MD5(); if (bBatch) { m_pNetwork->PutUser(":znc.in BATCH +" + sBatchName + " znc.in/playback " + GetName(), pUseClient); } size_t uSize = Buffer.Size(); for (size_t uIdx = 0; uIdx < uSize; uIdx++) { const CBufLine& BufLine = Buffer.GetBufLine(uIdx); CString sLine = BufLine.GetLine(*pUseClient, MCString::EmptyMap); if (bBatch) { MCString msBatchTags = CUtils::GetMessageTags(sLine); msBatchTags["batch"] = sBatchName; CUtils::SetMessageTags(sLine, msBatchTags); } bool bNotShowThisLine = false; NETWORKMODULECALL(OnChanBufferPlayLine2(*this, *pUseClient, sLine, BufLine.GetTime()), m_pNetwork->GetUser(), m_pNetwork, NULL, &bNotShowThisLine); if (bNotShowThisLine) continue; m_pNetwork->PutUser(sLine, pUseClient); } bSkipStatusMsg = pUseClient->HasServerTime(); NETWORKMODULECALL(OnChanBufferEnding(*this, *pUseClient), m_pNetwork->GetUser(), m_pNetwork, NULL, &bSkipStatusMsg); if (!bSkipStatusMsg) { m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + GetName() + " :Playback Complete.", pUseClient); } if (bBatch) { m_pNetwork->PutUser(":znc.in BATCH -" + sBatchName, pUseClient); } pUseClient->SetPlaybackActive(bWasPlaybackActive); if (pClient) break; } } } } void CChan::Enable() { ResetJoinTries(); m_bDisabled = false; } void CChan::SetKey(const CString& s) { if (m_sKey != s) { m_sKey = s; if (m_bInConfig) { CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE); } } } void CChan::SetInConfig(bool b) { if (m_bInConfig != b) { m_bInConfig = b; CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE); } } znc-1.6.3/src/Utils.cpp0000644000175000017500000005127212663147131015145 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #ifdef HAVE_LIBSSL #include #endif /* HAVE_LIBSSL */ #include #ifdef HAVE_ICU #include #include #endif // Required with GCC 4.3+ if openssl is disabled #include #include #include using std::map; using std::vector; CUtils::CUtils() {} CUtils::~CUtils() {} #ifdef HAVE_LIBSSL // Generated by "openssl dhparam 2048" constexpr const char* szDefaultDH2048 = "-----BEGIN DH PARAMETERS-----\n" "MIIBCAKCAQEAtS/K3TMY8IHzcCATQSjUF3rDidjDDQmT+mLxyxRORmzMPjFIFkKH\n" "MOmxZvyCBArdaoCCEBBOzrldl/bBLn5TOeZb+MW7mpBLANTuQSOu97DDM7EzbnqC\n" "b6z3QgixZ2+UqxdmQAu4nBPLFwym6W/XPFEHpz6iHISSvjzzo4cfI0xwWTcoAvFQ\n" "r/ZU5BXSXp7XuDxSyyAqaaKUxquElf+x56QWrpNJypjzPpslg5ViAKwWQS0TnCrU\n" "sVuhFtbNlZjqW1tMSBxiWFltS1HoEaaI79MEpf1Ps25OrQl8xqqCGKkZcHlNo4oF\n" "cvUyzAEcCQYHmiYjp2hoZbSa8b690TQaAwIBAg==\n" "-----END DH PARAMETERS-----\n"; void CUtils::GenerateCert(FILE *pOut, const CString& sHost) { EVP_PKEY *pKey = NULL; X509 *pCert = NULL; X509_NAME *pName = NULL; const int days = 365; const int years = 10; unsigned int uSeed = (unsigned int)time(NULL); int serial = (rand_r(&uSeed) % 9999); RSA *pRSA = RSA_generate_key(2048, 0x10001, NULL, NULL); if ((pKey = EVP_PKEY_new())) { if (!EVP_PKEY_assign_RSA(pKey, pRSA)) { EVP_PKEY_free(pKey); return; } PEM_write_RSAPrivateKey(pOut, pRSA, NULL, NULL, 0, NULL, NULL); if (!(pCert = X509_new())) { EVP_PKEY_free(pKey); return; } X509_set_version(pCert, 2); ASN1_INTEGER_set(X509_get_serialNumber(pCert), serial); X509_gmtime_adj(X509_get_notBefore(pCert), 0); X509_gmtime_adj(X509_get_notAfter(pCert), (long)60*60*24*days*years); X509_set_pubkey(pCert, pKey); pName = X509_get_subject_name(pCert); const char *pLogName = getenv("LOGNAME"); const char *pHostName = NULL; if (!sHost.empty()) { pHostName = sHost.c_str(); } if (!pHostName) { pHostName = getenv("HOSTNAME"); } if (!pLogName) { pLogName = "Unknown"; } if (!pHostName) { pHostName = "host.unknown"; } CString sEmailAddr = pLogName; sEmailAddr += "@"; sEmailAddr += pHostName; X509_NAME_add_entry_by_txt(pName, "OU", MBSTRING_ASC, (unsigned char *)pLogName, -1, -1, 0); X509_NAME_add_entry_by_txt(pName, "CN", MBSTRING_ASC, (unsigned char *)pHostName, -1, -1, 0); X509_NAME_add_entry_by_txt(pName, "emailAddress", MBSTRING_ASC, (unsigned char *)sEmailAddr.c_str(), -1, -1, 0); X509_set_subject_name(pCert, pName); X509_set_issuer_name(pCert, pName); if (!X509_sign(pCert, pKey, EVP_sha256())) { X509_free(pCert); EVP_PKEY_free(pKey); return; } PEM_write_X509(pOut, pCert); X509_free(pCert); EVP_PKEY_free(pKey); fprintf(pOut, "%s", szDefaultDH2048); } } #endif /* HAVE_LIBSSL */ CString CUtils::GetIP(unsigned long addr) { char szBuf[16]; memset((char*) szBuf, 0, 16); if (addr >= (1 << 24)) { unsigned long ip[4]; ip[0] = addr >> 24 & 255; ip[1] = addr >> 16 & 255; ip[2] = addr >> 8 & 255; ip[3] = addr & 255; sprintf(szBuf, "%lu.%lu.%lu.%lu", ip[0], ip[1], ip[2], ip[3]); } return szBuf; } unsigned long CUtils::GetLongIP(const CString& sIP) { unsigned long ret; char ip[4][4]; unsigned int i; i = sscanf(sIP.c_str(), "%3[0-9].%3[0-9].%3[0-9].%3[0-9]", ip[0], ip[1], ip[2], ip[3]); if (i != 4) return 0; // Beware that atoi("200") << 24 would overflow and turn negative! ret = atol(ip[0]) << 24; ret += atol(ip[1]) << 16; ret += atol(ip[2]) << 8; ret += atol(ip[3]) << 0; return ret; } // If you change this here and in GetSaltedHashPass(), // don't forget CUser::HASH_DEFAULT! // TODO refactor this const CString CUtils::sDefaultHash = "sha256"; CString CUtils::GetSaltedHashPass(CString& sSalt) { sSalt = GetSalt(); while (true) { CString pass1; do { pass1 = CUtils::GetPass("Enter password"); } while (pass1.empty()); CString pass2 = CUtils::GetPass("Confirm password"); if (!pass1.Equals(pass2, true)) { CUtils::PrintError("The supplied passwords did not match"); } else { // Construct the salted pass return SaltedSHA256Hash(pass1, sSalt); } } } CString CUtils::GetSalt() { return CString::RandomString(20); } CString CUtils::SaltedMD5Hash(const CString& sPass, const CString& sSalt) { return CString(sPass + sSalt).MD5(); } CString CUtils::SaltedSHA256Hash(const CString& sPass, const CString& sSalt) { return CString(sPass + sSalt).SHA256(); } CString CUtils::GetPass(const CString& sPrompt) { PrintPrompt(sPrompt); #ifdef HAVE_GETPASSPHRASE return getpassphrase(""); #else return getpass(""); #endif } bool CUtils::GetBoolInput(const CString& sPrompt, bool bDefault) { return CUtils::GetBoolInput(sPrompt, &bDefault); } bool CUtils::GetBoolInput(const CString& sPrompt, bool *pbDefault) { CString sRet, sDefault; if (pbDefault) { sDefault = (*pbDefault) ? "yes" : "no"; } while (true) { GetInput(sPrompt, sRet, sDefault, "yes/no"); if (sRet.Equals("y") || sRet.Equals("yes")) { return true; } else if (sRet.Equals("n") || sRet.Equals("no")) { return false; } } } bool CUtils::GetNumInput(const CString& sPrompt, unsigned int& uRet, unsigned int uMin, unsigned int uMax, unsigned int uDefault) { if (uMin > uMax) { return false; } CString sDefault = (uDefault != (unsigned int) ~0) ? CString(uDefault) : ""; CString sNum, sHint; if (uMax != (unsigned int) ~0) { sHint = CString(uMin) + " to " + CString(uMax); } else if (uMin > 0) { sHint = CString(uMin) + " and up"; } while (true) { GetInput(sPrompt, sNum, sDefault, sHint); if (sNum.empty()) { return false; } uRet = sNum.ToUInt(); if ((uRet >= uMin && uRet <= uMax)) { break; } CUtils::PrintError("Number must be " + sHint); } return true; } bool CUtils::GetInput(const CString& sPrompt, CString& sRet, const CString& sDefault, const CString& sHint) { CString sExtra; CString sInput; sExtra += (!sHint.empty()) ? (" (" + sHint + ")") : ""; sExtra += (!sDefault.empty()) ? (" [" + sDefault + "]") : ""; PrintPrompt(sPrompt + sExtra); char szBuf[1024]; memset(szBuf, 0, 1024); if (fgets(szBuf, 1024, stdin) == NULL) { // Reading failed (Error? EOF?) PrintError("Error while reading from stdin. Exiting..."); exit(-1); } sInput = szBuf; if (sInput.Right(1) == "\n") { sInput.RightChomp(); } if (sInput.empty()) { sRet = sDefault; } else { sRet = sInput; } return !sRet.empty(); } #define BOLD "\033[1m" #define NORM "\033[22m" #define RED "\033[31m" #define GRN "\033[32m" #define YEL "\033[33m" #define BLU "\033[34m" #define DFL "\033[39m" void CUtils::PrintError(const CString& sMessage) { if (CDebug::StdoutIsTTY()) fprintf(stdout, BOLD BLU "[" RED " ** " BLU "]" DFL NORM" %s\n", sMessage.c_str()); else fprintf(stdout, "%s\n", sMessage.c_str()); fflush(stdout); } void CUtils::PrintPrompt(const CString& sMessage) { if (CDebug::StdoutIsTTY()) fprintf(stdout, BOLD BLU "[" YEL " ?? " BLU "]" DFL NORM " %s: ", sMessage.c_str()); else fprintf(stdout, "[ ?? ] %s: ", sMessage.c_str()); fflush(stdout); } void CUtils::PrintMessage(const CString& sMessage, bool bStrong) { if (CDebug::StdoutIsTTY()) { if (bStrong) fprintf(stdout, BOLD BLU "[" YEL " ** " BLU "]" DFL BOLD " %s" NORM "\n", sMessage.c_str()); else fprintf(stdout, BOLD BLU "[" YEL " ** " BLU "]" DFL NORM " %s\n", sMessage.c_str()); } else fprintf(stdout, "%s\n", sMessage.c_str()); fflush(stdout); } void CUtils::PrintAction(const CString& sMessage) { if (CDebug::StdoutIsTTY()) fprintf(stdout, BOLD BLU "[ .. " BLU "]" DFL NORM " %s...\n", sMessage.c_str()); else fprintf(stdout, "%s... ", sMessage.c_str()); fflush(stdout); } void CUtils::PrintStatus(bool bSuccess, const CString& sMessage) { if (CDebug::StdoutIsTTY()) { if (bSuccess) { fprintf(stdout, BOLD BLU "[" GRN " >> " BLU "]" DFL NORM); fprintf(stdout, " %s\n", sMessage.empty() ? "ok" : sMessage.c_str()); } else { fprintf(stdout, BOLD BLU "[" RED " !! " BLU "]" DFL NORM); fprintf(stdout, BOLD RED " %s" DFL NORM "\n", sMessage.empty() ? "failed" : sMessage.c_str()); } } else { if (bSuccess) { fprintf(stdout, "%s\n", sMessage.c_str()); } else { if (!sMessage.empty()) { fprintf(stdout, "[ %s ]", sMessage.c_str()); } fprintf(stdout, "\n"); } } fflush(stdout); } namespace { /* Switch GMT-X and GMT+X * * See https://en.wikipedia.org/wiki/Tz_database#Area * * "In order to conform with the POSIX style, those zone names beginning * with "Etc/GMT" have their sign reversed from what most people expect. * In this style, zones west of GMT have a positive sign and those east * have a negative sign in their name (e.g "Etc/GMT-14" is 14 hours * ahead/east of GMT.)" */ inline CString FixGMT(CString sTZ) { if (sTZ.length() >= 4 && sTZ.Left(3) == "GMT") { if (sTZ[3] == '+') { sTZ[3] = '-'; } else if (sTZ[3] == '-') { sTZ[3] = '+'; } } return sTZ; } } CString CUtils::CTime(time_t t, const CString& sTimezone) { char s[30] = {}; // should have at least 26 bytes if (sTimezone.empty()) { ctime_r(&t, s); // ctime() adds a trailing newline return CString(s).Trim_n(); } CString sTZ = FixGMT(sTimezone); // backup old value char* oldTZ = getenv("TZ"); if (oldTZ) oldTZ = strdup(oldTZ); setenv("TZ", sTZ.c_str(), 1); tzset(); ctime_r(&t, s); // restore old value if (oldTZ) { setenv("TZ", oldTZ, 1); free(oldTZ); } else { unsetenv("TZ"); } tzset(); return CString(s).Trim_n(); } CString CUtils::FormatTime(time_t t, const CString& sFormat, const CString& sTimezone) { char s[1024] = {}; tm m; if (sTimezone.empty()) { localtime_r(&t, &m); strftime(s, sizeof(s), sFormat.c_str(), &m); return s; } CString sTZ = FixGMT(sTimezone); // backup old value char* oldTZ = getenv("TZ"); if (oldTZ) oldTZ = strdup(oldTZ); setenv("TZ", sTZ.c_str(), 1); tzset(); localtime_r(&t, &m); strftime(s, sizeof(s), sFormat.c_str(), &m); // restore old value if (oldTZ) { setenv("TZ", oldTZ, 1); free(oldTZ); } else { unsetenv("TZ"); } tzset(); return s; } CString CUtils::FormatServerTime(const timeval& tv) { CString s_msec(tv.tv_usec / 1000); while (s_msec.length() < 3) { s_msec = "0" + s_msec; } // TODO support leap seconds properly // TODO support message-tags properly struct tm stm; memset(&stm, 0, sizeof(stm)); const time_t secs = tv.tv_sec; // OpenBSD has tv_sec as int, so explicitly convert it to time_t to make gmtime_r() happy gmtime_r(&secs, &stm); char sTime[20] = {}; strftime(sTime, sizeof(sTime), "%Y-%m-%dT%H:%M:%S", &stm); return CString(sTime) + "." + s_msec + "Z"; } namespace { void FillTimezones(const CString& sPath, SCString& result, const CString& sPrefix) { CDir Dir; Dir.Fill(sPath); for (unsigned int a = 0; a < Dir.size(); ++a) { CFile& File = *Dir[a]; CString sName = File.GetShortName(); CString sFile = File.GetLongName(); if (sName == "posix" || sName == "right") continue; // these 2 dirs contain the same filenames if (sName.Right(4) == ".tab" || sName == "posixrules" || sName == "localtime") continue; if (File.IsDir()) { if (sName == "Etc") { FillTimezones(sFile, result, sPrefix); } else { FillTimezones(sFile, result, sPrefix + sName + "/"); } } else { result.insert(sPrefix + sName); } } } } SCString CUtils::GetTimezones() { static SCString result; if (result.empty()) { FillTimezones("/usr/share/zoneinfo", result, ""); } return result; } SCString CUtils::GetEncodings() { static SCString ssResult; #ifdef HAVE_ICU if (ssResult.empty()) { for (int i = 0; i < ucnv_countAvailable(); ++i) { const char* pConvName = ucnv_getAvailableName(i); ssResult.insert(pConvName); icu::ErrorCode e; for (int st = 0; st < ucnv_countStandards(); ++st) { const char* pStdName = ucnv_getStandard(st, e); icu::LocalUEnumerationPointer ue(ucnv_openStandardNames(pConvName, pStdName, e)); while (const char* pStdConvNameEnum = uenum_next(ue.getAlias(), NULL, e)) { ssResult.insert(pStdConvNameEnum); } } } } #endif return ssResult; } MCString CUtils::GetMessageTags(const CString& sLine) { if (sLine.StartsWith("@")) { VCString vsTags; sLine.Token(0).TrimPrefix_n("@").Split(";", vsTags, false); MCString mssTags; for (VCString::const_iterator it = vsTags.begin(); it != vsTags.end(); ++it) { CString sKey = it->Token(0, false, "=", true); CString sValue = it->Token(1, true, "=", true); mssTags[sKey] = sValue.Escape(CString::EMSGTAG, CString::CString::EASCII); } return mssTags; } return MCString::EmptyMap; } void CUtils::SetMessageTags(CString& sLine, const MCString& mssTags) { if (sLine.StartsWith("@")) { sLine.LeftChomp(sLine.Token(0).length() + 1); } if (!mssTags.empty()) { CString sTags; for (MCString::const_iterator it = mssTags.begin(); it != mssTags.end(); ++it) { if (!sTags.empty()) { sTags += ";"; } sTags += it->first; if (!it->second.empty()) sTags += "=" + it->second.Escape_n(CString::EMSGTAG); } sLine = "@" + sTags + " " + sLine; } } bool CTable::AddColumn(const CString& sName, bool bWrappable) { for (unsigned int a = 0; a < m_vsHeaders.size(); a++) { if (m_vsHeaders[a].Equals(sName)) { return false; } } m_vsHeaders.push_back(sName); m_vuMaxWidths.push_back(sName.size()); // TODO: Maybe headers can be wrapped too? m_vuMinWidths.push_back(sName.size()); m_vbWrappable.push_back(bWrappable); return true; } CTable::size_type CTable::AddRow() { // Don't add a row if no headers are defined if (m_vsHeaders.empty()) { return (size_type) -1; } // Add a vector with enough space for each column push_back(vector(m_vsHeaders.size())); return size() - 1; } bool CTable::SetCell(const CString& sColumn, const CString& sValue, size_type uRowIdx) { if (uRowIdx == (size_type) ~0) { if (empty()) { return false; } uRowIdx = size() -1; } unsigned int uColIdx = GetColumnIndex(sColumn); if (uColIdx == (unsigned int) -1) return false; (*this)[uRowIdx][uColIdx] = sValue; if (sValue.length() > m_vuMaxWidths[uColIdx]) { m_vuMaxWidths[uColIdx] = sValue.length(); } if (m_vbWrappable[uColIdx]) { VCString vsWords; sValue.Split(" ", vsWords); size_type uMaxWord = 0; for (const CString& sWord : vsWords) { if (sWord.length() > uMaxWord) { uMaxWord = sWord.length(); } } // We can't shrink column further than the longest word in it if (uMaxWord > m_vuMinWidths[uColIdx]) { m_vuMinWidths[uColIdx] = uMaxWord; } } else { m_vuMinWidths[uColIdx] = m_vuMaxWidths[uColIdx]; } return true; } bool CTable::GetLine(unsigned int uIdx, CString& sLine) const { if (empty()) { return false; } if (m_vsOutput.empty()) { m_vsOutput = Render(); } if (uIdx >= m_vsOutput.size()) { return false; } sLine = m_vsOutput[uIdx]; return true; } VCString CTable::Render() const { size_type uTotalWidth = 1; // '|' for (size_type uWidth : m_vuMaxWidths) { uTotalWidth += uWidth + 3; // '|', ' 'x2 } std::vector vuWidth = m_vuMaxWidths; std::map miColumnSpace; for (unsigned int i = 0; i < m_vsHeaders.size(); ++i) { int iSpace = m_vuMaxWidths[i] - m_vuMinWidths[i]; if (iSpace > 0) { miColumnSpace[i] = iSpace; } } // Not very efficient algorithm, and doesn't produce very good results... while (uTotalWidth > m_uPreferredWidth) { std::vector viToErase; for (auto& i : miColumnSpace) { uTotalWidth--; i.second--; vuWidth[i.first]--; if (i.second == 0) { viToErase.push_back(i.first); } if (uTotalWidth == m_uPreferredWidth) { break; } } for (int iCol : viToErase) { miColumnSpace.erase(iCol); } if (miColumnSpace.empty()) { // Every column is at its minimum width now, but total width is still more than preferred width break; } } CString sHorizontal; { std::ostringstream ssLine; ssLine << std::setfill('-'); ssLine << "+"; for (size_type uWidth : vuWidth) { ssLine << std::setw(uWidth + 2) << std::left << "-"; ssLine << "+"; } sHorizontal = ssLine.str(); } VCString vsOutput; vsOutput.emplace_back(sHorizontal.Replace_n("-", "=")); { std::ostringstream ssLine; ssLine << "|"; for (unsigned int iCol = 0; iCol < vuWidth.size(); ++iCol) { ssLine << " "; ssLine << std::setw(vuWidth[iCol]) << std::left; ssLine << m_vsHeaders[iCol] << " |"; } vsOutput.emplace_back(ssLine.str()); } vsOutput.emplace_back(vsOutput[0]); for (const VCString& vsRow : *this) { // Wrap words std::vector vvsColumns; vvsColumns.reserve(m_vsHeaders.size()); unsigned int uRowNum = 1; for (unsigned int iCol = 0; iCol < vuWidth.size(); ++iCol) { if (m_vbWrappable[iCol]) { vvsColumns.emplace_back(WrapWords(vsRow[iCol], vuWidth[iCol])); } else { vvsColumns.push_back({vsRow[iCol]}); } if (vvsColumns.back().size() > uRowNum) { uRowNum = vvsColumns.back().size(); } } CString sEmpty; for (size_type uCurrentLine = 0; uCurrentLine < uRowNum; ++uCurrentLine) { std::ostringstream ssLine; ssLine << "|"; for (unsigned int iCol = 0; iCol < vvsColumns.size(); ++iCol) { const CString& sData = uCurrentLine < vvsColumns[iCol].size() ? vvsColumns[iCol][uCurrentLine] : sEmpty; ssLine << " "; ssLine << std::setw(vuWidth[iCol]) << std::left; ssLine << sData << " |"; } vsOutput.emplace_back(ssLine.str()); } vsOutput.emplace_back(sHorizontal); } vsOutput.pop_back(); vsOutput.emplace_back(vsOutput[0]); return vsOutput; } VCString CTable::WrapWords(const CString& s, size_type uWidth) { VCString vsWords; s.Split(" ", vsWords); VCString vsResult; vsResult.emplace_back(""); for (const CString& sWord : vsWords) { size_type uOldLen = vsResult.back().length(); if (uOldLen != 0) { uOldLen++; // ' ' } if (uOldLen + sWord.length() > uWidth) { vsResult.emplace_back(sWord); } else { if (uOldLen != 0) { vsResult.back() += " "; } vsResult.back() += sWord; } } return vsResult; } unsigned int CTable::GetColumnIndex(const CString& sName) const { for (unsigned int i = 0; i < m_vsHeaders.size(); i++) { if (m_vsHeaders[i] == sName) return i; } DEBUG("CTable::GetColumnIndex(" + sName + ") failed"); return (unsigned int) -1; } CString::size_type CTable::GetColumnWidth(unsigned int uIdx) const { if (uIdx >= m_vsHeaders.size()) { return 0; } return m_vuMaxWidths[uIdx]; } void CTable::Clear() { clear(); m_vsHeaders.clear(); m_vuMaxWidths.clear(); m_vuMinWidths.clear(); m_vbWrappable.clear(); m_vsOutput.clear(); } #ifdef HAVE_LIBSSL CBlowfish::CBlowfish(const CString & sPassword, int iEncrypt, const CString & sIvec) { m_iEncrypt = iEncrypt; m_ivec = (unsigned char *)calloc(sizeof(unsigned char), 8); m_num = 0; if (sIvec.length() >= 8) { memcpy(m_ivec, sIvec.data(), 8); } BF_set_key(&m_bkey, (unsigned int)sPassword.length(), (unsigned char *)sPassword.data()); } CBlowfish::~CBlowfish() { free(m_ivec); } //! output must be freed unsigned char *CBlowfish::MD5(const unsigned char *input, u_int ilen) { unsigned char *output = (unsigned char *)malloc(MD5_DIGEST_LENGTH); ::MD5(input, ilen, output); return output; } //! returns an md5 of the CString (not hex encoded) CString CBlowfish::MD5(const CString & sInput, bool bHexEncode) { CString sRet; unsigned char *data = MD5((const unsigned char *)sInput.data(), (unsigned int)sInput.length()); if (!bHexEncode) { sRet.append((const char *)data, MD5_DIGEST_LENGTH); } else { for (int a = 0; a < MD5_DIGEST_LENGTH; a++) { sRet += g_HexDigits[data[a] >> 4]; sRet += g_HexDigits[data[a] & 0xf]; } } free(data); return sRet; } //! output must be the same size as input void CBlowfish::Crypt(unsigned char *input, unsigned char *output, u_int uBytes) { BF_cfb64_encrypt(input, output, uBytes, &m_bkey, m_ivec, &m_num, m_iEncrypt); } //! must free result unsigned char * CBlowfish::Crypt(unsigned char *input, u_int uBytes) { unsigned char *buff = (unsigned char *)malloc(uBytes); Crypt(input, buff, uBytes); return buff; } CString CBlowfish::Crypt(const CString & sData) { unsigned char *buff = Crypt((unsigned char *)sData.data(), (unsigned int)sData.length()); CString sOutput; sOutput.append((const char *)buff, sData.length()); free(buff); return sOutput; } #endif // HAVE_LIBSSL znc-1.6.3/src/HTTPSock.cpp0000644000175000017500000005062112663147131015441 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #ifdef HAVE_ZLIB #include #endif using std::map; using std::set; #define MAX_POST_SIZE 1024 * 1024 CHTTPSock::CHTTPSock(CModule *pMod, const CString& sURIPrefix) : CSocket(pMod), m_sURIPrefix(sURIPrefix) { Init(); } CHTTPSock::CHTTPSock(CModule *pMod, const CString& sURIPrefix, const CString& sHostname, unsigned short uPort, int iTimeout) : CSocket(pMod, sHostname, uPort, iTimeout), m_sURIPrefix(sURIPrefix) { Init(); } void CHTTPSock::Init() { m_bSentHeader = false; m_bGotHeader = false; m_bLoggedIn = false; m_bPost = false; m_bDone = false; m_bHTTP10Client = false; m_bAcceptGzip = false; m_uPostLen = 0; EnableReadLine(); SetMaxBufferThreshold(10240); } CHTTPSock::~CHTTPSock() {} void CHTTPSock::ReadData(const char* data, size_t len) { if (!m_bDone && m_bGotHeader && m_bPost) { m_sPostData.append(data, len); CheckPost(); } } bool CHTTPSock::SendCookie(const CString& sKey, const CString& sValue) { if (!sKey.empty() && !sValue.empty()) { if (m_msRequestCookies.find(sKey) == m_msRequestCookies.end() || m_msRequestCookies[sKey].StrCmp(sValue) != 0) { // only queue a Set-Cookie to be sent if the client didn't send a Cookie header of the same name+value. m_msResponseCookies[sKey] = sValue; } return true; } return false; } CString CHTTPSock::GetRequestCookie(const CString& sKey) const { MCString::const_iterator it = m_msRequestCookies.find(sKey); return it != m_msRequestCookies.end() ? it->second : ""; } void CHTTPSock::CheckPost() { if (m_sPostData.size() >= m_uPostLen) { ParseParams(m_sPostData.Left(m_uPostLen), m_msvsPOSTParams); GetPage(); m_sPostData.clear(); m_bDone = true; } } void CHTTPSock::ReadLine(const CString& sData) { if (m_bGotHeader) { return; } CString sLine = sData; sLine.TrimRight("\r\n"); CString sName = sLine.Token(0); if (sName.Equals("GET")) { m_bPost = false; m_sURI = sLine.Token(1); m_bHTTP10Client = sLine.Token(2).Equals("HTTP/1.0"); ParseURI(); } else if (sName.Equals("POST")) { m_bPost = true; m_sURI = sLine.Token(1); ParseURI(); } else if (sName.Equals("Cookie:")) { VCString vsNV; sLine.Token(1, true).Split(";", vsNV, false, "", "", true, true); for (unsigned int a = 0; a < vsNV.size(); a++) { CString s(vsNV[a]); m_msRequestCookies[s.Token(0, false, "=").Escape_n(CString::EURL, CString::EASCII)] = s.Token(1, true, "=").Escape_n(CString::EURL, CString::EASCII); } } else if (sName.Equals("Authorization:")) { CString sUnhashed; sLine.Token(2).Base64Decode(sUnhashed); m_sUser = sUnhashed.Token(0, false, ":"); m_sPass = sUnhashed.Token(1, true, ":"); // Postpone authorization attempt until end of headers, because cookies should be read before that, otherwise session id will be overwritten in GetSession() } else if (sName.Equals("Content-Length:")) { m_uPostLen = sLine.Token(1).ToULong(); if (m_uPostLen > MAX_POST_SIZE) PrintErrorPage(413, "Request Entity Too Large", "The request you sent was too large."); } else if (sName.Equals("X-Forwarded-For:")) { // X-Forwarded-For: client, proxy1, proxy2 if (m_sForwardedIP.empty()) { const VCString& vsTrustedProxies = CZNC::Get().GetTrustedProxies(); CString sIP = GetRemoteIP(); VCString vsIPs; sLine.Token(1, true).Split(",", vsIPs, false, "", "", false, true); while (!vsIPs.empty()) { // sIP told us that it got connection from vsIPs.back() // check if sIP is trusted proxy bool bTrusted = false; for (VCString::const_iterator it = vsTrustedProxies.begin(); it != vsTrustedProxies.end(); ++it) { if (sIP.WildCmp(*it)) { bTrusted = true; break; } } if (bTrusted) { // sIP is trusted proxy, so use vsIPs.back() as new sIP sIP = vsIPs.back(); vsIPs.pop_back(); } else { break; } } // either sIP is not trusted proxy, or it's in the beginning of the X-Forwarded-For list // in both cases use it as the endpoind m_sForwardedIP = sIP; } } else if (sName.Equals("If-None-Match:")) { // this is for proper client cache support (HTTP 304) on static files: m_sIfNoneMatch = sLine.Token(1, true); } else if (sName.Equals("Accept-Encoding:") && !m_bHTTP10Client) { SCString ssEncodings; // trimming whitespace from the tokens is important: sLine.Token(1, true).Split(",", ssEncodings, false, "", "", false, true); m_bAcceptGzip = (ssEncodings.find("gzip") != ssEncodings.end()); } else if (sLine.empty()) { if (!m_sUser.empty() && !m_bLoggedIn) { m_bLoggedIn = OnLogin(m_sUser, m_sPass, true); // After successful login ReadLine("") will be called again to trigger "else" block } else { m_bGotHeader = true; if (m_bPost) { m_sPostData = GetInternalReadBuffer(); CheckPost(); } else { GetPage(); } DisableReadLine(); } } } CString CHTTPSock::GetRemoteIP() const { if (!m_sForwardedIP.empty()) { return m_sForwardedIP; } return CSocket::GetRemoteIP(); } CString CHTTPSock::GetDate(time_t stamp) { struct tm tm; std::stringstream stream; const char *wkday[] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }; const char *month[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; if (stamp == 0) time(&stamp); gmtime_r(&stamp, &tm); stream << wkday[tm.tm_wday] << ", "; stream << std::setfill('0') << std::setw(2) << tm.tm_mday << " "; stream << month[tm.tm_mon] << " "; stream << std::setfill('0') << std::setw(4) << tm.tm_year + 1900 << " "; stream << std::setfill('0') << std::setw(2) << tm.tm_hour << ":"; stream << std::setfill('0') << std::setw(2) << tm.tm_min << ":"; stream << std::setfill('0') << std::setw(2) << tm.tm_sec << " GMT"; return stream.str(); } void CHTTPSock::GetPage() { DEBUG("Page Request [" << m_sURI << "] "); // Check that the requested path starts with the prefix. Strip it if so. if (!m_sURI.TrimPrefix(m_sURIPrefix)) { DEBUG("INVALID path => Does not start with prefix [" + m_sURIPrefix + "]"); DEBUG("Expected prefix: " << m_sURIPrefix); DEBUG("Requested path: " << m_sURI); Redirect("/"); } else if (m_sURI.empty()) { // This can happen if prefix was /foo, and the requested page is /foo Redirect("/"); } else { OnPageRequest(m_sURI); } } #ifdef HAVE_ZLIB static bool InitZlibStream(z_stream *zStrm, const char* buf) { memset(zStrm, 0, sizeof(z_stream)); zStrm->next_in = (Bytef*)buf; // "15" is the default value for good compression, // the weird "+ 16" means "please generate a gzip header and trailer". const int WINDOW_BITS = 15 + 16; const int MEMLEVEL = 8; return (deflateInit2(zStrm, Z_DEFAULT_COMPRESSION, Z_DEFLATED, WINDOW_BITS, MEMLEVEL, Z_DEFAULT_STRATEGY) == Z_OK); } #endif void CHTTPSock::PrintPage(const CString& sPage) { #ifdef HAVE_ZLIB if (m_bAcceptGzip && !SentHeader()) { char szBuf[4096]; z_stream zStrm; int zStatus, zFlush = Z_NO_FLUSH; if (InitZlibStream(&zStrm, sPage.c_str())) { DEBUG("- Sending gzip-compressed."); AddHeader("Content-Encoding", "gzip"); PrintHeader(0); // we do not know the compressed data's length zStrm.avail_in = sPage.size(); do { if (zStrm.avail_in == 0) { zFlush = Z_FINISH; } zStrm.next_out = (Bytef*)szBuf; zStrm.avail_out = sizeof(szBuf); zStatus = deflate(&zStrm, zFlush); if((zStatus == Z_OK || zStatus == Z_STREAM_END) && zStrm.avail_out < sizeof(szBuf)) { Write(szBuf, sizeof(szBuf) - zStrm.avail_out); } } while(zStatus == Z_OK); Close(Csock::CLT_AFTERWRITE); deflateEnd(&zStrm); return; } } // else: fall through #endif if (!SentHeader()) { PrintHeader(sPage.length()); } else { DEBUG("PrintPage(): Header was already sent"); } Write(sPage); Close(Csock::CLT_AFTERWRITE); } bool CHTTPSock::PrintFile(const CString& sFileName, CString sContentType) { CString sFilePath = sFileName; if (!m_sDocRoot.empty()) { sFilePath.TrimLeft("/"); sFilePath = CDir::CheckPathPrefix(m_sDocRoot, sFilePath, m_sDocRoot); if (sFilePath.empty()) { PrintErrorPage(403, "Forbidden", "You don't have permission to access that file on this server."); DEBUG("THIS FILE: [" << sFilePath << "] does not live in ..."); DEBUG("DOCUMENT ROOT: [" << m_sDocRoot << "]"); return false; } } CFile File(sFilePath); if (!File.Open()) { PrintNotFound(); return false; } if (sContentType.empty()) { if (sFileName.Right(5).Equals(".html") || sFileName.Right(4).Equals(".htm")) { sContentType = "text/html; charset=utf-8"; } else if (sFileName.Right(4).Equals(".css")) { sContentType = "text/css; charset=utf-8"; } else if (sFileName.Right(3).Equals(".js")) { sContentType = "application/x-javascript; charset=utf-8"; } else if (sFileName.Right(4).Equals(".jpg")) { sContentType = "image/jpeg"; } else if (sFileName.Right(4).Equals(".gif")) { sContentType = "image/gif"; } else if (sFileName.Right(4).Equals(".ico")) { sContentType = "image/x-icon"; } else if (sFileName.Right(4).Equals(".png")) { sContentType = "image/png"; } else if (sFileName.Right(4).Equals(".bmp")) { sContentType = "image/bmp"; } else { sContentType = "text/plain; charset=utf-8"; } } const time_t iMTime = File.GetMTime(); bool bNotModified = false; CString sETag; if (iMTime > 0 && !m_bHTTP10Client) { sETag = "-" + CString(iMTime); // lighttpd style ETag AddHeader("Last-Modified", GetDate(iMTime)); AddHeader("ETag", "\"" + sETag + "\""); AddHeader("Cache-Control", "public"); if (!m_sIfNoneMatch.empty()) { m_sIfNoneMatch.Trim("\\\"'"); bNotModified = (m_sIfNoneMatch.Equals(sETag, true)); } } if (bNotModified) { PrintHeader(0, sContentType, 304, "Not Modified"); } else { off_t iSize = File.GetSize(); // Don't try to send files over 16 MiB, because it might block // the whole process and use huge amounts of memory. if (iSize > 16 * 1024 * 1024) { DEBUG("- Abort: File is over 16 MiB big: " << iSize); PrintErrorPage(500, "Internal Server Error", "File too big"); return true; } #ifdef HAVE_ZLIB bool bGzip = m_bAcceptGzip && (sContentType.Left(5).Equals("text/") || sFileName.Right(3).Equals(".js")); if (bGzip) { DEBUG("- Sending gzip-compressed."); AddHeader("Content-Encoding", "gzip"); PrintHeader(0, sContentType); // we do not know the compressed data's length WriteFileGzipped(File); } else #endif { PrintHeader(iSize, sContentType); WriteFileUncompressed(File); } } DEBUG("- ETag: [" << sETag << "] / If-None-Match [" << m_sIfNoneMatch << "]"); Close(Csock::CLT_AFTERWRITE); return true; } void CHTTPSock::WriteFileUncompressed(CFile& File) { char szBuf[4096]; off_t iLen = 0; ssize_t i = 0; off_t iSize = File.GetSize(); // while we haven't reached iSize and read() succeeds... while (iLen < iSize && (i = File.Read(szBuf, sizeof(szBuf))) > 0) { Write(szBuf, i); iLen += i; } if (i < 0) { DEBUG("- Error while reading file: " << strerror(errno)); } } #ifdef HAVE_ZLIB void CHTTPSock::WriteFileGzipped(CFile& File) { char szBufIn[8192]; char szBufOut[8192]; off_t iFileSize = File.GetSize(), iFileReadTotal = 0; z_stream zStrm; int zFlush = Z_NO_FLUSH; int zStatus; if (!InitZlibStream(&zStrm, szBufIn)) { DEBUG("- Error initializing zlib!"); return; } do { ssize_t iFileRead = 0; if (zStrm.avail_in == 0) { // input buffer is empty, try to read more data from file. // if there is no more data, finish the stream. if (iFileReadTotal < iFileSize) { iFileRead = File.Read(szBufIn, sizeof(szBufIn)); if (iFileRead < 1) { // wtf happened? better quit compressing. iFileReadTotal = iFileSize; zFlush = Z_FINISH; } else { iFileReadTotal += iFileRead; zStrm.next_in = (Bytef*)szBufIn; zStrm.avail_in = iFileRead; } } else { zFlush = Z_FINISH; } } zStrm.next_out = (Bytef*)szBufOut; zStrm.avail_out = sizeof(szBufOut); zStatus = deflate(&zStrm, zFlush); if ((zStatus == Z_OK || zStatus == Z_STREAM_END) && zStrm.avail_out < sizeof(szBufOut)) { // there's data in the buffer: Write(szBufOut, sizeof(szBufOut) - zStrm.avail_out); } } while (zStatus == Z_OK); deflateEnd(&zStrm); } #endif void CHTTPSock::ParseURI() { ParseParams(m_sURI.Token(1, true, "?"), m_msvsGETParams); m_sURI = m_sURI.Token(0, false, "?"); } CString CHTTPSock::GetPath() const { return m_sURI.Token(0, false, "?"); } void CHTTPSock::ParseParams(const CString& sParams, map &msvsParams) { msvsParams.clear(); VCString vsPairs; sParams.Split("&", vsPairs, true); for (unsigned int a = 0; a < vsPairs.size(); a++) { const CString& sPair = vsPairs[a]; CString sName = sPair.Token(0, false, "=").Escape_n(CString::EURL, CString::EASCII); CString sValue = sPair.Token(1, true, "=").Escape_n(CString::EURL, CString::EASCII); msvsParams[sName].push_back(sValue); } } void CHTTPSock::SetDocRoot(const CString& s) { m_sDocRoot = s + "/"; m_sDocRoot.Replace("//", "/"); } const CString& CHTTPSock::GetDocRoot() const { return m_sDocRoot; } const CString& CHTTPSock::GetUser() const { return m_sUser; } const CString& CHTTPSock::GetPass() const { return m_sPass; } const CString& CHTTPSock::GetContentType() const { return m_sContentType; } const CString& CHTTPSock::GetParamString() const { return m_sPostData; } const CString& CHTTPSock::GetURIPrefix() const { return m_sURIPrefix; } bool CHTTPSock::HasParam(const CString& sName, bool bPost) const { if (bPost) return (m_msvsPOSTParams.find(sName) != m_msvsPOSTParams.end()); return (m_msvsGETParams.find(sName) != m_msvsGETParams.end()); } CString CHTTPSock::GetRawParam(const CString& sName, bool bPost) const { if (bPost) return GetRawParam(sName, m_msvsPOSTParams); return GetRawParam(sName, m_msvsGETParams); } CString CHTTPSock::GetRawParam(const CString& sName, const map& msvsParams) { CString sRet; map::const_iterator it = msvsParams.find(sName); if (it != msvsParams.end() && it->second.size() > 0) { sRet = it->second[0]; } return sRet; } CString CHTTPSock::GetParam(const CString& sName, bool bPost, const CString& sFilter) const { if (bPost) return GetParam(sName, m_msvsPOSTParams, sFilter); return GetParam(sName, m_msvsGETParams, sFilter); } CString CHTTPSock::GetParam(const CString& sName, const map& msvsParams, const CString& sFilter) { CString sRet = GetRawParam(sName, msvsParams); sRet.Trim(); for (size_t i = 0; i < sFilter.length(); i++) { sRet.Replace(CString(sFilter.at(i)), ""); } return sRet; } size_t CHTTPSock::GetParamValues(const CString& sName, set& ssRet, bool bPost, const CString& sFilter) const { if (bPost) return GetParamValues(sName, ssRet, m_msvsPOSTParams, sFilter); return GetParamValues(sName, ssRet, m_msvsGETParams, sFilter); } size_t CHTTPSock::GetParamValues(const CString& sName, set& ssRet, const map& msvsParams, const CString& sFilter) { ssRet.clear(); map::const_iterator it = msvsParams.find(sName); if (it != msvsParams.end()) { for (unsigned int a = 0; a < it->second.size(); a++) { CString sParam = it->second[a]; sParam.Trim(); for (size_t i = 0; i < sFilter.length(); i++) { sParam.Replace(CString(sFilter.at(i)), ""); } ssRet.insert(sParam); } } return ssRet.size(); } size_t CHTTPSock::GetParamValues(const CString& sName, VCString& vsRet, bool bPost, const CString& sFilter) const { if (bPost) return GetParamValues(sName, vsRet, m_msvsPOSTParams, sFilter); return GetParamValues(sName, vsRet, m_msvsGETParams, sFilter); } size_t CHTTPSock::GetParamValues(const CString& sName, VCString& vsRet, const map& msvsParams, const CString& sFilter) { vsRet.clear(); map::const_iterator it = msvsParams.find(sName); if (it != msvsParams.end()) { for (unsigned int a = 0; a < it->second.size(); a++) { CString sParam = it->second[a]; sParam.Trim(); for (size_t i = 0; i < sFilter.length(); i++) { sParam.Replace(CString(sFilter.at(i)), ""); } vsRet.push_back(sParam); } } return vsRet.size(); } const map& CHTTPSock::GetParams(bool bPost) const { if (bPost) return m_msvsPOSTParams; return m_msvsGETParams; } bool CHTTPSock::IsPost() const { return m_bPost; } bool CHTTPSock::PrintNotFound() { return PrintErrorPage(404, "Not Found", "The requested URL was not found on this server."); } bool CHTTPSock::PrintErrorPage(unsigned int uStatusId, const CString& sStatusMsg, const CString& sMessage) { if (SentHeader()) { DEBUG("PrintErrorPage(): Header was already sent"); return false; } CString sPage = "\r\n" "\r\n" "\r\n" "\r\n" "\r\n" "" + CString(uStatusId) + " " + sStatusMsg.Escape_n(CString::EHTML) + "\r\n" "\r\n" "\r\n" "

" + sStatusMsg.Escape_n(CString::EHTML) + "

\r\n" "

" + sMessage.Escape_n(CString::EHTML) + "

\r\n" "
\r\n" "

" + CZNC::GetTag(false, /* bHTML = */ true) + "

\r\n" "\r\n" "\r\n"; PrintHeader(sPage.length(), "text/html; charset=utf-8", uStatusId, sStatusMsg); Write(sPage); Close(Csock::CLT_AFTERWRITE); return true; } bool CHTTPSock::ForceLogin() { if (m_bLoggedIn) { return true; } if (SentHeader()) { DEBUG("ForceLogin(): Header was already sent!"); return false; } AddHeader("WWW-Authenticate", "Basic realm=\"" + CZNC::GetTag(false) + "\""); PrintErrorPage(401, "Unauthorized", "You need to login to view this page."); return false; } bool CHTTPSock::OnLogin(const CString& sUser, const CString& sPass, bool bBasic) { return false; } bool CHTTPSock::SentHeader() const { return m_bSentHeader; } bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, unsigned int uStatusId, const CString& sStatusMsg) { if (SentHeader()) { DEBUG("PrintHeader(): Header was already sent!"); return false; } if (!sContentType.empty()) { m_sContentType = sContentType; } if (m_sContentType.empty()) { m_sContentType = "text/html; charset=utf-8"; } DEBUG("- " << uStatusId << " (" << sStatusMsg << ") [" << m_sContentType << "]"); Write("HTTP/" + CString(m_bHTTP10Client ? "1.0 " : "1.1 ") + CString(uStatusId) + " " + sStatusMsg + "\r\n"); Write("Date: " + GetDate() + "\r\n"); Write("Server: " + CZNC::GetTag(false) + "\r\n"); if (uContentLength > 0) { Write("Content-Length: " + CString(uContentLength) + "\r\n"); } Write("Content-Type: " + m_sContentType + "\r\n"); MCString::iterator it; for (it = m_msResponseCookies.begin(); it != m_msResponseCookies.end(); ++it) { Write("Set-Cookie: " + it->first.Escape_n(CString::EURL) + "=" + it->second.Escape_n(CString::EURL) + "; path=/;" + (GetSSL() ? "Secure;" : "") + "\r\n"); } for (it = m_msHeaders.begin(); it != m_msHeaders.end(); ++it) { Write(it->first + ": " + it->second + "\r\n"); } Write("Connection: Close\r\n"); Write("\r\n"); m_bSentHeader = true; return true; } void CHTTPSock::SetContentType(const CString& sContentType) { m_sContentType = sContentType; } void CHTTPSock::AddHeader(const CString& sName, const CString& sValue) { m_msHeaders[sName] = sValue; } bool CHTTPSock::Redirect(const CString& sURL) { if (SentHeader()) { DEBUG("Redirect() - Header was already sent"); return false; } else if(!sURL.StartsWith("/")) { // HTTP/1.1 only admits absolute URIs for the Location header. DEBUG("Redirect to relative URI [" + sURL + "] is not allowed."); return false; } else { CString location = m_sURIPrefix + sURL; DEBUG("- Redirect to [" << location << "] with prefix [" + m_sURIPrefix + "]"); AddHeader("Location", location); PrintErrorPage(302, "Found", "The document has moved here."); return true; } } void CHTTPSock::Connected() { SetTimeout(120); } znc-1.6.3/src/ZNCString.cpp0000644000175000017500000007663712663147131015702 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include using std::stringstream; CString::CString(char c) : string() { stringstream s; s << c; *this = s.str(); } CString::CString(unsigned char c) : string() { stringstream s; s << c; *this = s.str(); } CString::CString(short i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(unsigned short i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(int i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(unsigned int i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(long i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(unsigned long i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(long long i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(unsigned long long i) : string() { stringstream s; s << i; *this = s.str(); } CString::CString(double i, int precision) : string() { stringstream s; s.precision(precision); s << std::fixed << i; *this = s.str(); } CString::CString(float i, int precision) : string() { stringstream s; s.precision(precision); s << std::fixed << i; *this = s.str(); } unsigned char* CString::strnchr(const unsigned char* src, unsigned char c, unsigned int iMaxBytes, unsigned char* pFill, unsigned int* piCount) const { for (unsigned int a = 0; a < iMaxBytes && *src; a++, src++) { if (pFill) { pFill[a] = *src; } if (*src == c) { if (pFill) { pFill[a +1] = 0; } if (piCount) { *piCount = a; } return (unsigned char*) src; } } if (pFill) { *pFill = 0; } if (piCount) { *piCount = 0; } return NULL; } int CString::CaseCmp(const CString& s, CString::size_type uLen) const { if (uLen != CString::npos) { return strncasecmp(c_str(), s.c_str(), uLen); } return strcasecmp(c_str(), s.c_str()); } int CString::StrCmp(const CString& s, CString::size_type uLen) const { if (uLen != CString::npos) { return strncmp(c_str(), s.c_str(), uLen); } return strcmp(c_str(), s.c_str()); } bool CString::Equals(const CString& s, CaseSensitivity cs) const { if (cs == CaseSensitive) { return (StrCmp(s) == 0); } else { return (CaseCmp(s) == 0); } } bool CString::Equals(const CString& s, bool bCaseSensitive, CString::size_type uLen) const { if (bCaseSensitive) { return (StrCmp(s, uLen) == 0); } else { return (CaseCmp(s, uLen) == 0); } } bool CString::WildCmp(const CString& sWild, const CString& sString) { // Written by Jack Handy - jakkhandy@hotmail.com const char *wild = sWild.c_str(), *CString = sString.c_str(); const char *cp = NULL, *mp = NULL; while ((*CString) && (*wild != '*')) { if ((*wild != *CString) && (*wild != '?')) { return false; } wild++; CString++; } while (*CString) { if (*wild == '*') { if (!*++wild) { return true; } mp = wild; cp = CString+1; } else if ((*wild == *CString) || (*wild == '?')) { wild++; CString++; } else { wild = mp; CString = cp++; } } while (*wild == '*') { wild++; } return (*wild == 0); } bool CString::WildCmp(const CString& sWild) const { return CString::WildCmp(sWild, *this); } CString& CString::MakeUpper() { for (size_type a = 0; a < length(); a++) { char& c = (*this)[a]; //TODO use unicode c = (char)toupper(c); } return *this; } CString& CString::MakeLower() { for (size_type a = 0; a < length(); a++) { char& c = (*this)[a]; //TODO use unicode c = (char)tolower(c); } return *this; } CString CString::AsUpper() const { CString sRet = *this; sRet.MakeUpper(); return sRet; } CString CString::AsLower() const { CString sRet = *this; sRet.MakeLower(); return sRet; } CString::EEscape CString::ToEscape(const CString& sEsc) { if (sEsc.Equals("ASCII")) { return EASCII; } else if (sEsc.Equals("HTML")) { return EHTML; } else if (sEsc.Equals("URL")) { return EURL; } else if (sEsc.Equals("SQL")) { return ESQL; } else if (sEsc.Equals("NAMEDFMT")) { return ENAMEDFMT; } else if (sEsc.Equals("DEBUG")) { return EDEBUG; } else if (sEsc.Equals("MSGTAG")) { return EMSGTAG; } else if (sEsc.Equals("HEXCOLON")) { return EHEXCOLON; } return EASCII; } CString CString::Escape_n(EEscape eFrom, EEscape eTo) const { CString sRet; const char szHex[] = "0123456789ABCDEF"; const unsigned char *pStart = (const unsigned char*) data(); const unsigned char *p = (const unsigned char*) data(); size_type iLength = length(); sRet.reserve(iLength *3); unsigned char pTmp[21]; unsigned int iCounted = 0; for (unsigned int a = 0; a < iLength; a++, p = pStart + a) { unsigned char ch = 0; switch (eFrom) { case EHTML: if ((*p == '&') && (strnchr((unsigned char*) p, ';', sizeof(pTmp) - 1, pTmp, &iCounted))) { // please note that we do not have any Unicode or UTF-8 support here at all. if ((iCounted >= 3) && (pTmp[1] == '#')) { // do XML and HTML a < int base = 10; if ((pTmp[2] & 0xDF) == 'X') { base = 16; } char* endptr = NULL; unsigned long int b = strtol((const char*) (pTmp +2 + (base == 16)), &endptr, base); if ((*endptr == ';') && (b <= 255)) { // incase they do something like � ch = (unsigned char)b; a += iCounted; break; } } if (ch == 0) { if (!strncasecmp((const char*) &pTmp, "<", 2)) ch = '<'; else if (!strncasecmp((const char*) &pTmp, ">", 2)) ch = '>'; else if (!strncasecmp((const char*) &pTmp, """, 4)) ch = '"'; else if (!strncasecmp((const char*) &pTmp, "&", 3)) ch = '&'; } if (ch > 0) { a += iCounted; } else { ch = *p; // Not a valid escape, just record the & } } else { ch = *p; } break; case EASCII: ch = *p; break; case EURL: if (*p == '%' && (a +2) < iLength && isxdigit(*(p +1)) && isxdigit(*(p +2))) { p++; if (isdigit(*p)) { ch = (unsigned char)((*p - '0') << 4); } else { ch = (unsigned char)((tolower(*p) - 'a' +10) << 4); } p++; if (isdigit(*p)) { ch |= (unsigned char)(*p - '0'); } else { ch |= (unsigned char)(tolower(*p) - 'a' +10); } a += 2; } else if (pStart[a] == '+') { ch = ' '; } else { ch = *p; } break; case ESQL: if (*p != '\\' || iLength < (a +1)) { ch = *p; } else { a++; p++; if (*p == 'n') { ch = '\n'; } else if (*p == 'r') { ch = '\r'; } else if (*p == '0') { ch = '\0'; } else if (*p == 't') { ch = '\t'; } else if (*p == 'b') { ch = '\b'; } else { ch = *p; } } break; case ENAMEDFMT: if (*p != '\\' || iLength < (a +1)) { ch = *p; } else { a++; p++; ch = *p; } break; case EDEBUG: if (*p == '\\' && (a +3) < iLength && *(p +1) == 'x' && isxdigit(*(p +2)) && isxdigit(*(p +3))) { p += 2; if (isdigit(*p)) { ch = (unsigned char)((*p - '0') << 4); } else { ch = (unsigned char)((tolower(*p) - 'a' +10) << 4); } p++; if (isdigit(*p)) { ch |= (unsigned char)(*p - '0'); } else { ch |= (unsigned char)(tolower(*p) - 'a' +10); } a += 3; } else if (*p == '\\' && a+1 < iLength && *(p+1) == '.') { a++; p++; ch = '\\'; } else { ch = *p; } break; case EMSGTAG: if (*p != '\\' || iLength < (a +1)) { ch = *p; } else { a++; p++; if (*p == ':') { ch = ';'; } else if (*p == 's') { ch = ' '; } else if (*p == '0') { ch = '\0'; } else if (*p == '\\') { ch = '\\'; } else if (*p == 'r') { ch = '\r'; } else if (*p == 'n') { ch = '\n'; } else { ch = *p; } } break; case EHEXCOLON: { while (!isxdigit(*p) && a < iLength) { a++; p++; } if (a == iLength) { continue; } if (isdigit(*p)) { ch = (unsigned char)((*p - '0') << 4); } else { ch = (unsigned char)((tolower(*p) - 'a' +10) << 4); } a++; p++; while (!isxdigit(*p) && a < iLength) { a++; p++; } if (a == iLength) { continue; } if (isdigit(*p)) { ch |= (unsigned char)(*p - '0'); } else { ch |= (unsigned char)(tolower(*p) - 'a' +10); } } break; } switch (eTo) { case EHTML: if (ch == '<') sRet += "<"; else if (ch == '>') sRet += ">"; else if (ch == '"') sRet += """; else if (ch == '&') sRet += "&"; else { sRet += ch; } break; case EASCII: sRet += ch; break; case EURL: if (isalnum(ch) || ch == '_' || ch == '.' || ch == '-') { sRet += ch; } else if (ch == ' ') { sRet += '+'; } else { sRet += '%'; sRet += szHex[ch >> 4]; sRet += szHex[ch & 0xf]; } break; case ESQL: if (ch == '\0') { sRet += '\\'; sRet += '0'; } else if (ch == '\n') { sRet += '\\'; sRet += 'n'; } else if (ch == '\t') { sRet += '\\'; sRet += 't'; } else if (ch == '\r') { sRet += '\\'; sRet += 'r'; } else if (ch == '\b') { sRet += '\\'; sRet += 'b'; } else if (ch == '\"') { sRet += '\\'; sRet += '\"'; } else if (ch == '\'') { sRet += '\\'; sRet += '\''; } else if (ch == '\\') { sRet += '\\'; sRet += '\\'; } else { sRet += ch; } break; case ENAMEDFMT: if (ch == '\\') { sRet += '\\'; sRet += '\\'; } else if (ch == '{') { sRet += '\\'; sRet += '{'; } else if (ch == '}') { sRet += '\\'; sRet += '}'; } else { sRet += ch; } break; case EDEBUG: if (ch < 0x20 || ch == 0x7F) { sRet += "\\x"; sRet += szHex[ch >> 4]; sRet += szHex[ch & 0xf]; } else if (ch == '\\') { sRet += "\\."; } else { sRet += ch; } break; case EMSGTAG: if (ch == ';') { sRet += '\\'; sRet += ':'; } else if (ch == ' ') { sRet += '\\'; sRet += 's'; } else if (ch == '\0') { sRet += '\\'; sRet += '0'; } else if (ch == '\\') { sRet += '\\'; sRet += '\\'; } else if (ch == '\r') { sRet += '\\'; sRet += 'r'; } else if (ch == '\n') { sRet += '\\'; sRet += 'n'; } else { sRet += ch; } break; case EHEXCOLON: { sRet += tolower(szHex[ch >> 4]); sRet += tolower(szHex[ch & 0xf]); sRet += ":"; } break; } } if (eTo == EHEXCOLON) { sRet.TrimRight(":"); } return sRet; } CString CString::Escape_n(EEscape eTo) const { return Escape_n(EASCII, eTo); } CString& CString::Escape(EEscape eFrom, EEscape eTo) { return (*this = Escape_n(eFrom, eTo)); } CString& CString::Escape(EEscape eTo) { return (*this = Escape_n(eTo)); } CString CString::Replace_n(const CString& sReplace, const CString& sWith, const CString& sLeft, const CString& sRight, bool bRemoveDelims) const { CString sRet = *this; CString::Replace(sRet, sReplace, sWith, sLeft, sRight, bRemoveDelims); return sRet; } unsigned int CString::Replace(const CString& sReplace, const CString& sWith, const CString& sLeft, const CString& sRight, bool bRemoveDelims) { return CString::Replace(*this, sReplace, sWith, sLeft, sRight, bRemoveDelims); } unsigned int CString::Replace(CString& sStr, const CString& sReplace, const CString& sWith, const CString& sLeft, const CString& sRight, bool bRemoveDelims) { unsigned int uRet = 0; CString sCopy = sStr; sStr.clear(); size_type uReplaceWidth = sReplace.length(); size_type uLeftWidth = sLeft.length(); size_type uRightWidth = sRight.length(); const char* p = sCopy.c_str(); bool bInside = false; while (*p) { if (!bInside && uLeftWidth && strncmp(p, sLeft.c_str(), uLeftWidth) == 0) { if (!bRemoveDelims) { sStr += sLeft; } p += uLeftWidth -1; bInside = true; } else if (bInside && uRightWidth && strncmp(p, sRight.c_str(), uRightWidth) == 0) { if (!bRemoveDelims) { sStr += sRight; } p += uRightWidth -1; bInside = false; } else if (!bInside && strncmp(p, sReplace.c_str(), uReplaceWidth) == 0) { sStr += sWith; p += uReplaceWidth -1; uRet++; } else { sStr.append(p, 1); } p++; } return uRet; } CString CString::Token(size_t uPos, bool bRest, const CString& sSep, bool bAllowEmpty, const CString& sLeft, const CString& sRight, bool bTrimQuotes) const { VCString vsTokens; if (Split(sSep, vsTokens, bAllowEmpty, sLeft, sRight, bTrimQuotes) > uPos) { CString sRet; for (size_t a = uPos; a < vsTokens.size(); a++) { if (a > uPos) { sRet += sSep; } sRet += vsTokens[a]; if (!bRest) { break; } } return sRet; } return Token(uPos, bRest, sSep, bAllowEmpty); } CString CString::Token(size_t uPos, bool bRest, const CString& sSep, bool bAllowEmpty) const { const char *sep_str = sSep.c_str(); size_t sep_len = sSep.length(); const char *str = c_str(); size_t str_len = length(); size_t start_pos = 0; size_t end_pos; if (!bAllowEmpty) { while (strncmp(&str[start_pos], sep_str, sep_len) == 0) { start_pos += sep_len; } } // First, find the start of our token while (uPos != 0 && start_pos < str_len) { bool bFoundSep = false; while (strncmp(&str[start_pos], sep_str, sep_len) == 0 && (!bFoundSep || !bAllowEmpty)) { start_pos += sep_len; bFoundSep = true; } if (bFoundSep) { uPos--; } else { start_pos++; } } // String is over? if (start_pos >= str_len) return ""; // If they want everything from here on, give it to them if (bRest) { return substr(start_pos); } // Now look for the end of the token they want end_pos = start_pos; while (end_pos < str_len) { if (strncmp(&str[end_pos], sep_str, sep_len) == 0) return substr(start_pos, end_pos - start_pos); end_pos++; } // They want the last token in the string, not something in between return substr(start_pos); } CString CString::Ellipsize(unsigned int uLen) const { if (uLen >= size()) { return *this; } string sRet; // @todo this looks suspect if (uLen < 4) { for (unsigned int a = 0; a < uLen; a++) { sRet += "."; } return sRet; } sRet = substr(0, uLen -3) + "..."; return sRet; } CString CString::Left(size_type uCount) const { uCount = (uCount > length()) ? length() : uCount; return substr(0, uCount); } CString CString::Right(size_type uCount) const { uCount = (uCount > length()) ? length() : uCount; return substr(length() - uCount, uCount); } CString::size_type CString::URLSplit(MCString& msRet) const { msRet.clear(); VCString vsPairs; Split("&", vsPairs); for (size_t a = 0; a < vsPairs.size(); a++) { const CString& sPair = vsPairs[a]; msRet[sPair.Token(0, false, "=").Escape(CString::EURL, CString::EASCII)] = sPair.Token(1, true, "=").Escape(CString::EURL, CString::EASCII); } return msRet.size(); } CString::size_type CString::OptionSplit(MCString& msRet, bool bUpperKeys) const { CString sName; CString sCopy(*this); msRet.clear(); while (!sCopy.empty()) { sName = sCopy.Token(0, false, "=", false, "\"", "\"", false).Trim_n(); sCopy = sCopy.Token(1, true, "=", false, "\"", "\"", false).TrimLeft_n(); if (sName.empty()) { continue; } VCString vsNames; sName.Split(" ", vsNames, false, "\"", "\""); for (unsigned int a = 0; a < vsNames.size(); a++) { CString sKeyName = vsNames[a]; if (bUpperKeys) { sKeyName.MakeUpper(); } if ((a +1) == vsNames.size()) { msRet[sKeyName] = sCopy.Token(0, false, " ", false, "\"", "\""); sCopy = sCopy.Token(1, true, " ", false, "\"", "\"", false); } else { msRet[sKeyName] = ""; } } } return msRet.size(); } CString::size_type CString::QuoteSplit(VCString& vsRet) const { vsRet.clear(); return Split(" ", vsRet, false, "\"", "\"", true); } CString::size_type CString::Split(const CString& sDelim, VCString& vsRet, bool bAllowEmpty, const CString& sLeft, const CString& sRight, bool bTrimQuotes, bool bTrimWhiteSpace) const { vsRet.clear(); if (empty()) { return 0; } CString sTmp; bool bInside = false; size_type uDelimLen = sDelim.length(); size_type uLeftLen = sLeft.length(); size_type uRightLen = sRight.length(); const char* p = c_str(); if (!bAllowEmpty) { while (strncasecmp(p, sDelim.c_str(), uDelimLen) == 0) { p += uDelimLen; } } while (*p) { if (uLeftLen && uRightLen && !bInside && strncasecmp(p, sLeft.c_str(), uLeftLen) == 0) { if (!bTrimQuotes) { sTmp += sLeft; } p += uLeftLen; bInside = true; continue; } if (uLeftLen && uRightLen && bInside && strncasecmp(p, sRight.c_str(), uRightLen) == 0) { if (!bTrimQuotes) { sTmp += sRight; } p += uRightLen; bInside = false; continue; } if (uDelimLen && !bInside && strncasecmp(p, sDelim.c_str(), uDelimLen) == 0) { if (bTrimWhiteSpace) { sTmp.Trim(); } vsRet.push_back(sTmp); sTmp.clear(); p += uDelimLen; if (!bAllowEmpty) { while (strncasecmp(p, sDelim.c_str(), uDelimLen) == 0) { p += uDelimLen; } } bInside = false; continue; } else { sTmp += *p; } p++; } if (!sTmp.empty()) { if (bTrimWhiteSpace) { sTmp.Trim(); } vsRet.push_back(sTmp); } return vsRet.size(); } CString::size_type CString::Split(const CString& sDelim, SCString& ssRet, bool bAllowEmpty, const CString& sLeft, const CString& sRight, bool bTrimQuotes, bool bTrimWhiteSpace) const { VCString vsTokens; Split(sDelim, vsTokens, bAllowEmpty, sLeft, sRight, bTrimQuotes, bTrimWhiteSpace); ssRet.clear(); for (size_t a = 0; a < vsTokens.size(); a++) { ssRet.insert(vsTokens[a]); } return ssRet.size(); } CString CString::NamedFormat(const CString& sFormat, const MCString& msValues) { CString sRet; CString sKey; bool bEscape = false; bool bParam = false; const char* p = sFormat.c_str(); while (*p) { if (!bParam) { if (bEscape) { sRet += *p; bEscape = false; } else if (*p == '\\') { bEscape = true; } else if (*p == '{') { bParam = true; sKey.clear(); } else { sRet += *p; } } else { if (bEscape) { sKey += *p; bEscape = false; } else if (*p == '\\') { bEscape = true; } else if (*p == '}') { bParam = false; MCString::const_iterator it = msValues.find(sKey); if (it != msValues.end()) { sRet += (*it).second; } } else { sKey += *p; } } p++; } return sRet; } CString CString::RandomString(unsigned int uLength) { const char chars[] = "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "0123456789!?.,:;/*-+_()"; // -1 because sizeof() includes the trailing '\0' byte const size_t len = sizeof(chars) / sizeof(chars[0]) - 1; size_t p; CString sRet; for (unsigned int a = 0; a < uLength; a++) { p = (size_t) (len * (rand() / (RAND_MAX + 1.0))); sRet += chars[p]; } return sRet; } bool CString::Base64Encode(unsigned int uWrap) { CString sCopy(*this); return sCopy.Base64Encode(*this, uWrap); } unsigned long CString::Base64Decode() { CString sCopy(*this); return sCopy.Base64Decode(*this); } CString CString::Base64Encode_n(unsigned int uWrap) const { CString sRet; Base64Encode(sRet, uWrap); return sRet; } CString CString::Base64Decode_n() const { CString sRet; Base64Decode(sRet); return sRet; } bool CString::Base64Encode(CString& sRet, unsigned int uWrap) const { const char b64table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; sRet.clear(); size_t len = size(); const unsigned char* input = (const unsigned char*) c_str(); unsigned char *output, *p; size_t i = 0, mod = len % 3, toalloc; toalloc = (len / 3) * 4 + (3 - mod) % 3 + 1 + 8; if (uWrap) { toalloc += len / 57; if (len % 57) { toalloc++; } } if (toalloc < len) { return 0; } p = output = new unsigned char [toalloc]; while (i < len - mod) { *p++ = b64table[input[i++] >> 2]; *p++ = b64table[((input[i - 1] << 4) | (input[i] >> 4)) & 0x3f]; *p++ = b64table[((input[i] << 2) | (input[i + 1] >> 6)) & 0x3f]; *p++ = b64table[input[i + 1] & 0x3f]; i += 2; if (uWrap && !(i % 57)) { *p++ = '\n'; } } if (!mod) { if (uWrap && i % 57) { *p++ = '\n'; } } else { *p++ = b64table[input[i++] >> 2]; *p++ = b64table[((input[i - 1] << 4) | (input[i] >> 4)) & 0x3f]; if (mod == 1) { *p++ = '='; } else { *p++ = b64table[(input[i] << 2) & 0x3f]; } *p++ = '='; if (uWrap) { *p++ = '\n'; } } *p = 0; sRet = (char*) output; delete[] output; return true; } unsigned long CString::Base64Decode(CString& sRet) const { CString sTmp(*this); // remove new lines sTmp.Replace("\r", ""); sTmp.Replace("\n", ""); const char* in = sTmp.c_str(); char c, c1, *p; unsigned long i; unsigned long uLen = sTmp.size(); char* out = new char[uLen + 1]; for (i = 0, p = out; i < uLen; i++) { c = (char)base64_table[(unsigned char)in[i++]]; c1 = (char)base64_table[(unsigned char)in[i++]]; *p++ = char((c << 2) | ((c1 >> 4) & 0x3)); if (i < uLen) { if (in[i] == '=') { break; } c = (char)base64_table[(unsigned char)in[i]]; *p++ = char(((c1 << 4) & 0xf0) | ((c >> 2) & 0xf)); } if (++i < uLen) { if (in[i] == '=') { break; } *p++ = char(((c << 6) & 0xc0) | (char)base64_table[(unsigned char)in[i]]); } } *p = '\0'; unsigned long uRet = p - out; sRet.clear(); sRet.append(out, uRet); delete[] out; return uRet; } CString CString::MD5() const { return (const char*) CMD5(*this); } CString CString::SHA256() const { unsigned char digest[SHA256_DIGEST_SIZE]; char digest_hex[SHA256_DIGEST_SIZE * 2 + 1]; const unsigned char *message = (const unsigned char *) c_str(); sha256(message, length(), digest); snprintf(digest_hex, sizeof(digest_hex), "%02x%02x%02x%02x%02x%02x%02x%02x" "%02x%02x%02x%02x%02x%02x%02x%02x" "%02x%02x%02x%02x%02x%02x%02x%02x" "%02x%02x%02x%02x%02x%02x%02x%02x", digest[ 0], digest[ 1], digest[ 2], digest[ 3], digest[ 4], digest[ 5], digest[ 6], digest[ 7], digest[ 8], digest[ 9], digest[10], digest[11], digest[12], digest[13], digest[14], digest[15], digest[16], digest[17], digest[18], digest[19], digest[20], digest[21], digest[22], digest[23], digest[24], digest[25], digest[26], digest[27], digest[28], digest[29], digest[30], digest[31]); return digest_hex; } #ifdef HAVE_LIBSSL CString CString::Encrypt_n(const CString& sPass, const CString& sIvec) const { CString sRet; sRet.Encrypt(sPass, sIvec); return sRet; } CString CString::Decrypt_n(const CString& sPass, const CString& sIvec) const { CString sRet; sRet.Decrypt(sPass, sIvec); return sRet; } void CString::Encrypt(const CString& sPass, const CString& sIvec) { Crypt(sPass, true, sIvec); } void CString::Decrypt(const CString& sPass, const CString& sIvec) { Crypt(sPass, false, sIvec); } void CString::Crypt(const CString& sPass, bool bEncrypt, const CString& sIvec) { unsigned char szIvec[8] = {0,0,0,0,0,0,0,0}; BF_KEY bKey; if (sIvec.length() >= 8) { memcpy(szIvec, sIvec.data(), 8); } BF_set_key(&bKey, (unsigned int)sPass.length(), (unsigned char*) sPass.data()); unsigned int uPad = (length() % 8); if (uPad) { uPad = 8 - uPad; append(uPad, '\0'); } size_t uLen = length(); unsigned char* szBuff = (unsigned char*) malloc(uLen); BF_cbc_encrypt((const unsigned char*) data(), szBuff, uLen, &bKey, szIvec, ((bEncrypt) ? BF_ENCRYPT : BF_DECRYPT)); clear(); append((const char*) szBuff, uLen); free(szBuff); } #endif // HAVE_LIBSSL CString CString::ToPercent(double d) { char szRet[32]; snprintf(szRet, 32, "%.02f%%", d); return szRet; } CString CString::ToByteStr(unsigned long long d) { const unsigned long long KiB = 1024; const unsigned long long MiB = KiB * 1024; const unsigned long long GiB = MiB * 1024; const unsigned long long TiB = GiB * 1024; if (d > TiB) { return CString(d / TiB) + " TiB"; } else if (d > GiB) { return CString(d / GiB) + " GiB"; } else if (d > MiB) { return CString(d / MiB) + " MiB"; } else if (d > KiB) { return CString(d / KiB) + " KiB"; } return CString(d) + " B"; } CString CString::ToTimeStr(unsigned long s) { const unsigned long m = 60; const unsigned long h = m * 60; const unsigned long d = h * 24; const unsigned long w = d * 7; const unsigned long y = d * 365; CString sRet; #define TIMESPAN(time, str) \ if (s >= time) { \ sRet += CString(s / time) + str " "; \ s = s % time; \ } TIMESPAN(y, "y"); TIMESPAN(w, "w"); TIMESPAN(d, "d"); TIMESPAN(h, "h"); TIMESPAN(m, "m"); TIMESPAN(1, "s"); if (sRet.empty()) return "0s"; return sRet.RightChomp_n(); } bool CString::ToBool() const { CString sTrimmed = Trim_n(); return (!sTrimmed.Trim_n("0").empty() && !sTrimmed.Equals("false") && !sTrimmed.Equals("off") && !sTrimmed.Equals("no") && !sTrimmed.Equals("n")); } short CString::ToShort() const { return (short int)strtol(this->c_str(), (char**) NULL, 10); } unsigned short CString::ToUShort() const { return (unsigned short int)strtoul(this->c_str(), (char**) NULL, 10); } unsigned int CString::ToUInt() const { return (unsigned int)strtoul(this->c_str(), (char**) NULL, 10); } int CString::ToInt() const { return (int)strtol(this->c_str(), (char**) NULL, 10); } long CString::ToLong() const { return strtol(this->c_str(), (char**) NULL, 10); } unsigned long CString::ToULong() const { return strtoul(c_str(), NULL, 10); } unsigned long long CString::ToULongLong() const { return strtoull(c_str(), NULL, 10); } long long CString::ToLongLong() const { return strtoll(c_str(), NULL, 10); } double CString::ToDouble() const { return strtod(c_str(), NULL); } bool CString::Trim(const CString& s) { bool bLeft = TrimLeft(s); return (TrimRight(s) || bLeft); } bool CString::TrimLeft(const CString& s) { size_type i = find_first_not_of(s); if (i == 0) return false; if (i != npos) this->erase(0, i); else this->clear(); return true; } bool CString::TrimRight(const CString& s) { size_type i = find_last_not_of(s); if (i + 1 == length()) return false; if (i != npos) this->erase(i + 1, npos); else this->clear(); return true; } CString CString::Trim_n(const CString& s) const { CString sRet = *this; sRet.Trim(s); return sRet; } CString CString::TrimLeft_n(const CString& s) const { CString sRet = *this; sRet.TrimLeft(s); return sRet; } CString CString::TrimRight_n(const CString& s) const { CString sRet = *this; sRet.TrimRight(s); return sRet; } bool CString::TrimPrefix(const CString& sPrefix) { if (Equals(sPrefix, false, sPrefix.length())) { LeftChomp(sPrefix.length()); return true; } else { return false; } } bool CString::TrimSuffix(const CString& sSuffix) { if (Right(sSuffix.length()).Equals(sSuffix)) { RightChomp(sSuffix.length()); return true; } else { return false; } } size_t CString::Find(const CString& s, CaseSensitivity cs) const { if (cs == CaseSensitive) { return find(s); } else { return AsLower().find(s.AsLower()); } } bool CString::StartsWith(const CString& sPrefix, CaseSensitivity cs) const { return Left(sPrefix.length()).Equals(sPrefix, cs); } bool CString::EndsWith(const CString& sSuffix, CaseSensitivity cs) const { return Right(sSuffix.length()).Equals(sSuffix, cs); } bool CString::Contains(const CString& s, CaseSensitivity cs) const { return Find(s, cs) != npos; } CString CString::TrimPrefix_n(const CString& sPrefix) const { CString sRet = *this; sRet.TrimPrefix(sPrefix); return sRet; } CString CString::TrimSuffix_n(const CString& sSuffix) const { CString sRet = *this; sRet.TrimSuffix(sSuffix); return sRet; } CString CString::LeftChomp_n(size_type uLen) const { CString sRet = *this; sRet.LeftChomp(uLen); return sRet; } CString CString::RightChomp_n(size_type uLen) const { CString sRet = *this; sRet.RightChomp(uLen); return sRet; } bool CString::LeftChomp(size_type uLen) { bool bRet = false; while ((uLen--) && (length())) { erase(0, 1); bRet = true; } return bRet; } bool CString::RightChomp(size_type uLen) { bool bRet = false; while ((uLen--) && (length())) { erase(length() -1); bRet = true; } return bRet; } CString CString::StripControls_n() const { CString sRet; const unsigned char *pStart = (const unsigned char*) data(); unsigned char ch = *pStart; size_type iLength = length(); sRet.reserve(iLength); bool colorCode = false; unsigned int digits = 0; bool comma = false; for (unsigned int a = 0; a < iLength; a++, ch = pStart[a]) { // Color code. Format: \x03([0-9]{1,2}(,[0-9]{1,2})?)? if (ch == 0x03) { colorCode = true; digits = 0; comma = false; continue; } if (colorCode) { if (isdigit(ch) && digits < 2) { digits++; continue; } if (ch == ',' && !comma && digits > 0) { comma = true; digits = 0; continue; } colorCode = false; if (digits == 0 && comma) { // There was a ',' which wasn't followed by digits, we should print it. sRet += ','; } } // CO controls codes if (ch < 0x20 || ch == 0x7F) continue; sRet += ch; } if (colorCode && digits == 0 && comma) { sRet += ','; } sRet.reserve(0); return sRet; } CString& CString::StripControls() { return (*this = StripControls_n()); } //////////////// MCString //////////////// const MCString MCString::EmptyMap; MCString::status_t MCString::WriteToDisk(const CString& sPath, mode_t iMode) const { CFile cFile(sPath); if (this->empty()) { if (!cFile.Exists()) return MCS_SUCCESS; if (cFile.Delete()) return MCS_SUCCESS; } if (!cFile.Open(O_WRONLY|O_CREAT|O_TRUNC, iMode)) { return MCS_EOPEN; } for (MCString::const_iterator it = this->begin(); it != this->end(); ++it) { CString sKey = it->first; CString sValue = it->second; if (!WriteFilter(sKey, sValue)) { return MCS_EWRITEFIL; } if (sKey.empty()) { continue; } if (cFile.Write(Encode(sKey) + " " + Encode(sValue) + "\n") <= 0) { return MCS_EWRITE; } } cFile.Close(); return MCS_SUCCESS; } MCString::status_t MCString::ReadFromDisk(const CString& sPath) { clear(); CFile cFile(sPath); if (!cFile.Open(O_RDONLY)) { return MCS_EOPEN; } CString sBuffer; while (cFile.ReadLine(sBuffer)) { sBuffer.Trim(); CString sKey = sBuffer.Token(0); CString sValue = sBuffer.Token(1); Decode(sKey); Decode(sValue); if (!ReadFilter(sKey, sValue)) return MCS_EREADFIL; (*this)[sKey] = sValue; } cFile.Close(); return MCS_SUCCESS; } static const char hexdigits[] = "0123456789abcdef"; CString& MCString::Encode(CString& sValue) const { CString sTmp; for (CString::iterator it = sValue.begin(); it != sValue.end(); ++it) { // isalnum() needs unsigned char as argument and this code // assumes unsigned, too. unsigned char c = *it; if (isalnum(c)) { sTmp += c; } else { sTmp += "%"; sTmp += hexdigits[c >> 4]; sTmp += hexdigits[c & 0xf]; sTmp += ";"; } } sValue = sTmp; return sValue; } CString& MCString::Decode(CString& sValue) const { const char *pTmp = sValue.c_str(); char *endptr; CString sTmp; while (*pTmp) { if (*pTmp != '%') { sTmp += *pTmp++; } else { char ch = (char) strtol(pTmp + 1, &endptr, 16); if (*endptr == ';') { sTmp += ch; pTmp = ++endptr; } else { sTmp += *pTmp++; } } } sValue = sTmp; return sValue; } znc-1.6.3/src/main.cpp0000644000175000017500000003061112663147131014763 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #if defined(HAVE_LIBSSL) && defined(HAVE_PTHREAD) #include #include #include static std::vector > lock_cs; static void locking_callback(int mode, int type, const char *file, int line) { if(mode & CRYPTO_LOCK) { lock_cs[type]->lock(); } else { lock_cs[type]->unlock(); } } static unsigned long thread_id_callback() { return (unsigned long)pthread_self(); } static CRYPTO_dynlock_value *dyn_create_callback(const char *file, int line) { return (CRYPTO_dynlock_value*)new CMutex; } static void dyn_lock_callback(int mode, CRYPTO_dynlock_value *dlock, const char *file, int line) { CMutex *mtx = (CMutex*)dlock; if(mode & CRYPTO_LOCK) { mtx->lock(); } else { mtx->unlock(); } } static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { CMutex *mtx = (CMutex*)dlock; delete mtx; } static void thread_setup() { lock_cs.resize(CRYPTO_num_locks()); for(std::unique_ptr &mtx: lock_cs) mtx = std::unique_ptr(new CMutex()); CRYPTO_set_id_callback(&thread_id_callback); CRYPTO_set_locking_callback(&locking_callback); CRYPTO_set_dynlock_create_callback(&dyn_create_callback); CRYPTO_set_dynlock_lock_callback(&dyn_lock_callback); CRYPTO_set_dynlock_destroy_callback(&dyn_destroy_callback); } #else #define thread_setup() #endif using std::cout; using std::endl; using std::set; #ifdef HAVE_GETOPT_LONG #include #else #define no_argument 0 #define required_argument 1 #define optional_argument 2 struct option { const char *a; int opt; int *flag; int val; }; static inline int getopt_long(int argc, char * const argv[], const char *optstring, const struct option *, int *) { return getopt(argc, argv, optstring); } #endif static const struct option g_LongOpts[] = { { "help", no_argument, 0, 'h' }, { "version", no_argument, 0, 'v' }, { "debug", no_argument, 0, 'D' }, { "foreground", no_argument, 0, 'f' }, { "no-color", no_argument, 0, 'n' }, { "allow-root", no_argument, 0, 'r' }, { "makeconf", no_argument, 0, 'c' }, { "makepass", no_argument, 0, 's' }, { "makepem", no_argument, 0, 'p' }, { "datadir", required_argument, 0, 'd' }, { 0, 0, 0, 0 } }; static void GenerateHelp(const char *appname) { CUtils::PrintMessage("USAGE: " + CString(appname) + " [options]"); CUtils::PrintMessage("Options are:"); CUtils::PrintMessage("\t-h, --help List available command line options (this page)"); CUtils::PrintMessage("\t-v, --version Output version information and exit"); CUtils::PrintMessage("\t-f, --foreground Don't fork into the background"); CUtils::PrintMessage("\t-D, --debug Output debugging information (Implies -f)"); CUtils::PrintMessage("\t-n, --no-color Don't use escape sequences in the output"); CUtils::PrintMessage("\t-r, --allow-root Don't complain if ZNC is run as root"); CUtils::PrintMessage("\t-c, --makeconf Interactively create a new config"); CUtils::PrintMessage("\t-s, --makepass Generates a password for use in config"); #ifdef HAVE_LIBSSL CUtils::PrintMessage("\t-p, --makepem Generates a pemfile for use with SSL"); #endif /* HAVE_LIBSSL */ CUtils::PrintMessage("\t-d, --datadir Set a different ZNC repository (default is ~/.znc)"); } static void die(int sig) { signal(SIGPIPE, SIG_DFL); CUtils::PrintMessage("Exiting on SIG [" + CString(sig) + "]"); CZNC::DestroyInstance(); exit(sig); } static void signalHandler(int sig) { switch (sig) { case SIGHUP: CUtils::PrintMessage("Caught SIGHUP"); CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_REHASH); break; case SIGUSR1: CUtils::PrintMessage("Caught SIGUSR1"); CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_VERBOSE_WRITE); break; default: CUtils::PrintMessage("WTF? Signal handler called for a signal it doesn't know?"); } } static bool isRoot() { // User root? If one of these were root, we could switch the others to root, too return (geteuid() == 0 || getuid() == 0); } static void seedPRNG() { struct timeval tv; unsigned int seed; // Try to find a seed which can't be as easily guessed as only time() if (gettimeofday(&tv, NULL) == 0) { seed = (unsigned int)tv.tv_sec; // This is in [0:1e6], which means that roughly 20 bits are // actually used, let's try to shuffle the high bits. seed ^= uint32_t((tv.tv_usec << 10) | tv.tv_usec); } else seed = (unsigned int)time(NULL); seed ^= rand(); seed ^= getpid(); srand(seed); } int main(int argc, char** argv) { CString sConfig; CString sDataDir = ""; thread_setup(); seedPRNG(); CDebug::SetStdoutIsTTY(isatty(1)); int iArg, iOptIndex = -1; bool bMakeConf = false; bool bMakePass = false; bool bAllowRoot = false; bool bForeground = false; #ifdef ALWAYS_RUN_IN_FOREGROUND bForeground = true; #endif #ifdef HAVE_LIBSSL bool bMakePem = false; #endif CZNC::CreateInstance(); while ((iArg = getopt_long(argc, argv, "hvnrcspd:Df", g_LongOpts, &iOptIndex)) != -1) { switch (iArg) { case 'h': GenerateHelp(argv[0]); return 0; case 'v': cout << CZNC::GetTag() << endl; cout << CZNC::GetCompileOptionsString() << endl; return 0; case 'n': CDebug::SetStdoutIsTTY(false); break; case 'r': bAllowRoot = true; break; case 'c': bMakeConf = true; break; case 's': bMakePass = true; break; case 'p': #ifdef HAVE_LIBSSL bMakePem = true; break; #else CUtils::PrintError("ZNC is compiled without SSL support."); return 1; #endif /* HAVE_LIBSSL */ case 'd': sDataDir = CString(optarg); break; case 'f': bForeground = true; break; case 'D': bForeground = true; CDebug::SetDebug(true); break; case '?': default: GenerateHelp(argv[0]); return 1; } } if (optind < argc) { CUtils::PrintError("Unrecognized command line arguments."); CUtils::PrintError("Did you mean to run `/znc " + CString(argv[optind]) + "' in IRC client instead?"); CUtils::PrintError("Hint: `/znc " + CString(argv[optind]) + "' is an alias for `/msg *status " + CString(argv[optind]) + "'"); return 1; } CZNC* pZNC = &CZNC::Get(); pZNC->InitDirs(((argc) ? argv[0] : ""), sDataDir); #ifdef HAVE_LIBSSL if (bMakePem) { pZNC->WritePemFile(); CZNC::DestroyInstance(); return 0; } #endif /* HAVE_LIBSSL */ if (bMakePass) { CString sSalt; CUtils::PrintMessage("Type your new password."); CString sHash = CUtils::GetSaltedHashPass(sSalt); CUtils::PrintMessage("Kill ZNC process, if it's running."); CUtils::PrintMessage("Then replace password in the section of your config with this:"); // Not PrintMessage(), to remove [**] from the beginning, to ease copypasting std::cout << "" << std::endl; std::cout << "\tMethod = " << CUtils::sDefaultHash << std::endl; std::cout << "\tHash = " << sHash << std::endl; std::cout << "\tSalt = " << sSalt << std::endl; std::cout << "" << std::endl; CUtils::PrintMessage("After that start ZNC again, and you should be able to login with the new password."); CZNC::DestroyInstance(); return 0; } { set ssGlobalMods; set ssUserMods; set ssNetworkMods; CUtils::PrintAction("Checking for list of available modules"); pZNC->GetModules().GetAvailableMods(ssGlobalMods, CModInfo::GlobalModule); pZNC->GetModules().GetAvailableMods(ssUserMods, CModInfo::UserModule); pZNC->GetModules().GetAvailableMods(ssNetworkMods, CModInfo::NetworkModule); if (ssGlobalMods.empty() && ssUserMods.empty() && ssNetworkMods.empty()) { CUtils::PrintStatus(false, ""); CUtils::PrintError("No modules found. Perhaps you didn't install ZNC properly?"); CUtils::PrintError("Read http://wiki.znc.in/Installation for instructions."); if (!CUtils::GetBoolInput("Do you really want to run ZNC without any modules?", false)) { CZNC::DestroyInstance(); return 1; } } CUtils::PrintStatus(true, ""); } if (isRoot()) { CUtils::PrintError("You are running ZNC as root! Don't do that! There are not many valid"); CUtils::PrintError("reasons for this and it can, in theory, cause great damage!"); if (!bAllowRoot) { CZNC::DestroyInstance(); return 1; } CUtils::PrintError("You have been warned."); CUtils::PrintError("Hit CTRL+C now if you don't want to run ZNC as root."); CUtils::PrintError("ZNC will start in 30 seconds."); sleep(30); } if (bMakeConf) { if (!pZNC->WriteNewConfig(sConfig)) { CZNC::DestroyInstance(); return 0; } /* Fall through to normal bootup */ } CString sConfigError; if (!pZNC->ParseConfig(sConfig, sConfigError)) { CUtils::PrintError("Unrecoverable config error."); CZNC::DestroyInstance(); return 1; } if (!pZNC->OnBoot()) { CUtils::PrintError("Exiting due to module boot errors."); CZNC::DestroyInstance(); return 1; } if (bForeground) { int iPid = getpid(); CUtils::PrintMessage("Staying open for debugging [pid: " + CString(iPid) + "]"); pZNC->WritePidFile(iPid); CUtils::PrintMessage(CZNC::GetTag()); } else { CUtils::PrintAction("Forking into the background"); int iPid = fork(); if (iPid == -1) { CUtils::PrintStatus(false, strerror(errno)); CZNC::DestroyInstance(); return 1; } if (iPid > 0) { // We are the parent. We are done and will go to bed. CUtils::PrintStatus(true, "[pid: " + CString(iPid) + "]"); pZNC->WritePidFile(iPid); CUtils::PrintMessage(CZNC::GetTag()); /* Don't destroy pZNC here or it will delete the pid file. */ return 0; } /* fcntl() locks don't necessarily propagate to forked() * children. Reacquire the lock here. Use the blocking * call to avoid race condition with parent exiting. */ if (!pZNC->WaitForChildLock()) { CUtils::PrintError("Child was unable to obtain lock on config file."); CZNC::DestroyInstance(); return 1; } // Redirect std in/out/err to /dev/null close(0); open("/dev/null", O_RDONLY); close(1); open("/dev/null", O_WRONLY); close(2); open("/dev/null", O_WRONLY); CDebug::SetStdoutIsTTY(false); // We are the child. There is no way we can be a process group // leader, thus setsid() must succeed. setsid(); // Now we are in our own process group and session (no // controlling terminal). We are independent! } struct sigaction sa; sa.sa_flags = 0; sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_IGN; sigaction(SIGPIPE, &sa, (struct sigaction*) NULL); sa.sa_handler = signalHandler; sigaction(SIGHUP, &sa, (struct sigaction*) NULL); sigaction(SIGUSR1, &sa, (struct sigaction*) NULL); // Once this signal is caught, the signal handler is reset // to SIG_DFL. This avoids endless loop with signals. sa.sa_flags = SA_RESETHAND; sa.sa_handler = die; sigaction(SIGINT, &sa, (struct sigaction*) NULL); sigaction(SIGQUIT, &sa, (struct sigaction*) NULL); sigaction(SIGTERM, &sa, (struct sigaction*) NULL); int iRet = 0; try { pZNC->Loop(); } catch (const CException& e) { switch (e.GetType()) { case CException::EX_Shutdown: iRet = 0; break; case CException::EX_Restart: { // strdup() because GCC is stupid char *args[] = { strdup(argv[0]), strdup("--datadir"), strdup(pZNC->GetZNCPath().c_str()), NULL, NULL, NULL, NULL }; int pos = 3; if (CDebug::Debug()) args[pos++] = strdup("--debug"); else if (bForeground) args[pos++] = strdup("--foreground"); if (!CDebug::StdoutIsTTY()) args[pos++] = strdup("--no-color"); if (bAllowRoot) args[pos++] = strdup("--allow-root"); // The above code adds 3 entries to args tops // which means the array should be big enough CZNC::DestroyInstance(); execvp(args[0], args); CUtils::PrintError("Unable to restart ZNC [" + CString(strerror(errno)) + "]"); } /* Fall through */ default: iRet = 1; } } CZNC::DestroyInstance(); return iRet; } znc-1.6.3/src/Client.cpp0000644000175000017500000007201212663147131015256 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include using std::set; using std::map; using std::vector; #define CALLMOD(MOD, CLIENT, USER, NETWORK, FUNC) { \ CModule *pModule = NULL; \ if (NETWORK && (pModule = (NETWORK)->GetModules().FindModule(MOD))) { \ try { \ pModule->SetClient(CLIENT); \ pModule->FUNC; \ pModule->SetClient(NULL); \ } catch (const CModule::EModException& e) { \ if (e == CModule::UNLOAD) { \ (NETWORK)->GetModules().UnloadModule(MOD); \ } \ } \ } else if ((pModule = (USER)->GetModules().FindModule(MOD))) { \ try { \ pModule->SetClient(CLIENT); \ pModule->SetNetwork(NETWORK); \ pModule->FUNC; \ pModule->SetClient(NULL); \ pModule->SetNetwork(NULL); \ } catch (const CModule::EModException& e) { \ if (e == CModule::UNLOAD) { \ (USER)->GetModules().UnloadModule(MOD); \ } \ } \ } else if ((pModule = CZNC::Get().GetModules().FindModule(MOD))) { \ try { \ pModule->SetClient(CLIENT); \ pModule->SetNetwork(NETWORK); \ pModule->SetUser(USER); \ pModule->FUNC; \ pModule->SetClient(NULL); \ pModule->SetNetwork(NULL); \ pModule->SetUser(NULL); \ } catch (const CModule::EModException& e) { \ if (e == CModule::UNLOAD) { \ CZNC::Get().GetModules().UnloadModule(MOD); \ } \ } \ } else { \ PutStatus("No such module [" + MOD + "]"); \ } \ } CClient::~CClient() { if (m_spAuth) { CClientAuth* pAuth = (CClientAuth*) &(*m_spAuth); pAuth->Invalidate(); } if (m_pUser != NULL) { m_pUser->AddBytesRead(GetBytesRead()); m_pUser->AddBytesWritten(GetBytesWritten()); } } void CClient::SendRequiredPasswordNotice() { PutClient(":irc.znc.in 464 " + GetNick() + " :Password required"); PutClient(":irc.znc.in NOTICE AUTH :*** " "You need to send your password. " "Configure your client to send a server password."); PutClient(":irc.znc.in NOTICE AUTH :*** " "To connect now, you can use /quote PASS :, " "or /quote PASS /: to connect to a specific network."); } void CClient::ReadLine(const CString& sData) { CString sLine = sData; sLine.TrimRight("\n\r"); DEBUG("(" << GetFullName() << ") CLI -> ZNC [" << sLine << "]"); if (sLine.Left(1) == "@") { // TODO support message-tags properly sLine = sLine.Token(1, true); } bool bReturn = false; if (IsAttached()) { NETWORKMODULECALL(OnUserRaw(sLine), m_pUser, m_pNetwork, this, &bReturn); } else { GLOBALMODULECALL(OnUnknownUserRaw(this, sLine), &bReturn); } if (bReturn) return; CString sCommand = sLine.Token(0); if (sCommand.Left(1) == ":") { // Evil client! Sending a nickmask prefix on client's command // is bad, bad, bad, bad, bad, bad, bad, bad, BAD, B A D! sLine = sLine.Token(1, true); sCommand = sLine.Token(0); } if (!IsAttached()) { // The following commands happen before authentication with ZNC if (sCommand.Equals("PASS")) { m_bGotPass = true; CString sAuthLine = sLine.Token(1, true).TrimPrefix_n(); ParsePass(sAuthLine); AuthUser(); return; // Don't forward this msg. ZNC has already registered us. } else if (sCommand.Equals("NICK")) { CString sNick = sLine.Token(1).TrimPrefix_n(); m_sNick = sNick; m_bGotNick = true; AuthUser(); return; // Don't forward this msg. ZNC will handle nick changes until auth is complete } else if (sCommand.Equals("USER")) { CString sAuthLine = sLine.Token(1); if (m_sUser.empty() && !sAuthLine.empty()) { ParseUser(sAuthLine); } m_bGotUser = true; if (m_bGotPass) { AuthUser(); } else if (!m_bInCap) { SendRequiredPasswordNotice(); } return; // Don't forward this msg. ZNC has already registered us. } } if (sCommand.Equals("CAP")) { HandleCap(sLine); // Don't let the client talk to the server directly about CAP, // we don't want anything enabled that ZNC does not support. return; } if (!m_pUser) { // Only CAP, NICK, USER and PASS are allowed before login return; } if (sCommand.Equals("ZNC")) { CString sTarget = sLine.Token(1); CString sModCommand; if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) { sModCommand = sLine.Token(2, true); } else { sTarget = "status"; sModCommand = sLine.Token(1, true); } if (sTarget.Equals("status")) { if (sModCommand.empty()) PutStatus("Hello. How may I help you?"); else UserCommand(sModCommand); } else { if (sModCommand.empty()) CALLMOD(sTarget, this, m_pUser, m_pNetwork, PutModule("Hello. How may I help you?")) else CALLMOD(sTarget, this, m_pUser, m_pNetwork, OnModCommand(sModCommand)) } return; } else if (sCommand.Equals("PING")) { // All PONGs are generated by ZNC. We will still forward this to // the ircd, but all PONGs from irc will be blocked. if (sLine.length() >= 5) PutClient(":irc.znc.in PONG irc.znc.in " + sLine.substr(5)); else PutClient(":irc.znc.in PONG irc.znc.in"); } else if (sCommand.Equals("PONG")) { // Block PONGs, we already responded to the pings return; } else if (sCommand.Equals("QUIT")) { Close(Csock::CLT_AFTERWRITE); // Treat a client quit as a detach return; // Don't forward this msg. We don't want the client getting us disconnected. } else if (sCommand.Equals("PROTOCTL")) { VCString vsTokens; VCString::const_iterator it; sLine.Token(1, true).Split(" ", vsTokens, false); for (it = vsTokens.begin(); it != vsTokens.end(); ++it) { if (*it == "NAMESX") { m_bNamesx = true; } else if (*it == "UHNAMES") { m_bUHNames = true; } } return; // If the server understands it, we already enabled namesx / uhnames } else if (sCommand.Equals("NOTICE")) { CString sTargets = sLine.Token(1).TrimPrefix_n(); CString sMsg = sLine.Token(2, true).TrimPrefix_n(); VCString vTargets; sTargets.Split(",", vTargets, false); for (CString& sTarget : vTargets) { if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) { if (!sTarget.Equals("status")) { CALLMOD(sTarget, this, m_pUser, m_pNetwork, OnModNotice(sMsg)); } continue; } bool bContinue = false; if (sMsg.WildCmp("\001*\001")) { CString sCTCP = sMsg; sCTCP.LeftChomp(); sCTCP.RightChomp(); if (sCTCP.Token(0) == "VERSION") { sCTCP += " via " + CZNC::GetTag(false); } NETWORKMODULECALL(OnUserCTCPReply(sTarget, sCTCP), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; sMsg = "\001" + sCTCP + "\001"; } else { NETWORKMODULECALL(OnUserNotice(sTarget, sMsg), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; } if (!GetIRCSock()) { // Some lagmeters do a NOTICE to their own nick, ignore those. if (!sTarget.Equals(m_sNick)) PutStatus("Your notice to [" + sTarget + "] got lost, " "you are not connected to IRC!"); continue; } if (m_pNetwork) { CChan* pChan = m_pNetwork->FindChan(sTarget); if ((pChan) && (!pChan->AutoClearChanBuffer())) { pChan->AddBuffer(":" + _NAMEDFMT(GetNickMask()) + " NOTICE " + _NAMEDFMT(sTarget) + " :{text}", sMsg); } // Relay to the rest of the clients that may be connected to this user const vector& vClients = GetClients(); for (CClient* pClient : vClients) { if (pClient != this && (m_pNetwork->IsChan(sTarget) || pClient->HasSelfMessage())) { pClient->PutClient(":" + GetNickMask() + " NOTICE " + sTarget + " :" + sMsg); } } PutIRC("NOTICE " + sTarget + " :" + sMsg); } } return; } else if (sCommand.Equals("PRIVMSG")) { CString sTargets = sLine.Token(1); CString sMsg = sLine.Token(2, true).TrimPrefix_n(); VCString vTargets; sTargets.Split(",", vTargets, false); for (CString& sTarget : vTargets) { bool bContinue = false; if (sMsg.WildCmp("\001*\001")) { CString sCTCP = sMsg; sCTCP.LeftChomp(); sCTCP.RightChomp(); if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) { if (sTarget.Equals("status")) { StatusCTCP(sCTCP); } else { CALLMOD(sTarget, this, m_pUser, m_pNetwork, OnModCTCP(sCTCP)); } continue; } if (m_pNetwork) { if (sCTCP.Token(0).Equals("ACTION")) { CString sMessage = sCTCP.Token(1, true); NETWORKMODULECALL(OnUserAction(sTarget, sMessage), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; sCTCP = "ACTION " + sMessage; if (m_pNetwork->IsChan(sTarget)) { CChan* pChan = m_pNetwork->FindChan(sTarget); if (pChan && (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline())) { pChan->AddBuffer(":" + _NAMEDFMT(GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :\001ACTION {text}\001", sMessage); } } else { if (!m_pUser->AutoClearQueryBuffer() || !m_pNetwork->IsUserOnline()) { CQuery* pQuery = m_pNetwork->AddQuery(sTarget); if (pQuery) { pQuery->AddBuffer(":" + _NAMEDFMT(GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :\001ACTION {text}\001", sMessage); } } } // Relay to the rest of the clients that may be connected to this user const vector& vClients = GetClients(); for (CClient* pClient : vClients) { if (pClient != this && (m_pNetwork->IsChan(sTarget) || pClient->HasSelfMessage())) { pClient->PutClient(":" + GetNickMask() + " PRIVMSG " + sTarget + " :\001" + sCTCP + "\001"); } } } else { NETWORKMODULECALL(OnUserCTCP(sTarget, sCTCP), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; } PutIRC("PRIVMSG " + sTarget + " :\001" + sCTCP + "\001"); } continue; } if (sTarget.TrimPrefix(m_pUser->GetStatusPrefix())) { if (sTarget.Equals("status")) { UserCommand(sMsg); } else { CALLMOD(sTarget, this, m_pUser, m_pNetwork, OnModCommand(sMsg)); } continue; } NETWORKMODULECALL(OnUserMsg(sTarget, sMsg), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; if (!GetIRCSock()) { // Some lagmeters do a PRIVMSG to their own nick, ignore those. if (!sTarget.Equals(m_sNick)) PutStatus("Your message to [" + sTarget + "] got lost, " "you are not connected to IRC!"); continue; } if (m_pNetwork) { if (m_pNetwork->IsChan(sTarget)) { CChan* pChan = m_pNetwork->FindChan(sTarget); if ((pChan) && (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline())) { pChan->AddBuffer(":" + _NAMEDFMT(GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :{text}", sMsg); } } else { if (!m_pUser->AutoClearQueryBuffer() || !m_pNetwork->IsUserOnline()) { CQuery* pQuery = m_pNetwork->AddQuery(sTarget); if (pQuery) { pQuery->AddBuffer(":" + _NAMEDFMT(GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :{text}", sMsg); } } } PutIRC("PRIVMSG " + sTarget + " :" + sMsg); // Relay to the rest of the clients that may be connected to this user const vector& vClients = GetClients(); for (CClient* pClient : vClients) { if (pClient != this && (m_pNetwork->IsChan(sTarget) || pClient->HasSelfMessage())) { pClient->PutClient(":" + GetNickMask() + " PRIVMSG " + sTarget + " :" + sMsg); } } } } return; } if (!m_pNetwork) { return; // The following commands require a network } if (sCommand.Equals("DETACH")) { CString sPatterns = sLine.Token(1, true); if (sPatterns.empty()) { PutStatusNotice("Usage: /detach <#chans>"); return; } VCString vsChans; sPatterns.Replace(",", " "); sPatterns.Split(" ", vsChans, false, "", "", true, true); set sChans; for (const CString& sChan : vsChans) { vector vChans = m_pNetwork->FindChans(sChan); sChans.insert(vChans.begin(), vChans.end()); } unsigned int uDetached = 0; for (CChan* pChan : sChans) { if (pChan->IsDetached()) continue; uDetached++; pChan->DetachUser(); } PutStatusNotice("There were [" + CString(sChans.size()) + "] channels matching [" + sPatterns + "]"); PutStatusNotice("Detached [" + CString(uDetached) + "] channels"); return; } else if (sCommand.Equals("JOIN")) { CString sChans = sLine.Token(1).TrimPrefix_n(); CString sKeys = sLine.Token(2); VCString vChans; sChans.Split(",", vChans, false); sChans.clear(); VCString vKeys; sKeys.Split(",", vKeys, true); sKeys.clear(); for (unsigned int a = 0; a < vChans.size(); a++) { CString sChannel = vChans[a]; CString sKey = (a < vKeys.size()) ? vKeys[a] : ""; bool bContinue = false; NETWORKMODULECALL(OnUserJoin(sChannel, sKey), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; CChan* pChan = m_pNetwork->FindChan(sChannel); if (pChan) { if (pChan->IsDetached()) pChan->AttachUser(this); else pChan->JoinUser(sKey); continue; } if (!sChannel.empty()) { sChans += (sChans.empty()) ? sChannel : CString("," + sChannel); if (!vKeys.empty()) { sKeys += (sKeys.empty()) ? sKey : CString("," + sKey); } } } if (sChans.empty()) { return; } sLine = "JOIN " + sChans; if (!sKeys.empty()) { sLine += " " + sKeys; } } else if (sCommand.Equals("PART")) { CString sChans = sLine.Token(1).TrimPrefix_n(); CString sMessage = sLine.Token(2, true).TrimPrefix_n(); VCString vChans; sChans.Split(",", vChans, false); sChans.clear(); for (VCString::const_iterator it = vChans.begin(); it != vChans.end(); ++it) { CString sChan = *it; bool bContinue = false; NETWORKMODULECALL(OnUserPart(sChan, sMessage), m_pUser, m_pNetwork, this, &bContinue); if (bContinue) continue; CChan* pChan = m_pNetwork->FindChan(sChan); if (pChan && !pChan->IsOn()) { PutStatusNotice("Removing channel [" + sChan + "]"); m_pNetwork->DelChan(sChan); } else { sChans += (sChans.empty()) ? sChan : CString("," + sChan); } } if (sChans.empty()) { return; } sLine = "PART " + sChans; if (!sMessage.empty()) { sLine += " :" + sMessage; } } else if (sCommand.Equals("TOPIC")) { CString sChan = sLine.Token(1); CString sTopic = sLine.Token(2, true).TrimPrefix_n(); if (!sTopic.empty()) { NETWORKMODULECALL(OnUserTopic(sChan, sTopic), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; sLine = "TOPIC " + sChan + " :" + sTopic; } else { NETWORKMODULECALL(OnUserTopicRequest(sChan), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; } } else if (sCommand.Equals("MODE")) { CString sTarget = sLine.Token(1); CString sModes = sLine.Token(2, true); if (m_pNetwork->IsChan(sTarget) && sModes.empty()) { // If we are on that channel and already received a // /mode reply from the server, we can answer this // request ourself. CChan *pChan = m_pNetwork->FindChan(sTarget); if (pChan && pChan->IsOn() && !pChan->GetModeString().empty()) { PutClient(":" + m_pNetwork->GetIRCServer() + " 324 " + GetNick() + " " + sTarget + " " + pChan->GetModeString()); if (pChan->GetCreationDate() > 0) { PutClient(":" + m_pNetwork->GetIRCServer() + " 329 " + GetNick() + " " + sTarget + " " + CString(pChan->GetCreationDate())); } return; } } } PutIRC(sLine); } void CClient::SetNick(const CString& s) { m_sNick = s; } void CClient::SetNetwork(CIRCNetwork* pNetwork, bool bDisconnect, bool bReconnect) { if (bDisconnect) { if (m_pNetwork) { m_pNetwork->ClientDisconnected(this); // Tell the client they are no longer in these channels. const vector& vChans = m_pNetwork->GetChans(); for (vector::const_iterator it = vChans.begin(); it != vChans.end(); ++it) { if (!((*it)->IsDetached())) { PutClient(":" + m_pNetwork->GetIRCNick().GetNickMask() + " PART " + (*it)->GetName()); } } } else if (m_pUser) { m_pUser->UserDisconnected(this); } } m_pNetwork = pNetwork; if (bReconnect) { if (m_pNetwork) { m_pNetwork->ClientConnected(this); } else if (m_pUser) { m_pUser->UserConnected(this); } } } const vector& CClient::GetClients() const { if (m_pNetwork) { return m_pNetwork->GetClients(); } return m_pUser->GetUserClients(); } const CIRCSock* CClient::GetIRCSock() const { if (m_pNetwork) { return m_pNetwork->GetIRCSock(); } return NULL; } CIRCSock* CClient::GetIRCSock() { if (m_pNetwork) { return m_pNetwork->GetIRCSock(); } return NULL; } void CClient::StatusCTCP(const CString& sLine) { CString sCommand = sLine.Token(0); if (sCommand.Equals("PING")) { PutStatusNotice("\001PING " + sLine.Token(1, true) + "\001"); } else if (sCommand.Equals("VERSION")) { PutStatusNotice("\001VERSION " + CZNC::GetTag() + "\001"); } } bool CClient::SendMotd() { const VCString& vsMotd = CZNC::Get().GetMotd(); if (!vsMotd.size()) { return false; } for (unsigned int a = 0; a < vsMotd.size(); a++) { if (m_pNetwork) { PutStatusNotice(m_pNetwork->ExpandString(vsMotd[a])); } else { PutStatusNotice(m_pUser->ExpandString(vsMotd[a])); } } return true; } void CClient::AuthUser() { if (!m_bGotNick || !m_bGotUser || !m_bGotPass || m_bInCap || IsAttached()) return; m_spAuth = std::make_shared(this, m_sUser, m_sPass); CZNC::Get().AuthUser(m_spAuth); } CClientAuth::CClientAuth(CClient* pClient, const CString& sUsername, const CString& sPassword) : CAuthBase(sUsername, sPassword, pClient) { m_pClient = pClient; } void CClientAuth::RefusedLogin(const CString& sReason) { if (m_pClient) { m_pClient->RefuseLogin(sReason); } } CString CAuthBase::GetRemoteIP() const { if (m_pSock) return m_pSock->GetRemoteIP(); return ""; } void CAuthBase::Invalidate() { m_pSock = NULL; } void CAuthBase::AcceptLogin(CUser& User) { if (m_pSock) { AcceptedLogin(User); Invalidate(); } } void CAuthBase::RefuseLogin(const CString& sReason) { if (!m_pSock) return; CUser* pUser = CZNC::Get().FindUser(GetUsername()); // If the username is valid, notify that user that someone tried to // login. Use sReason because there are other reasons than "wrong // password" for a login to be rejected (e.g. fail2ban). if (pUser) { pUser->PutStatus("A client from [" + GetRemoteIP() + "] attempted " "to login as you, but was rejected [" + sReason + "]."); } GLOBALMODULECALL(OnFailedLogin(GetUsername(), GetRemoteIP()), NOTHING); RefusedLogin(sReason); Invalidate(); } void CClient::RefuseLogin(const CString& sReason) { PutStatus("Bad username and/or password."); PutClient(":irc.znc.in 464 " + GetNick() + " :" + sReason); Close(Csock::CLT_AFTERWRITE); } void CClientAuth::AcceptedLogin(CUser& User) { if (m_pClient) { m_pClient->AcceptLogin(User); } } void CClient::AcceptLogin(CUser& User) { m_sPass = ""; m_pUser = &User; // Set our proper timeout and set back our proper timeout mode // (constructor set a different timeout and mode) SetTimeout(CIRCNetwork::NO_TRAFFIC_TIMEOUT, TMO_READ); SetSockName("USR::" + m_pUser->GetUserName()); SetEncoding(m_pUser->GetClientEncoding()); if (!m_sNetwork.empty()) { m_pNetwork = m_pUser->FindNetwork(m_sNetwork); if (!m_pNetwork) { PutStatus("Network (" + m_sNetwork + ") doesn't exist."); } } else if (!m_pUser->GetNetworks().empty()) { // If a user didn't supply a network, and they have a network called "default" then automatically use this network. m_pNetwork = m_pUser->FindNetwork("default"); // If no "default" network, try "user" network. It's for compatibility with early network stuff in ZNC, which converted old configs to "user" network. if (!m_pNetwork) m_pNetwork = m_pUser->FindNetwork("user"); // Otherwise, just try any network of the user. if (!m_pNetwork) m_pNetwork = *m_pUser->GetNetworks().begin(); if (m_pNetwork && m_pUser->GetNetworks().size() > 1) { PutStatusNotice("You have several networks configured, but no network was specified for the connection."); PutStatusNotice("Selecting network [" + m_pNetwork->GetName() + "]. To see list of all configured networks, use /znc ListNetworks"); PutStatusNotice("If you want to choose another network, use /znc JumpNetwork , or connect to ZNC with username " + m_pUser->GetUserName() + "/ (instead of just " + m_pUser->GetUserName() + ")"); } } else { PutStatusNotice("You have no networks configured. Use /znc AddNetwork to add one."); } SetNetwork(m_pNetwork, false); SendMotd(); NETWORKMODULECALL(OnClientLogin(), m_pUser, m_pNetwork, this, NOTHING); } void CClient::Timeout() { PutClient("ERROR :Closing link [Timeout]"); } void CClient::Connected() { DEBUG(GetSockName() << " == Connected();"); } void CClient::ConnectionRefused() { DEBUG(GetSockName() << " == ConnectionRefused()"); } void CClient::Disconnected() { DEBUG(GetSockName() << " == Disconnected()"); CIRCNetwork* pNetwork = m_pNetwork; SetNetwork(NULL, true, false); if (m_pUser) { NETWORKMODULECALL(OnClientDisconnect(), m_pUser, pNetwork, this, NOTHING); } } void CClient::ReachedMaxBuffer() { DEBUG(GetSockName() << " == ReachedMaxBuffer()"); if (IsAttached()) { PutClient("ERROR :Closing link [Too long raw line]"); } Close(); } void CClient::BouncedOff() { PutStatusNotice("You are being disconnected because another user just authenticated as you."); Close(Csock::CLT_AFTERWRITE); } void CClient::PutIRC(const CString& sLine) { if (m_pNetwork) { m_pNetwork->PutIRC(sLine); } } CString CClient::GetFullName() const { if (!m_pUser) return GetRemoteIP(); CString sFullName = m_pUser->GetUserName(); if (!m_sIdentifier.empty()) sFullName += "@" + m_sIdentifier; if (m_pNetwork) sFullName += "/" + m_pNetwork->GetName(); return sFullName; } void CClient::PutClient(const CString& sLine) { bool bReturn = false; CString sCopy = sLine; NETWORKMODULECALL(OnSendToClient(sCopy, *this), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; DEBUG("(" << GetFullName() << ") ZNC -> CLI [" << sCopy << "]"); Write(sCopy + "\r\n"); } void CClient::PutStatusNotice(const CString& sLine) { PutModNotice("status", sLine); } unsigned int CClient::PutStatus(const CTable& table) { unsigned int idx = 0; CString sLine; while (table.GetLine(idx++, sLine)) PutStatus(sLine); return idx - 1; } void CClient::PutStatus(const CString& sLine) { PutModule("status", sLine); } void CClient::PutModNotice(const CString& sModule, const CString& sLine) { if (!m_pUser) { return; } DEBUG("(" << GetFullName() << ") ZNC -> CLI [:" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in NOTICE " << GetNick() << " :" << sLine << "]"); Write(":" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in NOTICE " + GetNick() + " :" + sLine + "\r\n"); } void CClient::PutModule(const CString& sModule, const CString& sLine) { VCString vsLines; VCString::iterator it; if (!m_pUser) { return; } DEBUG("(" << GetFullName() << ") ZNC -> CLI [:" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in PRIVMSG " << GetNick() << " :" << sLine << "]"); sLine.Split("\n", vsLines); for (it = vsLines.begin(); it != vsLines.end(); ++it) { Write(":" + m_pUser->GetStatusPrefix() + ((sModule.empty()) ? "status" : sModule) + "!znc@znc.in PRIVMSG " + GetNick() + " :" + (*it) + "\r\n"); } } CString CClient::GetNick(bool bAllowIRCNick) const { CString sRet; const CIRCSock *pSock = GetIRCSock(); if (bAllowIRCNick && pSock && pSock->IsAuthed()) { sRet = pSock->GetNick(); } return (sRet.empty()) ? m_sNick : sRet; } CString CClient::GetNickMask() const { if (GetIRCSock() && GetIRCSock()->IsAuthed()) { return GetIRCSock()->GetNickMask(); } CString sHost = m_pNetwork ? m_pNetwork->GetBindHost() : m_pUser->GetBindHost(); if (sHost.empty()) { sHost = "irc.znc.in"; } return GetNick() + "!" + (m_pNetwork ? m_pNetwork->GetIdent() : m_pUser->GetIdent()) + "@" + sHost; } bool CClient::IsValidIdentifier(const CString& sIdentifier) { // ^[-\w]+$ if (sIdentifier.empty()) { return false; } const char *p = sIdentifier.c_str(); while (*p) { if (*p != '_' && *p != '-' && !isalnum(*p)) { return false; } p++; } return true; } void CClient::RespondCap(const CString& sResponse) { PutClient(":irc.znc.in CAP " + GetNick() + " " + sResponse); } void CClient::HandleCap(const CString& sLine) { // This is not exactly correct, but this is protection from "CAP :END" CString sSubCmd = sLine.Token(1).TrimPrefix_n(":"); if (sSubCmd.Equals("LS")) { SCString ssOfferCaps; GLOBALMODULECALL(OnClientCapLs(this, ssOfferCaps), NOTHING); CString sRes; for (SCString::iterator i = ssOfferCaps.begin(); i != ssOfferCaps.end(); ++i) { sRes += *i + " "; } RespondCap("LS :" + sRes + "userhost-in-names multi-prefix znc.in/server-time-iso znc.in/batch znc.in/self-message"); m_bInCap = true; } else if (sSubCmd.Equals("END")) { m_bInCap = false; if (!IsAttached()) { if (!m_pUser && m_bGotUser && !m_bGotPass) { SendRequiredPasswordNotice(); } else { AuthUser(); } } } else if (sSubCmd.Equals("REQ")) { VCString vsTokens; VCString::iterator it; sLine.Token(2, true).TrimPrefix_n(":").Split(" ", vsTokens, false); for (it = vsTokens.begin(); it != vsTokens.end(); ++it) { bool bVal = true; CString sCap = *it; if (sCap.TrimPrefix("-")) bVal = false; bool bAccepted = ("multi-prefix" == sCap) || ("userhost-in-names" == sCap) || ("znc.in/server-time-iso" == sCap) || ("znc.in/batch" == sCap) || ("znc.in/self-message" == sCap); GLOBALMODULECALL(IsClientCapSupported(this, sCap, bVal), &bAccepted); if (!bAccepted) { // Some unsupported capability is requested RespondCap("NAK :" + sLine.Token(2, true).TrimPrefix_n(":")); return; } } // All is fine, we support what was requested for (it = vsTokens.begin(); it != vsTokens.end(); ++it) { bool bVal = true; if (it->TrimPrefix("-")) bVal = false; if ("multi-prefix" == *it) { m_bNamesx = bVal; } else if ("userhost-in-names" == *it) { m_bUHNames = bVal; } else if ("znc.in/server-time-iso" == *it) { m_bServerTime = bVal; } else if ("znc.in/batch" == *it) { m_bBatch = bVal; } else if ("znc.in/self-message" == *it) { m_bSelfMessage = bVal; } GLOBALMODULECALL(OnClientCapRequest(this, *it, bVal), NOTHING); if (bVal) { m_ssAcceptedCaps.insert(*it); } else { m_ssAcceptedCaps.erase(*it); } } RespondCap("ACK :" + sLine.Token(2, true).TrimPrefix_n(":")); } else if (sSubCmd.Equals("LIST")) { CString sList = ""; for (SCString::iterator i = m_ssAcceptedCaps.begin(); i != m_ssAcceptedCaps.end(); ++i) { sList += *i + " "; } RespondCap("LIST :" + sList.TrimSuffix_n(" ")); } else if (sSubCmd.Equals("CLEAR")) { SCString ssRemoved; for (SCString::iterator i = m_ssAcceptedCaps.begin(); i != m_ssAcceptedCaps.end(); ++i) { bool bRemoving = false; GLOBALMODULECALL(IsClientCapSupported(this, *i, false), &bRemoving); if (bRemoving) { GLOBALMODULECALL(OnClientCapRequest(this, *i, false), NOTHING); ssRemoved.insert(*i); } } if (m_bNamesx) { m_bNamesx = false; ssRemoved.insert("multi-prefix"); } if (m_bUHNames) { m_bUHNames = false; ssRemoved.insert("userhost-in-names"); } if (m_bServerTime) { m_bServerTime = false; ssRemoved.insert("znc.in/server-time-iso"); } if (m_bBatch) { m_bBatch = false; ssRemoved.insert("znc.in/batch"); } if (m_bSelfMessage) { m_bSelfMessage = false; ssRemoved.insert("znc.in/self-message"); } CString sList = ""; for (SCString::iterator i = ssRemoved.begin(); i != ssRemoved.end(); ++i) { m_ssAcceptedCaps.erase(*i); sList += "-" + *i + " "; } RespondCap("ACK :" + sList.TrimSuffix_n(" ")); } else { PutClient(":irc.znc.in 410 " + GetNick() + " " + sSubCmd + " :Invalid CAP subcommand"); } } void CClient::ParsePass(const CString& sAuthLine) { // [user[@identifier][/network]:]password const size_t uColon = sAuthLine.find(":"); if (uColon != CString::npos) { m_sPass = sAuthLine.substr(uColon + 1); ParseUser(sAuthLine.substr(0, uColon)); } else { m_sPass = sAuthLine; } } void CClient::ParseUser(const CString& sAuthLine) { // user[@identifier][/network] const size_t uSlash = sAuthLine.rfind("/"); if (uSlash != CString::npos) { m_sNetwork = sAuthLine.substr(uSlash + 1); ParseIdentifier(sAuthLine.substr(0, uSlash)); } else { ParseIdentifier(sAuthLine); } } void CClient::ParseIdentifier(const CString& sAuthLine) { // user[@identifier] const size_t uAt = sAuthLine.rfind("@"); if (uAt != CString::npos) { const CString sId = sAuthLine.substr(uAt + 1); if (IsValidIdentifier(sId)) { m_sIdentifier = sId; m_sUser = sAuthLine.substr(0, uAt); } else { m_sUser = sAuthLine; } } else { m_sUser = sAuthLine; } } znc-1.6.3/src/Threads.cpp0000644000175000017500000001530012663147131015427 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #ifdef HAVE_PTHREAD #include #include /* Just an arbitrary limit for the number of idle threads */ static const size_t MAX_IDLE_THREADS = 3; /* Just an arbitrary limit for the number of running threads */ static const size_t MAX_TOTAL_THREADS = 20; CThreadPool& CThreadPool::Get() { // Beware! The following is not thread-safe! This function must // be called once any thread is started. static CThreadPool pool; return pool; } CThreadPool::CThreadPool() : m_done(false), m_num_threads(0), m_num_idle(0) { if (pipe(m_iJobPipe)) { DEBUG("Ouch, can't open pipe for thread pool: " << strerror(errno)); exit(1); } } void CThreadPool::jobDone(CJob* job) { // This must be called with the mutex locked! enum CJob::EJobState oldState = job->m_eState; job->m_eState = CJob::DONE; if (oldState == CJob::CANCELLED) { // Signal the main thread that cancellation is done m_cancellationCond.signal(); return; } // This write() must succeed because POSIX guarantees that writes of // less than PIPE_BUF are atomic (and PIPE_BUF is at least 512). // (Yes, this really wants to write a pointer(!) to the pipe. size_t w = write(m_iJobPipe[1], &job, sizeof(job)); if (w != sizeof(job)) { DEBUG("Something bad happened during write() to a pipe for thread pool, wrote " << w << " bytes: " << strerror(errno)); exit(1); } } void CThreadPool::handlePipeReadable() const { finishJob(getJobFromPipe()); } CJob *CThreadPool::getJobFromPipe() const { CJob* a = NULL; ssize_t need = sizeof(a); ssize_t r = read(m_iJobPipe[0], &a, need); if (r != need) { DEBUG("Something bad happened during read() from a pipe for thread pool: " << strerror(errno)); exit(1); } return a; } void CThreadPool::finishJob(CJob *job) const { job->runMain(); delete job; } CThreadPool::~CThreadPool() { CMutexLocker guard(m_mutex); m_done = true; while (m_num_threads > 0) { m_cond.broadcast(); m_exit_cond.wait(m_mutex); } } bool CThreadPool::threadNeeded() const { if (m_num_idle > MAX_IDLE_THREADS) return false; return !m_done; } void CThreadPool::threadFunc() { CMutexLocker guard(m_mutex); // m_num_threads was already increased m_num_idle++; while (true) { while (m_jobs.empty()) { if (!threadNeeded()) break; m_cond.wait(m_mutex); } if (!threadNeeded()) break; // Figure out a job to do CJob *job = m_jobs.front(); m_jobs.pop_front(); // Now do the actual job m_num_idle--; job->m_eState = CJob::RUNNING; guard.unlock(); job->runThread(); guard.lock(); jobDone(job); m_num_idle++; } assert(m_num_threads > 0 && m_num_idle > 0); m_num_threads--; m_num_idle--; if (m_num_threads == 0 && m_done) m_exit_cond.signal(); } void CThreadPool::addJob(CJob *job) { CMutexLocker guard(m_mutex); m_jobs.push_back(job); // Do we already have a thread which can handle this job? if (m_num_idle > 0) { m_cond.signal(); return; } if (m_num_threads >= MAX_TOTAL_THREADS) // We can't start a new thread. The job will be handled once // some thread finishes its current job. return; // Start a new thread for our pool m_num_threads++; CThread::startThread(threadPoolFunc, this); } void CThreadPool::cancelJob(CJob *job) { std::set jobs; jobs.insert(job); cancelJobs(jobs); } void CThreadPool::cancelJobs(const std::set &jobs) { // Thanks to the mutex, jobs cannot change state anymore. There are // three different states which can occur: // // READY: The job is still in our list of pending jobs and no threads // got it yet. Just clean up. // // DONE: The job finished running and was already written to the pipe // that is used for waking up finished jobs. We can just read from the // pipe until we see this job. // // RUNNING: This is the complicated case. The job is currently being // executed. We change its state to CANCELLED so that wasCancelled() // returns true. Afterwards we wait on a CV for the job to have finished // running. This CV is signaled by jobDone() which checks the job's // status and sees that the job was cancelled. It signals to us that // cancellation is done by changing the job's status to DONE. CMutexLocker guard(m_mutex); std::set wait, finished, deleteLater; std::set::const_iterator it; // Start cancelling all jobs for (it = jobs.begin(); it != jobs.end(); ++it) { switch ((*it)->m_eState) { case CJob::READY: { (*it)->m_eState = CJob::CANCELLED; // Job wasn't started yet, must be in the queue std::list::iterator it2 = std::find(m_jobs.begin(), m_jobs.end(), *it); assert(it2 != m_jobs.end()); m_jobs.erase(it2); deleteLater.insert(*it); continue; } case CJob::RUNNING: (*it)->m_eState = CJob::CANCELLED; wait.insert(*it); continue; case CJob::DONE: (*it)->m_eState = CJob::CANCELLED; finished.insert(*it); continue; case CJob::CANCELLED: default: assert(0); } } // Now wait for cancellation to be done // Collect jobs that really were cancelled. Finished cancellation is // signaled by changing their state to DONE. while (!wait.empty()) { it = wait.begin(); while (it != wait.end()) { if ((*it)->m_eState != CJob::CANCELLED) { assert((*it)->m_eState == CJob::DONE); // Re-set state for the destructor (*it)->m_eState = CJob::CANCELLED;; deleteLater.insert(*it); wait.erase(it++); } else it++; } if (wait.empty()) break; // Then wait for more to be done m_cancellationCond.wait(m_mutex); } // We must call destructors with m_mutex unlocked so that they can call wasCancelled() guard.unlock(); // Handle finished jobs. They must already be in the pipe. while (!finished.empty()) { CJob *job = getJobFromPipe(); if (finished.erase(job) > 0) { assert(job->m_eState == CJob::CANCELLED); delete job; } else finishJob(job); } // Delete things that still need to be deleted while (!deleteLater.empty()) { delete *deleteLater.begin(); deleteLater.erase(deleteLater.begin()); } } bool CJob::wasCancelled() const { CMutexLocker guard(CThreadPool::Get().m_mutex); return m_eState == CANCELLED; } #endif // HAVE_PTHREAD znc-1.6.3/src/Listener.cpp0000644000175000017500000001172112663147131015625 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include CListener::~CListener() { if (m_pListener) CZNC::Get().GetManager().DelSockByAddr(m_pListener); } bool CListener::Listen() { if (!m_uPort || m_pListener) { errno = EINVAL; return false; } m_pListener = new CRealListener(*this); bool bSSL = false; #ifdef HAVE_LIBSSL if (IsSSL()) { bSSL = true; m_pListener->SetPemLocation(CZNC::Get().GetPemLocation()); } #endif // If e.g. getaddrinfo() fails, the following might not set errno. // Make sure there is a consistent error message, not something random // which might even be "Error: Success". errno = EINVAL; return CZNC::Get().GetManager().ListenHost(m_uPort, "_LISTENER", m_sBindHost, bSSL, SOMAXCONN, m_pListener, 0, m_eAddr); } void CListener::ResetRealListener() { m_pListener = NULL; } CRealListener::~CRealListener() { m_Listener.ResetRealListener(); } bool CRealListener::ConnectionFrom(const CString& sHost, unsigned short uPort) { bool bHostAllowed = CZNC::Get().IsHostAllowed(sHost); DEBUG(GetSockName() << " == ConnectionFrom(" << sHost << ", " << uPort << ") [" << (bHostAllowed ? "Allowed" : "Not allowed") << "]"); return bHostAllowed; } Csock* CRealListener::GetSockObj(const CString& sHost, unsigned short uPort) { CIncomingConnection *pClient = new CIncomingConnection(sHost, uPort, m_Listener.GetAcceptType(), m_Listener.GetURIPrefix()); if (CZNC::Get().AllowConnectionFrom(sHost)) { GLOBALMODULECALL(OnClientConnect(pClient, sHost, uPort), NOTHING); } else { pClient->Write(":irc.znc.in 464 unknown-nick :Too many anonymous connections from your IP\r\n"); pClient->Close(Csock::CLT_AFTERWRITE); GLOBALMODULECALL(OnFailedLogin("", sHost), NOTHING); } return pClient; } void CRealListener::SockError(int iErrno, const CString& sDescription) { DEBUG(GetSockName() << " == SockError(" << sDescription << ", " << strerror(iErrno) << ")"); if (iErrno == EMFILE) { // We have too many open fds, let's close this listening port to be able to continue // to work, next rehash will (try to) reopen it. CZNC::Get().Broadcast("We hit the FD limit, closing listening socket on [" + GetLocalIP() + " : " + CString(GetLocalPort()) + "]"); CZNC::Get().Broadcast("An admin has to rehash to reopen the listening port"); Close(); } } CIncomingConnection::CIncomingConnection(const CString& sHostname, unsigned short uPort, CListener::EAcceptType eAcceptType, const CString& sURIPrefix) : CZNCSock(sHostname, uPort), m_sURIPrefix(sURIPrefix) { m_eAcceptType = eAcceptType; // The socket will time out in 120 secs, no matter what. // This has to be fixed up later, if desired. SetTimeout(120, 0); SetEncoding("UTF-8"); EnableReadLine(); } void CIncomingConnection::ReachedMaxBuffer() { if (GetCloseType() != CLT_DONT) return; // Already closing // We don't actually SetMaxBufferThreshold() because that would be // inherited by sockets after SwapSockByAddr(). if (GetInternalReadBuffer().length() <= 4096) return; // We should never get here with legitimate requests :/ Close(); } void CIncomingConnection::ReadLine(const CString& sLine) { bool bIsHTTP = (sLine.WildCmp("GET * HTTP/1.?\r\n") || sLine.WildCmp("POST * HTTP/1.?\r\n")); bool bAcceptHTTP = (m_eAcceptType == CListener::ACCEPT_ALL) || (m_eAcceptType == CListener::ACCEPT_HTTP); bool bAcceptIRC = (m_eAcceptType == CListener::ACCEPT_ALL) || (m_eAcceptType == CListener::ACCEPT_IRC); Csock *pSock = NULL; if (!bIsHTTP) { // Let's assume it's an IRC connection if (!bAcceptIRC) { Write("ERROR :We don't take kindly to your types around here!\r\n"); Close(CLT_AFTERWRITE); DEBUG("Refused IRC connection to non IRC port"); return; } pSock = new CClient(); CZNC::Get().GetManager().SwapSockByAddr(pSock, this); // And don't forget to give it some sane name / timeout pSock->SetSockName("USR::???"); } else { // This is a HTTP request, let the webmods handle it if (!bAcceptHTTP) { Write("HTTP/1.0 403 Access Denied\r\n\r\nWeb Access is not enabled.\r\n"); Close(CLT_AFTERWRITE); DEBUG("Refused HTTP connection to non HTTP port"); return; } pSock = new CWebSock(m_sURIPrefix); CZNC::Get().GetManager().SwapSockByAddr(pSock, this); // And don't forget to give it some sane name / timeout pSock->SetSockName("WebMod::Client"); } // TODO can we somehow get rid of this? pSock->ReadLine(sLine); pSock->PushBuff("", 0, true); } znc-1.6.3/src/IRCSock.cpp0000644000175000017500000011705212663147131015301 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include using std::set; using std::vector; using std::map; #define IRCSOCKMODULECALL(macFUNC, macEXITER) NETWORKMODULECALL(macFUNC, m_pNetwork->GetUser(), m_pNetwork, NULL, macEXITER) // These are used in OnGeneralCTCP() const time_t CIRCSock::m_uCTCPFloodTime = 5; const unsigned int CIRCSock::m_uCTCPFloodCount = 5; // It will be bad if user sets it to 0.00000000000001 // If you want no flood protection, set network's flood rate to -1 // TODO move this constant to CIRCNetwork? static const double FLOOD_MINIMAL_RATE = 0.3; class CIRCFloodTimer : public CCron { CIRCSock* m_pSock; public: CIRCFloodTimer(CIRCSock* pSock) { m_pSock = pSock; StartMaxCycles(m_pSock->m_fFloodRate, 0); } virtual void RunJob() { if (m_pSock->m_iSendsAllowed < m_pSock->m_uFloodBurst) { m_pSock->m_iSendsAllowed++; } m_pSock->TrySend(); } }; bool CIRCSock::IsFloodProtected(double fRate) { return fRate > FLOOD_MINIMAL_RATE; } CIRCSock::CIRCSock(CIRCNetwork* pNetwork) : CIRCSocket() { m_pNetwork = pNetwork; m_bAuthed = false; m_bNamesx = false; m_bUHNames = false; m_fFloodRate = m_pNetwork->GetFloodRate(); m_uFloodBurst = m_pNetwork->GetFloodBurst(); m_bFloodProtection = IsFloodProtected(m_fFloodRate); m_iSendsAllowed = m_uFloodBurst; EnableReadLine(); m_Nick.SetIdent(m_pNetwork->GetIdent()); m_Nick.SetHost(m_pNetwork->GetBindHost()); SetEncoding(m_pNetwork->GetEncoding()); m_uMaxNickLen = 9; m_uCapPaused = 0; m_lastCTCP = 0; m_uNumCTCP = 0; m_sPerms = "*!@%+"; m_sPermModes = "qaohv"; m_mueChanModes['b'] = ListArg; m_mueChanModes['e'] = ListArg; m_mueChanModes['I'] = ListArg; m_mueChanModes['k'] = HasArg; m_mueChanModes['l'] = ArgWhenSet; m_mueChanModes['p'] = NoArg; m_mueChanModes['s'] = NoArg; m_mueChanModes['t'] = NoArg; m_mueChanModes['i'] = NoArg; m_mueChanModes['n'] = NoArg; pNetwork->SetIRCSocket(this); // RFC says a line can have 512 chars max, but we don't care ;) SetMaxBufferThreshold(1024); if (m_bFloodProtection) { AddCron(new CIRCFloodTimer(this)); } } CIRCSock::~CIRCSock() { if (!m_bAuthed) { IRCSOCKMODULECALL(OnIRCConnectionError(this), NOTHING); } const vector& vChans = m_pNetwork->GetChans(); for (unsigned int a = 0; a < vChans.size(); a++) { vChans[a]->Reset(); } m_pNetwork->IRCDisconnected(); for (map::iterator a = m_msChans.begin(); a != m_msChans.end(); ++a) { delete a->second; } Quit(); m_msChans.clear(); m_pNetwork->GetUser()->AddBytesRead(GetBytesRead()); m_pNetwork->GetUser()->AddBytesWritten(GetBytesWritten()); } void CIRCSock::Quit(const CString& sQuitMsg) { if (!m_bAuthed) { Close(CLT_NOW); return; } if (!sQuitMsg.empty()) { PutIRC("QUIT :" + sQuitMsg); } else { PutIRC("QUIT :" + m_pNetwork->ExpandString(m_pNetwork->GetQuitMsg())); } Close(CLT_AFTERWRITE); } void CIRCSock::ReadLine(const CString& sData) { CString sLine = sData; sLine.TrimRight("\n\r"); DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/" << m_pNetwork->GetName() << ") IRC -> ZNC [" << sLine << "]"); bool bReturn = false; IRCSOCKMODULECALL(OnRaw(sLine), &bReturn); if (bReturn) return; if (sLine.Equals("PING ", false, 5)) { // Generate a reply and don't forward this to any user, // we don't want any PING forwarded PutIRCQuick("PONG " + sLine.substr(5)); return; } else if (sLine.Token(1).Equals("PONG")) { // Block PONGs, we already responded to the pings return; } else if (sLine.Equals("ERROR ", false, 6)) { //ERROR :Closing Link: nick[24.24.24.24] (Excess Flood) CString sError(sLine.substr(6)); sError.TrimPrefix(); m_pNetwork->PutStatus("Error from Server [" + sError + "]"); return; } CString sCmd = sLine.Token(1); if ((sCmd.length() == 3) && (isdigit(sCmd[0])) && (isdigit(sCmd[1])) && (isdigit(sCmd[2]))) { CString sServer = sLine.Token(0).LeftChomp_n(); unsigned int uRaw = sCmd.ToUInt(); CString sNick = sLine.Token(2); CString sRest = sLine.Token(3, true); CString sTmp; switch (uRaw) { case 1: { // :irc.server.com 001 nick :Welcome to the Internet Relay Network nick if (m_bAuthed && sServer == "irc.znc.in") { // m_bAuthed == true => we already received another 001 => we might be in a traffic loop m_pNetwork->PutStatus("ZNC seems to be connected to itself, disconnecting..."); Quit(); return; } m_pNetwork->SetIRCServer(sServer); SetTimeout(CIRCNetwork::NO_TRAFFIC_TIMEOUT, TMO_READ); // Now that we are connected, let nature take its course PutIRC("WHO " + sNick); m_bAuthed = true; m_pNetwork->PutStatus("Connected!"); const vector& vClients = m_pNetwork->GetClients(); for (unsigned int a = 0; a < vClients.size(); a++) { CClient* pClient = vClients[a]; CString sClientNick = pClient->GetNick(false); if (!sClientNick.Equals(sNick)) { // If they connected with a nick that doesn't match the one we got on irc, then we need to update them pClient->PutClient(":" + sClientNick + "!" + m_Nick.GetIdent() + "@" + m_Nick.GetHost() + " NICK :" + sNick); } } SetNick(sNick); IRCSOCKMODULECALL(OnIRCConnected(), NOTHING); m_pNetwork->ClearRawBuffer(); m_pNetwork->AddRawBuffer(":" + _NAMEDFMT(sServer) + " " + sCmd + " {target} " + _NAMEDFMT(sRest)); m_pNetwork->IRCConnected(); break; } case 5: ParseISupport(sRest); m_pNetwork->UpdateExactRawBuffer(":" + _NAMEDFMT(sServer) + " " + sCmd + " {target} " + _NAMEDFMT(sRest)); break; case 10: { // :irc.server.com 010 nick : CString sHost = sRest.Token(0); CString sPort = sRest.Token(1); CString sInfo = sRest.Token(2, true).TrimPrefix_n(); m_pNetwork->PutStatus("Server [" + m_pNetwork->GetCurrentServer()->GetString(false) + "] redirects us to [" + sHost + ":" + sPort + "] with reason [" + sInfo + "]"); m_pNetwork->PutStatus("Perhaps you want to add it as a new server."); // Don't send server redirects to the client return; } case 2: case 3: case 4: case 250: // highest connection count case 251: // user count case 252: // oper count case 254: // channel count case 255: // client count case 265: // local users case 266: // global users sTmp = ":" + _NAMEDFMT(sServer) + " " + sCmd; m_pNetwork->UpdateRawBuffer(sTmp, sTmp + " {target} " + _NAMEDFMT(sRest)); break; case 305: m_pNetwork->SetIRCAway(false); break; case 306: m_pNetwork->SetIRCAway(true); break; case 324: { // MODE sRest.Trim(); CChan* pChan = m_pNetwork->FindChan(sRest.Token(0)); if (pChan) { pChan->SetModes(sRest.Token(1, true)); // We don't SetModeKnown(true) here, // because a 329 will follow if (!pChan->IsModeKnown()) { // When we JOIN, we send a MODE // request. This makes sure the // reply isn't forwarded. return; } if (pChan->IsDetached()) { return; } } } break; case 329: { sRest.Trim(); CChan* pChan = m_pNetwork->FindChan(sRest.Token(0)); if (pChan) { unsigned long ulDate = sLine.Token(4).ToULong(); pChan->SetCreationDate(ulDate); if (!pChan->IsModeKnown()) { pChan->SetModeKnown(true); // When we JOIN, we send a MODE // request. This makes sure the // reply isn't forwarded. return; } if (pChan->IsDetached()) { return; } } } break; case 331: { // :irc.server.com 331 yournick #chan :No topic is set. CChan* pChan = m_pNetwork->FindChan(sLine.Token(3)); if (pChan) { pChan->SetTopic(""); if (pChan->IsDetached()) { return; } } break; } case 332: { // :irc.server.com 332 yournick #chan :This is a topic CChan* pChan = m_pNetwork->FindChan(sLine.Token(3)); if (pChan) { CString sTopic = sLine.Token(4, true); sTopic.LeftChomp(); pChan->SetTopic(sTopic); if (pChan->IsDetached()) { return; } } break; } case 333: { // :irc.server.com 333 yournick #chan setternick 1112320796 CChan* pChan = m_pNetwork->FindChan(sLine.Token(3)); if (pChan) { sNick = sLine.Token(4); unsigned long ulDate = sLine.Token(5).ToULong(); pChan->SetTopicOwner(sNick); pChan->SetTopicDate(ulDate); if (pChan->IsDetached()) { return; } } break; } case 352: { // WHO // :irc.yourserver.com 352 yournick #chan ident theirhost.com irc.theirserver.com theirnick H :0 Real Name sServer = sLine.Token(0); sNick = sLine.Token(7); CString sChan = sLine.Token(3); CString sIdent = sLine.Token(4); CString sHost = sLine.Token(5); sServer.LeftChomp(); if (sNick.Equals(GetNick())) { m_Nick.SetIdent(sIdent); m_Nick.SetHost(sHost); } m_pNetwork->SetIRCNick(m_Nick); m_pNetwork->SetIRCServer(sServer); const vector& vChans = m_pNetwork->GetChans(); for (unsigned int a = 0; a < vChans.size(); a++) { vChans[a]->OnWho(sNick, sIdent, sHost); } if (m_bNamesx && (sNick.size() > 1) && IsPermChar(sNick[1])) { // sLine uses multi-prefix const vector& vClients = m_pNetwork->GetClients(); vector::const_iterator it; for (it = vClients.begin(); it != vClients.end(); ++it) { CClient *pClient = *it; if (pClient->HasNamesx()) { m_pNetwork->PutUser(sLine, pClient); } else { // The client doesn't support multi-prefix so we need to remove // the other prefixes. CString sNewNick = sNick; size_t pos = sNick.find_first_not_of(GetPerms()); if (pos >= 2 && pos != CString::npos) { sNewNick = sNick[0] + sNick.substr(pos); } CString sNewLine = sServer + " 352 " + sLine.Token(2) + " " + sChan + " " + sIdent + " " + sHost + " " + sLine.Token(6) + " " + sNewNick + " " + sLine.Token(8, true); m_pNetwork->PutUser(sNewLine, pClient); } } return; } CChan* pChan = m_pNetwork->FindChan(sChan); if (pChan && pChan->IsDetached()) { return; } break; } case 353: { // NAMES sRest.Trim(); // Todo: allow for non @+= server msgs CChan* pChan = m_pNetwork->FindChan(sRest.Token(1)); // If we don't know that channel, some client might have // requested a /names for it and we really should forward this. if (pChan) { CString sNicks = sRest.Token(2, true).TrimPrefix_n(); pChan->AddNicks(sNicks); if (pChan->IsDetached()) { return; } } ForwardRaw353(sLine); // We forwarded it already, so return return; } case 366: { // end of names list // :irc.server.com 366 nick #chan :End of /NAMES list. CChan* pChan = m_pNetwork->FindChan(sRest.Token(0)); if (pChan) { if (pChan->IsOn()) { // If we are the only one in the chan, set our default modes if (pChan->GetNickCount() == 1) { CString sModes = pChan->GetDefaultModes(); if (sModes.empty()) { sModes = m_pNetwork->GetUser()->GetDefaultChanModes(); } if (!sModes.empty()) { PutIRC("MODE " + pChan->GetName() + " " + sModes); } } } if (pChan->IsDetached()) { // don't put it to clients return; } } break; } case 375: // begin motd case 422: // MOTD File is missing if (m_pNetwork->GetIRCServer().Equals(sServer)) { m_pNetwork->ClearMotdBuffer(); } case 372: // motd case 376: // end motd if (m_pNetwork->GetIRCServer().Equals(sServer)) { m_pNetwork->AddMotdBuffer(":" + _NAMEDFMT(sServer) + " " + sCmd + " {target} " + _NAMEDFMT(sRest)); } break; case 437: // :irc.server.net 437 * badnick :Nick/channel is temporarily unavailable // :irc.server.net 437 mynick badnick :Nick/channel is temporarily unavailable // :irc.server.net 437 mynick badnick :Cannot change nickname while banned on channel if (m_pNetwork->IsChan(sRest.Token(0)) || sNick != "*") break; case 432: // :irc.server.com 432 * nick :Erroneous Nickname: Illegal characters case 433: { CString sBadNick = sRest.Token(0); if (!m_bAuthed) { SendAltNick(sBadNick); return; } break; } case 451: // :irc.server.com 451 CAP :You have not registered // Servers that dont support CAP will give us this error, dont send it to the client if (sNick.Equals("CAP")) return; case 470: { // :irc.unreal.net 470 mynick [Link] #chan1 has become full, so you are automatically being transferred to the linked channel #chan2 // :mccaffrey.freenode.net 470 mynick #electronics ##electronics :Forwarding to another channel // freenode style numeric CChan* pChan = m_pNetwork->FindChan(sRest.Token(0)); if (!pChan) { // unreal style numeric pChan = m_pNetwork->FindChan(sRest.Token(1)); } if (pChan) { pChan->Disable(); m_pNetwork->PutStatus("Channel [" + pChan->GetName() + "] is linked to " "another channel and was thus disabled."); } break; } case 670: // :hydra.sector5d.org 670 kylef :STARTTLS successful, go ahead with TLS handshake // 670 is a response to `STARTTLS` telling the client to switch to TLS if (!GetSSL()) { StartTLS(); m_pNetwork->PutStatus("Switched to SSL (STARTTLS)"); } return; } } else { CNick Nick(sLine.Token(0).TrimPrefix_n()); sCmd = sLine.Token(1); CString sRest = sLine.Token(2, true); if (sCmd.Equals("NICK")) { CString sNewNick = sRest.TrimPrefix_n(); bool bIsVisible = false; vector vFoundChans; const vector& vChans = m_pNetwork->GetChans(); for (unsigned int a = 0; a < vChans.size(); a++) { CChan* pChan = vChans[a]; if (pChan->ChangeNick(Nick.GetNick(), sNewNick)) { vFoundChans.push_back(pChan); if (!pChan->IsDetached()) { bIsVisible = true; } } } if (Nick.NickEquals(GetNick())) { // We are changing our own nick, the clients always must see this! bIsVisible = false; SetNick(sNewNick); m_pNetwork->PutUser(sLine); } IRCSOCKMODULECALL(OnNick(Nick, sNewNick, vFoundChans), NOTHING); if (!bIsVisible) { return; } } else if (sCmd.Equals("QUIT")) { CString sMessage = sRest.TrimPrefix_n(); bool bIsVisible = false; // :nick!ident@host.com QUIT :message if (Nick.NickEquals(GetNick())) { m_pNetwork->PutStatus("You quit [" + sMessage + "]"); // We don't call module hooks and we don't // forward this quit to clients (Some clients // disconnect if they receive such a QUIT) return; } vector vFoundChans; const vector& vChans = m_pNetwork->GetChans(); for (unsigned int a = 0; a < vChans.size(); a++) { CChan* pChan = vChans[a]; if (pChan->RemNick(Nick.GetNick())) { vFoundChans.push_back(pChan); if (!pChan->IsDetached()) { bIsVisible = true; } } } IRCSOCKMODULECALL(OnQuit(Nick, sMessage, vFoundChans), NOTHING); if (!bIsVisible) { return; } } else if (sCmd.Equals("JOIN")) { CString sChan = sRest.Token(0).TrimPrefix_n(); CChan* pChan; if (Nick.NickEquals(GetNick())) { m_pNetwork->AddChan(sChan, false); pChan = m_pNetwork->FindChan(sChan); if (pChan) { pChan->Enable(); pChan->SetIsOn(true); PutIRC("MODE " + sChan); } } else { pChan = m_pNetwork->FindChan(sChan); } if (pChan) { pChan->AddNick(Nick.GetNickMask()); IRCSOCKMODULECALL(OnJoin(Nick.GetNickMask(), *pChan), NOTHING); if (pChan->IsDetached()) { return; } } } else if (sCmd.Equals("PART")) { CString sChan = sRest.Token(0).TrimPrefix_n(); CString sMsg = sRest.Token(1, true).TrimPrefix_n(); CChan* pChan = m_pNetwork->FindChan(sChan); bool bDetached = false; if (pChan) { pChan->RemNick(Nick.GetNick()); IRCSOCKMODULECALL(OnPart(Nick.GetNickMask(), *pChan, sMsg), NOTHING); if (pChan->IsDetached()) bDetached = true; } if (Nick.NickEquals(GetNick())) { m_pNetwork->DelChan(sChan); } /* * We use this boolean because * m_pNetwork->DelChan() will delete this channel * and thus we would dereference an * already-freed pointer! */ if (bDetached) { return; } } else if (sCmd.Equals("MODE")) { CString sTarget = sRest.Token(0); CString sModes = sRest.Token(1, true); if (sModes.Left(1) == ":") sModes = sModes.substr(1); CChan* pChan = m_pNetwork->FindChan(sTarget); if (pChan) { pChan->ModeChange(sModes, &Nick); if (pChan->IsDetached()) { return; } } else if (sTarget == m_Nick.GetNick()) { CString sModeArg = sModes.Token(0); bool bAdd = true; /* no module call defined (yet?) MODULECALL(OnRawUserMode(*pOpNick, *this, sModeArg, sArgs), m_pNetwork->GetUser(), NULL, ); */ for (unsigned int a = 0; a < sModeArg.size(); a++) { const unsigned char& uMode = sModeArg[a]; if (uMode == '+') { bAdd = true; } else if (uMode == '-') { bAdd = false; } else { if (bAdd) { m_scUserModes.insert(uMode); } else { m_scUserModes.erase(uMode); } } } } } else if (sCmd.Equals("KICK")) { // :opnick!ident@host.com KICK #chan nick :msg CString sChan = sRest.Token(0); CString sKickedNick = sRest.Token(1); CString sMsg = sRest.Token(2, true); sMsg.LeftChomp(); CChan* pChan = m_pNetwork->FindChan(sChan); if (pChan) { IRCSOCKMODULECALL(OnKick(Nick, sKickedNick, *pChan, sMsg), NOTHING); // do not remove the nick till after the OnKick call, so modules // can do Chan.FindNick or something to get more info. pChan->RemNick(sKickedNick); } if (GetNick().Equals(sKickedNick) && pChan) { pChan->SetIsOn(false); // Don't try to rejoin! pChan->Disable(); } if ((pChan) && (pChan->IsDetached())) { return; } } else if (sCmd.Equals("NOTICE")) { // :nick!ident@host.com NOTICE #chan :Message CString sTarget = sRest.Token(0); CString sMsg = sRest.Token(1, true); sMsg.LeftChomp(); if (sMsg.WildCmp("\001*\001")) { sMsg.LeftChomp(); sMsg.RightChomp(); if (sTarget.Equals(GetNick())) { if (OnCTCPReply(Nick, sMsg)) { return; } } m_pNetwork->PutUser(":" + Nick.GetNickMask() + " NOTICE " + sTarget + " :\001" + sMsg + "\001"); return; } else { if (sTarget.Equals(GetNick())) { if (OnPrivNotice(Nick, sMsg)) { return; } } else { if (OnChanNotice(Nick, sTarget, sMsg)) { return; } } } if (Nick.NickEquals(m_pNetwork->GetIRCServer())) { m_pNetwork->PutUser(":" + Nick.GetNick() + " NOTICE " + sTarget + " :" + sMsg); } else { m_pNetwork->PutUser(":" + Nick.GetNickMask() + " NOTICE " + sTarget + " :" + sMsg); } return; } else if (sCmd.Equals("TOPIC")) { // :nick!ident@host.com TOPIC #chan :This is a topic CChan* pChan = m_pNetwork->FindChan(sLine.Token(2)); if (pChan) { CString sTopic = sLine.Token(3, true); sTopic.LeftChomp(); IRCSOCKMODULECALL(OnTopic(Nick, *pChan, sTopic), &bReturn); if (bReturn) return; pChan->SetTopicOwner(Nick.GetNick()); pChan->SetTopicDate((unsigned long) time(NULL)); pChan->SetTopic(sTopic); if (pChan->IsDetached()) { return; // Don't forward this } sLine = ":" + Nick.GetNickMask() + " TOPIC " + pChan->GetName() + " :" + sTopic; } } else if (sCmd.Equals("PRIVMSG")) { // :nick!ident@host.com PRIVMSG #chan :Message CString sTarget = sRest.Token(0); CString sMsg = sRest.Token(1, true).TrimPrefix_n(); if (sMsg.WildCmp("\001*\001")) { sMsg.LeftChomp(); sMsg.RightChomp(); if (sTarget.Equals(GetNick())) { if (OnPrivCTCP(Nick, sMsg)) { return; } } else { if (OnChanCTCP(Nick, sTarget, sMsg)) { return; } } m_pNetwork->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + sTarget + " :\001" + sMsg + "\001"); return; } else { if (sTarget.Equals(GetNick())) { if (OnPrivMsg(Nick, sMsg)) { return; } } else { if (OnChanMsg(Nick, sTarget, sMsg)) { return; } } m_pNetwork->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + sTarget + " :" + sMsg); return; } } else if (sCmd.Equals("WALLOPS")) { // :blub!dummy@rox-8DBEFE92 WALLOPS :this is a test CString sMsg = sRest.Token(0, true).TrimPrefix_n(); if (!m_pNetwork->IsUserOnline()) { m_pNetwork->AddNoticeBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " WALLOPS :{text}", sMsg); } } else if (sCmd.Equals("CAP")) { // CAPs are supported only before authorization. if (!m_bAuthed) { // sRest.Token(0) is most likely "*". No idea why, the // CAP spec don't mention this, but all implementations // I've seen add this extra asterisk CString sSubCmd = sRest.Token(1); // If the caplist of a reply is too long, it's split // into multiple replies. A "*" is prepended to show // that the list was split into multiple replies. // This is useful mainly for LS. For ACK and NAK // replies, there's no real need for this, because // we request only 1 capability per line. // If we will need to support broken servers or will // send several requests per line, need to delay ACK // actions until all ACK lines are received and // to recognize past request of NAK by 100 chars // of this reply. CString sArgs; if (sRest.Token(2) == "*") { sArgs = sRest.Token(3, true).TrimPrefix_n(); } else { sArgs = sRest.Token(2, true).TrimPrefix_n(); } if (sSubCmd == "LS") { VCString vsTokens; VCString::iterator it; sArgs.Split(" ", vsTokens, false); for (it = vsTokens.begin(); it != vsTokens.end(); ++it) { if (OnServerCapAvailable(*it) || *it == "multi-prefix" || *it == "userhost-in-names") { m_ssPendingCaps.insert(*it); } } } else if (sSubCmd == "ACK") { sArgs.Trim(); IRCSOCKMODULECALL(OnServerCapResult(sArgs, true), NOTHING); if ("multi-prefix" == sArgs) { m_bNamesx = true; } else if ("userhost-in-names" == sArgs) { m_bUHNames = true; } m_ssAcceptedCaps.insert(sArgs); } else if (sSubCmd == "NAK") { // This should work because there's no [known] // capability with length of name more than 100 characters. sArgs.Trim(); IRCSOCKMODULECALL(OnServerCapResult(sArgs, false), NOTHING); } SendNextCap(); } // Don't forward any CAP stuff to the client return; } else if (sCmd.Equals("INVITE")) { IRCSOCKMODULECALL(OnInvite(Nick, sLine.Token(3).TrimPrefix_n(":")), &bReturn); if (bReturn) return; } } m_pNetwork->PutUser(sLine); } void CIRCSock::SendNextCap() { if (!m_uCapPaused) { if (m_ssPendingCaps.empty()) { // We already got all needed ACK/NAK replies. PutIRC("CAP END"); } else { CString sCap = *m_ssPendingCaps.begin(); m_ssPendingCaps.erase(m_ssPendingCaps.begin()); PutIRC("CAP REQ :" + sCap); } } } void CIRCSock::PauseCap() { ++m_uCapPaused; } void CIRCSock::ResumeCap() { --m_uCapPaused; SendNextCap(); } bool CIRCSock::OnServerCapAvailable(const CString& sCap) { bool bResult = false; IRCSOCKMODULECALL(OnServerCapAvailable(sCap), &bResult); return bResult; } bool CIRCSock::OnCTCPReply(CNick& Nick, CString& sMessage) { bool bResult = false; IRCSOCKMODULECALL(OnCTCPReply(Nick, sMessage), &bResult); return bResult; } bool CIRCSock::OnPrivCTCP(CNick& Nick, CString& sMessage) { bool bResult = false; IRCSOCKMODULECALL(OnPrivCTCP(Nick, sMessage), &bResult); if (bResult) return true; if (sMessage.TrimPrefix("ACTION ")) { bResult = false; IRCSOCKMODULECALL(OnPrivAction(Nick, sMessage), &bResult); if (bResult) return true; if (!m_pNetwork->IsUserOnline() || !m_pNetwork->GetUser()->AutoClearQueryBuffer()) { CQuery* pQuery = m_pNetwork->AddQuery(Nick.GetNick()); if (pQuery) { pQuery->AddBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " PRIVMSG {target} :\001ACTION {text}\001", sMessage); } } sMessage = "ACTION " + sMessage; } // This handles everything which wasn't handled yet return OnGeneralCTCP(Nick, sMessage); } bool CIRCSock::OnGeneralCTCP(CNick& Nick, CString& sMessage) { const MCString& mssCTCPReplies = m_pNetwork->GetUser()->GetCTCPReplies(); CString sQuery = sMessage.Token(0).AsUpper(); MCString::const_iterator it = mssCTCPReplies.find(sQuery); bool bHaveReply = false; CString sReply; if (it != mssCTCPReplies.end()) { sReply = m_pNetwork->ExpandString(it->second); bHaveReply = true; if (sReply.empty()) { return true; } } if (!bHaveReply && !m_pNetwork->IsUserAttached()) { if (sQuery == "VERSION") { sReply = CZNC::GetTag(false); } else if (sQuery == "PING") { sReply = sMessage.Token(1, true); } } if (!sReply.empty()) { time_t now = time(NULL); // If the last CTCP is older than m_uCTCPFloodTime, reset the counter if (m_lastCTCP + m_uCTCPFloodTime < now) m_uNumCTCP = 0; m_lastCTCP = now; // If we are over the limit, don't reply to this CTCP if (m_uNumCTCP >= m_uCTCPFloodCount) { DEBUG("CTCP flood detected - not replying to query"); return true; } m_uNumCTCP++; PutIRC("NOTICE " + Nick.GetNick() + " :\001" + sQuery + " " + sReply + "\001"); return true; } return false; } bool CIRCSock::OnPrivNotice(CNick& Nick, CString& sMessage) { bool bResult = false; IRCSOCKMODULECALL(OnPrivNotice(Nick, sMessage), &bResult); if (bResult) return true; if (!m_pNetwork->IsUserOnline()) { // If the user is detached, add to the buffer m_pNetwork->AddNoticeBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " NOTICE {target} :{text}", sMessage); } return false; } bool CIRCSock::OnPrivMsg(CNick& Nick, CString& sMessage) { bool bResult = false; IRCSOCKMODULECALL(OnPrivMsg(Nick, sMessage), &bResult); if (bResult) return true; if (!m_pNetwork->IsUserOnline() || !m_pNetwork->GetUser()->AutoClearQueryBuffer()) { CQuery* pQuery = m_pNetwork->AddQuery(Nick.GetNick()); if (pQuery) { pQuery->AddBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " PRIVMSG {target} :{text}", sMessage); } } return false; } // #124: OnChanMsg(): nick doesn't have perms static void FixupChanNick(CNick& Nick, CChan* pChan) { // A channel nick has up-to-date channel perms, but might be // lacking (usernames-in-host) the associated ident & host. // An incoming message, on the other hand, has normally a full // nick!ident@host prefix. Sync the two so that channel nicks // get the potentially missing piece of info and module hooks // get the perms. CNick* pChanNick = pChan->FindNick(Nick.GetNick()); if (pChanNick) { if (!Nick.GetIdent().empty()) { pChanNick->SetIdent(Nick.GetIdent()); } if (!Nick.GetHost().empty()) { pChanNick->SetHost(Nick.GetHost()); } Nick.Clone(*pChanNick); } } bool CIRCSock::OnChanCTCP(CNick& Nick, const CString& sChan, CString& sMessage) { CChan* pChan = m_pNetwork->FindChan(sChan); if (pChan) { FixupChanNick(Nick, pChan); bool bResult = false; IRCSOCKMODULECALL(OnChanCTCP(Nick, *pChan, sMessage), &bResult); if (bResult) return true; // Record a /me if (sMessage.TrimPrefix("ACTION ")) { bResult = false; IRCSOCKMODULECALL(OnChanAction(Nick, *pChan, sMessage), &bResult); if (bResult) return true; if (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline() || pChan->IsDetached()) { pChan->AddBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sChan) + " :\001ACTION {text}\001", sMessage); } sMessage = "ACTION " + sMessage; } } if (OnGeneralCTCP(Nick, sMessage)) return true; return (pChan && pChan->IsDetached()); } bool CIRCSock::OnChanNotice(CNick& Nick, const CString& sChan, CString& sMessage) { CChan* pChan = m_pNetwork->FindChan(sChan); if (pChan) { FixupChanNick(Nick, pChan); bool bResult = false; IRCSOCKMODULECALL(OnChanNotice(Nick, *pChan, sMessage), &bResult); if (bResult) return true; if (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline() || pChan->IsDetached()) { pChan->AddBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " NOTICE " + _NAMEDFMT(sChan) + " :{text}", sMessage); } } return ((pChan) && (pChan->IsDetached())); } bool CIRCSock::OnChanMsg(CNick& Nick, const CString& sChan, CString& sMessage) { CChan* pChan = m_pNetwork->FindChan(sChan); if (pChan) { FixupChanNick(Nick, pChan); bool bResult = false; IRCSOCKMODULECALL(OnChanMsg(Nick, *pChan, sMessage), &bResult); if (bResult) return true; if (!pChan->AutoClearChanBuffer() || !m_pNetwork->IsUserOnline() || pChan->IsDetached()) { pChan->AddBuffer(":" + _NAMEDFMT(Nick.GetNickMask()) + " PRIVMSG " + _NAMEDFMT(sChan) + " :{text}", sMessage); } } return ((pChan) && (pChan->IsDetached())); } void CIRCSock::PutIRC(const CString& sLine) { // Only print if the line won't get sent immediately (same condition as in TrySend()!) if (m_bFloodProtection && m_iSendsAllowed <= 0) { DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/" << m_pNetwork->GetName() << ") ZNC -> IRC [" << sLine << "] (queued)"); } m_vsSendQueue.push_back(sLine); TrySend(); } void CIRCSock::PutIRCQuick(const CString& sLine) { // Only print if the line won't get sent immediately (same condition as in TrySend()!) if (m_bFloodProtection && m_iSendsAllowed <= 0) { DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/" << m_pNetwork->GetName() << ") ZNC -> IRC [" << sLine << "] (queued to front)"); } m_vsSendQueue.push_front(sLine); TrySend(); } void CIRCSock::TrySend() { // This condition must be the same as in PutIRC() and PutIRCQuick()! while (!m_vsSendQueue.empty() && (!m_bFloodProtection || m_iSendsAllowed > 0)) { m_iSendsAllowed--; bool bSkip = false; CString& sLine = m_vsSendQueue.front(); IRCSOCKMODULECALL(OnSendToIRC(sLine), &bSkip); if (!bSkip) {; DEBUG("(" << m_pNetwork->GetUser()->GetUserName() << "/" << m_pNetwork->GetName() << ") ZNC -> IRC [" << sLine << "]"); Write(sLine + "\r\n"); } m_vsSendQueue.pop_front(); } } void CIRCSock::SetNick(const CString& sNick) { m_Nick.SetNick(sNick); m_pNetwork->SetIRCNick(m_Nick); } void CIRCSock::Connected() { DEBUG(GetSockName() << " == Connected()"); CString sPass = m_sPass; CString sNick = m_pNetwork->GetNick(); CString sIdent = m_pNetwork->GetIdent(); CString sRealName = m_pNetwork->GetRealName(); bool bReturn = false; IRCSOCKMODULECALL(OnIRCRegistration(sPass, sNick, sIdent, sRealName), &bReturn); if (bReturn) return; PutIRC("CAP LS"); if (!sPass.empty()) { PutIRC("PASS " + sPass); } PutIRC("NICK " + sNick); PutIRC("USER " + sIdent + " \"" + sIdent + "\" \"" + sIdent + "\" :" + sRealName); // SendAltNick() needs this m_Nick.SetNick(sNick); } void CIRCSock::Disconnected() { IRCSOCKMODULECALL(OnIRCDisconnected(), NOTHING); DEBUG(GetSockName() << " == Disconnected()"); if (!m_pNetwork->GetUser()->IsBeingDeleted() && m_pNetwork->GetIRCConnectEnabled() && m_pNetwork->GetServers().size() != 0) { m_pNetwork->PutStatus("Disconnected from IRC. Reconnecting..."); } m_pNetwork->ClearRawBuffer(); m_pNetwork->ClearMotdBuffer(); ResetChans(); // send a "reset user modes" cmd to the client. // otherwise, on reconnect, it might think it still // had user modes that it actually doesn't have. CString sUserMode; for (set::const_iterator it = m_scUserModes.begin(); it != m_scUserModes.end(); ++it) { sUserMode += *it; } if (!sUserMode.empty()) { m_pNetwork->PutUser(":" + m_pNetwork->GetIRCNick().GetNickMask() + " MODE " + m_pNetwork->GetIRCNick().GetNick() + " :-" + sUserMode); } // also clear the user modes in our space: m_scUserModes.clear(); } void CIRCSock::SockError(int iErrno, const CString& sDescription) { CString sError = sDescription; DEBUG(GetSockName() << " == SockError(" << iErrno << " " << sError << ")"); if (!m_pNetwork->GetUser()->IsBeingDeleted()) { if (GetConState() != CST_OK) { m_pNetwork->PutStatus("Cannot connect to IRC (" + sError + "). Retrying..."); } else { m_pNetwork->PutStatus("Disconnected from IRC (" + sError + "). Reconnecting..."); } #ifdef HAVE_LIBSSL if (iErrno == errnoBadSSLCert) { // Stringify bad cert X509* pCert = GetX509(); if (pCert) { BIO* mem = BIO_new(BIO_s_mem()); X509_print(mem, pCert); X509_free(pCert); char* pCertStr = nullptr; long iLen = BIO_get_mem_data(mem, &pCertStr); CString sCert(pCertStr, iLen); BIO_free(mem); VCString vsCert; sCert.Split("\n", vsCert); for (const CString& s : vsCert) { // It shouldn't contain any bad characters, but let's be safe... m_pNetwork->PutStatus("|" + s.Escape_n(CString::EDEBUG)); } CString sSHA1; if (GetPeerFingerprint(sSHA1)) m_pNetwork->PutStatus("SHA1: " + sSHA1.Escape_n(CString::EHEXCOLON, CString::EHEXCOLON)); CString sSHA256 = GetSSLPeerFingerprint(); m_pNetwork->PutStatus("SHA-256: " + sSHA256); m_pNetwork->PutStatus("If you trust this certificate, do /znc AddTrustedServerFingerprint " + sSHA256); } } #endif } m_pNetwork->ClearRawBuffer(); m_pNetwork->ClearMotdBuffer(); ResetChans(); m_scUserModes.clear(); } void CIRCSock::Timeout() { DEBUG(GetSockName() << " == Timeout()"); if (!m_pNetwork->GetUser()->IsBeingDeleted()) { m_pNetwork->PutStatus("IRC connection timed out. Reconnecting..."); } m_pNetwork->ClearRawBuffer(); m_pNetwork->ClearMotdBuffer(); ResetChans(); m_scUserModes.clear(); } void CIRCSock::ConnectionRefused() { DEBUG(GetSockName() << " == ConnectionRefused()"); if (!m_pNetwork->GetUser()->IsBeingDeleted()) { m_pNetwork->PutStatus("Connection Refused. Reconnecting..."); } m_pNetwork->ClearRawBuffer(); m_pNetwork->ClearMotdBuffer(); } void CIRCSock::ReachedMaxBuffer() { DEBUG(GetSockName() << " == ReachedMaxBuffer()"); m_pNetwork->PutStatus("Received a too long line from the IRC server!"); Quit(); } void CIRCSock::ParseISupport(const CString& sLine) { VCString vsTokens; VCString::iterator it; sLine.Split(" ", vsTokens, false); for (it = vsTokens.begin(); it != vsTokens.end(); ++it) { CString sName = it->Token(0, false, "="); CString sValue = it->Token(1, true, "="); if (0 < sName.length() && ':' == sName[0]) { break; } m_mISupport[sName] = sValue; if (sName.Equals("PREFIX")) { CString sPrefixes = sValue.Token(1, false, ")"); CString sPermModes = sValue.Token(0, false, ")"); sPermModes.TrimLeft("("); if (!sPrefixes.empty() && sPermModes.size() == sPrefixes.size()) { m_sPerms = sPrefixes; m_sPermModes = sPermModes; } } else if (sName.Equals("CHANTYPES")) { m_pNetwork->SetChanPrefixes(sValue); } else if (sName.Equals("NICKLEN")) { unsigned int uMax = sValue.ToUInt(); if (uMax) { m_uMaxNickLen = uMax; } } else if (sName.Equals("CHANMODES")) { if (!sValue.empty()) { m_mueChanModes.clear(); for (unsigned int a = 0; a < 4; a++) { CString sModes = sValue.Token(a, false, ","); for (unsigned int b = 0; b < sModes.size(); b++) { m_mueChanModes[sModes[b]] = (EChanModeArgs) a; } } } } else if (sName.Equals("NAMESX")) { if (m_bNamesx) continue; m_bNamesx = true; PutIRC("PROTOCTL NAMESX"); } else if (sName.Equals("UHNAMES")) { if (m_bUHNames) continue; m_bUHNames = true; PutIRC("PROTOCTL UHNAMES"); } } } CString CIRCSock::GetISupport(const CString& sKey, const CString& sDefault) const { MCString::const_iterator i = m_mISupport.find(sKey.AsUpper()); if (i == m_mISupport.end()) { return sDefault; } else { return i->second; } } void CIRCSock::ForwardRaw353(const CString& sLine) const { const vector& vClients = m_pNetwork->GetClients(); vector::const_iterator it; for (it = vClients.begin(); it != vClients.end(); ++it) { ForwardRaw353(sLine, *it); } } void CIRCSock::ForwardRaw353(const CString& sLine, CClient* pClient) const { CString sNicks = sLine.Token(5, true).TrimPrefix_n(); if ((!m_bNamesx || pClient->HasNamesx()) && (!m_bUHNames || pClient->HasUHNames())) { // Client and server have both the same UHNames and Namesx stuff enabled m_pNetwork->PutUser(sLine, pClient); } else { // Get everything except the actual user list CString sTmp = sLine.Token(0, false, " :") + " :"; VCString vsNicks; VCString::const_iterator it; // This loop runs once for every nick on the channel sNicks.Split(" ", vsNicks, false); for (it = vsNicks.begin(); it != vsNicks.end(); ++it) { CString sNick = *it; if (sNick.empty()) break; if (m_bNamesx && !pClient->HasNamesx() && IsPermChar(sNick[0])) { // Server has, client doesn't have NAMESX, so we just use the first perm char size_t pos = sNick.find_first_not_of(GetPerms()); if (pos >= 2 && pos != CString::npos) { sNick = sNick[0] + sNick.substr(pos); } } if (m_bUHNames && !pClient->HasUHNames()) { // Server has, client hasnt UHNAMES, // so we strip away ident and host. sNick = sNick.Token(0, false, "!"); } sTmp += sNick + " "; } // Strip away the spaces we inserted at the end sTmp.TrimRight(" "); m_pNetwork->PutUser(sTmp, pClient); } } void CIRCSock::SendAltNick(const CString& sBadNick) { const CString& sLastNick = m_Nick.GetNick(); // We don't know the maximum allowed nick length yet, but we know which // nick we sent last. If sBadNick is shorter than that, we assume the // server truncated our nick. if (sBadNick.length() < sLastNick.length()) m_uMaxNickLen = (unsigned int)sBadNick.length(); unsigned int uMax = m_uMaxNickLen; const CString& sConfNick = m_pNetwork->GetNick(); const CString& sAltNick = m_pNetwork->GetAltNick(); CString sNewNick = sConfNick.Left(uMax - 1); if (sLastNick.Equals(sConfNick)) { if ((!sAltNick.empty()) && (!sConfNick.Equals(sAltNick))) { sNewNick = sAltNick; } else { sNewNick += "-"; } } else if (sLastNick.Equals(sAltNick) && !sAltNick.Equals(sNewNick + "-")) { sNewNick += "-"; } else if (sLastNick.Equals(sNewNick + "-") && !sAltNick.Equals(sNewNick + "|")) { sNewNick += "|"; } else if (sLastNick.Equals(sNewNick + "|") && !sAltNick.Equals(sNewNick + "^")) { sNewNick += "^"; } else if (sLastNick.Equals(sNewNick + "^") && !sAltNick.Equals(sNewNick + "a")) { sNewNick += "a"; } else { char cLetter = 0; if (sBadNick.empty()) { m_pNetwork->PutUser("No free nick available"); Quit(); return; } cLetter = sBadNick.Right(1)[0]; if (cLetter == 'z') { m_pNetwork->PutUser("No free nick found"); Quit(); return; } sNewNick = sConfNick.Left(uMax -1) + ++cLetter; if (sNewNick.Equals(sAltNick)) sNewNick = sConfNick.Left(uMax -1) + ++cLetter; } PutIRC("NICK " + sNewNick); m_Nick.SetNick(sNewNick); } unsigned char CIRCSock::GetPermFromMode(unsigned char uMode) const { if (m_sPermModes.size() == m_sPerms.size()) { for (unsigned int a = 0; a < m_sPermModes.size(); a++) { if (m_sPermModes[a] == uMode) { return m_sPerms[a]; } } } return 0; } CIRCSock::EChanModeArgs CIRCSock::GetModeType(unsigned char uMode) const { map::const_iterator it = m_mueChanModes.find(uMode); if (it == m_mueChanModes.end()) { return NoArg; } return it->second; } void CIRCSock::ResetChans() { for (map::iterator a = m_msChans.begin(); a != m_msChans.end(); ++a) { a->second->Reset(); } } znc-1.6.3/src/Nick.cpp0000644000175000017500000001032412663147131014722 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include using std::vector; using std::map; CNick::CNick() { Reset(); } CNick::CNick(const CString& sNick) { Reset(); Parse(sNick); } CNick::~CNick() {} void CNick::Reset() { m_sChanPerms.clear(); m_pNetwork = NULL; } void CNick::Parse(const CString& sNickMask) { if (sNickMask.empty()) { return; } CString::size_type uPos = sNickMask.find('!'); if (uPos == CString::npos) { m_sNick = sNickMask.substr((sNickMask[0] == ':')); return; } m_sNick = sNickMask.substr((sNickMask[0] == ':'), uPos - (sNickMask[0] == ':')); m_sHost = sNickMask.substr(uPos +1); if ((uPos = m_sHost.find('@')) != CString::npos) { m_sIdent = m_sHost.substr(0, uPos); m_sHost = m_sHost.substr(uPos +1); } } size_t CNick::GetCommonChans(vector& vRetChans, CIRCNetwork* pNetwork) const { vRetChans.clear(); const vector& vChans = pNetwork->GetChans(); for (unsigned int a = 0; a < vChans.size(); a++) { CChan* pChan = vChans[a]; const map& msNicks = pChan->GetNicks(); for (map::const_iterator it = msNicks.begin(); it != msNicks.end(); ++it) { if (it->first.Equals(m_sNick)) { vRetChans.push_back(pChan); continue; } } } return vRetChans.size(); } bool CNick::NickEquals(const CString& nickname) const { //TODO add proper IRC case mapping here //https://tools.ietf.org/html/draft-brocklesby-irc-isupport-03#section-3.1 return m_sNick.Equals(nickname); } void CNick::SetNetwork(CIRCNetwork* pNetwork) { m_pNetwork = pNetwork; } void CNick::SetNick(const CString& s) { m_sNick = s; } void CNick::SetIdent(const CString& s) { m_sIdent = s; } void CNick::SetHost(const CString& s) { m_sHost = s; } bool CNick::HasPerm(unsigned char uPerm) const { return (uPerm && m_sChanPerms.find(uPerm) != CString::npos); } bool CNick::AddPerm(unsigned char uPerm) { if (!uPerm || HasPerm(uPerm)) { return false; } m_sChanPerms.append(1, uPerm); return true; } bool CNick::RemPerm(unsigned char uPerm) { CString::size_type uPos = m_sChanPerms.find(uPerm); if (uPos == CString::npos) { return false; } m_sChanPerms.erase(uPos, 1); return true; } unsigned char CNick::GetPermChar() const { CIRCSock* pIRCSock = (!m_pNetwork) ? NULL : m_pNetwork->GetIRCSock(); const CString& sChanPerms = (!pIRCSock) ? "@+" : pIRCSock->GetPerms(); for (unsigned int a = 0; a < sChanPerms.size(); a++) { const unsigned char& c = sChanPerms[a]; if (HasPerm(c)) { return c; } } return '\0'; } CString CNick::GetPermStr() const { CIRCSock* pIRCSock = (!m_pNetwork) ? NULL : m_pNetwork->GetIRCSock(); const CString& sChanPerms = (!pIRCSock) ? "@+" : pIRCSock->GetPerms(); CString sRet; for (unsigned int a = 0; a < sChanPerms.size(); a++) { const unsigned char& c = sChanPerms[a]; if (HasPerm(c)) { sRet += c; } } return sRet; } const CString& CNick::GetNick() const { return m_sNick; } const CString& CNick::GetIdent() const { return m_sIdent; } const CString& CNick::GetHost() const { return m_sHost; } CString CNick::GetNickMask() const { CString sRet = m_sNick; if (!m_sHost.empty()) { if (!m_sIdent.empty()) sRet += "!" + m_sIdent; sRet += "@" + m_sHost; } return sRet; } CString CNick::GetHostMask() const { CString sRet = m_sNick; if (!m_sIdent.empty()) { sRet += "!" + m_sIdent; } if (!m_sHost.empty()) { sRet += "@" + m_sHost; } return (sRet); } void CNick::Clone(const CNick& SourceNick) { SetNick(SourceNick.GetNick()); SetIdent(SourceNick.GetIdent()); SetHost(SourceNick.GetHost()); m_sChanPerms = SourceNick.m_sChanPerms; m_pNetwork = SourceNick.m_pNetwork; } znc-1.6.3/src/ClientCommand.cpp0000644000175000017500000015062112663147131016560 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include using std::vector; using std::set; using std::map; void CClient::UserCommand(CString& sLine) { if (!m_pUser) { return; } if (sLine.empty()) { return; } bool bReturn = false; NETWORKMODULECALL(OnStatusCommand(sLine), m_pUser, m_pNetwork, this, &bReturn); if (bReturn) return; const CString sCommand = sLine.Token(0); if (sCommand.Equals("HELP")) { HelpUser(sLine.Token(1)); } else if (sCommand.Equals("LISTNICKS")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sChan = sLine.Token(1); if (sChan.empty()) { PutStatus("Usage: ListNicks <#chan>"); return; } CChan* pChan = m_pNetwork->FindChan(sChan); if (!pChan) { PutStatus("You are not on [" + sChan + "]"); return; } if (!pChan->IsOn()) { PutStatus("You are not on [" + sChan + "] [trying]"); return; } const map& msNicks = pChan->GetNicks(); CIRCSock* pIRCSock = m_pNetwork->GetIRCSock(); const CString& sPerms = (pIRCSock) ? pIRCSock->GetPerms() : ""; if (msNicks.empty()) { PutStatus("No nicks on [" + sChan + "]"); return; } CTable Table; for (unsigned int p = 0; p < sPerms.size(); p++) { CString sPerm; sPerm += sPerms[p]; Table.AddColumn(sPerm); } Table.AddColumn("Nick"); Table.AddColumn("Ident"); Table.AddColumn("Host"); for (map::const_iterator a = msNicks.begin(); a != msNicks.end(); ++a) { Table.AddRow(); for (unsigned int b = 0; b < sPerms.size(); b++) { if (a->second.HasPerm(sPerms[b])) { CString sPerm; sPerm += sPerms[b]; Table.SetCell(sPerm, sPerm); } } Table.SetCell("Nick", a->second.GetNick()); Table.SetCell("Ident", a->second.GetIdent()); Table.SetCell("Host", a->second.GetHost()); } PutStatus(Table); } else if (sCommand.Equals("DETACH")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sPatterns = sLine.Token(1, true); if (sPatterns.empty()) { PutStatus("Usage: Detach <#chans>"); return; } VCString vsChans; sPatterns.Replace(",", " "); sPatterns.Split(" ", vsChans, false, "", "", true, true); set sChans; for (const CString& sChan : vsChans) { vector vChans = m_pNetwork->FindChans(sChan); sChans.insert(vChans.begin(), vChans.end()); } unsigned int uDetached = 0; for (CChan* pChan : sChans) { if (pChan->IsDetached()) continue; uDetached++; pChan->DetachUser(); } PutStatus("There were [" + CString(sChans.size()) + "] channels matching [" + sPatterns + "]"); PutStatus("Detached [" + CString(uDetached) + "] channels"); } else if (sCommand.Equals("VERSION")) { PutStatus(CZNC::GetTag()); PutStatus(CZNC::GetCompileOptionsString()); } else if (sCommand.Equals("MOTD") || sCommand.Equals("ShowMOTD")) { if (!SendMotd()) { PutStatus("There is no MOTD set."); } } else if (m_pUser->IsAdmin() && sCommand.Equals("Rehash")) { CString sRet; if (CZNC::Get().RehashConfig(sRet)) { PutStatus("Rehashing succeeded!"); } else { PutStatus("Rehashing failed: " + sRet); } } else if (m_pUser->IsAdmin() && sCommand.Equals("SaveConfig")) { if (CZNC::Get().WriteConfig()) { PutStatus("Wrote config to [" + CZNC::Get().GetConfigFile() + "]"); } else { PutStatus("Error while trying to write config."); } } else if (sCommand.Equals("LISTCLIENTS")) { CUser* pUser = m_pUser; CString sNick = sLine.Token(1); if (!sNick.empty()) { if (!m_pUser->IsAdmin()) { PutStatus("Usage: ListClients"); return; } pUser = CZNC::Get().FindUser(sNick); if (!pUser) { PutStatus("No such user [" + sNick + "]"); return; } } vector vClients = pUser->GetAllClients(); if (vClients.empty()) { PutStatus("No clients are connected"); return; } CTable Table; Table.AddColumn("Host"); Table.AddColumn("Network"); Table.AddColumn("Identifier"); for (unsigned int a = 0; a < vClients.size(); a++) { Table.AddRow(); Table.SetCell("Host", vClients[a]->GetRemoteIP()); if (vClients[a]->GetNetwork()) { Table.SetCell("Network", vClients[a]->GetNetwork()->GetName()); } Table.SetCell("Identifier", vClients[a]->GetIdentifier()); } PutStatus(Table); } else if (m_pUser->IsAdmin() && sCommand.Equals("LISTUSERS")) { const map& msUsers = CZNC::Get().GetUserMap(); CTable Table; Table.AddColumn("Username"); Table.AddColumn("Networks"); Table.AddColumn("Clients"); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { Table.AddRow(); Table.SetCell("Username", it->first); Table.SetCell("Networks", CString(it->second->GetNetworks().size())); Table.SetCell("Clients", CString(it->second->GetAllClients().size())); } PutStatus(Table); } else if (m_pUser->IsAdmin() && sCommand.Equals("LISTALLUSERNETWORKS")) { const map& msUsers = CZNC::Get().GetUserMap(); CTable Table; Table.AddColumn("Username"); Table.AddColumn("Network"); Table.AddColumn("Clients"); Table.AddColumn("OnIRC"); Table.AddColumn("IRC Server"); Table.AddColumn("IRC User"); Table.AddColumn("Channels"); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { Table.AddRow(); Table.SetCell("Username", it->first); Table.SetCell("Network", "N/A"); Table.SetCell("Clients", CString(it->second->GetUserClients().size())); const vector& vNetworks = it->second->GetNetworks(); for (size_t a = 0; a < vNetworks.size(); ++a) { CIRCNetwork* pNetwork = vNetworks[a]; Table.AddRow(); if (a == vNetworks.size() - 1) { Table.SetCell("Username", "`-"); } else { Table.SetCell("Username", "|-"); } Table.SetCell("Network", pNetwork->GetName()); Table.SetCell("Clients", CString(pNetwork->GetClients().size())); if (pNetwork->IsIRCConnected()) { Table.SetCell("OnIRC", "Yes"); Table.SetCell("IRC Server", pNetwork->GetIRCServer()); Table.SetCell("IRC User", pNetwork->GetIRCNick().GetNickMask()); Table.SetCell("Channels", CString(pNetwork->GetChans().size())); } else { Table.SetCell("OnIRC", "No"); } } } PutStatus(Table); } else if (m_pUser->IsAdmin() && sCommand.Equals("SetMOTD")) { CString sMessage = sLine.Token(1, true); if (sMessage.empty()) { PutStatus("Usage: SetMOTD "); } else { CZNC::Get().SetMotd(sMessage); PutStatus("MOTD set to [" + sMessage + "]"); } } else if (m_pUser->IsAdmin() && sCommand.Equals("AddMOTD")) { CString sMessage = sLine.Token(1, true); if (sMessage.empty()) { PutStatus("Usage: AddMOTD "); } else { CZNC::Get().AddMotd(sMessage); PutStatus("Added [" + sMessage + "] to MOTD"); } } else if (m_pUser->IsAdmin() && sCommand.Equals("ClearMOTD")) { CZNC::Get().ClearMotd(); PutStatus("Cleared MOTD"); } else if (m_pUser->IsAdmin() && sCommand.Equals("BROADCAST")) { CZNC::Get().Broadcast(sLine.Token(1, true)); } else if (m_pUser->IsAdmin() && (sCommand.Equals("SHUTDOWN") || sCommand.Equals("RESTART"))) { bool bRestart = sCommand.Equals("RESTART"); CString sMessage = sLine.Token(1, true); bool bForce = false; if (sMessage.Token(0).Equals("FORCE")) { bForce = true; sMessage = sMessage.Token(1, true); } if (sMessage.empty()) { sMessage = (bRestart ? "ZNC is being restarted NOW!" : "ZNC is being shut down NOW!"); } if(!CZNC::Get().WriteConfig() && !bForce) { PutStatus("ERROR: Writing config file to disk failed! Aborting. Use " + sCommand.AsUpper() + " FORCE to ignore."); } else { CZNC::Get().Broadcast(sMessage); throw CException(bRestart ? CException::EX_Restart : CException::EX_Shutdown); } } else if (sCommand.Equals("JUMP") || sCommand.Equals("CONNECT")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } if (!m_pNetwork->HasServers()) { PutStatus("You don't have any servers added."); return; } CString sArgs = sLine.Token(1, true); sArgs.Trim(); CServer *pServer = NULL; if (!sArgs.empty()) { pServer = m_pNetwork->FindServer(sArgs); if (!pServer) { PutStatus("Server [" + sArgs + "] not found"); return; } m_pNetwork->SetNextServer(pServer); // If we are already connecting to some server, // we have to abort that attempt Csock *pIRCSock = GetIRCSock(); if (pIRCSock && !pIRCSock->IsConnected()) { pIRCSock->Close(); } } if (GetIRCSock()) { GetIRCSock()->Quit(); if (pServer) PutStatus("Connecting to [" + pServer->GetName() + "]..."); else PutStatus("Jumping to the next server in the list..."); } else { if (pServer) PutStatus("Connecting to [" + pServer->GetName() + "]..."); else PutStatus("Connecting..."); } m_pNetwork->SetIRCConnectEnabled(true); return; } else if (sCommand.Equals("DISCONNECT")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } if (GetIRCSock()) { CString sQuitMsg = sLine.Token(1, true); GetIRCSock()->Quit(sQuitMsg); } m_pNetwork->SetIRCConnectEnabled(false); PutStatus("Disconnected from IRC. Use 'connect' to reconnect."); return; } else if (sCommand.Equals("ENABLECHAN")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sPatterns = sLine.Token(1, true); if (sPatterns.empty()) { PutStatus("Usage: EnableChan <#chans>"); } else { VCString vsChans; sPatterns.Replace(",", " "); sPatterns.Split(" ", vsChans, false, "", "", true, true); set sChans; for (const CString& sChan : vsChans) { vector vChans = m_pNetwork->FindChans(sChan); sChans.insert(vChans.begin(), vChans.end()); } unsigned int uEnabled = 0; for (CChan* pChan : sChans) { if (!pChan->IsDisabled()) continue; uEnabled++; pChan->Enable(); } PutStatus("There were [" + CString(sChans.size()) + "] channels matching [" + sPatterns + "]"); PutStatus("Enabled [" + CString(uEnabled) + "] channels"); } } else if (sCommand.Equals("DISABLECHAN")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sPatterns = sLine.Token(1, true); if (sPatterns.empty()) { PutStatus("Usage: DisableChan <#chans>"); } else { VCString vsChans; sPatterns.Replace(",", " "); sPatterns.Split(" ", vsChans, false, "", "", true, true); set sChans; for (const CString& sChan : vsChans) { vector vChans = m_pNetwork->FindChans(sChan); sChans.insert(vChans.begin(), vChans.end()); } unsigned int uDisabled = 0; for (CChan* pChan : sChans) { if (pChan->IsDisabled()) continue; uDisabled++; pChan->Disable(); } PutStatus("There were [" + CString(sChans.size()) + "] channels matching [" + sPatterns + "]"); PutStatus("Disabled [" + CString(uDisabled) + "] channels"); } } else if (sCommand.Equals("LISTCHANS")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CUser* pUser = m_pUser; CIRCNetwork* pNetwork = m_pNetwork; const CString sNick = sLine.Token(1); const CString sNetwork = sLine.Token(2); if (!sNick.empty()) { if (!m_pUser->IsAdmin()) { PutStatus("Usage: ListChans"); return; } pUser = CZNC::Get().FindUser(sNick); if (!pUser) { PutStatus("No such user [" + sNick + "]"); return; } pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutStatus("No such network for user [" + sNetwork + "]"); return; } } const vector& vChans = pNetwork->GetChans(); CIRCSock* pIRCSock = pNetwork->GetIRCSock(); const CString& sPerms = (pIRCSock) ? pIRCSock->GetPerms() : ""; if (vChans.empty()) { PutStatus("There are no channels defined."); return; } CTable Table; Table.AddColumn("Name"); Table.AddColumn("Status"); Table.AddColumn("Conf"); Table.AddColumn("Buf"); Table.AddColumn("Clear"); Table.AddColumn("Modes"); Table.AddColumn("Users"); for (unsigned int p = 0; p < sPerms.size(); p++) { CString sPerm; sPerm += sPerms[p]; Table.AddColumn(sPerm); } unsigned int uNumDetached = 0, uNumDisabled = 0, uNumJoined = 0; for (unsigned int a = 0; a < vChans.size(); a++) { const CChan* pChan = vChans[a]; Table.AddRow(); Table.SetCell("Name", pChan->GetPermStr() + pChan->GetName()); Table.SetCell("Status", ((vChans[a]->IsOn()) ? ((vChans[a]->IsDetached()) ? "Detached" : "Joined") : ((vChans[a]->IsDisabled()) ? "Disabled" : "Trying"))); Table.SetCell("Conf", CString((pChan->InConfig()) ? "yes" : "")); Table.SetCell("Buf", CString((pChan->HasBufferCountSet()) ? "*" : "") + CString(pChan->GetBufferCount())); Table.SetCell("Clear", CString((pChan->HasAutoClearChanBufferSet()) ? "*" : "") + CString((pChan->AutoClearChanBuffer()) ? "yes" : "")); Table.SetCell("Modes", pChan->GetModeString()); Table.SetCell("Users", CString(pChan->GetNickCount())); map mPerms = pChan->GetPermCounts(); for (unsigned int b = 0; b < sPerms.size(); b++) { char cPerm = sPerms[b]; Table.SetCell(CString(cPerm), CString(mPerms[cPerm])); } if(pChan->IsDetached()) uNumDetached++; if(pChan->IsOn()) uNumJoined++; if(pChan->IsDisabled()) uNumDisabled++; } PutStatus(Table); PutStatus("Total: " + CString(vChans.size()) + " - Joined: " + CString(uNumJoined) + " - Detached: " + CString(uNumDetached) + " - Disabled: " + CString(uNumDisabled)); } else if (sCommand.Equals("ADDNETWORK")) { if (!m_pUser->IsAdmin() && !m_pUser->HasSpaceForNewNetwork()) { PutStatus("Network number limit reached. Ask an admin to increase the limit for you, or delete unneeded networks using /znc DelNetwork "); return; } CString sNetwork = sLine.Token(1); if (sNetwork.empty()) { PutStatus("Usage: AddNetwork "); return; } if (!CIRCNetwork::IsValidNetwork(sNetwork)) { PutStatus("Network name should be alphanumeric"); return; } CString sNetworkAddError; if (m_pUser->AddNetwork(sNetwork, sNetworkAddError)) { PutStatus("Network added. Use /znc JumpNetwork " + sNetwork + ", or connect to ZNC with username " + m_pUser->GetUserName() + "/" + sNetwork + " (instead of just " + m_pUser->GetUserName() + ") to connect to it."); } else { PutStatus("Unable to add that network"); PutStatus(sNetworkAddError); } } else if (sCommand.Equals("DELNETWORK")) { CString sNetwork = sLine.Token(1); if (sNetwork.empty()) { PutStatus("Usage: DelNetwork "); return; } if (m_pNetwork && m_pNetwork->GetName().Equals(sNetwork)) { SetNetwork(NULL); } if (m_pUser->DeleteNetwork(sNetwork)) { PutStatus("Network deleted"); } else { PutStatus("Failed to delete network"); PutStatus("Perhaps this network doesn't exist"); } } else if (sCommand.Equals("LISTNETWORKS")) { CUser *pUser = m_pUser; if (m_pUser->IsAdmin() && !sLine.Token(1).empty()) { pUser = CZNC::Get().FindUser(sLine.Token(1)); if (!pUser) { PutStatus("User not found " + sLine.Token(1)); return; } } const vector& vNetworks = pUser->GetNetworks(); CTable Table; Table.AddColumn("Network"); Table.AddColumn("OnIRC"); Table.AddColumn("IRC Server"); Table.AddColumn("IRC User"); Table.AddColumn("Channels"); for (size_t a = 0; a < vNetworks.size(); a++) { CIRCNetwork* pNetwork = vNetworks[a]; Table.AddRow(); Table.SetCell("Network", pNetwork->GetName()); if (pNetwork->IsIRCConnected()) { Table.SetCell("OnIRC", "Yes"); Table.SetCell("IRC Server", pNetwork->GetIRCServer()); Table.SetCell("IRC User", pNetwork->GetIRCNick().GetNickMask()); Table.SetCell("Channels", CString(pNetwork->GetChans().size())); } else { Table.SetCell("OnIRC", "No"); } } if (PutStatus(Table) == 0) { PutStatus("No networks"); } } else if (sCommand.Equals("MOVENETWORK")) { if (!m_pUser->IsAdmin()) { PutStatus("Access Denied."); return; } CString sOldUser = sLine.Token(1); CString sOldNetwork = sLine.Token(2); CString sNewUser = sLine.Token(3); CString sNewNetwork = sLine.Token(4); if (sOldUser.empty() || sOldNetwork.empty() || sNewUser.empty()) { PutStatus("Usage: MoveNetwork [new network]"); return; } if (sNewNetwork.empty()) { sNewNetwork = sOldNetwork; } CUser* pOldUser = CZNC::Get().FindUser(sOldUser); if (!pOldUser) { PutStatus("Old user [" + sOldUser + "] not found."); return; } CIRCNetwork* pOldNetwork = pOldUser->FindNetwork(sOldNetwork); if (!pOldNetwork) { PutStatus("Old network [" + sOldNetwork + "] not found."); return; } CUser* pNewUser = CZNC::Get().FindUser(sNewUser); if (!pNewUser) { PutStatus("New user [" + sOldUser + "] not found."); return; } if (pNewUser->FindNetwork(sNewNetwork)) { PutStatus("User [" + sNewUser + "] already has network [" + sNewNetwork + "]."); return; } if (!CIRCNetwork::IsValidNetwork(sNewNetwork)) { PutStatus("Invalid network name [" + sNewNetwork + "]"); return; } const CModules& vMods = pOldNetwork->GetModules(); for (CModules::const_iterator i = vMods.begin(); i != vMods.end(); ++i) { CString sOldModPath = pOldNetwork->GetNetworkPath() + "/moddata/" + (*i)->GetModName(); CString sNewModPath = pNewUser->GetUserPath() + "/networks/" + sNewNetwork + "/moddata/" + (*i)->GetModName(); CDir oldDir(sOldModPath); for (CDir::iterator it = oldDir.begin(); it != oldDir.end(); ++it) { if ((*it)->GetShortName() != ".registry") { PutStatus("Some files seem to be in [" + sOldModPath + "]. You might want to move them to [" + sNewModPath + "]"); break; } } (*i)->MoveRegistry(sNewModPath); } CString sNetworkAddError; CIRCNetwork* pNewNetwork = pNewUser->AddNetwork(sNewNetwork, sNetworkAddError); if (!pNewNetwork) { PutStatus("Error adding network:" + sNetworkAddError); return; } pNewNetwork->Clone(*pOldNetwork, false); if (m_pNetwork && m_pNetwork->GetName().Equals(sOldNetwork) && m_pUser == pOldUser) { SetNetwork(NULL); } if (pOldUser->DeleteNetwork(sOldNetwork)) { PutStatus("Success."); } else { PutStatus("Copied the network to new user, but failed to delete old network"); } } else if (sCommand.Equals("JUMPNETWORK")) { CString sNetwork = sLine.Token(1); if (sNetwork.empty()) { PutStatus("No network supplied."); return; } if (m_pNetwork && (m_pNetwork->GetName() == sNetwork)) { PutStatus("You are already connected with this network."); return; } CIRCNetwork *pNetwork = m_pUser->FindNetwork(sNetwork); if (pNetwork) { PutStatus("Switched to " + sNetwork); SetNetwork(pNetwork); } else { PutStatus("You don't have a network named " + sNetwork); } } else if (sCommand.Equals("ADDSERVER")) { CString sServer = sLine.Token(1); if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } if (sServer.empty()) { PutStatus("Usage: AddServer [[+]port] [pass]"); return; } if (m_pNetwork->AddServer(sLine.Token(1, true))) { PutStatus("Server added"); } else { PutStatus("Unable to add that server"); PutStatus("Perhaps the server is already added or openssl is disabled?"); } } else if (sCommand.Equals("REMSERVER") || sCommand.Equals("DELSERVER")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sServer = sLine.Token(1); unsigned short uPort = sLine.Token(2).ToUShort(); CString sPass = sLine.Token(3); if (sServer.empty()) { PutStatus("Usage: DelServer [port] [pass]"); return; } if (!m_pNetwork->HasServers()) { PutStatus("You don't have any servers added."); return; } if (m_pNetwork->DelServer(sServer, uPort, sPass)) { PutStatus("Server removed"); } else { PutStatus("No such server"); } } else if (sCommand.Equals("LISTSERVERS")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } if (m_pNetwork->HasServers()) { const vector& vServers = m_pNetwork->GetServers(); CServer* pCurServ = m_pNetwork->GetCurrentServer(); CTable Table; Table.AddColumn("Host"); Table.AddColumn("Port"); Table.AddColumn("SSL"); Table.AddColumn("Pass"); for (unsigned int a = 0; a < vServers.size(); a++) { CServer* pServer = vServers[a]; Table.AddRow(); Table.SetCell("Host", pServer->GetName() + (pServer == pCurServ ? "*" : "")); Table.SetCell("Port", CString(pServer->GetPort())); Table.SetCell("SSL", (pServer->IsSSL()) ? "SSL" : ""); Table.SetCell("Pass", pServer->GetPass()); } PutStatus(Table); } else { PutStatus("You don't have any servers added."); } } else if (sCommand.Equals("AddTrustedServerFingerprint")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sFP = sLine.Token(1); if (sFP.empty()) { PutStatus("Usage: AddTrustedServerFingerprint "); return; } m_pNetwork->AddTrustedFingerprint(sFP); PutStatus("Done."); } else if (sCommand.Equals("DelTrustedServerFingerprint")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sFP = sLine.Token(1); if (sFP.empty()) { PutStatus("Usage: DelTrustedServerFingerprint "); return; } m_pNetwork->DelTrustedFingerprint(sFP); PutStatus("Done."); } else if (sCommand.Equals("ListTrustedServerFingerprints")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } const SCString& ssFPs = m_pNetwork->GetTrustedFingerprints(); if (ssFPs.empty()) { PutStatus("No fingerprints added."); } else { int k = 0; for (const CString& sFP : ssFPs) { PutStatus(CString(++k) + ". " + sFP); } } } else if (sCommand.Equals("TOPICS")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } const vector& vChans = m_pNetwork->GetChans(); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Set By"); Table.AddColumn("Topic"); for (unsigned int a = 0; a < vChans.size(); a++) { CChan* pChan = vChans[a]; Table.AddRow(); Table.SetCell("Name", pChan->GetName()); Table.SetCell("Set By", pChan->GetTopicOwner()); Table.SetCell("Topic", pChan->GetTopic()); } PutStatus(Table); } else if (sCommand.Equals("LISTMODS") || sCommand.Equals("LISTMODULES")) { if (m_pUser->IsAdmin()) { CModules& GModules = CZNC::Get().GetModules(); if (!GModules.size()) { PutStatus("No global modules loaded."); } else { PutStatus("Global modules:"); CTable GTable; GTable.AddColumn("Name"); GTable.AddColumn("Arguments"); for (unsigned int b = 0; b < GModules.size(); b++) { GTable.AddRow(); GTable.SetCell("Name", GModules[b]->GetModName()); GTable.SetCell("Arguments", GModules[b]->GetArgs()); } PutStatus(GTable); } } CModules& Modules = m_pUser->GetModules(); if (!Modules.size()) { PutStatus("Your user has no modules loaded."); } else { PutStatus("User modules:"); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Arguments"); for (unsigned int b = 0; b < Modules.size(); b++) { Table.AddRow(); Table.SetCell("Name", Modules[b]->GetModName()); Table.SetCell("Arguments", Modules[b]->GetArgs()); } PutStatus(Table); } if (m_pNetwork) { CModules& NetworkModules = m_pNetwork->GetModules(); if (NetworkModules.empty()) { PutStatus("This network has no modules loaded."); } else { PutStatus("Network modules:"); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Arguments"); for (unsigned int b = 0; b < NetworkModules.size(); b++) { Table.AddRow(); Table.SetCell("Name", NetworkModules[b]->GetModName()); Table.SetCell("Arguments", NetworkModules[b]->GetArgs()); } PutStatus(Table); } } return; } else if (sCommand.Equals("LISTAVAILMODS") || sCommand.Equals("LISTAVAILABLEMODULES")) { if (m_pUser->DenyLoadMod()) { PutStatus("Access Denied."); return; } if (m_pUser->IsAdmin()) { set ssGlobalMods; CZNC::Get().GetModules().GetAvailableMods(ssGlobalMods, CModInfo::GlobalModule); if (ssGlobalMods.empty()) { PutStatus("No global modules available."); } else { PutStatus("Global modules:"); CTable GTable; GTable.AddColumn("Name"); GTable.AddColumn("Description"); set::iterator it; for (it = ssGlobalMods.begin(); it != ssGlobalMods.end(); ++it) { const CModInfo& Info = *it; GTable.AddRow(); GTable.SetCell("Name", (CZNC::Get().GetModules().FindModule(Info.GetName()) ? "*" : " ") + Info.GetName()); GTable.SetCell("Description", Info.GetDescription().Ellipsize(128)); } PutStatus(GTable); } } set ssUserMods; CZNC::Get().GetModules().GetAvailableMods(ssUserMods); if (ssUserMods.empty()) { PutStatus("No user modules available."); } else { PutStatus("User modules:"); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Description"); set::iterator it; for (it = ssUserMods.begin(); it != ssUserMods.end(); ++it) { const CModInfo& Info = *it; Table.AddRow(); Table.SetCell("Name", (m_pUser->GetModules().FindModule(Info.GetName()) ? "*" : " ") + Info.GetName()); Table.SetCell("Description", Info.GetDescription().Ellipsize(128)); } PutStatus(Table); } set ssNetworkMods; CZNC::Get().GetModules().GetAvailableMods(ssNetworkMods, CModInfo::NetworkModule); if (ssNetworkMods.empty()) { PutStatus("No network modules available."); } else { PutStatus("Network modules:"); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Description"); set::const_iterator it; for (it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) { const CModInfo& Info = *it; Table.AddRow(); Table.SetCell("Name", ((m_pNetwork && m_pNetwork->GetModules().FindModule(Info.GetName())) ? "*" : " ") + Info.GetName()); Table.SetCell("Description", Info.GetDescription().Ellipsize(128)); } PutStatus(Table); } return; } else if (sCommand.Equals("LOADMOD") || sCommand.Equals("LOADMODULE")) { CModInfo::EModuleType eType; CString sType = sLine.Token(1); CString sMod = sLine.Token(2); CString sArgs = sLine.Token(3, true); // TODO use proper library for parsing arguments if (sType.Equals("--type=global")) { eType = CModInfo::GlobalModule; } else if (sType.Equals("--type=user")) { eType = CModInfo::UserModule; } else if (sType.Equals("--type=network")) { eType = CModInfo::NetworkModule; } else { sMod = sType; sArgs = sLine.Token(2, true); sType = "default"; // Will be set correctly later eType = CModInfo::UserModule; } if (m_pUser->DenyLoadMod()) { PutStatus("Unable to load [" + sMod + "]: Access Denied."); return; } if (sMod.empty()) { PutStatus("Usage: LoadMod [--type=global|user|network] [args]"); return; } CModInfo ModInfo; CString sRetMsg; if (!CZNC::Get().GetModules().GetModInfo(ModInfo, sMod, sRetMsg)) { PutStatus("Unable to find modinfo [" + sMod + "] [" + sRetMsg + "]"); return; } if (sType.Equals("default")) { eType = ModInfo.GetDefaultType(); } if (eType == CModInfo::GlobalModule && !m_pUser->IsAdmin()) { PutStatus("Unable to load global module [" + sMod + "]: Access Denied."); return; } if (eType == CModInfo::NetworkModule && !m_pNetwork) { PutStatus("Unable to load network module [" + sMod + "] Not connected with a network."); return; } CString sModRet; bool b = false; switch (eType) { case CModInfo::GlobalModule: b = CZNC::Get().GetModules().LoadModule(sMod, sArgs, eType, NULL, NULL, sModRet); break; case CModInfo::UserModule: b = m_pUser->GetModules().LoadModule(sMod, sArgs, eType, m_pUser, NULL, sModRet); break; case CModInfo::NetworkModule: b = m_pNetwork->GetModules().LoadModule(sMod, sArgs, eType, m_pUser, m_pNetwork, sModRet); break; default: sModRet = "Unable to load module [" + sMod + "]: Unknown module type"; } if (b) sModRet = "Loaded module [" + sMod + "] " + sModRet; PutStatus(sModRet); return; } else if (sCommand.Equals("UNLOADMOD") || sCommand.Equals("UNLOADMODULE")) { CModInfo::EModuleType eType = CModInfo::UserModule; CString sType = sLine.Token(1); CString sMod = sLine.Token(2); // TODO use proper library for parsing arguments if (sType.Equals("--type=global")) { eType = CModInfo::GlobalModule; } else if (sType.Equals("--type=user")) { eType = CModInfo::UserModule; } else if (sType.Equals("--type=network")) { eType = CModInfo::NetworkModule; } else { sMod = sType; sType = "default"; } if (m_pUser->DenyLoadMod()) { PutStatus("Unable to unload [" + sMod + "] Access Denied."); return; } if (sMod.empty()) { PutStatus("Usage: UnloadMod [--type=global|user|network] "); return; } if (sType.Equals("default")) { CModInfo ModInfo; CString sRetMsg; if (!CZNC::Get().GetModules().GetModInfo(ModInfo, sMod, sRetMsg)) { PutStatus("Unable to find modinfo [" + sMod + "] [" + sRetMsg + "]"); return; } eType = ModInfo.GetDefaultType(); } if (eType == CModInfo::GlobalModule && !m_pUser->IsAdmin()) { PutStatus("Unable to unload global module [" + sMod + "]: Access Denied."); return; } if (eType == CModInfo::NetworkModule && !m_pNetwork) { PutStatus("Unable to unload network module [" + sMod + "] Not connected with a network."); return; } CString sModRet; switch (eType) { case CModInfo::GlobalModule: CZNC::Get().GetModules().UnloadModule(sMod, sModRet); break; case CModInfo::UserModule: m_pUser->GetModules().UnloadModule(sMod, sModRet); break; case CModInfo::NetworkModule: m_pNetwork->GetModules().UnloadModule(sMod, sModRet); break; default: sModRet = "Unable to unload module [" + sMod + "]: Unknown module type"; } PutStatus(sModRet); return; } else if (sCommand.Equals("RELOADMOD") || sCommand.Equals("RELOADMODULE")) { CModInfo::EModuleType eType; CString sType = sLine.Token(1); CString sMod = sLine.Token(2); CString sArgs = sLine.Token(3, true); if (m_pUser->DenyLoadMod()) { PutStatus("Unable to reload modules. Access Denied."); return; } // TODO use proper library for parsing arguments if (sType.Equals("--type=global")) { eType = CModInfo::GlobalModule; } else if (sType.Equals("--type=user")) { eType = CModInfo::UserModule; } else if (sType.Equals("--type=network")) { eType = CModInfo::NetworkModule; } else { sMod = sType; sArgs = sLine.Token(2, true); sType = "default"; // Will be set correctly later eType = CModInfo::UserModule; } if (sMod.empty()) { PutStatus("Usage: ReloadMod [--type=global|user|network] [args]"); return; } if (sType.Equals("default")) { CModInfo ModInfo; CString sRetMsg; if (!CZNC::Get().GetModules().GetModInfo(ModInfo, sMod, sRetMsg)) { PutStatus("Unable to find modinfo for [" + sMod + "] [" + sRetMsg + "]"); return; } eType = ModInfo.GetDefaultType(); } if (eType == CModInfo::GlobalModule && !m_pUser->IsAdmin()) { PutStatus("Unable to reload global module [" + sMod + "]: Access Denied."); return; } if (eType == CModInfo::NetworkModule && !m_pNetwork) { PutStatus("Unable to load network module [" + sMod + "] Not connected with a network."); return; } CString sModRet; switch (eType) { case CModInfo::GlobalModule: CZNC::Get().GetModules().ReloadModule(sMod, sArgs, NULL, NULL, sModRet); break; case CModInfo::UserModule: m_pUser->GetModules().ReloadModule(sMod, sArgs, m_pUser, NULL, sModRet); break; case CModInfo::NetworkModule: m_pNetwork->GetModules().ReloadModule(sMod, sArgs, m_pUser, m_pNetwork, sModRet); break; default: sModRet = "Unable to reload module [" + sMod + "]: Unknown module type"; } PutStatus(sModRet); return; } else if ((sCommand.Equals("UPDATEMOD") || sCommand.Equals("UPDATEMODULE")) && m_pUser->IsAdmin() ) { CString sMod = sLine.Token(1); if (sMod.empty()) { PutStatus("Usage: UpdateMod "); return; } PutStatus("Reloading [" + sMod + "] everywhere"); if (CZNC::Get().UpdateModule(sMod)) { PutStatus("Done"); } else { PutStatus("Done, but there were errors, [" + sMod + "] could not be loaded everywhere."); } } else if ((sCommand.Equals("ADDBINDHOST") || sCommand.Equals("ADDVHOST")) && m_pUser->IsAdmin()) { CString sHost = sLine.Token(1); if (sHost.empty()) { PutStatus("Usage: AddBindHost "); return; } if (CZNC::Get().AddBindHost(sHost)) { PutStatus("Done"); } else { PutStatus("The host [" + sHost + "] is already in the list"); } } else if ((sCommand.Equals("REMBINDHOST") || sCommand.Equals("DELBINDHOST") || sCommand.Equals("REMVHOST") || sCommand.Equals("DELVHOST")) && m_pUser->IsAdmin()) { CString sHost = sLine.Token(1); if (sHost.empty()) { PutStatus("Usage: DelBindHost "); return; } if (CZNC::Get().RemBindHost(sHost)) { PutStatus("Done"); } else { PutStatus("The host [" + sHost + "] is not in the list"); } } else if ((sCommand.Equals("LISTBINDHOSTS") || sCommand.Equals("LISTVHOSTS")) && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (vsHosts.empty()) { PutStatus("No bind hosts configured"); return; } CTable Table; Table.AddColumn("Host"); VCString::const_iterator it; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { Table.AddRow(); Table.SetCell("Host", *it); } PutStatus(Table); } else if ((sCommand.Equals("SETBINDHOST") || sCommand.Equals("SETVHOST")) && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command. Try SetUserBindHost instead"); return; } CString sHost = sLine.Token(1); if (sHost.empty()) { PutStatus("Usage: SetBindHost "); return; } if (sHost.Equals(m_pNetwork->GetBindHost())) { PutStatus("You already have this bind host!"); return; } const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (!m_pUser->IsAdmin() && !vsHosts.empty()) { VCString::const_iterator it; bool bFound = false; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { if (sHost.Equals(*it)) { bFound = true; break; } } if (!bFound) { PutStatus("You may not use this bind host. See [ListBindHosts] for a list"); return; } } m_pNetwork->SetBindHost(sHost); PutStatus("Set bind host for network [" + m_pNetwork->GetName() + "] to [" + m_pNetwork->GetBindHost() + "]"); } else if (sCommand.Equals("SETUSERBINDHOST") && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { CString sHost = sLine.Token(1); if (sHost.empty()) { PutStatus("Usage: SetUserBindHost "); return; } if (sHost.Equals(m_pUser->GetBindHost())) { PutStatus("You already have this bind host!"); return; } const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (!m_pUser->IsAdmin() && !vsHosts.empty()) { VCString::const_iterator it; bool bFound = false; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { if (sHost.Equals(*it)) { bFound = true; break; } } if (!bFound) { PutStatus("You may not use this bind host. See [ListBindHosts] for a list"); return; } } m_pUser->SetBindHost(sHost); PutStatus("Set bind host to [" + m_pUser->GetBindHost() + "]"); } else if ((sCommand.Equals("CLEARBINDHOST") || sCommand.Equals("CLEARVHOST")) && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command. Try ClearUserBindHost instead"); return; } m_pNetwork->SetBindHost(""); PutStatus("Bind host cleared for this network."); } else if (sCommand.Equals("CLEARUSERBINDHOST") && (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost())) { m_pUser->SetBindHost(""); PutStatus("Bind host cleared for your user."); } else if (sCommand.Equals("SHOWBINDHOST")) { PutStatus("This user's default bind host " + (m_pUser->GetBindHost().empty() ? "not set" : "is [" + m_pUser->GetBindHost() + "]")); if (m_pNetwork) { PutStatus("This network's bind host " + (m_pNetwork->GetBindHost().empty() ? "not set" : "is [" + m_pNetwork->GetBindHost() + "]")); } } else if (sCommand.Equals("PLAYBUFFER")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sBuffer = sLine.Token(1); if (sBuffer.empty()) { PutStatus("Usage: PlayBuffer <#chan|query>"); return; } if (m_pNetwork->IsChan(sBuffer)) { CChan* pChan = m_pNetwork->FindChan(sBuffer); if (!pChan) { PutStatus("You are not on [" + sBuffer + "]"); return; } if (!pChan->IsOn()) { PutStatus("You are not on [" + sBuffer + "] [trying]"); return; } if (pChan->GetBuffer().IsEmpty()) { PutStatus("The buffer for [" + sBuffer + "] is empty"); return; } pChan->SendBuffer(this); } else { CQuery* pQuery = m_pNetwork->FindQuery(sBuffer); if (!pQuery) { PutStatus("No active query with [" + sBuffer + "]"); return; } if (pQuery->GetBuffer().IsEmpty()) { PutStatus("The buffer for [" + sBuffer + "] is empty"); return; } pQuery->SendBuffer(this); } } else if (sCommand.Equals("CLEARBUFFER")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sBuffer = sLine.Token(1); if (sBuffer.empty()) { PutStatus("Usage: ClearBuffer <#chan|query>"); return; } unsigned int uMatches = 0; vector vChans = m_pNetwork->FindChans(sBuffer); for (vector::const_iterator it = vChans.begin(); it != vChans.end(); ++it) { uMatches++; (*it)->ClearBuffer(); } vector vQueries = m_pNetwork->FindQueries(sBuffer); for (vector::const_iterator it = vQueries.begin(); it != vQueries.end(); ++it) { uMatches++; m_pNetwork->DelQuery((*it)->GetName()); } PutStatus("[" + CString(uMatches) + "] buffers matching [" + sBuffer + "] have been cleared"); } else if (sCommand.Equals("CLEARALLCHANNELBUFFERS")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } vector::const_iterator it; const vector& vChans = m_pNetwork->GetChans(); for (it = vChans.begin(); it != vChans.end(); ++it) { (*it)->ClearBuffer(); } PutStatus("All channel buffers have been cleared"); } else if (sCommand.Equals("CLEARALLQUERYBUFFERS")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } vector::const_iterator it; vector VQueries = m_pNetwork->GetQueries(); for (it = VQueries.begin(); it != VQueries.end(); ++it) { m_pNetwork->DelQuery((*it)->GetName()); } PutStatus("All query buffers have been cleared"); } else if (sCommand.Equals("SETBUFFER")) { if (!m_pNetwork) { PutStatus("You must be connected with a network to use this command"); return; } CString sBuffer = sLine.Token(1); if (sBuffer.empty()) { PutStatus("Usage: SetBuffer <#chan|query> [linecount]"); return; } unsigned int uLineCount = sLine.Token(2).ToUInt(); unsigned int uMatches = 0, uFail = 0; vector vChans = m_pNetwork->FindChans(sBuffer); for (vector::const_iterator it = vChans.begin(); it != vChans.end(); ++it) { uMatches++; if (!(*it)->SetBufferCount(uLineCount)) uFail++; } vector vQueries = m_pNetwork->FindQueries(sBuffer); for (vector::const_iterator it = vQueries.begin(); it != vQueries.end(); ++it) { uMatches++; if (!(*it)->SetBufferCount(uLineCount)) uFail++; } PutStatus("BufferCount for [" + CString(uMatches - uFail) + "] buffer was set to [" + CString(uLineCount) + "]"); if (uFail > 0) { PutStatus("Setting BufferCount failed for [" + CString(uFail) + "] buffers, " "max buffer count is " + CString(CZNC::Get().GetMaxBufferSize())); } } else if (m_pUser->IsAdmin() && sCommand.Equals("TRAFFIC")) { CZNC::TrafficStatsPair Users, ZNC, Total; CZNC::TrafficStatsMap traffic = CZNC::Get().GetTrafficStats(Users, ZNC, Total); CZNC::TrafficStatsMap::const_iterator it; CTable Table; Table.AddColumn("Username"); Table.AddColumn("In"); Table.AddColumn("Out"); Table.AddColumn("Total"); for (it = traffic.begin(); it != traffic.end(); ++it) { Table.AddRow(); Table.SetCell("Username", it->first); Table.SetCell("In", CString::ToByteStr(it->second.first)); Table.SetCell("Out", CString::ToByteStr(it->second.second)); Table.SetCell("Total", CString::ToByteStr(it->second.first + it->second.second)); } Table.AddRow(); Table.SetCell("Username", ""); Table.SetCell("In", CString::ToByteStr(Users.first)); Table.SetCell("Out", CString::ToByteStr(Users.second)); Table.SetCell("Total", CString::ToByteStr(Users.first + Users.second)); Table.AddRow(); Table.SetCell("Username", ""); Table.SetCell("In", CString::ToByteStr(ZNC.first)); Table.SetCell("Out", CString::ToByteStr(ZNC.second)); Table.SetCell("Total", CString::ToByteStr(ZNC.first + ZNC.second)); Table.AddRow(); Table.SetCell("Username", ""); Table.SetCell("In", CString::ToByteStr(Total.first)); Table.SetCell("Out", CString::ToByteStr(Total.second)); Table.SetCell("Total", CString::ToByteStr(Total.first + Total.second)); PutStatus(Table); } else if (sCommand.Equals("UPTIME")) { PutStatus("Running for " + CZNC::Get().GetUptime()); } else if (m_pUser->IsAdmin() && (sCommand.Equals("LISTPORTS") || sCommand.Equals("ADDPORT") || sCommand.Equals("DELPORT"))) { UserPortCommand(sLine); } else { PutStatus("Unknown command [" + sCommand + "] try 'Help'"); } } void CClient::UserPortCommand(CString& sLine) { const CString sCommand = sLine.Token(0); if (sCommand.Equals("LISTPORTS")) { CTable Table; Table.AddColumn("Port"); Table.AddColumn("BindHost"); Table.AddColumn("SSL"); Table.AddColumn("Proto"); Table.AddColumn("IRC/Web"); Table.AddColumn("URIPrefix"); vector::const_iterator it; const vector& vpListeners = CZNC::Get().GetListeners(); for (it = vpListeners.begin(); it < vpListeners.end(); ++it) { Table.AddRow(); Table.SetCell("Port", CString((*it)->GetPort())); Table.SetCell("BindHost", ((*it)->GetBindHost().empty() ? CString("*") : (*it)->GetBindHost())); Table.SetCell("SSL", CString((*it)->IsSSL())); EAddrType eAddr = (*it)->GetAddrType(); Table.SetCell("Proto", (eAddr == ADDR_ALL ? "All" : (eAddr == ADDR_IPV4ONLY ? "IPv4" : "IPv6"))); CListener::EAcceptType eAccept = (*it)->GetAcceptType(); Table.SetCell("IRC/Web", (eAccept == CListener::ACCEPT_ALL ? "All" : (eAccept == CListener::ACCEPT_IRC ? "IRC" : "Web"))); Table.SetCell("URIPrefix", (*it)->GetURIPrefix() + "/"); } PutStatus(Table); return; } CString sPort = sLine.Token(1); CString sAddr = sLine.Token(2); EAddrType eAddr = ADDR_ALL; if (sAddr.Equals("IPV4")) { eAddr = ADDR_IPV4ONLY; } else if (sAddr.Equals("IPV6")) { eAddr = ADDR_IPV6ONLY; } else if (sAddr.Equals("ALL")) { eAddr = ADDR_ALL; } else { sAddr.clear(); } unsigned short uPort = sPort.ToUShort(); if (sCommand.Equals("ADDPORT")) { CListener::EAcceptType eAccept = CListener::ACCEPT_ALL; CString sAccept = sLine.Token(3); if (sAccept.Equals("WEB")) { eAccept = CListener::ACCEPT_HTTP; } else if (sAccept.Equals("IRC")) { eAccept = CListener::ACCEPT_IRC; } else if (sAccept.Equals("ALL")) { eAccept = CListener::ACCEPT_ALL; } else { sAccept.clear(); } if (sPort.empty() || sAddr.empty() || sAccept.empty()) { PutStatus("Usage: AddPort <[+]port> [bindhost [uriprefix]]"); } else { bool bSSL = (sPort.Left(1).Equals("+")); const CString sBindHost = sLine.Token(4); const CString sURIPrefix = sLine.Token(5); CListener* pListener = new CListener(uPort, sBindHost, sURIPrefix, bSSL, eAddr, eAccept); if (!pListener->Listen()) { delete pListener; PutStatus("Unable to bind [" + CString(strerror(errno)) + "]"); } else { if (CZNC::Get().AddListener(pListener)) PutStatus("Port Added"); else PutStatus("Error?!"); } } } else if (sCommand.Equals("DELPORT")) { if (sPort.empty() || sAddr.empty()) { PutStatus("Usage: DelPort [bindhost]"); } else { const CString sBindHost = sLine.Token(3); CListener* pListener = CZNC::Get().FindListener(uPort, sBindHost, eAddr); if (pListener) { CZNC::Get().DelListener(pListener); PutStatus("Deleted Port"); } else { PutStatus("Unable to find a matching port"); } } } } static void AddCommandHelp(CTable& Table, const CString& sCmd, const CString& sArgs, const CString& sDesc, const CString& sFilter = "") { const CString::size_type iFilterLength = sFilter.size(); if (sFilter.empty() || sCmd.Equals(sFilter, false, iFilterLength) || sCmd.AsLower().WildCmp(sFilter.AsLower())) { Table.AddRow(); Table.SetCell("Command", sCmd + " " + sArgs); Table.SetCell("Description", sDesc); } } void CClient::HelpUser(const CString& sFilter) { CTable Table; Table.AddColumn("Command"); Table.AddColumn("Description"); if (sFilter.empty()) { PutStatus("In the following list all occurrences of <#chan> support wildcards (* and ?)"); PutStatus("(Except ListNicks)"); } AddCommandHelp(Table, "Version", "", "Print which version of ZNC this is", sFilter); AddCommandHelp(Table, "ListMods", "", "List all loaded modules", sFilter); AddCommandHelp(Table, "ListAvailMods", "", "List all available modules", sFilter); if (!m_pUser->IsAdmin()) { // If they are an admin we will add this command below with an argument AddCommandHelp(Table, "ListChans", "", "List all channels", sFilter); } AddCommandHelp(Table, "ListNicks", "<#chan>", "List all nicks on a channel", sFilter); if (!m_pUser->IsAdmin()) { AddCommandHelp(Table, "ListClients", "", "List all clients connected to your ZNC user", sFilter); } AddCommandHelp(Table, "ListServers", "", "List all servers of current IRC network", sFilter); AddCommandHelp(Table, "AddNetwork", "", "Add a network to your user", sFilter); AddCommandHelp(Table, "DelNetwork", "", "Delete a network from your user", sFilter); AddCommandHelp(Table, "ListNetworks", "", "List all networks", sFilter); if (m_pUser->IsAdmin()) { AddCommandHelp(Table, "MoveNetwork", " [new network]", "Move an IRC network from one user to another", sFilter); } AddCommandHelp(Table, "JumpNetwork", "", "Jump to another network (Alternatively, you can connect to ZNC several times, using `user/network` as username)", sFilter); AddCommandHelp(Table, "AddServer", " [[+]port] [pass]", "Add a server to the list of alternate/backup servers of current IRC network.", sFilter); AddCommandHelp(Table, "DelServer", " [port] [pass]", "Remove a server from the list of alternate/backup servers of current IRC network", sFilter); AddCommandHelp(Table, "AddTrustedServerFingerprint", "", "Add a trusted server SSL certificate fingerprint (SHA-256) to current IRC network.", sFilter); AddCommandHelp(Table, "DelTrustedServerFingerprint", "", "Delete a trusted server SSL certificate from current IRC network.", sFilter); AddCommandHelp(Table, "ListTrustedServerFingerprints", "", "List all trusted server SSL certificates of current IRC network.", sFilter); AddCommandHelp(Table, "EnableChan", "<#chans>", "Enable channels", sFilter); AddCommandHelp(Table, "DisableChan", "<#chans>", "Disable channels", sFilter); AddCommandHelp(Table, "Detach", "<#chans>", "Detach from channels", sFilter); AddCommandHelp(Table, "Topics", "", "Show topics in all your channels", sFilter); AddCommandHelp(Table, "PlayBuffer", "<#chan|query>", "Play back the specified buffer", sFilter); AddCommandHelp(Table, "ClearBuffer", "<#chan|query>", "Clear the specified buffer", sFilter); AddCommandHelp(Table, "ClearAllChannelBuffers", "", "Clear the channel buffers", sFilter); AddCommandHelp(Table, "ClearAllQueryBuffers", "", "Clear the query buffers", sFilter); AddCommandHelp(Table, "SetBuffer", "<#chan|query> [linecount]", "Set the buffer count", sFilter); if (m_pUser->IsAdmin()) { AddCommandHelp(Table, "AddBindHost", "", "Adds a bind host for normal users to use", sFilter); AddCommandHelp(Table, "DelBindHost", "", "Removes a bind host from the list", sFilter); } if (m_pUser->IsAdmin() || !m_pUser->DenySetBindHost()) { AddCommandHelp(Table, "ListBindHosts", "", "Shows the configured list of bind hosts", sFilter); AddCommandHelp(Table, "SetBindHost", "", "Set the bind host for this connection", sFilter); AddCommandHelp(Table, "SetUserBindHost", "", "Set the default bind host for this user", sFilter); AddCommandHelp(Table, "ClearBindHost", "", "Clear the bind host for this connection", sFilter); AddCommandHelp(Table, "ClearUserBindHost", "", "Clear the default bind host for this user", sFilter); } AddCommandHelp(Table, "ShowBindHost", "", "Show currently selected bind host", sFilter); AddCommandHelp(Table, "Jump", "[server]", "Jump to the next or the specified server", sFilter); AddCommandHelp(Table, "Disconnect", "[message]", "Disconnect from IRC", sFilter); AddCommandHelp(Table, "Connect", "", "Reconnect to IRC", sFilter); AddCommandHelp(Table, "Uptime", "", "Show for how long ZNC has been running", sFilter); if (!m_pUser->DenyLoadMod()) { AddCommandHelp(Table, "LoadMod", "[--type=global|user|network] ", "Load a module", sFilter); AddCommandHelp(Table, "UnloadMod", "[--type=global|user|network] ", "Unload a module", sFilter); AddCommandHelp(Table, "ReloadMod", "[--type=global|user|network] ", "Reload a module", sFilter); if (m_pUser->IsAdmin()) { AddCommandHelp(Table, "UpdateMod", "", "Reload a module everywhere", sFilter); } } AddCommandHelp(Table, "ShowMOTD", "", "Show ZNC's message of the day", sFilter); if (m_pUser->IsAdmin()) { AddCommandHelp(Table, "SetMOTD", "", "Set ZNC's message of the day", sFilter); AddCommandHelp(Table, "AddMOTD", "", "Append to ZNC's MOTD", sFilter); AddCommandHelp(Table, "ClearMOTD", "", "Clear ZNC's MOTD", sFilter); AddCommandHelp(Table, "ListPorts", "", "Show all active listeners", sFilter); AddCommandHelp(Table, "AddPort", "<[+]port> [bindhost [uriprefix]]", "Add another port for ZNC to listen on", sFilter); AddCommandHelp(Table, "DelPort", " [bindhost]", "Remove a port from ZNC", sFilter); AddCommandHelp(Table, "Rehash", "", "Reload znc.conf from disk", sFilter); AddCommandHelp(Table, "SaveConfig", "", "Save the current settings to disk", sFilter); AddCommandHelp(Table, "ListUsers", "", "List all ZNC users and their connection status", sFilter); AddCommandHelp(Table, "ListAllUserNetworks", "", "List all ZNC users and their networks", sFilter); AddCommandHelp(Table, "ListChans", "[user ]", "List all channels", sFilter); AddCommandHelp(Table, "ListClients", "[user]", "List all connected clients", sFilter); AddCommandHelp(Table, "Traffic", "", "Show basic traffic stats for all ZNC users", sFilter); AddCommandHelp(Table, "Broadcast", "[message]", "Broadcast a message to all ZNC users", sFilter); AddCommandHelp(Table, "Shutdown", "[message]", "Shut down ZNC completely", sFilter); AddCommandHelp(Table, "Restart", "[message]", "Restart ZNC", sFilter); } if (Table.empty()) { PutStatus("No matches for '" + sFilter + "'"); } else { PutStatus(Table); } } znc-1.6.3/src/Socket.cpp0000644000175000017500000004111612663147131015271 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #ifdef HAVE_ICU #include #endif #ifdef HAVE_LIBSSL // Copypasted from https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29 at 22 Dec 2014 static CString ZNC_DefaultCipher() { return "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:" "DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:" "ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:" "ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:" "DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:" "AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA"; } #endif CZNCSock::CZNCSock(int timeout) : Csock(timeout) { #ifdef HAVE_LIBSSL DisableSSLCompression(); FollowSSLCipherServerPreference(); DisableSSLProtocols(CZNC::Get().GetDisabledSSLProtocols()); CString sCipher = CZNC::Get().GetSSLCiphers(); if (sCipher.empty()) { sCipher = ZNC_DefaultCipher(); } SetCipher(sCipher); #endif } CZNCSock::CZNCSock(const CString& sHost, u_short port, int timeout) : Csock(sHost, port, timeout) { #ifdef HAVE_LIBSSL DisableSSLCompression(); FollowSSLCipherServerPreference(); DisableSSLProtocols(CZNC::Get().GetDisabledSSLProtocols()); #endif } unsigned int CSockManager::GetAnonConnectionCount(const CString &sIP) const { const_iterator it; unsigned int ret = 0; for (it = begin(); it != end(); ++it) { Csock *pSock = *it; // Logged in CClients have "USR::" as their sockname if (pSock->GetType() == Csock::INBOUND && pSock->GetRemoteIP() == sIP && pSock->GetSockName().Left(5) != "USR::") { ret++; } } DEBUG("There are [" << ret << "] clients from [" << sIP << "]"); return ret; } int CZNCSock::ConvertAddress(const struct sockaddr_storage * pAddr, socklen_t iAddrLen, CS_STRING & sIP, u_short * piPort) const { int ret = Csock::ConvertAddress(pAddr, iAddrLen, sIP, piPort); if (ret == 0) sIP.TrimPrefix("::ffff:"); return ret; } #ifdef HAVE_LIBSSL int CZNCSock::VerifyPeerCertificate(int iPreVerify, X509_STORE_CTX * pStoreCTX) { if (iPreVerify == 0) { m_ssCertVerificationErrors.insert(X509_verify_cert_error_string(X509_STORE_CTX_get_error(pStoreCTX))); } return 1; } void CZNCSock::SSLHandShakeFinished() { if (GetType() != ETConn::OUTBOUND) { return; } X509* pCert = GetX509(); if (!pCert) { DEBUG(GetSockName() + ": No cert"); CallSockError(errnoBadSSLCert, "Anonymous SSL cert is not allowed"); Close(); return; } CString sHostVerifyError; if (!ZNC_SSLVerifyHost(m_HostToVerifySSL, pCert, sHostVerifyError)) { m_ssCertVerificationErrors.insert(sHostVerifyError); } X509_free(pCert); if (m_ssCertVerificationErrors.empty()) { DEBUG(GetSockName() + ": Good cert"); return; } CString sFP = GetSSLPeerFingerprint(); if (m_ssTrustedFingerprints.count(sFP) != 0) { DEBUG(GetSockName() + ": Cert explicitly trusted by user: " << sFP); return; } DEBUG(GetSockName() + ": Bad cert"); CString sErrorMsg = "Invalid SSL certificate: "; sErrorMsg += CString(", ").Join(begin(m_ssCertVerificationErrors), end(m_ssCertVerificationErrors)); CallSockError(errnoBadSSLCert, sErrorMsg); Close(); } #endif CString CZNCSock::GetSSLPeerFingerprint() const { #ifdef HAVE_LIBSSL // Csocket's version returns insecure SHA-1 // This one is SHA-256 const EVP_MD* evp = EVP_sha256(); X509* pCert = GetX509(); if (!pCert) { DEBUG(GetSockName() + ": GetSSLPeerFingerprint: Anonymous cert"); return ""; } unsigned char buf[256/8]; unsigned int _32 = 256/8; int iSuccess = X509_digest(pCert, evp, buf, &_32); X509_free(pCert); if (!iSuccess) { DEBUG(GetSockName() + ": GetSSLPeerFingerprint: Couldn't find digest"); return ""; } return CString(reinterpret_cast(buf), sizeof buf).Escape_n(CString::EASCII, CString::EHEXCOLON); #else return ""; #endif } #ifdef HAVE_PTHREAD class CSockManager::CTDNSMonitorFD : public CSMonitorFD { public: CTDNSMonitorFD() { Add(CThreadPool::Get().getReadFD(), ECT_Read); } virtual bool FDsThatTriggered(const std::map& miiReadyFds) { if (miiReadyFds.find(CThreadPool::Get().getReadFD())->second) { CThreadPool::Get().handlePipeReadable(); } return true; } }; #endif #ifdef HAVE_THREADED_DNS void CSockManager::CDNSJob::runThread() { int iCount = 0; while (true) { addrinfo hints; memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; hints.ai_flags = AI_ADDRCONFIG; iRes = getaddrinfo(sHostname.c_str(), NULL, &hints, &aiResult); if (EAGAIN != iRes) { break; } iCount++; if (iCount > 5) { iRes = ETIMEDOUT; break; } sleep(5); // wait 5 seconds before next try } } void CSockManager::CDNSJob::runMain() { if (0 != this->iRes) { DEBUG("Error in threaded DNS: " << gai_strerror(this->iRes)); if (this->aiResult) { DEBUG("And aiResult is not NULL..."); } this->aiResult = NULL; // just for case. Maybe to call freeaddrinfo()? } pManager->SetTDNSThreadFinished(this->task, this->bBind, this->aiResult); } void CSockManager::StartTDNSThread(TDNSTask* task, bool bBind) { CString sHostname = bBind ? task->sBindhost : task->sHostname; CDNSJob* arg = new CDNSJob; arg->sHostname = sHostname; arg->task = task; arg->bBind = bBind; arg->iRes = 0; arg->aiResult = NULL; arg->pManager = this; CThreadPool::Get().addJob(arg); } static CString RandomFromSet(const SCString& sSet, std::default_random_engine& gen) { std::uniform_int_distribution<> distr(0, sSet.size() - 1); auto it = sSet.cbegin(); std::advance(it, distr(gen)); return *it; } static std::tuple RandomFrom2SetsWithBias(const SCString& ss4, const SCString& ss6, std::default_random_engine& gen) { // It's not quite what RFC says how to choose between IPv4 and IPv6, but proper way is harder to implement. // It would require to maintain some state between Csock objects. bool bUseIPv6; if (ss4.empty()) { bUseIPv6 = true; } else if (ss6.empty()) { bUseIPv6 = false; } else { // Let's prefer IPv6 :) std::discrete_distribution<> d({2, 3}); bUseIPv6 = d(gen); } const SCString& sSet = bUseIPv6 ? ss6 : ss4; return std::make_tuple(RandomFromSet(sSet, gen), bUseIPv6); } void CSockManager::SetTDNSThreadFinished(TDNSTask* task, bool bBind, addrinfo* aiResult) { if (bBind) { task->aiBind = aiResult; task->bDoneBind = true; } else { task->aiTarget = aiResult; task->bDoneTarget = true; } // Now that something is done, check if everything we needed is done if (!task->bDoneBind || !task->bDoneTarget) { return; } // All needed DNS is done, now collect the results SCString ssTargets4; SCString ssTargets6; for (addrinfo* ai = task->aiTarget; ai; ai = ai->ai_next) { char s[INET6_ADDRSTRLEN] = {}; getnameinfo(ai->ai_addr, ai->ai_addrlen, s, sizeof(s), NULL, 0, NI_NUMERICHOST); switch (ai->ai_family) { case AF_INET: ssTargets4.insert(s); break; #ifdef HAVE_IPV6 case AF_INET6: ssTargets6.insert(s); break; #endif } } SCString ssBinds4; SCString ssBinds6; for (addrinfo* ai = task->aiBind; ai; ai = ai->ai_next) { char s[INET6_ADDRSTRLEN] = {}; getnameinfo(ai->ai_addr, ai->ai_addrlen, s, sizeof(s), NULL, 0, NI_NUMERICHOST); switch (ai->ai_family) { case AF_INET: ssBinds4.insert(s); break; #ifdef HAVE_IPV6 case AF_INET6: ssBinds6.insert(s); break; #endif } } if (task->aiTarget) freeaddrinfo(task->aiTarget); if (task->aiBind) freeaddrinfo(task->aiBind); CString sBindhost; CString sTargetHost; std::random_device rd; std::default_random_engine gen(rd()); try { if (ssTargets4.empty() && ssTargets6.empty()) { throw "Can't resolve server hostname"; } else if (task->sBindhost.empty()) { // Choose random target std::tie(sTargetHost, std::ignore) = RandomFrom2SetsWithBias(ssTargets4, ssTargets6, gen); } else if (ssBinds4.empty() && ssBinds6.empty()) { throw "Can't resolve bind hostname. Try /znc ClearBindHost and /znc ClearUserBindHost"; } else if (ssBinds4.empty()) { if (ssTargets6.empty()) { throw "Server address is IPv4-only, but bindhost is IPv6-only"; } else { // Choose random target and bindhost from IPv6-only sets sTargetHost = RandomFromSet(ssTargets6, gen); sBindhost = RandomFromSet(ssBinds6, gen); } } else if (ssBinds6.empty()) { if (ssTargets4.empty()) { throw "Server address is IPv6-only, but bindhost is IPv4-only"; } else { // Choose random target and bindhost from IPv4-only sets sTargetHost = RandomFromSet(ssTargets4, gen); sBindhost = RandomFromSet(ssBinds4, gen); } } else { // Choose random target bool bUseIPv6; std::tie(sTargetHost, bUseIPv6) = RandomFrom2SetsWithBias(ssTargets4, ssTargets6, gen); // Choose random bindhost matching chosen target const SCString& ssBinds = bUseIPv6 ? ssBinds6 : ssBinds4; sBindhost = RandomFromSet(ssBinds, gen); } DEBUG("TDNS: " << task->sSockName << ", connecting to [" << sTargetHost << "] using bindhost [" << sBindhost << "]"); FinishConnect(sTargetHost, task->iPort, task->sSockName, task->iTimeout, task->bSSL, sBindhost, task->pcSock); } catch (const char* s) { DEBUG(task->sSockName << ", dns resolving error: " << s); task->pcSock->SetSockName(task->sSockName); task->pcSock->SockError(-1, s); delete task->pcSock; } delete task; } #endif /* HAVE_THREADED_DNS */ CSockManager::CSockManager() { #ifdef HAVE_PTHREAD MonitorFD(new CTDNSMonitorFD()); #endif } CSockManager::~CSockManager() { } void CSockManager::Connect(const CString& sHostname, u_short iPort, const CString& sSockName, int iTimeout, bool bSSL, const CString& sBindHost, CZNCSock *pcSock) { if (pcSock) { pcSock->SetHostToVerifySSL(sHostname); } #ifdef HAVE_THREADED_DNS DEBUG("TDNS: initiating resolving of [" << sHostname << "] and bindhost [" << sBindHost << "]"); TDNSTask* task = new TDNSTask; task->sHostname = sHostname; task->iPort = iPort; task->sSockName = sSockName; task->iTimeout = iTimeout; task->bSSL = bSSL; task->sBindhost = sBindHost; task->pcSock = pcSock; task->aiTarget = NULL; task->aiBind = NULL; task->bDoneTarget = false; if (sBindHost.empty()) { task->bDoneBind = true; } else { task->bDoneBind = false; StartTDNSThread(task, true); } StartTDNSThread(task, false); #else /* HAVE_THREADED_DNS */ // Just let Csocket handle DNS itself FinishConnect(sHostname, iPort, sSockName, iTimeout, bSSL, sBindHost, pcSock); #endif } void CSockManager::FinishConnect(const CString& sHostname, u_short iPort, const CString& sSockName, int iTimeout, bool bSSL, const CString& sBindHost, CZNCSock *pcSock) { CSConnection C(sHostname, iPort, iTimeout); C.SetSockName(sSockName); C.SetIsSSL(bSSL); C.SetBindHost(sBindHost); #ifdef HAVE_LIBSSL CString sCipher = CZNC::Get().GetSSLCiphers(); if (sCipher.empty()) { sCipher = ZNC_DefaultCipher(); } C.SetCipher(sCipher); #endif TSocketManager::Connect(C, pcSock); } /////////////////// CSocket /////////////////// CSocket::CSocket(CModule* pModule) : CZNCSock() { m_pModule = pModule; if (m_pModule) m_pModule->AddSocket(this); EnableReadLine(); SetMaxBufferThreshold(10240); } CSocket::CSocket(CModule* pModule, const CString& sHostname, unsigned short uPort, int iTimeout) : CZNCSock(sHostname, uPort, iTimeout) { m_pModule = pModule; if (m_pModule) m_pModule->AddSocket(this); EnableReadLine(); SetMaxBufferThreshold(10240); } CSocket::~CSocket() { CUser *pUser = NULL; // CWebSock could cause us to have a NULL pointer here if (m_pModule) { pUser = m_pModule->GetUser(); m_pModule->UnlinkSocket(this); } if (pUser && m_pModule && (m_pModule->GetType() != CModInfo::GlobalModule)) { pUser->AddBytesWritten(GetBytesWritten()); pUser->AddBytesRead(GetBytesRead()); } else { CZNC::Get().AddBytesWritten(GetBytesWritten()); CZNC::Get().AddBytesRead(GetBytesRead()); } } void CSocket::ReachedMaxBuffer() { DEBUG(GetSockName() << " == ReachedMaxBuffer()"); if (m_pModule) m_pModule->PutModule("Some socket reached its max buffer limit and was closed!"); Close(); } void CSocket::SockError(int iErrno, const CString& sDescription) { DEBUG(GetSockName() << " == SockError(" << sDescription << ", " << strerror(iErrno) << ")"); if (iErrno == EMFILE) { // We have too many open fds, this can cause a busy loop. Close(); } } bool CSocket::ConnectionFrom(const CString& sHost, unsigned short uPort) { return CZNC::Get().AllowConnectionFrom(sHost); } bool CSocket::Connect(const CString& sHostname, unsigned short uPort, bool bSSL, unsigned int uTimeout) { if (!m_pModule) { DEBUG("ERROR: CSocket::Connect called on instance without m_pModule handle!"); return false; } CUser* pUser = m_pModule->GetUser(); CString sSockName = "MOD::C::" + m_pModule->GetModName(); CString sBindHost; if (pUser) { sSockName += "::" + pUser->GetUserName(); sBindHost = pUser->GetBindHost(); CIRCNetwork* pNetwork = m_pModule->GetNetwork(); if (pNetwork) { sSockName += "::" + pNetwork->GetName(); sBindHost = pNetwork->GetBindHost(); } } // Don't overwrite the socket name if one is already set if (!GetSockName().empty()) { sSockName = GetSockName(); } m_pModule->GetManager()->Connect(sHostname, uPort, sSockName, uTimeout, bSSL, sBindHost, this); return true; } bool CSocket::Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout) { if (!m_pModule) { DEBUG("ERROR: CSocket::Listen called on instance without m_pModule handle!"); return false; } CUser* pUser = m_pModule->GetUser(); CString sSockName = "MOD::L::" + m_pModule->GetModName(); if (pUser) { sSockName += "::" + pUser->GetUserName(); } // Don't overwrite the socket name if one is already set if (!GetSockName().empty()) { sSockName = GetSockName(); } return m_pModule->GetManager()->ListenAll(uPort, sSockName, bSSL, SOMAXCONN, this); } CModule* CSocket::GetModule() const { return m_pModule; } /////////////////// !CSocket /////////////////// #ifdef HAVE_ICU void CIRCSocket::IcuExtToUCallback( UConverterToUnicodeArgs* toArgs, const char* codeUnits, int32_t length, UConverterCallbackReason reason, UErrorCode* err) { // From http://www.mirc.com/colors.html // The Control+O key combination in mIRC inserts ascii character 15, // which turns off all previous attributes, including color, bold, underline, and italics. // // \x02 bold // \x03 mIRC-compatible color // \x04 RRGGBB color // \x0F normal/reset (turn off bold, colors, etc.) // \x12 reverse (weechat) // \x16 reverse (mirc, kvirc) // \x1D italic // \x1F underline // Also see http://www.visualirc.net/tech-attrs.php // // Keep in sync with CUser::AddTimestamp and CIRCSocket::IcuExtFromUCallback static const std::set scAllowedChars = {'\x02', '\x03', '\x04', '\x0F', '\x12', '\x16', '\x1D', '\x1F'}; if (reason == UCNV_ILLEGAL && length == 1 && scAllowedChars.count(*codeUnits)) { *err = U_ZERO_ERROR; UChar c = *codeUnits; ucnv_cbToUWriteUChars(toArgs, &c, 1, 0, err); return; } Csock::IcuExtToUCallback(toArgs, codeUnits, length, reason, err); } void CIRCSocket::IcuExtFromUCallback( UConverterFromUnicodeArgs* fromArgs, const UChar* codeUnits, int32_t length, UChar32 codePoint, UConverterCallbackReason reason, UErrorCode* err) { // See comment in CIRCSocket::IcuExtToUCallback static const std::set scAllowedChars = {0x02, 0x03, 0x04, 0x0F, 0x12, 0x16, 0x1D, 0x1F}; if (reason == UCNV_ILLEGAL && scAllowedChars.count(codePoint)) { *err = U_ZERO_ERROR; char c = codePoint; ucnv_cbFromUWriteBytes(fromArgs, &c, 1, 0, err); return; } Csock::IcuExtFromUCallback(fromArgs, codeUnits, length, codePoint, reason, err); } #endif znc-1.6.3/src/Query.cpp0000644000175000017500000000550212663147131015145 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include using std::vector; CQuery::CQuery(const CString& sName, CIRCNetwork* pNetwork) { m_sName = sName; m_pNetwork = pNetwork; // Bandaid for users who upgrade from <=1.4 and have 0 in "default channel buffer size" setting. SetBufferCount(std::max(100u, m_pNetwork->GetUser()->GetBufferCount()), true); } CQuery::~CQuery() { } void CQuery::SendBuffer(CClient* pClient) { SendBuffer(pClient, m_Buffer); } void CQuery::SendBuffer(CClient* pClient, const CBuffer& Buffer) { if (m_pNetwork && m_pNetwork->IsUserAttached()) { // Based on CChan::SendBuffer() if (!Buffer.IsEmpty()) { const vector & vClients = m_pNetwork->GetClients(); for (size_t uClient = 0; uClient < vClients.size(); ++uClient) { CClient * pUseClient = (pClient ? pClient : vClients[uClient]); MCString msParams; msParams["target"] = pUseClient->GetNick(); bool bWasPlaybackActive = pUseClient->IsPlaybackActive(); pUseClient->SetPlaybackActive(true); bool bBatch = pUseClient->HasBatch(); CString sBatchName = m_sName.MD5(); if (bBatch) { m_pNetwork->PutUser(":znc.in BATCH +" + sBatchName + " znc.in/playback " + m_sName, pUseClient); } size_t uSize = Buffer.Size(); for (size_t uIdx = 0; uIdx < uSize; uIdx++) { const CBufLine& BufLine = Buffer.GetBufLine(uIdx); if (!pUseClient->HasSelfMessage()) { CNick Sender(BufLine.GetFormat().Token(0)); if (Sender.NickEquals(pUseClient->GetNick())) { continue; } } CString sLine = BufLine.GetLine(*pUseClient, msParams); if (bBatch) { MCString msBatchTags = CUtils::GetMessageTags(sLine); msBatchTags["batch"] = sBatchName; CUtils::SetMessageTags(sLine, msBatchTags); } bool bContinue = false; NETWORKMODULECALL(OnPrivBufferPlayLine2(*pUseClient, sLine, BufLine.GetTime()), m_pNetwork->GetUser(), m_pNetwork, NULL, &bContinue); if (bContinue) continue; m_pNetwork->PutUser(sLine, pUseClient); } if (bBatch) { m_pNetwork->PutUser(":znc.in BATCH -" + sBatchName, pUseClient); } pUseClient->SetPlaybackActive(bWasPlaybackActive); if (pClient) break; } } } } znc-1.6.3/src/ZNCDebug.cpp0000644000175000017500000000253612663147131015445 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include bool CDebug::stdoutIsTTY = true; bool CDebug::debug = #ifdef _DEBUG true; #else false; #endif CDebugStream::~CDebugStream() { timeval tTime; gettimeofday(&tTime, NULL); time_t tSec = (time_t)tTime.tv_sec; // some systems (e.g. openbsd) define tv_sec as long int instead of time_t tm tM; tzset();// localtime_r requires this localtime_r(&tSec, &tM); char sTime[20] = {}; strftime(sTime, sizeof(sTime), "%Y-%m-%d %H:%M:%S", &tM); char sUsec[7] = {}; snprintf(sUsec, sizeof(sUsec), "%06lu", (unsigned long int)tTime.tv_usec); std::cout << "[" << sTime << "." << sUsec << "] " << CString(this->str()).Escape_n(CString::EDEBUG) << std::endl; } znc-1.6.3/src/version.cpp0000644000175000017500000000011312663147145015523 0ustar somebodysomebody#include const char* ZNC_VERSION_EXTRA = VERSION_EXTRA ""; znc-1.6.3/src/MD5.cpp0000644000175000017500000001570112663147131014427 0ustar somebodysomebody/* * RFC 1321 compliant MD5 implementation * * Copyright (C) 2001-2003 Christophe Devine * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include #include CMD5::CMD5() { *m_szMD5 = '\0'; } CMD5::CMD5(const string& sText) { MakeHash(sText.c_str(), sText.length()); } CMD5::CMD5(const char* szText, uint32 nTextLen) { MakeHash(szText, nTextLen); } CMD5::~CMD5() {} #define GET_UINT32(n,b,i) { \ (n) = ((uint32) (b)[(i) ] ) \ | ((uint32) (b)[(i) + 1] << 8) \ | ((uint32) (b)[(i) + 2] << 16) \ | ((uint32) (b)[(i) + 3] << 24); \ } #define PUT_UINT32(n,b,i) { \ (b)[(i) ] = (uint8) ((n) ); \ (b)[(i) + 1] = (uint8) ((n) >> 8); \ (b)[(i) + 2] = (uint8) ((n) >> 16); \ (b)[(i) + 3] = (uint8) ((n) >> 24); \ } void CMD5::md5_starts(md5_context *ctx) const { ctx->total[0] = 0; ctx->total[1] = 0; ctx->state[0] = 0x67452301; ctx->state[1] = 0xEFCDAB89; ctx->state[2] = 0x98BADCFE; ctx->state[3] = 0x10325476; } void CMD5::md5_process(md5_context *ctx, const uint8 data[64]) const { uint32 X[16], A, B, C, D; GET_UINT32(X[0], data, 0); GET_UINT32(X[1], data, 4); GET_UINT32(X[2], data, 8); GET_UINT32(X[3], data, 12); GET_UINT32(X[4], data, 16); GET_UINT32(X[5], data, 20); GET_UINT32(X[6], data, 24); GET_UINT32(X[7], data, 28); GET_UINT32(X[8], data, 32); GET_UINT32(X[9], data, 36); GET_UINT32(X[10], data, 40); GET_UINT32(X[11], data, 44); GET_UINT32(X[12], data, 48); GET_UINT32(X[13], data, 52); GET_UINT32(X[14], data, 56); GET_UINT32(X[15], data, 60); #define S(x,n) ((x << n) | ((x & 0xFFFFFFFF) >> (32 - n))) #define P(a,b,c,d,k,s,t) a += F(b,c,d) + X[k] + t; a = S(a,s) + b; A = ctx->state[0]; B = ctx->state[1]; C = ctx->state[2]; D = ctx->state[3]; #define F(x,y,z) (z ^ (x & (y ^ z))) P(A, B, C, D, 0, 7, 0xD76AA478); P(D, A, B, C, 1, 12, 0xE8C7B756); P(C, D, A, B, 2, 17, 0x242070DB); P(B, C, D, A, 3, 22, 0xC1BDCEEE); P(A, B, C, D, 4, 7, 0xF57C0FAF); P(D, A, B, C, 5, 12, 0x4787C62A); P(C, D, A, B, 6, 17, 0xA8304613); P(B, C, D, A, 7, 22, 0xFD469501); P(A, B, C, D, 8, 7, 0x698098D8); P(D, A, B, C, 9, 12, 0x8B44F7AF); P(C, D, A, B, 10, 17, 0xFFFF5BB1); P(B, C, D, A, 11, 22, 0x895CD7BE); P(A, B, C, D, 12, 7, 0x6B901122); P(D, A, B, C, 13, 12, 0xFD987193); P(C, D, A, B, 14, 17, 0xA679438E); P(B, C, D, A, 15, 22, 0x49B40821); #undef F #define F(x,y,z) (y ^ (z & (x ^ y))) P(A, B, C, D, 1, 5, 0xF61E2562); P(D, A, B, C, 6, 9, 0xC040B340); P(C, D, A, B, 11, 14, 0x265E5A51); P(B, C, D, A, 0, 20, 0xE9B6C7AA); P(A, B, C, D, 5, 5, 0xD62F105D); P(D, A, B, C, 10, 9, 0x02441453); P(C, D, A, B, 15, 14, 0xD8A1E681); P(B, C, D, A, 4, 20, 0xE7D3FBC8); P(A, B, C, D, 9, 5, 0x21E1CDE6); P(D, A, B, C, 14, 9, 0xC33707D6); P(C, D, A, B, 3, 14, 0xF4D50D87); P(B, C, D, A, 8, 20, 0x455A14ED); P(A, B, C, D, 13, 5, 0xA9E3E905); P(D, A, B, C, 2, 9, 0xFCEFA3F8); P(C, D, A, B, 7, 14, 0x676F02D9); P(B, C, D, A, 12, 20, 0x8D2A4C8A); #undef F #define F(x,y,z) (x ^ y ^ z) P(A, B, C, D, 5, 4, 0xFFFA3942); P(D, A, B, C, 8, 11, 0x8771F681); P(C, D, A, B, 11, 16, 0x6D9D6122); P(B, C, D, A, 14, 23, 0xFDE5380C); P(A, B, C, D, 1, 4, 0xA4BEEA44); P(D, A, B, C, 4, 11, 0x4BDECFA9); P(C, D, A, B, 7, 16, 0xF6BB4B60); P(B, C, D, A, 10, 23, 0xBEBFBC70); P(A, B, C, D, 13, 4, 0x289B7EC6); P(D, A, B, C, 0, 11, 0xEAA127FA); P(C, D, A, B, 3, 16, 0xD4EF3085); P(B, C, D, A, 6, 23, 0x04881D05); P(A, B, C, D, 9, 4, 0xD9D4D039); P(D, A, B, C, 12, 11, 0xE6DB99E5); P(C, D, A, B, 15, 16, 0x1FA27CF8); P(B, C, D, A, 2, 23, 0xC4AC5665); #undef F #define F(x,y,z) (y ^ (x | ~z)) P(A, B, C, D, 0, 6, 0xF4292244); P(D, A, B, C, 7, 10, 0x432AFF97); P(C, D, A, B, 14, 15, 0xAB9423A7); P(B, C, D, A, 5, 21, 0xFC93A039); P(A, B, C, D, 12, 6, 0x655B59C3); P(D, A, B, C, 3, 10, 0x8F0CCC92); P(C, D, A, B, 10, 15, 0xFFEFF47D); P(B, C, D, A, 1, 21, 0x85845DD1); P(A, B, C, D, 8, 6, 0x6FA87E4F); P(D, A, B, C, 15, 10, 0xFE2CE6E0); P(C, D, A, B, 6, 15, 0xA3014314); P(B, C, D, A, 13, 21, 0x4E0811A1); P(A, B, C, D, 4, 6, 0xF7537E82); P(D, A, B, C, 11, 10, 0xBD3AF235); P(C, D, A, B, 2, 15, 0x2AD7D2BB); P(B, C, D, A, 9, 21, 0xEB86D391); #undef F ctx->state[0] += A; ctx->state[1] += B; ctx->state[2] += C; ctx->state[3] += D; } void CMD5::md5_update(md5_context *ctx, const uint8 *input, uint32 length) const { uint32 left, fill; if (!length) return; left = ctx->total[0] & 0x3F; fill = 64 - left; ctx->total[0] += length; ctx->total[0] &= 0xFFFFFFFF; if (ctx->total[0] < length) ctx->total[1]++; if (left && length >= fill) { memcpy((void *) (ctx->buffer + left), (void *) input, fill); md5_process(ctx, ctx->buffer); length -= fill; input += fill; left = 0; } while (length >= 64) { md5_process(ctx, input); length -= 64; input += 64; } if (length) { memcpy((void *) (ctx->buffer + left), (void *) input, length); } } static const uint8 md5_padding[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; void CMD5::md5_finish(md5_context *ctx, uint8 digest[16]) const { uint32 last, padn; uint32 high, low; uint8 msglen[8]; high = (ctx->total[0] >> 29) | (ctx->total[1] << 3); low = (ctx->total[0] << 3); PUT_UINT32(low, msglen, 0); PUT_UINT32(high, msglen, 4); last = ctx->total[0] & 0x3F; padn = (last < 56) ? (56 - last) : (120 - last); md5_update(ctx, md5_padding, padn); md5_update(ctx, msglen, 8); PUT_UINT32(ctx->state[0], digest, 0); PUT_UINT32(ctx->state[1], digest, 4); PUT_UINT32(ctx->state[2], digest, 8); PUT_UINT32(ctx->state[3], digest, 12); } char* CMD5::MakeHash(const char* szText, uint32 nTextLen) { md5_context ctx; unsigned char md5sum[16]; md5_starts(&ctx); md5_update(&ctx, (uint8*)szText, nTextLen); md5_finish(&ctx, md5sum); sprintf(m_szMD5, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", md5sum[0], md5sum[1], md5sum[2], md5sum[3], md5sum[4], md5sum[5], md5sum[6], md5sum[7], md5sum[8], md5sum[9], md5sum[10], md5sum[11], md5sum[12], md5sum[13], md5sum[14], md5sum[15]); return m_szMD5; } znc-1.6.3/src/Server.cpp0000644000175000017500000000265212663147131015311 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include CServer::CServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL) { m_sName = sName; m_uPort = (uPort) ? uPort : (unsigned short)6667; m_sPass = sPass; m_bSSL = bSSL; } CServer::~CServer() {} bool CServer::IsValidHostName(const CString& sHostName) { return (!sHostName.empty() && (sHostName.find(' ') == CString::npos)); } const CString& CServer::GetName() const { return m_sName; } unsigned short CServer::GetPort() const { return m_uPort; } const CString& CServer::GetPass() const { return m_sPass; } bool CServer::IsSSL() const { return m_bSSL; } CString CServer::GetString(bool bIncludePassword) const { return m_sName + " " + CString(m_bSSL ? "+" : "") + CString(m_uPort) + CString(bIncludePassword ? (m_sPass.empty() ? "" : " " + m_sPass) : ""); } znc-1.6.3/src/SHA256.cpp0000644000175000017500000001655412663147131014721 0ustar somebodysomebody/* * FIPS 180-2 SHA-224/256/384/512 implementation * Last update: 02/02/2007 * Issue date: 04/30/2005 * * Copyright (C) 2005, 2007 Olivier Gay * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the project nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ #include #include #define SHFR(x, n) (x >> n) #define ROTR(x, n) ((x >> n) | (x << ((sizeof(x) << 3) - n))) #define ROTL(x, n) ((x << n) | (x >> ((sizeof(x) << 3) - n))) #define CH(x, y, z) ((x & y) ^ (~x & z)) #define MAJ(x, y, z) ((x & y) ^ (x & z) ^ (y & z)) #define SHA256_F1(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22)) #define SHA256_F2(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25)) #define SHA256_F3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHFR(x, 3)) #define SHA256_F4(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHFR(x, 10)) #define UNPACK32(x, str) \ { \ *((str) + 3) = (uint8_t) ((x) ); \ *((str) + 2) = (uint8_t) ((x) >> 8); \ *((str) + 1) = (uint8_t) ((x) >> 16); \ *((str) + 0) = (uint8_t) ((x) >> 24); \ } #define PACK32(str, x) \ { \ *(x) = ((uint32_t) *((str) + 3) ) \ | ((uint32_t) *((str) + 2) << 8) \ | ((uint32_t) *((str) + 1) << 16) \ | ((uint32_t) *((str) + 0) << 24); \ } /* Macros used for loops unrolling */ #define SHA256_SCR(i) \ { \ w[i] = SHA256_F4(w[i - 2]) + w[i - 7] \ + SHA256_F3(w[i - 15]) + w[i - 16]; \ } #define SHA256_EXP(a, b, c, d, e, f, g, h, j) \ { \ t1 = wv[h] + SHA256_F2(wv[e]) + CH(wv[e], wv[f], wv[g]) \ + sha256_k[j] + w[j]; \ t2 = SHA256_F1(wv[a]) + MAJ(wv[a], wv[b], wv[c]); \ wv[d] += t1; \ wv[h] = t1 + t2; \ } uint32_t sha256_h0[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; uint32_t sha256_k[64] = {0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2}; /* SHA-256 functions */ static void sha256_transf(sha256_ctx *ctx, const unsigned char *message, size_t block_nb) { uint32_t w[64]; uint32_t wv[8]; uint32_t t1, t2; const unsigned char *sub_block; int i; int j; for (i = 0; i < (int) block_nb; i++) { sub_block = message + (i << 6); for (j = 0; j < 16; j++) { PACK32(&sub_block[j << 2], &w[j]); } for (j = 16; j < 64; j++) { SHA256_SCR(j); } for (j = 0; j < 8; j++) { wv[j] = ctx->h[j]; } for (j = 0; j < 64; j++) { t1 = wv[7] + SHA256_F2(wv[4]) + CH(wv[4], wv[5], wv[6]) + sha256_k[j] + w[j]; t2 = SHA256_F1(wv[0]) + MAJ(wv[0], wv[1], wv[2]); wv[7] = wv[6]; wv[6] = wv[5]; wv[5] = wv[4]; wv[4] = wv[3] + t1; wv[3] = wv[2]; wv[2] = wv[1]; wv[1] = wv[0]; wv[0] = t1 + t2; } for (j = 0; j < 8; j++) { ctx->h[j] += wv[j]; } } } void sha256(const unsigned char *message, size_t len, unsigned char *digest) { sha256_ctx ctx; sha256_init(&ctx); sha256_update(&ctx, message, len); sha256_final(&ctx, digest); } void sha256_init(sha256_ctx *ctx) { int i; for (i = 0; i < 8; i++) { ctx->h[i] = sha256_h0[i]; } ctx->len = 0; ctx->tot_len = 0; } void sha256_update(sha256_ctx *ctx, const unsigned char *message, size_t len) { size_t block_nb; size_t new_len, rem_len, tmp_len; const unsigned char *shifted_message; tmp_len = SHA256_BLOCK_SIZE - ctx->len; rem_len = len < tmp_len ? len : tmp_len; memcpy(&ctx->block[ctx->len], message, rem_len); if (ctx->len + len < SHA256_BLOCK_SIZE) { ctx->len += len; return; } new_len = len - rem_len; block_nb = new_len / SHA256_BLOCK_SIZE; shifted_message = message + rem_len; sha256_transf(ctx, ctx->block, 1); sha256_transf(ctx, shifted_message, block_nb); rem_len = new_len % SHA256_BLOCK_SIZE; memcpy(ctx->block, &shifted_message[block_nb << 6], rem_len); ctx->len = rem_len; ctx->tot_len += (block_nb + 1) << 6; } void sha256_final(sha256_ctx *ctx, unsigned char *digest) { unsigned int block_nb; unsigned int pm_len; size_t len_b; int i; block_nb = (1 + ((SHA256_BLOCK_SIZE - 9) < (ctx->len % SHA256_BLOCK_SIZE))); len_b = (ctx->tot_len + ctx->len) << 3; pm_len = block_nb << 6; memset(ctx->block + ctx->len, 0, pm_len - ctx->len); ctx->block[ctx->len] = 0x80; UNPACK32(len_b, ctx->block + pm_len - 4); sha256_transf(ctx, ctx->block, block_nb); for (i = 0 ; i < 8; i++) { UNPACK32(ctx->h[i], &digest[i << 2]); } } znc-1.6.3/src/Template.cpp0000644000175000017500000005570412663147131015624 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include using std::stringstream; using std::vector; using std::list; using std::ostream; using std::pair; using std::map; void CTemplateOptions::Parse(const CString& sLine) { CString sName = sLine.Token(0, false, "=").Trim_n().AsUpper(); CString sValue = sLine.Token(1, true, "=").Trim_n(); if (sName == "ESC") { m_eEscapeTo = CString::ToEscape(sValue); } else if (sName == "ESCFROM") { m_eEscapeFrom = CString::ToEscape(sValue); } } CTemplate* CTemplateLoopContext::GetRow(unsigned int uIndex) { size_t uSize = m_pvRows->size(); if (uIndex < uSize) { if (m_bReverse) { return (*m_pvRows)[uSize - uIndex -1]; } else { return (*m_pvRows)[uIndex]; } } return NULL; } CString CTemplateLoopContext::GetValue(const CString& sName, bool bFromIf) { CTemplate* pTemplate = GetCurRow(); if (!pTemplate) { DEBUG("Loop [" + GetName() + "] has no row index [" + CString(GetRowIndex()) + "]"); return ""; } if (sName.Equals("__ID__")) { return CString(GetRowIndex() +1); } else if (sName.Equals("__COUNT__")) { return CString(GetRowCount()); } else if (sName.Equals("__ODD__")) { return ((GetRowIndex() %2) ? "" : "1"); } else if (sName.Equals("__EVEN__")) { return ((GetRowIndex() %2) ? "1" : ""); } else if (sName.Equals("__FIRST__")) { return ((GetRowIndex() == 0) ? "1" : ""); } else if (sName.Equals("__LAST__")) { return ((GetRowIndex() == m_pvRows->size() -1) ? "1" : ""); } else if (sName.Equals("__OUTER__")) { return ((GetRowIndex() == 0 || GetRowIndex() == m_pvRows->size() -1) ? "1" : ""); } else if (sName.Equals("__INNER__")) { return ((GetRowIndex() == 0 || GetRowIndex() == m_pvRows->size() -1) ? "" : "1"); } return pTemplate->GetValue(sName, bFromIf); } CTemplate::~CTemplate() { for (map >::iterator it = m_mvLoops.begin(); it != m_mvLoops.end(); ++it) { vector& vLoop = it->second; for (unsigned int a = 0; a < vLoop.size(); a++) { delete vLoop[a]; } } for (unsigned int a = 0; a < m_vLoopContexts.size(); a++) { delete m_vLoopContexts[a]; } } void CTemplate::Init() { /* We have no CConfig in ZNC land * Hmm... Actually, we do have it now. CString sPath(CConfig::GetValue("WebFilesPath")); if (!sPath.empty()) { SetPath(sPath); } */ ClearPaths(); m_pParent = NULL; } CString CTemplate::ExpandFile(const CString& sFilename, bool bFromInc) { /*if (sFilename.Left(1) == "/" || sFilename.Left(2) == "./") { return sFilename; }*/ CString sFile(ResolveLiteral(sFilename).TrimLeft_n("/")); for (list >::iterator it = m_lsbPaths.begin(); it != m_lsbPaths.end(); ++it) { CString& sRoot = it->first; CString sFilePath(CDir::ChangeDir(sRoot, sFile)); // Make sure path ends with a slash because "/foo/pub*" matches "/foo/public_keep_out/" but "/foo/pub/*" doesn't if (!sRoot.empty() && sRoot.Right(1) != "/") { sRoot += "/"; } if (it->second && !bFromInc) { DEBUG("\t\tSkipping path (not from INC) [" + sFilePath + "]"); continue; } if (CFile::Exists(sFilePath)) { if (sRoot.empty() || sFilePath.Left(sRoot.length()) == sRoot) { DEBUG(" Found [" + sFilePath + "]"); return sFilePath; } else { DEBUG("\t\tOutside of root [" + sFilePath + "] !~ [" + sRoot + "]"); } } } switch (m_lsbPaths.size()) { case 0: DEBUG("Unable to find [" + sFile + "] using the current directory"); break; case 1: DEBUG("Unable to find [" + sFile + "] in the defined path [" + m_lsbPaths.begin()->first + "]"); break; default: DEBUG("Unable to find [" + sFile + "] in any of the " + CString(m_lsbPaths.size()) + " defined paths"); } return ""; } void CTemplate::SetPath(const CString& sPaths) { VCString vsDirs; sPaths.Split(":", vsDirs, false); for (size_t a = 0; a < vsDirs.size(); a++) { AppendPath(vsDirs[a], false); } } CString CTemplate::MakePath(const CString& sPath) const { CString sRet(CDir::ChangeDir("./", sPath + "/")); if (!sRet.empty() && sRet.Right(1) != "/") { sRet += "/"; } return sRet; } void CTemplate::PrependPath(const CString& sPath, bool bIncludesOnly) { DEBUG("CTemplate::PrependPath(" + sPath + ") == [" + MakePath(sPath) + "]"); m_lsbPaths.push_front(make_pair(MakePath(sPath), bIncludesOnly)); } void CTemplate::AppendPath(const CString& sPath, bool bIncludesOnly) { DEBUG("CTemplate::AppendPath(" + sPath + ") == [" + MakePath(sPath) + "]"); m_lsbPaths.push_back(make_pair(MakePath(sPath), bIncludesOnly)); } void CTemplate::RemovePath(const CString& sPath) { DEBUG("CTemplate::RemovePath(" + sPath + ") == [" + CDir::ChangeDir("./", sPath + "/") + "]"); for (list >::iterator it = m_lsbPaths.begin(); it != m_lsbPaths.end(); ++it) { if (it->first == sPath) { m_lsbPaths.remove(*it); RemovePath(sPath); // @todo probably shouldn't use recursion, being lazy return; } } } void CTemplate::ClearPaths() { m_lsbPaths.clear(); } bool CTemplate::SetFile(const CString& sFileName) { m_sFileName = ExpandFile(sFileName, false); PrependPath(sFileName + "/.."); if (sFileName.empty()) { DEBUG("CTemplate::SetFile() - Filename is empty"); return false; } if (m_sFileName.empty()) { DEBUG("CTemplate::SetFile() - [" + sFileName + "] does not exist"); return false; } DEBUG("Set template file to [" + m_sFileName + "]"); return true; } class CLoopSorter { CString m_sType; public: CLoopSorter(const CString& sType) : m_sType(sType) {} bool operator()(CTemplate* pTemplate1, CTemplate* pTemplate2) { return (pTemplate1->GetValue(m_sType, false) < pTemplate2->GetValue(m_sType, false)); } }; CTemplate& CTemplate::AddRow(const CString& sName) { CTemplate* pTmpl = new CTemplate(m_spOptions, this); m_mvLoops[sName].push_back(pTmpl); return *pTmpl; } CTemplate* CTemplate::GetRow(const CString& sName, unsigned int uIndex) { vector* pvLoop = GetLoop(sName); if (pvLoop) { if (pvLoop->size() > uIndex) { return (*pvLoop)[uIndex]; } } return NULL; } vector* CTemplate::GetLoop(const CString& sName) { CTemplateLoopContext* pContext = GetCurLoopContext(); if (pContext) { CTemplate* pTemplate = pContext->GetCurRow(); if (pTemplate) { return pTemplate->GetLoop(sName); } } map >::iterator it = m_mvLoops.find(sName); if (it != m_mvLoops.end()) { return &(it->second); } return NULL; } bool CTemplate::PrintString(CString& sRet) { sRet.clear(); stringstream sStream; bool bRet = Print(sStream); sRet = sStream.str(); return bRet; } bool CTemplate::Print(ostream& oOut) { return Print(m_sFileName, oOut); } bool CTemplate::Print(const CString& sFileName, ostream& oOut) { if (sFileName.empty()) { DEBUG("Empty filename in CTemplate::Print()"); return false; } CFile File(sFileName); if (!File.Open()) { DEBUG("Unable to open file [" + sFileName + "] in CTemplate::Print()"); return false; } CString sLine; CString sSetBlockVar; bool bValidLastIf = false; bool bInSetBlock = false; unsigned long uFilePos = 0; unsigned long uCurPos = 0; unsigned int uLineNum = 0; unsigned int uNestedIfs = 0; unsigned int uSkip = 0; bool bLoopCont = false; bool bLoopBreak = false; bool bExit = false; while (File.ReadLine(sLine)) { CString sOutput; bool bFoundATag = false; bool bTmplLoopHasData = false; uLineNum++; CString::size_type iPos = 0; uCurPos = uFilePos; CString::size_type uLineSize = sLine.size(); bool bBroke = false; while (1) { iPos = sLine.find(""); // Make sure our tmpl tag is ended properly if (iPos2 == CString::npos) { DEBUG("Template tag not ended properly in file [" + sFileName + "] [Parse(sArgs); } else if (sAction.Equals("ADDROW")) { CString sLoopName = sArgs.Token(0); MCString msRow; if (sArgs.Token(1, true, " ").OptionSplit(msRow)) { CTemplate& NewRow = AddRow(sLoopName); for (MCString::iterator it = msRow.begin(); it != msRow.end(); ++it) { NewRow[it->first] = it->second; } } } else if (sAction.Equals("SET")) { CString sName = sArgs.Token(0); CString sValue = sArgs.Token(1, true); (*this)[sName] = sValue; } else if (sAction.Equals("JOIN")) { VCString vsArgs; //sArgs.Split(" ", vsArgs, false, "\"", "\""); sArgs.QuoteSplit(vsArgs); if (vsArgs.size() > 1) { CString sDelim = vsArgs[0]; bool bFoundOne = false; CString::EEscape eEscape = CString::EASCII; for (unsigned int a = 1; a < vsArgs.size(); a++) { const CString& sArg = vsArgs[a]; if (sArg.Equals("ESC=", false, 4)) { eEscape = CString::ToEscape(sArg.LeftChomp_n(4)); } else { CString sValue = GetValue(sArg); if (!sValue.empty()) { if (bFoundOne) { sOutput += sDelim; } sOutput += sValue.Escape_n(eEscape); bFoundOne = true; } } } } } else if (sAction.Equals("SETBLOCK")) { sSetBlockVar = sArgs; bInSetBlock = true; } else if (sAction.Equals("EXPAND")) { sOutput += ExpandFile(sArgs, true); } else if (sAction.Equals("VAR")) { sOutput += GetValue(sArgs); } else if (sAction.Equals("LT")) { sOutput += ""; } else if (sAction.Equals("CONTINUE")) { CTemplateLoopContext* pContext = GetCurLoopContext(); if (pContext) { uSkip++; bLoopCont = true; break; } else { DEBUG("[" + sFileName + ":" + CString(uCurPos - iPos2 -4) + "] must be used inside of a loop!"); } } else if (sAction.Equals("BREAK")) { // break from loop CTemplateLoopContext* pContext = GetCurLoopContext(); if (pContext) { uSkip++; bLoopBreak = true; break; } else { DEBUG("[" + sFileName + ":" + CString(uCurPos - iPos2 -4) + "] must be used inside of a loop!"); } } else if (sAction.Equals("EXIT")) { bExit = true; } else if (sAction.Equals("DEBUG")) { DEBUG("CTemplate DEBUG [" + sFileName + "@" + CString(uCurPos - iPos2 -4) + "b] -> [" + sArgs + "]"); } else if (sAction.Equals("LOOP")) { CTemplateLoopContext* pContext = GetCurLoopContext(); if (!pContext || pContext->GetFilePosition() != uCurPos) { // we are at a brand new loop (be it new or a first pass at an inner loop) CString sLoopName = sArgs.Token(0); bool bReverse = (sArgs.Token(1).Equals("REVERSE")); bool bSort = (sArgs.Token(1).Left(4).Equals("SORT")); vector* pvLoop = GetLoop(sLoopName); if (bSort && pvLoop != NULL && pvLoop->size() > 1) { CString sKey; if(sArgs.Token(1).TrimPrefix_n("SORT").Left(4).Equals("ASC=")) { sKey = sArgs.Token(1).TrimPrefix_n("SORTASC="); } else if(sArgs.Token(1).TrimPrefix_n("SORT").Left(5).Equals("DESC=")) { sKey = sArgs.Token(1).TrimPrefix_n("SORTDESC="); bReverse = true; } if (!sKey.empty()) { std::sort(pvLoop->begin(), pvLoop->end(), CLoopSorter(sKey)); } } if (pvLoop) { // If we found data for this loop, add it to our context vector //unsigned long uBeforeLoopTag = uCurPos - iPos2 - 4; unsigned long uAfterLoopTag = uCurPos; for (CString::size_type t = 0; t < sLine.size(); t++) { char c = sLine[t]; if (c == '\r' || c == '\n') { uAfterLoopTag++; } else { break; } } m_vLoopContexts.push_back(new CTemplateLoopContext(uAfterLoopTag, sLoopName, bReverse, pvLoop)); } else { // If we don't have data, just skip this loop and everything inside uSkip++; } } } else if (sAction.Equals("IF")) { if (ValidIf(sArgs)) { uNestedIfs++; bValidLastIf = true; } else { uSkip++; bValidLastIf = false; } } else if (sAction.Equals("REM")) { uSkip++; } else { bNotFound = true; } } else if (sAction.Equals("REM")) { uSkip++; } else if (sAction.Equals("IF")) { uSkip++; } else if (sAction.Equals("LOOP")) { uSkip++; } if (sAction.Equals("ENDIF")) { if (uSkip) { uSkip--; } else { uNestedIfs--; } } else if (sAction.Equals("ENDREM")) { if (uSkip) { uSkip--; } } else if (sAction.Equals("ENDSETBLOCK")) { bInSetBlock = false; sSetBlockVar = ""; } else if (sAction.Equals("ENDLOOP")) { if (bLoopCont && uSkip == 1) { uSkip--; bLoopCont = false; } if (bLoopBreak && uSkip == 1) { uSkip--; } if (uSkip) { uSkip--; } else { // We are at the end of the loop so we need to inc the index CTemplateLoopContext* pContext = GetCurLoopContext(); if (pContext) { pContext->IncRowIndex(); // If we didn't go out of bounds we need to seek back to the top of our loop if (!bLoopBreak && pContext->GetCurRow()) { uCurPos = pContext->GetFilePosition(); uFilePos = uCurPos; uLineSize = 0; File.Seek(uCurPos); bBroke = true; if (!sOutput.Trim_n().empty()) { pContext->SetHasData(); } break; } else { if (sOutput.Trim_n().empty()) { sOutput.clear(); } bTmplLoopHasData = pContext->HasData(); DelCurLoopContext(); bLoopBreak = false; } } } } else if (sAction.Equals("ELSE")) { if (!bValidLastIf && uSkip == 1) { CString sArg = sArgs.Token(0); if (sArg.empty() || (sArg.Equals("IF") && ValidIf(sArgs.Token(1, true)))) { uSkip = 0; bValidLastIf = true; } } else if (!uSkip) { uSkip = 1; } } else if (bNotFound) { // Unknown tag that isn't being skipped... vector >& vspTagHandlers = GetTagHandlers(); if (!vspTagHandlers.empty()) { // @todo this should go up to the top to grab handlers CTemplate* pTmpl = GetCurTemplate(); CString sCustomOutput; for (unsigned int j = 0; j < vspTagHandlers.size(); j++) { std::shared_ptr spTagHandler = vspTagHandlers[j]; if (spTagHandler->HandleTag(*pTmpl, sAction, sArgs, sCustomOutput)) { sOutput += sCustomOutput; bNotFound = false; break; } } if (bNotFound) { DEBUG("Unknown/Unhandled tag [" + sAction + "]"); } } } continue; } DEBUG("Malformed tag on line " + CString(uLineNum) + " of [" << File.GetLongName() + "]"); DEBUG("--------------- [" + sLine + "]"); } if (!bBroke) { uFilePos += uLineSize; if (!uSkip) { sOutput += sLine; } } if (!bFoundATag || bTmplLoopHasData || sOutput.find_first_not_of(" \t\r\n") != CString::npos) { if (bInSetBlock) { CString sName = sSetBlockVar.Token(0); //CString sValue = sSetBlockVar.Token(1, true); (*this)[sName] += sOutput; } else { oOut << sOutput; } } if (bExit) { break; } } oOut.flush(); return true; } void CTemplate::DelCurLoopContext() { if (m_vLoopContexts.empty()) { return; } delete m_vLoopContexts.back(); m_vLoopContexts.pop_back(); } CTemplateLoopContext* CTemplate::GetCurLoopContext() { if (!m_vLoopContexts.empty()) { return m_vLoopContexts.back(); } return NULL; } bool CTemplate::ValidIf(const CString& sArgs) { CString sArgStr = sArgs; //sArgStr.Replace(" ", "", "\"", "\"", true); sArgStr.Replace(" &&", "&&", "\"", "\"", false); sArgStr.Replace("&& ", "&&", "\"", "\"", false); sArgStr.Replace(" ||", "||", "\"", "\"", false); sArgStr.Replace("|| ", "||", "\"", "\"", false); CString::size_type uOrPos = sArgStr.find("||"); CString::size_type uAndPos = sArgStr.find("&&"); while (uOrPos != CString::npos || uAndPos != CString::npos || !sArgStr.empty()) { bool bAnd = false; if (uAndPos < uOrPos) { bAnd = true; } CString sExpr = sArgStr.Token(0, false, ((bAnd) ? "&&" : "||")); sArgStr = sArgStr.Token(1, true, ((bAnd) ? "&&" : "||")); if (ValidExpr(sExpr)) { if (!bAnd) { return true; } } else { if (bAnd) { return false; } } uOrPos = sArgStr.find("||"); uAndPos = sArgStr.find("&&"); } return false; } bool CTemplate::ValidExpr(const CString& sExpression) { bool bNegate = false; CString sExpr(sExpression); CString sName; CString sValue; if (sExpr.Left(1) == "!") { bNegate = true; sExpr.LeftChomp(); } if (sExpr.find("!=") != CString::npos) { sName = sExpr.Token(0, false, "!=").Trim_n(); sValue = sExpr.Token(1, true, "!=", false, "\"", "\"", true).Trim_n(); bNegate = !bNegate; } else if (sExpr.find("==") != CString::npos) { sName = sExpr.Token(0, false, "==").Trim_n(); sValue = sExpr.Token(1, true, "==", false, "\"", "\"", true).Trim_n(); } else if (sExpr.find(">=") != CString::npos) { sName = sExpr.Token(0, false, ">=").Trim_n(); sValue = sExpr.Token(1, true, ">=", false, "\"", "\"", true).Trim_n(); return (GetValue(sName, true).ToLong() >= sValue.ToLong()); } else if (sExpr.find("<=") != CString::npos) { sName = sExpr.Token(0, false, "<=").Trim_n(); sValue = sExpr.Token(1, true, "<=", false, "\"", "\"", true).Trim_n(); return (GetValue(sName, true).ToLong() <= sValue.ToLong()); } else if (sExpr.find(">") != CString::npos) { sName = sExpr.Token(0, false, ">").Trim_n(); sValue = sExpr.Token(1, true, ">", false, "\"", "\"", true).Trim_n(); return (GetValue(sName, true).ToLong() > sValue.ToLong()); } else if (sExpr.find("<") != CString::npos) { sName = sExpr.Token(0, false, "<").Trim_n(); sValue = sExpr.Token(1, true, "<", false, "\"", "\"", true).Trim_n(); return (GetValue(sName, true).ToLong() < sValue.ToLong()); } else { sName = sExpr.Trim_n(); } if (sValue.empty()) { return (bNegate != IsTrue(sName)); } sValue = ResolveLiteral(sValue); return (bNegate != GetValue(sName, true).Equals(sValue)); } bool CTemplate::IsTrue(const CString& sName) { if (HasLoop(sName)) { return true; } return GetValue(sName, true).ToBool(); } bool CTemplate::HasLoop(const CString& sName) { return (GetLoop(sName) != NULL); } CTemplate* CTemplate::GetParent(bool bRoot) { if (!bRoot) { return m_pParent; } return (m_pParent) ? m_pParent->GetParent(bRoot) : this; } CTemplate* CTemplate::GetCurTemplate() { CTemplateLoopContext* pContext = GetCurLoopContext(); if (!pContext) { return this; } return pContext->GetCurRow(); } CString CTemplate::ResolveLiteral(const CString& sString) { if (sString.Left(2) == "**") { // Allow string to start with a literal * by using two in a row return sString.substr(1); } else if (sString.Left(1) == "*") { // If it starts with only one * then treat it as a var and do a lookup return GetValue(sString.substr(1)); } return sString; } CString CTemplate::GetValue(const CString& sArgs, bool bFromIf) { CTemplateLoopContext* pContext = GetCurLoopContext(); CString sName = sArgs.Token(0); CString sRest = sArgs.Token(1, true); CString sRet; while (sRest.Replace(" =", "=", "\"", "\"")) {} while (sRest.Replace("= ", "=", "\"", "\"")) {} VCString vArgs; MCString msArgs; //sRest.Split(" ", vArgs, false, "\"", "\""); sRest.QuoteSplit(vArgs); for (unsigned int a = 0; a < vArgs.size(); a++) { const CString& sArg = vArgs[a]; msArgs[sArg.Token(0, false, "=").AsUpper()] = sArg.Token(1, true, "="); } /* We have no CConfig in ZNC land * Hmm... Actually, we do have it now. if (msArgs.find("CONFIG") != msArgs.end()) { sRet = CConfig::GetValue(sName); } else*/ if (msArgs.find("ROWS") != msArgs.end()) { vector* pLoop = GetLoop(sName); sRet = CString((pLoop) ? pLoop->size() : 0); } else if (msArgs.find("TOP") == msArgs.end() && pContext) { sRet = pContext->GetValue(sArgs, bFromIf); if (!sRet.empty()) { return sRet; } } else { if (sName.Left(1) == "*") { sName.LeftChomp(1); MCString::iterator it = find(sName); sName = (it != end()) ? it->second : ""; } MCString::iterator it = find(sName); sRet = (it != end()) ? it->second : ""; } vector >& vspTagHandlers = GetTagHandlers(); if (!vspTagHandlers.empty()) { // @todo this should go up to the top to grab handlers CTemplate* pTmpl = GetCurTemplate(); if (sRet.empty()) { for (unsigned int j = 0; j < vspTagHandlers.size(); j++) { std::shared_ptr spTagHandler = vspTagHandlers[j]; CString sCustomOutput; if (!bFromIf && spTagHandler->HandleVar(*pTmpl, sArgs.Token(0), sArgs.Token(1, true), sCustomOutput)) { sRet = sCustomOutput; break; } else if (bFromIf && spTagHandler->HandleIf(*pTmpl, sArgs.Token(0), sArgs.Token(1, true), sCustomOutput)) { sRet = sCustomOutput; break; } } } for (unsigned int j = 0; j < vspTagHandlers.size(); j++) { std::shared_ptr spTagHandler = vspTagHandlers[j]; if (spTagHandler->HandleValue(*pTmpl, sRet, msArgs)) { break; } } } if (!bFromIf) { if (sRet.empty()) { sRet = ResolveLiteral(msArgs["DEFAULT"]); } MCString::iterator it = msArgs.find("ESC"); if (it != msArgs.end()) { VCString vsEscs; it->second.Split(",", vsEscs, false); for (unsigned int a = 0; a < vsEscs.size(); a++) { sRet.Escape(CString::ToEscape(vsEscs[a])); } } else { sRet.Escape(m_spOptions->GetEscapeFrom(), m_spOptions->GetEscapeTo()); } } return sRet; } znc-1.6.3/src/SSLVerifyHost.cpp0000644000175000017500000003274212663147131016532 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #ifdef HAVE_LIBSSL #include namespace ZNC_Curl { /////////////////////////////////////////////////////////////////////////// // // This block is from https://github.com/bagder/curl/blob/master/lib/ // Copyright: Daniel Stenberg, , license: MIT // /*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms * are also available at http://curl.haxx.se/docs/copyright.html. * * You may opt to use, copy, modify, merge, publish, distribute and/or sell * copies of the Software, and permit persons to whom the Software is * furnished to do so, under the terms of the COPYING file. * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY * KIND, either express or implied. * ***************************************************************************/ /* Portable, consistent toupper (remember EBCDIC). Do not use toupper() because its behavior is altered by the current locale. */ inline char Curl_raw_toupper(char in) { switch (in) { case 'a': return 'A'; case 'b': return 'B'; case 'c': return 'C'; case 'd': return 'D'; case 'e': return 'E'; case 'f': return 'F'; case 'g': return 'G'; case 'h': return 'H'; case 'i': return 'I'; case 'j': return 'J'; case 'k': return 'K'; case 'l': return 'L'; case 'm': return 'M'; case 'n': return 'N'; case 'o': return 'O'; case 'p': return 'P'; case 'q': return 'Q'; case 'r': return 'R'; case 's': return 'S'; case 't': return 'T'; case 'u': return 'U'; case 'v': return 'V'; case 'w': return 'W'; case 'x': return 'X'; case 'y': return 'Y'; case 'z': return 'Z'; } return in; } /* * Curl_raw_equal() is for doing "raw" case insensitive strings. This is meant * to be locale independent and only compare strings we know are safe for * this. See http://daniel.haxx.se/blog/2008/10/15/strcasecmp-in-turkish/ for * some further explanation to why this function is necessary. * * The function is capable of comparing a-z case insensitively even for * non-ascii. */ static int Curl_raw_equal(const char *first, const char *second) { while(*first && *second) { if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) /* get out of the loop as soon as they don't match */ break; first++; second++; } /* we do the comparison here (possibly again), just to make sure that if the loop above is skipped because one of the strings reached zero, we must not return this as a successful match */ return (Curl_raw_toupper(*first) == Curl_raw_toupper(*second)); } static int Curl_raw_nequal(const char *first, const char *second, size_t max) { while(*first && *second && max) { if(Curl_raw_toupper(*first) != Curl_raw_toupper(*second)) { break; } max--; first++; second++; } if(0 == max) return 1; /* they are equal this far */ return Curl_raw_toupper(*first) == Curl_raw_toupper(*second); } static const int CURL_HOST_NOMATCH = 0; static const int CURL_HOST_MATCH = 1; /* * Match a hostname against a wildcard pattern. * E.g. * "foo.host.com" matches "*.host.com". * * We use the matching rule described in RFC6125, section 6.4.3. * http://tools.ietf.org/html/rfc6125#section-6.4.3 * * In addition: ignore trailing dots in the host names and wildcards, so that * the names are used normalized. This is what the browsers do. * * Do not allow wildcard matching on IP numbers. There are apparently * certificates being used with an IP address in the CN field, thus making no * apparent distinction between a name and an IP. We need to detect the use of * an IP address and not wildcard match on such names. * * NOTE: hostmatch() gets called with copied buffers so that it can modify the * contents at will. */ static int hostmatch(char *hostname, char *pattern) { const char *pattern_label_end, *pattern_wildcard, *hostname_label_end; int wildcard_enabled; size_t prefixlen, suffixlen; struct in_addr ignored; #ifdef ENABLE_IPV6 struct sockaddr_in6 si6; #endif /* normalize pattern and hostname by stripping off trailing dots */ size_t len = strlen(hostname); if(hostname[len-1]=='.') hostname[len-1]=0; len = strlen(pattern); if(pattern[len-1]=='.') pattern[len-1]=0; pattern_wildcard = strchr(pattern, '*'); if(pattern_wildcard == NULL) return Curl_raw_equal(pattern, hostname) ? CURL_HOST_MATCH : CURL_HOST_NOMATCH; /* detect IP address as hostname and fail the match if so */ if(inet_pton(AF_INET, hostname, &ignored) > 0) return CURL_HOST_NOMATCH; #ifdef ENABLE_IPV6 else if(Curl_inet_pton(AF_INET6, hostname, &si6.sin6_addr) > 0) return CURL_HOST_NOMATCH; #endif /* We require at least 2 dots in pattern to avoid too wide wildcard match. */ wildcard_enabled = 1; pattern_label_end = strchr(pattern, '.'); if(pattern_label_end == NULL || strchr(pattern_label_end+1, '.') == NULL || pattern_wildcard > pattern_label_end || Curl_raw_nequal(pattern, "xn--", 4)) { wildcard_enabled = 0; } if(!wildcard_enabled) return Curl_raw_equal(pattern, hostname) ? CURL_HOST_MATCH : CURL_HOST_NOMATCH; hostname_label_end = strchr(hostname, '.'); if(hostname_label_end == NULL || !Curl_raw_equal(pattern_label_end, hostname_label_end)) return CURL_HOST_NOMATCH; /* The wildcard must match at least one character, so the left-most label of the hostname is at least as large as the left-most label of the pattern. */ if(hostname_label_end - hostname < pattern_label_end - pattern) return CURL_HOST_NOMATCH; prefixlen = pattern_wildcard - pattern; suffixlen = pattern_label_end - (pattern_wildcard+1); return Curl_raw_nequal(pattern, hostname, prefixlen) && Curl_raw_nequal(pattern_wildcard+1, hostname_label_end - suffixlen, suffixlen) ? CURL_HOST_MATCH : CURL_HOST_NOMATCH; } static int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) { char *matchp; char *hostp; int res = 0; if(!match_pattern || !*match_pattern || !hostname || !*hostname) /* sanity check */ ; else { matchp = strdup(match_pattern); if(matchp) { hostp = strdup(hostname); if(hostp) { if(hostmatch(hostp, matchp) == CURL_HOST_MATCH) res= 1; free(hostp); } free(matchp); } } return res; } // // End of https://github.com/bagder/curl/blob/master/lib/ // /////////////////////////////////////////////////////////////////////////// } // namespace ZNC_Curl namespace ZNC_iSECPartners { /////////////////////////////////////////////////////////////////////////// // // This block is from https://github.com/iSECPartners/ssl-conservatory/ // Copyright: Alban Diquet, license: MIT // /* * Helper functions to perform basic hostname validation using OpenSSL. * * Please read "everything-you-wanted-to-know-about-openssl.pdf" before * attempting to use this code. This whitepaper describes how the code works, * how it should be used, and what its limitations are. * * Author: Alban Diquet * License: See LICENSE * */ typedef enum { MatchFound, MatchNotFound, NoSANPresent, MalformedCertificate, Error } HostnameValidationResult; #define HOSTNAME_MAX_SIZE 255 /** * Tries to find a match for hostname in the certificate's Common Name field. * * Returns MatchFound if a match was found. * Returns MatchNotFound if no matches were found. * Returns MalformedCertificate if the Common Name had a NUL character embedded in it. * Returns Error if the Common Name could not be extracted. */ static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) { int common_name_loc = -1; X509_NAME_ENTRY *common_name_entry = NULL; ASN1_STRING *common_name_asn1 = NULL; char *common_name_str = NULL; // Find the position of the CN field in the Subject field of the certificate common_name_loc = X509_NAME_get_index_by_NID(X509_get_subject_name((X509 *) server_cert), NID_commonName, -1); if (common_name_loc < 0) { return Error; } // Extract the CN field common_name_entry = X509_NAME_get_entry(X509_get_subject_name((X509 *) server_cert), common_name_loc); if (common_name_entry == NULL) { return Error; } // Convert the CN field to a C string common_name_asn1 = X509_NAME_ENTRY_get_data(common_name_entry); if (common_name_asn1 == NULL) { return Error; } common_name_str = (char *) ASN1_STRING_data(common_name_asn1); // Make sure there isn't an embedded NUL character in the CN if (ASN1_STRING_length(common_name_asn1) != static_cast(strlen(common_name_str))) { return MalformedCertificate; } DEBUG("SSLVerifyHost: Found CN " << common_name_str); // Compare expected hostname with the CN if (ZNC_Curl::Curl_cert_hostcheck(common_name_str, hostname)) { return MatchFound; } else { return MatchNotFound; } } /** * Tries to find a match for hostname in the certificate's Subject Alternative Name extension. * * Returns MatchFound if a match was found. * Returns MatchNotFound if no matches were found. * Returns MalformedCertificate if any of the hostnames had a NUL character embedded in it. * Returns NoSANPresent if the SAN extension was not present in the certificate. */ static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *server_cert) { HostnameValidationResult result = MatchNotFound; int i; int san_names_nb = -1; STACK_OF(GENERAL_NAME) *san_names = NULL; // Try to extract the names within the SAN extension from the certificate san_names = reinterpret_cast(X509_get_ext_d2i((X509 *) server_cert, NID_subject_alt_name, NULL, NULL)); if (san_names == NULL) { return NoSANPresent; } san_names_nb = sk_GENERAL_NAME_num(san_names); // Check each name within the extension for (i=0; itype == GEN_DNS) { // Current name is a DNS name, let's check it char *dns_name = (char *) ASN1_STRING_data(current_name->d.dNSName); // Make sure there isn't an embedded NUL character in the DNS name if (ASN1_STRING_length(current_name->d.dNSName) != static_cast(strlen(dns_name))) { result = MalformedCertificate; break; } else { // Compare expected hostname with the DNS name DEBUG("SSLVerifyHost: Found SAN " << dns_name); if (ZNC_Curl::Curl_cert_hostcheck(dns_name, hostname)) { result = MatchFound; break; } } } } sk_GENERAL_NAME_pop_free(san_names, GENERAL_NAME_free); return result; } /** * Validates the server's identity by looking for the expected hostname in the * server's certificate. As described in RFC 6125, it first tries to find a match * in the Subject Alternative Name extension. If the extension is not present in * the certificate, it checks the Common Name instead. * * Returns MatchFound if a match was found. * Returns MatchNotFound if no matches were found. * Returns MalformedCertificate if any of the hostnames had a NUL character embedded in it. * Returns Error if there was an error. */ static HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert) { HostnameValidationResult result; if((hostname == NULL) || (server_cert == NULL)) return Error; // First try the Subject Alternative Names extension result = matches_subject_alternative_name(hostname, server_cert); if (result == NoSANPresent) { // Extension was not found: try the Common Name result = matches_common_name(hostname, server_cert); } return result; } // // End of https://github.com/iSECPartners/ssl-conservatory/ // /////////////////////////////////////////////////////////////////////////// } // namespace ZNC_iSECPartners bool ZNC_SSLVerifyHost(const CString& sHost, const X509* pCert, CString& sError) { DEBUG("SSLVerifyHost: checking " << sHost); ZNC_iSECPartners::HostnameValidationResult eResult = ZNC_iSECPartners::validate_hostname(sHost.c_str(), pCert); switch (eResult) { case ZNC_iSECPartners::MatchFound: DEBUG("SSLVerifyHost: verified"); return true; case ZNC_iSECPartners::MatchNotFound: DEBUG("SSLVerifyHost: host doesn't match"); sError = "hostname doesn't match"; return false; case ZNC_iSECPartners::MalformedCertificate: DEBUG("SSLVerifyHost: malformed cert"); sError = "malformed hostname in certificate"; return false; default: DEBUG("SSLVerifyHost: error"); sError = "hostname verification error"; return false; } } #endif /* HAVE_LIBSSL */ znc-1.6.3/src/Config.cpp0000644000175000017500000001245412663147131015251 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include struct ConfigStackEntry { CString sTag; CString sName; CConfig Config; ConfigStackEntry(const CString& Tag, const CString Name) { sTag = Tag; sName = Name; } }; CConfigEntry::CConfigEntry() : m_pSubConfig(NULL) { } CConfigEntry::CConfigEntry(const CConfig& Config) : m_pSubConfig(new CConfig(Config)) { } CConfigEntry::CConfigEntry(const CConfigEntry& other) : m_pSubConfig(NULL) { if (other.m_pSubConfig) m_pSubConfig = new CConfig(*other.m_pSubConfig); } CConfigEntry::~CConfigEntry() { delete m_pSubConfig; } CConfigEntry& CConfigEntry::operator=(const CConfigEntry& other) { delete m_pSubConfig; if (other.m_pSubConfig) m_pSubConfig = new CConfig(*other.m_pSubConfig); else m_pSubConfig = NULL; return *this; } bool CConfig::Parse(CFile& file, CString& sErrorMsg) { CString sLine; unsigned int uLineNum = 0; CConfig *pActiveConfig = this; std::stack ConfigStack; bool bCommented = false; // support for /**/ style comments if (!file.Seek(0)) { sErrorMsg = "Could not seek to the beginning of the config."; return false; } while (file.ReadLine(sLine)) { uLineNum++; #define ERROR(arg) do { \ std::stringstream stream; \ stream << "Error on line " << uLineNum << ": " << arg; \ sErrorMsg = stream.str(); \ m_SubConfigs.clear(); \ m_ConfigEntries.clear(); \ return false; \ } while (0) // Remove all leading spaces and trailing line endings sLine.TrimLeft(); sLine.TrimRight("\r\n"); if (bCommented || sLine.Left(2) == "/*") { /* Does this comment end on the same line again? */ bCommented = (sLine.Right(2) != "*/"); continue; } if ((sLine.empty()) || (sLine[0] == '#') || (sLine.Left(2) == "//")) { continue; } if ((sLine.Left(1) == "<") && (sLine.Right(1) == ">")) { sLine.LeftChomp(); sLine.RightChomp(); sLine.Trim(); CString sTag = sLine.Token(0); CString sValue = sLine.Token(1, true); sTag.Trim(); sValue.Trim(); if (sTag.Left(1) == "/") { sTag = sTag.substr(1); if (!sValue.empty()) ERROR("Malformated closing tag. Expected \"\"."); if (ConfigStack.empty()) ERROR("Closing tag \"" << sTag << "\" which is not open."); const struct ConfigStackEntry& entry = ConfigStack.top(); CConfig myConfig(entry.Config); CString sName(entry.sName); if (!sTag.Equals(entry.sTag)) ERROR("Closing tag \"" << sTag << "\" which is not open."); // This breaks entry ConfigStack.pop(); if (ConfigStack.empty()) pActiveConfig = this; else pActiveConfig = &ConfigStack.top().Config; SubConfig &conf = pActiveConfig->m_SubConfigs[sTag.AsLower()]; SubConfig::const_iterator it = conf.find(sName); if (it != conf.end()) ERROR("Duplicate entry for tag \"" << sTag << "\" name \"" << sName << "\"."); conf[sName] = CConfigEntry(myConfig); } else { if (sValue.empty()) ERROR("Empty block name at begin of block."); ConfigStack.push(ConfigStackEntry(sTag.AsLower(), sValue)); pActiveConfig = &ConfigStack.top().Config; } continue; } // If we have a regular line, figure out where it goes CString sName = sLine.Token(0, false, "="); CString sValue = sLine.Token(1, true, "="); // Only remove the first space, people might want // leading spaces (e.g. in the MOTD). if (sValue.Left(1) == " ") sValue.LeftChomp(); // We don't have any names with spaces, trim all // leading/trailing spaces. sName.Trim(); if (sName.empty() || sValue.empty()) ERROR("Malformed line"); CString sNameLower = sName.AsLower(); pActiveConfig->m_ConfigEntries[sNameLower].push_back(sValue); } if (bCommented) ERROR("Comment not closed at end of file."); if (!ConfigStack.empty()) { const CString& sTag = ConfigStack.top().sTag; ERROR("Not all tags are closed at the end of the file. Inner-most open tag is \"" << sTag << "\"."); } return true; } void CConfig::Write(CFile& File, unsigned int iIndentation) { CString sIndentation = CString(iIndentation, '\t'); for (EntryMapIterator it = m_ConfigEntries.begin(); it != m_ConfigEntries.end(); ++it) { for (VCString::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) { File.Write(sIndentation + it->first + " = " + *it2 + "\n"); } } for (SubConfigMapIterator it = m_SubConfigs.begin(); it != m_SubConfigs.end(); ++it) { for (SubConfig::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) { File.Write("\n"); File.Write(sIndentation + "<" + it->first + " " + it2->first + ">\n"); it2->second.m_pSubConfig->Write(File, iIndentation + 1); File.Write(sIndentation + "first + ">\n"); } } } znc-1.6.3/src/IRCNetwork.cpp0000644000175000017500000010422212663147131016026 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include #include #include using std::vector; using std::set; class CIRCNetworkPingTimer : public CCron { public: CIRCNetworkPingTimer(CIRCNetwork *pNetwork) : CCron() { m_pNetwork = pNetwork; SetName("CIRCNetworkPingTimer::" + m_pNetwork->GetUser()->GetUserName() + "::" + m_pNetwork->GetName()); Start(CIRCNetwork::PING_SLACK); } virtual ~CIRCNetworkPingTimer() {} protected: virtual void RunJob() { CIRCSock* pIRCSock = m_pNetwork->GetIRCSock(); if (pIRCSock && pIRCSock->GetTimeSinceLastDataTransaction() >= CIRCNetwork::PING_FREQUENCY) { pIRCSock->PutIRC("PING :ZNC"); } const vector& vClients = m_pNetwork->GetClients(); for (size_t b = 0; b < vClients.size(); b++) { CClient* pClient = vClients[b]; if (pClient->GetTimeSinceLastDataTransaction() >= CIRCNetwork::PING_FREQUENCY) { pClient->PutClient("PING :ZNC"); } } } private: CIRCNetwork* m_pNetwork; }; class CIRCNetworkJoinTimer : public CCron { public: CIRCNetworkJoinTimer(CIRCNetwork *pNetwork) : CCron(), m_bDelayed(false), m_pNetwork(pNetwork) { SetName("CIRCNetworkJoinTimer::" + m_pNetwork->GetUser()->GetUserName() + "::" + m_pNetwork->GetName()); Start(CIRCNetwork::JOIN_FREQUENCY); } virtual ~CIRCNetworkJoinTimer() {} void Delay(unsigned short int uDelay) { m_bDelayed = true; Start(uDelay); } protected: virtual void RunJob() { if (m_bDelayed) { m_bDelayed = false; Start(CIRCNetwork::JOIN_FREQUENCY); } if (m_pNetwork->IsIRCConnected()) { m_pNetwork->JoinChans(); } } private: bool m_bDelayed; CIRCNetwork* m_pNetwork; }; bool CIRCNetwork::IsValidNetwork(const CString& sNetwork) { // ^[-\w]+$ if (sNetwork.empty()) { return false; } const char *p = sNetwork.c_str(); while (*p) { if (*p != '_' && *p != '-' && !isalnum(*p)) { return false; } p++; } return true; } CIRCNetwork::CIRCNetwork(CUser *pUser, const CString& sName) { m_pUser = NULL; SetUser(pUser); m_sName = sName; m_pModules = new CModules; m_pIRCSock = NULL; m_uServerIdx = 0; m_sChanPrefixes = ""; m_bIRCAway = false; m_sEncoding = ""; m_fFloodRate = 1; m_uFloodBurst = 4; m_uJoinDelay = 0; m_RawBuffer.SetLineCount(100, true); // This should be more than enough raws, especially since we are buffering the MOTD separately m_MotdBuffer.SetLineCount(200, true); // This should be more than enough motd lines m_NoticeBuffer.SetLineCount(250, true); m_pPingTimer = new CIRCNetworkPingTimer(this); CZNC::Get().GetManager().AddCron(m_pPingTimer); m_pJoinTimer = new CIRCNetworkJoinTimer(this); CZNC::Get().GetManager().AddCron(m_pJoinTimer); SetIRCConnectEnabled(true); } CIRCNetwork::CIRCNetwork(CUser *pUser, const CIRCNetwork &Network) { m_pUser = NULL; SetUser(pUser); m_pModules = new CModules; m_pIRCSock = NULL; m_uServerIdx = 0; m_sChanPrefixes = ""; m_bIRCAway = false; m_sEncoding = ""; m_RawBuffer.SetLineCount(100, true); // This should be more than enough raws, especially since we are buffering the MOTD separately m_MotdBuffer.SetLineCount(200, true); // This should be more than enough motd lines m_NoticeBuffer.SetLineCount(250, true); Clone(Network); } void CIRCNetwork::Clone(const CIRCNetwork& Network, bool bCloneName) { if (bCloneName) { m_sName = Network.GetName(); } m_fFloodRate = Network.GetFloodRate(); m_uFloodBurst = Network.GetFloodBurst(); m_uJoinDelay = Network.GetJoinDelay(); SetNick(Network.GetNick()); SetAltNick(Network.GetAltNick()); SetIdent(Network.GetIdent()); SetRealName(Network.GetRealName()); SetBindHost(Network.GetBindHost()); SetEncoding(Network.GetEncoding()); SetQuitMsg(Network.GetQuitMsg()); m_ssTrustedFingerprints = Network.m_ssTrustedFingerprints; // Servers const vector& vServers = Network.GetServers(); CString sServer; CServer* pCurServ = GetCurrentServer(); if (pCurServ) { sServer = pCurServ->GetName(); } DelServers(); size_t a; for (a = 0; a < vServers.size(); a++) { CServer* pServer = vServers[a]; AddServer(pServer->GetName(), pServer->GetPort(), pServer->GetPass(), pServer->IsSSL()); } m_uServerIdx = 0; for (a = 0; a < m_vServers.size(); a++) { if (sServer.Equals(m_vServers[a]->GetName())) { m_uServerIdx = a + 1; break; } } if (m_uServerIdx == 0) { m_uServerIdx = m_vServers.size(); CIRCSock* pSock = GetIRCSock(); if (pSock) { PutStatus("Jumping servers because this server is no longer in the list"); pSock->Quit(); } } // !Servers // Chans const vector& vChans = Network.GetChans(); for (a = 0; a < vChans.size(); a++) { CChan* pNewChan = vChans[a]; CChan* pChan = FindChan(pNewChan->GetName()); if (pChan) { pChan->SetInConfig(pNewChan->InConfig()); } else { AddChan(pNewChan->GetName(), pNewChan->InConfig()); } } for (a = 0; a < m_vChans.size(); a++) { CChan* pChan = m_vChans[a]; CChan* pNewChan = Network.FindChan(pChan->GetName()); if (!pNewChan) { pChan->SetInConfig(false); } else { pChan->Clone(*pNewChan); } } // !Chans // Modules set ssUnloadMods; CModules& vCurMods = GetModules(); const CModules& vNewMods = Network.GetModules(); for (a = 0; a < vNewMods.size(); a++) { CString sModRet; CModule* pNewMod = vNewMods[a]; CModule* pCurMod = vCurMods.FindModule(pNewMod->GetModName()); if (!pCurMod) { vCurMods.LoadModule(pNewMod->GetModName(), pNewMod->GetArgs(), CModInfo::NetworkModule, m_pUser, this, sModRet); } else if (pNewMod->GetArgs() != pCurMod->GetArgs()) { vCurMods.ReloadModule(pNewMod->GetModName(), pNewMod->GetArgs(), m_pUser, this, sModRet); } } for (a = 0; a < vCurMods.size(); a++) { CModule* pCurMod = vCurMods[a]; CModule* pNewMod = vNewMods.FindModule(pCurMod->GetModName()); if (!pNewMod) { ssUnloadMods.insert(pCurMod->GetModName()); } } for (set::iterator it = ssUnloadMods.begin(); it != ssUnloadMods.end(); ++it) { vCurMods.UnloadModule(*it); } // !Modules SetIRCConnectEnabled(Network.GetIRCConnectEnabled()); } CIRCNetwork::~CIRCNetwork() { if (m_pIRCSock) { CZNC::Get().GetManager().DelSockByAddr(m_pIRCSock); m_pIRCSock = NULL; } // Delete clients while (!m_vClients.empty()) { CZNC::Get().GetManager().DelSockByAddr(m_vClients[0]); } m_vClients.clear(); // Delete servers DelServers(); // Delete modules (this unloads all modules) delete m_pModules; m_pModules = NULL; // Delete Channels for (vector::const_iterator it = m_vChans.begin(); it != m_vChans.end(); ++it) { delete *it; } m_vChans.clear(); // Delete Queries for (vector::const_iterator it = m_vQueries.begin(); it != m_vQueries.end(); ++it) { delete *it; } m_vQueries.clear(); SetUser(NULL); // Make sure we are not in the connection queue CZNC::Get().GetConnectionQueue().remove(this); CZNC::Get().GetManager().DelCronByAddr(m_pPingTimer); CZNC::Get().GetManager().DelCronByAddr(m_pJoinTimer); } void CIRCNetwork::DelServers() { for (vector::const_iterator it = m_vServers.begin(); it != m_vServers.end(); ++it) { delete *it; } m_vServers.clear(); } CString CIRCNetwork::GetNetworkPath() const { CString sNetworkPath = m_pUser->GetUserPath() + "/networks/" + m_sName; if (!CFile::Exists(sNetworkPath)) { CDir::MakeDir(sNetworkPath); } return sNetworkPath; } template struct TOption { const char *name; void (CIRCNetwork::*pSetter)(T); }; bool CIRCNetwork::ParseConfig(CConfig *pConfig, CString& sError, bool bUpgrade) { VCString vsList; VCString::const_iterator vit; if (!bUpgrade) { TOption StringOptions[] = { { "nick", &CIRCNetwork::SetNick }, { "altnick", &CIRCNetwork::SetAltNick }, { "ident", &CIRCNetwork::SetIdent }, { "realname", &CIRCNetwork::SetRealName }, { "bindhost", &CIRCNetwork::SetBindHost }, { "encoding", &CIRCNetwork::SetEncoding }, { "quitmsg", &CIRCNetwork::SetQuitMsg }, }; size_t numStringOptions = sizeof(StringOptions) / sizeof(StringOptions[0]); TOption BoolOptions[] = { { "ircconnectenabled", &CIRCNetwork::SetIRCConnectEnabled }, }; size_t numBoolOptions = sizeof(BoolOptions) / sizeof(BoolOptions[0]); TOption DoubleOptions[] = { { "floodrate", &CIRCNetwork::SetFloodRate }, }; size_t numDoubleOptions = sizeof(DoubleOptions) / sizeof(DoubleOptions[0]); TOption SUIntOptions[] = { { "floodburst", &CIRCNetwork::SetFloodBurst }, { "joindelay", &CIRCNetwork::SetJoinDelay }, }; size_t numSUIntOptions = sizeof(SUIntOptions) / sizeof(SUIntOptions[0]); for (size_t i = 0; i < numStringOptions; i++) { CString sValue; if (pConfig->FindStringEntry(StringOptions[i].name, sValue)) (this->*StringOptions[i].pSetter)(sValue); } for (size_t i = 0; i < numBoolOptions; i++) { CString sValue; if (pConfig->FindStringEntry(BoolOptions[i].name, sValue)) (this->*BoolOptions[i].pSetter)(sValue.ToBool()); } for (size_t i = 0; i < numDoubleOptions; ++i) { double fValue; if (pConfig->FindDoubleEntry(DoubleOptions[i].name, fValue)) (this->*DoubleOptions[i].pSetter)(fValue); } for (size_t i = 0; i < numSUIntOptions; ++i) { unsigned short value; if (pConfig->FindUShortEntry(SUIntOptions[i].name, value)) (this->*SUIntOptions[i].pSetter)(value); } pConfig->FindStringVector("loadmodule", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { CString sValue = *vit; CString sModName = sValue.Token(0); CString sNotice = "Loading network module [" + sModName + "]"; // XXX Legacy crap, added in ZNC 0.203, modified in 0.207 // Note that 0.203 == 0.207 if (sModName == "away") { sNotice = "NOTICE: [away] was renamed, loading [awaystore] instead"; sModName = "awaystore"; } // XXX Legacy crap, added in ZNC 0.207 if (sModName == "autoaway") { sNotice = "NOTICE: [autoaway] was renamed, loading [awaystore] instead"; sModName = "awaystore"; } // XXX Legacy crap, added in 1.1; fakeonline module was dropped in 1.0 and returned in 1.1 if (sModName == "fakeonline") { sNotice = "NOTICE: [fakeonline] was renamed, loading [modules_online] instead"; sModName = "modules_online"; } CString sModRet; CString sArgs = sValue.Token(1, true); bool bModRet = LoadModule(sModName, sArgs, sNotice, sModRet); if (!bModRet) { // XXX The awaynick module was retired in 1.6 (still available as external module) if (sModName == "awaynick") { // load simple_away instead, unless it's already on the list bool bFound = false; for (const CString& sLoadMod : vsList) { if (sLoadMod.Token(0).Equals("simple_away")) { bFound = true; } } if (!bFound) { sNotice = "Loading network module [simple_away] instead"; sModName = "simple_away"; // not a fatal error if simple_away is not available LoadModule(sModName, sArgs, sNotice, sModRet); } } else { sError = sModRet; return false; } } } } pConfig->FindStringVector("server", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { CUtils::PrintAction("Adding server [" + *vit + "]"); CUtils::PrintStatus(AddServer(*vit)); } pConfig->FindStringVector("trustedserverfingerprint", vsList); for (const CString& sFP : vsList) { AddTrustedFingerprint(sFP); } pConfig->FindStringVector("chan", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { AddChan(*vit, true); } CConfig::SubConfig subConf; CConfig::SubConfig::const_iterator subIt; pConfig->FindSubConfig("chan", subConf); for (subIt = subConf.begin(); subIt != subConf.end(); ++subIt) { const CString& sChanName = subIt->first; CConfig* pSubConf = subIt->second.m_pSubConfig; CChan* pChan = new CChan(sChanName, this, true, pSubConf); if (!pSubConf->empty()) { sError = "Unhandled lines in config for User [" + m_pUser->GetUserName() + "], Network [" + GetName() + "], Channel [" + sChanName + "]!"; CUtils::PrintError(sError); CZNC::DumpConfig(pSubConf); delete pChan; return false; } // Save the channel name, because AddChan // deletes the CChannel*, if adding fails sError = pChan->GetName(); if (!AddChan(pChan)) { sError = "Channel [" + sError + "] defined more than once"; CUtils::PrintError(sError); return false; } sError.clear(); } return true; } CConfig CIRCNetwork::ToConfig() const { CConfig config; if (!m_sNick.empty()) { config.AddKeyValuePair("Nick", m_sNick); } if (!m_sAltNick.empty()) { config.AddKeyValuePair("AltNick", m_sAltNick); } if (!m_sIdent.empty()) { config.AddKeyValuePair("Ident", m_sIdent); } if (!m_sRealName.empty()) { config.AddKeyValuePair("RealName", m_sRealName); } if (!m_sBindHost.empty()) { config.AddKeyValuePair("BindHost", m_sBindHost); } config.AddKeyValuePair("IRCConnectEnabled", CString(GetIRCConnectEnabled())); config.AddKeyValuePair("FloodRate", CString(GetFloodRate())); config.AddKeyValuePair("FloodBurst", CString(GetFloodBurst())); config.AddKeyValuePair("JoinDelay", CString(GetJoinDelay())); config.AddKeyValuePair("Encoding", m_sEncoding); if (!m_sQuitMsg.empty()) { config.AddKeyValuePair("QuitMsg", m_sQuitMsg); } // Modules const CModules& Mods = GetModules(); if (!Mods.empty()) { for (unsigned int a = 0; a < Mods.size(); a++) { CString sArgs = Mods[a]->GetArgs(); if (!sArgs.empty()) { sArgs = " " + sArgs; } config.AddKeyValuePair("LoadModule", Mods[a]->GetModName() + sArgs); } } // Servers for (unsigned int b = 0; b < m_vServers.size(); b++) { config.AddKeyValuePair("Server", m_vServers[b]->GetString()); } for (const CString& sFP : m_ssTrustedFingerprints) { config.AddKeyValuePair("TrustedServerFingerprint", sFP); } // Chans for (unsigned int c = 0; c < m_vChans.size(); c++) { CChan* pChan = m_vChans[c]; if (pChan->InConfig()) { config.AddSubConfig("Chan", pChan->GetName(), pChan->ToConfig()); } } return config; } void CIRCNetwork::BounceAllClients() { for (unsigned int a = 0; a < m_vClients.size(); a++) { m_vClients[a]->BouncedOff(); } m_vClients.clear(); } bool CIRCNetwork::IsUserOnline() const { vector::const_iterator it; for (it = m_vClients.begin(); it != m_vClients.end(); ++it) { CClient *pClient = *it; if (!pClient->IsAway()) { return true; } } return false; } void CIRCNetwork::ClientConnected(CClient *pClient) { if (!m_pUser->MultiClients()) { BounceAllClients(); } m_vClients.push_back(pClient); size_t uIdx, uSize; pClient->SetPlaybackActive(true); if (m_RawBuffer.IsEmpty()) { pClient->PutClient(":irc.znc.in 001 " + pClient->GetNick() + " :- Welcome to ZNC -"); } else { const CString& sClientNick = pClient->GetNick(false); MCString msParams; msParams["target"] = sClientNick; uSize = m_RawBuffer.Size(); for (uIdx = 0; uIdx < uSize; uIdx++) { pClient->PutClient(m_RawBuffer.GetLine(uIdx, *pClient, msParams)); } const CNick& Nick = GetIRCNick(); if (sClientNick != Nick.GetNick()) { // case-sensitive match pClient->PutClient(":" + sClientNick + "!" + Nick.GetIdent() + "@" + Nick.GetHost() + " NICK :" + Nick.GetNick()); pClient->SetNick(Nick.GetNick()); } } MCString msParams; msParams["target"] = GetIRCNick().GetNick(); // Send the cached MOTD uSize = m_MotdBuffer.Size(); if (uSize > 0) { for (uIdx = 0; uIdx < uSize; uIdx++) { pClient->PutClient(m_MotdBuffer.GetLine(uIdx, *pClient, msParams)); } } if (GetIRCSock() != NULL) { CString sUserMode(""); const set& scUserModes = GetIRCSock()->GetUserModes(); for (set::const_iterator it = scUserModes.begin(); it != scUserModes.end(); ++it) { sUserMode += *it; } if (!sUserMode.empty()) { pClient->PutClient(":" + GetIRCNick().GetNickMask() + " MODE " + GetIRCNick().GetNick() + " :+" + sUserMode); } } if (m_bIRCAway) { // If they want to know their away reason they'll have to whois // themselves. At least we can tell them their away status... pClient->PutClient(":irc.znc.in 306 " + GetIRCNick().GetNick() + " :You have been marked as being away"); } const vector& vChans = GetChans(); for (size_t a = 0; a < vChans.size(); a++) { if ((vChans[a]->IsOn()) && (!vChans[a]->IsDetached())) { vChans[a]->AttachUser(pClient); } } bool bClearQuery = m_pUser->AutoClearQueryBuffer(); for (vector::const_iterator it = m_vQueries.begin(); it != m_vQueries.end(); ++it) { (*it)->SendBuffer(pClient); if (bClearQuery) { delete *it; } } if (bClearQuery) { m_vQueries.clear(); } uSize = m_NoticeBuffer.Size(); for (uIdx = 0; uIdx < uSize; uIdx++) { const CBufLine& BufLine = m_NoticeBuffer.GetBufLine(uIdx); CString sLine = BufLine.GetLine(*pClient, msParams); bool bContinue = false; NETWORKMODULECALL(OnPrivBufferPlayLine2(*pClient, sLine, BufLine.GetTime()), m_pUser, this, NULL, &bContinue); if (bContinue) continue; pClient->PutClient(sLine); } m_NoticeBuffer.Clear(); pClient->SetPlaybackActive(false); // Tell them why they won't connect if (!GetIRCConnectEnabled()) pClient->PutStatus("You are currently disconnected from IRC. " "Use 'connect' to reconnect."); } void CIRCNetwork::ClientDisconnected(CClient *pClient) { for (size_t a = 0; a < m_vClients.size(); a++) { if (m_vClients[a] == pClient) { m_vClients.erase(m_vClients.begin() + a); break; } } } CUser* CIRCNetwork::GetUser() const { return m_pUser; } const CString& CIRCNetwork::GetName() const { return m_sName; } std::vector CIRCNetwork::FindClients(const CString& sIdentifier) const { std::vector vClients; for (CClient* pClient : m_vClients) { if (pClient->GetIdentifier().Equals(sIdentifier)) { vClients.push_back(pClient); } } return vClients; } void CIRCNetwork::SetUser(CUser *pUser) { for (unsigned int a = 0; a < m_vClients.size(); a++) { m_vClients[a]->PutStatus("This network is being deleted or moved to another user."); m_vClients[a]->SetNetwork(NULL); } m_vClients.clear(); if (m_pUser) { m_pUser->RemoveNetwork(this); } m_pUser = pUser; if (m_pUser) { m_pUser->AddNetwork(this); } } bool CIRCNetwork::SetName(const CString& sName) { if (IsValidNetwork(sName)) { m_sName = sName; return true; } return false; } bool CIRCNetwork::PutUser(const CString& sLine, CClient* pClient, CClient* pSkipClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) { m_vClients[a]->PutClient(sLine); if (pClient) { return true; } } } return (pClient == NULL); } bool CIRCNetwork::PutStatus(const CString& sLine, CClient* pClient, CClient* pSkipClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) { m_vClients[a]->PutStatus(sLine); if (pClient) { return true; } } } return (pClient == NULL); } bool CIRCNetwork::PutModule(const CString& sModule, const CString& sLine, CClient* pClient, CClient* pSkipClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) { m_vClients[a]->PutModule(sModule, sLine); if (pClient) { return true; } } } return (pClient == NULL); } // Channels const vector& CIRCNetwork::GetChans() const { return m_vChans; } CChan* CIRCNetwork::FindChan(CString sName) const { if (GetIRCSock()) { // See https://tools.ietf.org/html/draft-brocklesby-irc-isupport-03#section-3.16 sName.TrimLeft(GetIRCSock()->GetISupport("STATUSMSG", "")); } for (unsigned int a = 0; a < m_vChans.size(); a++) { CChan* pChan = m_vChans[a]; if (sName.Equals(pChan->GetName())) { return pChan; } } return NULL; } std::vector CIRCNetwork::FindChans(const CString& sWild) const { std::vector vChans; vChans.reserve(m_vChans.size()); const CString sLower = sWild.AsLower(); for (std::vector::const_iterator it = m_vChans.begin(); it != m_vChans.end(); ++it) { if ((*it)->GetName().AsLower().WildCmp(sLower)) vChans.push_back(*it); } return vChans; } bool CIRCNetwork::AddChan(CChan* pChan) { if (!pChan) { return false; } for (unsigned int a = 0; a < m_vChans.size(); a++) { if (m_vChans[a]->GetName().Equals(pChan->GetName())) { delete pChan; return false; } } m_vChans.push_back(pChan); return true; } bool CIRCNetwork::AddChan(const CString& sName, bool bInConfig) { if (sName.empty() || FindChan(sName)) { return false; } CChan* pChan = new CChan(sName, this, bInConfig); m_vChans.push_back(pChan); return true; } bool CIRCNetwork::DelChan(const CString& sName) { for (vector::iterator a = m_vChans.begin(); a != m_vChans.end(); ++a) { if (sName.Equals((*a)->GetName())) { delete *a; m_vChans.erase(a); return true; } } return false; } void CIRCNetwork::JoinChans() { // Avoid divsion by zero, it's bad! if (m_vChans.empty()) return; // We start at a random offset into the channel list so that if your // first 3 channels are invite-only and you got MaxJoins == 3, ZNC will // still be able to join the rest of your channels. unsigned int start = rand() % m_vChans.size(); unsigned int uJoins = m_pUser->MaxJoins(); set sChans; for (unsigned int a = 0; a < m_vChans.size(); a++) { unsigned int idx = (start + a) % m_vChans.size(); CChan* pChan = m_vChans[idx]; if (!pChan->IsOn() && !pChan->IsDisabled()) { if (!JoinChan(pChan)) continue; sChans.insert(pChan); // Limit the number of joins if (uJoins != 0 && --uJoins == 0) { // Reset the timer. m_pJoinTimer->Reset(); break; } } } while (!sChans.empty()) JoinChans(sChans); } void CIRCNetwork::JoinChans(set& sChans) { CString sKeys, sJoin; bool bHaveKey = false; size_t uiJoinLength = strlen("JOIN "); while (!sChans.empty()) { set::iterator it = sChans.begin(); const CString& sName = (*it)->GetName(); const CString& sKey = (*it)->GetKey(); size_t len = sName.length() + sKey.length(); len += 2; // two comma if (!sKeys.empty() && uiJoinLength + len >= 512) break; if (!sJoin.empty()) { sJoin += ","; sKeys += ","; } uiJoinLength += len; sJoin += sName; if (!sKey.empty()) { sKeys += sKey; bHaveKey = true; } sChans.erase(it); } if (bHaveKey) PutIRC("JOIN " + sJoin + " " + sKeys); else PutIRC("JOIN " + sJoin); } bool CIRCNetwork::JoinChan(CChan* pChan) { bool bReturn = false; NETWORKMODULECALL(OnJoining(*pChan), m_pUser, this, NULL, &bReturn); if (bReturn) return false; if (m_pUser->JoinTries() != 0 && pChan->GetJoinTries() >= m_pUser->JoinTries()) { PutStatus("The channel " + pChan->GetName() + " could not be joined, disabling it."); pChan->Disable(); } else { pChan->IncJoinTries(); bool bFailed = false; NETWORKMODULECALL(OnTimerAutoJoin(*pChan), m_pUser, this, NULL, &bFailed); if (bFailed) return false; return true; } return false; } bool CIRCNetwork::IsChan(const CString& sChan) const { if (sChan.empty()) return false; // There is no way this is a chan if (GetChanPrefixes().empty()) return true; // We can't know, so we allow everything // Thanks to the above if (empty), we can do sChan[0] return GetChanPrefixes().find(sChan[0]) != CString::npos; } // Queries const vector& CIRCNetwork::GetQueries() const { return m_vQueries; } CQuery* CIRCNetwork::FindQuery(const CString& sName) const { for (unsigned int a = 0; a < m_vQueries.size(); a++) { CQuery* pQuery = m_vQueries[a]; if (sName.Equals(pQuery->GetName())) { return pQuery; } } return NULL; } std::vector CIRCNetwork::FindQueries(const CString& sWild) const { std::vector vQueries; vQueries.reserve(m_vQueries.size()); const CString sLower = sWild.AsLower(); for (std::vector::const_iterator it = m_vQueries.begin(); it != m_vQueries.end(); ++it) { if ((*it)->GetName().AsLower().WildCmp(sLower)) vQueries.push_back(*it); } return vQueries; } CQuery* CIRCNetwork::AddQuery(const CString& sName) { if (sName.empty()) { return NULL; } CQuery* pQuery = FindQuery(sName); if (!pQuery) { pQuery = new CQuery(sName, this); m_vQueries.push_back(pQuery); if (m_pUser->MaxQueryBuffers() > 0) { while (m_vQueries.size() > m_pUser->MaxQueryBuffers()) { delete *m_vQueries.begin(); m_vQueries.erase(m_vQueries.begin()); } } } return pQuery; } bool CIRCNetwork::DelQuery(const CString& sName) { for (vector::iterator a = m_vQueries.begin(); a != m_vQueries.end(); ++a) { if (sName.Equals((*a)->GetName())) { delete *a; m_vQueries.erase(a); return true; } } return false; } // Server list const vector& CIRCNetwork::GetServers() const { return m_vServers; } CServer* CIRCNetwork::FindServer(const CString& sName) const { for (unsigned int a = 0; a < m_vServers.size(); a++) { CServer* pServer = m_vServers[a]; if (sName.Equals(pServer->GetName())) { return pServer; } } return NULL; } bool CIRCNetwork::DelServer(const CString& sName, unsigned short uPort, const CString& sPass) { if (sName.empty()) { return false; } unsigned int a = 0; bool bSawCurrentServer = false; CServer* pCurServer = GetCurrentServer(); for (vector::iterator it = m_vServers.begin(); it != m_vServers.end(); ++it, a++) { CServer* pServer = *it; if (pServer == pCurServer) bSawCurrentServer = true; if (!pServer->GetName().Equals(sName)) continue; if (uPort != 0 && pServer->GetPort() != uPort) continue; if (!sPass.empty() && pServer->GetPass() != sPass) continue; m_vServers.erase(it); if (pServer == pCurServer) { CIRCSock* pIRCSock = GetIRCSock(); // Make sure we don't skip the next server in the list! if (m_uServerIdx) { m_uServerIdx--; } if (pIRCSock) { pIRCSock->Quit(); PutStatus("Your current server was removed, jumping..."); } } else if (!bSawCurrentServer) { // Our current server comes after the server which we // are removing. This means that it now got a different // index in m_vServers! m_uServerIdx--; } delete pServer; return true; } return false; } bool CIRCNetwork::AddServer(const CString& sName) { if (sName.empty()) { return false; } bool bSSL = false; CString sLine = sName; sLine.Trim(); CString sHost = sLine.Token(0); CString sPort = sLine.Token(1); if (sPort.Left(1) == "+") { bSSL = true; sPort.LeftChomp(); } unsigned short uPort = sPort.ToUShort(); CString sPass = sLine.Token(2, true); return AddServer(sHost, uPort, sPass, bSSL); } bool CIRCNetwork::AddServer(const CString& sName, unsigned short uPort, const CString& sPass, bool bSSL) { #ifndef HAVE_LIBSSL if (bSSL) { return false; } #endif if (sName.empty()) { return false; } if (!uPort) { uPort = 6667; } // Check if server is already added for (unsigned int a = 0; a < m_vServers.size(); a++) { CServer* pServer = m_vServers[a]; if (!sName.Equals(pServer->GetName())) continue; if (uPort != pServer->GetPort()) continue; if (sPass != pServer->GetPass()) continue; if (bSSL != pServer->IsSSL()) continue; // Server is already added return false; } CServer* pServer = new CServer(sName, uPort, sPass, bSSL); m_vServers.push_back(pServer); CheckIRCConnect(); return true; } CServer* CIRCNetwork::GetNextServer() { if (m_vServers.empty()) { return NULL; } if (m_uServerIdx >= m_vServers.size()) { m_uServerIdx = 0; } return m_vServers[m_uServerIdx++]; } CServer* CIRCNetwork::GetCurrentServer() const { size_t uIdx = (m_uServerIdx) ? m_uServerIdx -1 : 0; if (uIdx >= m_vServers.size()) { return NULL; } return m_vServers[uIdx]; } void CIRCNetwork::SetIRCServer(const CString& s) { m_sIRCServer = s; } bool CIRCNetwork::SetNextServer(const CServer* pServer) { for (unsigned int a = 0; a < m_vServers.size(); a++) { if (m_vServers[a] == pServer) { m_uServerIdx = a; return true; } } return false; } bool CIRCNetwork::IsLastServer() const { return (m_uServerIdx >= m_vServers.size()); } const CString& CIRCNetwork::GetIRCServer() const { return m_sIRCServer; } const CNick& CIRCNetwork::GetIRCNick() const { return m_IRCNick; } void CIRCNetwork::SetIRCNick(const CNick& n) { m_IRCNick = n; for (unsigned int a = 0; a < m_vClients.size(); a++) { m_vClients[a]->SetNick(n.GetNick()); } } CString CIRCNetwork::GetCurNick() const { const CIRCSock* pIRCSock = GetIRCSock(); if (pIRCSock) { return pIRCSock->GetNick(); } if (!m_vClients.empty()) { return m_vClients[0]->GetNick(); } return ""; } bool CIRCNetwork::Connect() { if (!GetIRCConnectEnabled() || m_pIRCSock || !HasServers()) return false; CServer *pServer = GetNextServer(); if (!pServer) return false; if (CZNC::Get().GetServerThrottle(pServer->GetName())) { // Can't connect right now, schedule retry later CZNC::Get().AddNetworkToQueue(this); return false; } CZNC::Get().AddServerThrottle(pServer->GetName()); bool bSSL = pServer->IsSSL(); #ifndef HAVE_LIBSSL if (bSSL) { PutStatus("Cannot connect to [" + pServer->GetString(false) + "], ZNC is not compiled with SSL."); CZNC::Get().AddNetworkToQueue(this); return false; } #endif CIRCSock *pIRCSock = new CIRCSock(this); pIRCSock->SetPass(pServer->GetPass()); pIRCSock->SetSSLTrustedPeerFingerprints(m_ssTrustedFingerprints); DEBUG("Connecting user/network [" << m_pUser->GetUserName() << "/" << m_sName << "]"); bool bAbort = false; NETWORKMODULECALL(OnIRCConnecting(pIRCSock), m_pUser, this, NULL, &bAbort); if (bAbort) { DEBUG("Some module aborted the connection attempt"); PutStatus("Some module aborted the connection attempt"); delete pIRCSock; CZNC::Get().AddNetworkToQueue(this); return false; } CString sSockName = "IRC::" + m_pUser->GetUserName() + "::" + m_sName; CZNC::Get().GetManager().Connect(pServer->GetName(), pServer->GetPort(), sSockName, 120, bSSL, GetBindHost(), pIRCSock); return true; } bool CIRCNetwork::IsIRCConnected() const { const CIRCSock* pSock = GetIRCSock(); return (pSock && pSock->IsAuthed()); } void CIRCNetwork::SetIRCSocket(CIRCSock* pIRCSock) { m_pIRCSock = pIRCSock; } void CIRCNetwork::IRCConnected() { if (m_uJoinDelay > 0) { m_pJoinTimer->Delay(m_uJoinDelay); } else { JoinChans(); } } void CIRCNetwork::IRCDisconnected() { m_pIRCSock = NULL; SetIRCServer(""); m_bIRCAway = false; // Get the reconnect going CheckIRCConnect(); } void CIRCNetwork::SetIRCConnectEnabled(bool b) { m_bIRCConnectEnabled = b; if (m_bIRCConnectEnabled) { CheckIRCConnect(); } else if (GetIRCSock()) { if (GetIRCSock()->IsConnected()) { GetIRCSock()->Quit(); } else { GetIRCSock()->Close(); } } } void CIRCNetwork::CheckIRCConnect() { // Do we want to connect? if (GetIRCConnectEnabled() && GetIRCSock() == NULL) CZNC::Get().AddNetworkToQueue(this); } bool CIRCNetwork::PutIRC(const CString& sLine) { CIRCSock* pIRCSock = GetIRCSock(); if (!pIRCSock) { return false; } pIRCSock->PutIRC(sLine); return true; } const CString& CIRCNetwork::GetNick(const bool bAllowDefault) const { if (m_sNick.empty()) { return m_pUser->GetNick(bAllowDefault); } return m_sNick; } const CString& CIRCNetwork::GetAltNick(const bool bAllowDefault) const { if (m_sAltNick.empty()) { return m_pUser->GetAltNick(bAllowDefault); } return m_sAltNick; } const CString& CIRCNetwork::GetIdent(const bool bAllowDefault) const { if (m_sIdent.empty()) { return m_pUser->GetIdent(bAllowDefault); } return m_sIdent; } const CString& CIRCNetwork::GetRealName() const { if (m_sRealName.empty()) { return m_pUser->GetRealName(); } return m_sRealName; } const CString& CIRCNetwork::GetBindHost() const { if (m_sBindHost.empty()) { return m_pUser->GetBindHost(); } return m_sBindHost; } const CString& CIRCNetwork::GetEncoding() const { return m_sEncoding; } CString CIRCNetwork::GetQuitMsg() const { if (m_sQuitMsg.empty()) { return m_pUser->GetQuitMsg(); } return m_sQuitMsg; } void CIRCNetwork::SetNick(const CString& s) { if (m_pUser->GetNick().Equals(s)) { m_sNick = ""; } else { m_sNick = s; } } void CIRCNetwork::SetAltNick(const CString& s) { if (m_pUser->GetAltNick().Equals(s)) { m_sAltNick = ""; } else { m_sAltNick = s; } } void CIRCNetwork::SetIdent(const CString& s) { if (m_pUser->GetIdent().Equals(s)) { m_sIdent = ""; } else { m_sIdent = s; } } void CIRCNetwork::SetRealName(const CString& s) { if (m_pUser->GetRealName().Equals(s)) { m_sRealName = ""; } else { m_sRealName = s; } } void CIRCNetwork::SetBindHost(const CString& s) { if (m_pUser->GetBindHost().Equals(s)) { m_sBindHost = ""; } else { m_sBindHost = s; } } void CIRCNetwork::SetEncoding(const CString& s) { m_sEncoding = s; if (GetIRCSock()) { GetIRCSock()->SetEncoding(s); } } void CIRCNetwork::SetQuitMsg(const CString& s) { if (m_pUser->GetQuitMsg().Equals(s)) { m_sQuitMsg = ""; } else { m_sQuitMsg = s; } } CString CIRCNetwork::ExpandString(const CString& sStr) const { CString sRet; return ExpandString(sStr, sRet); } CString& CIRCNetwork::ExpandString(const CString& sStr, CString& sRet) const { sRet = sStr; sRet.Replace("%defnick%", GetNick()); sRet.Replace("%nick%", GetCurNick()); sRet.Replace("%altnick%", GetAltNick()); sRet.Replace("%ident%", GetIdent()); sRet.Replace("%realname%", GetRealName()); sRet.Replace("%bindhost%", GetBindHost()); return m_pUser->ExpandString(sRet, sRet); } bool CIRCNetwork::LoadModule(const CString& sModName, const CString& sArgs, const CString& sNotice, CString& sError) { CUtils::PrintAction(sNotice); CString sModRet; bool bModRet = GetModules().LoadModule(sModName, sArgs, CModInfo::NetworkModule, GetUser(), this, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { sError = sModRet; } return bModRet; } znc-1.6.3/src/znc.cpp0000644000175000017500000014775412663147131014652 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include using std::endl; using std::cout; using std::map; using std::set; using std::vector; using std::list; using std::tuple; using std::make_tuple; static inline CString FormatBindError() { CString sError = (errno == 0 ? CString("unknown error, check the host name") : CString(strerror(errno))); return "Unable to bind [" + sError + "]"; } CZNC::CZNC() { if (!InitCsocket()) { CUtils::PrintError("Could not initialize Csocket!"); exit(-1); } m_pModules = new CModules(); m_uiConnectDelay = 5; m_uiAnonIPLimit = 10; m_uBytesRead = 0; m_uBytesWritten = 0; m_uiMaxBufferSize = 500; m_pConnectQueueTimer = NULL; m_uiConnectPaused = 0; m_eConfigState = ECONFIG_NOTHING; m_TimeStarted = time(NULL); m_sConnectThrottle.SetTTL(30000); m_pLockFile = NULL; m_bProtectWebSessions = true; m_bHideVersion = false; m_uDisabledSSLProtocols = Csock::EDP_SSL; m_sSSLProtocols = ""; } CZNC::~CZNC() { m_pModules->UnloadAll(); for (map::iterator a = m_msUsers.begin(); a != m_msUsers.end(); ++a) { a->second->GetModules().UnloadAll(); const vector& networks = a->second->GetNetworks(); for (vector::const_iterator b = networks.begin(); b != networks.end(); ++b) { (*b)->GetModules().UnloadAll(); } } for (size_t b = 0; b < m_vpListeners.size(); b++) { delete m_vpListeners[b]; } for (map::iterator a = m_msUsers.begin(); a != m_msUsers.end(); ++a) { a->second->SetBeingDeleted(true); } m_pConnectQueueTimer = NULL; // This deletes m_pConnectQueueTimer m_Manager.Cleanup(); DeleteUsers(); delete m_pModules; delete m_pLockFile; ShutdownCsocket(); DeletePidFile(); } CString CZNC::GetVersion() { return CString(VERSION_STR) + CString(ZNC_VERSION_EXTRA); } CString CZNC::GetTag(bool bIncludeVersion, bool bHTML) { if (!Get().m_bHideVersion) { bIncludeVersion = true; } CString sAddress = bHTML ? "http://znc.in" : "http://znc.in"; if (!bIncludeVersion) { return "ZNC - " + sAddress; } CString sVersion = GetVersion(); return "ZNC " + sVersion + " - " + sAddress; } CString CZNC::GetCompileOptionsString() { return "IPv6: " #ifdef HAVE_IPV6 "yes" #else "no" #endif ", SSL: " #ifdef HAVE_LIBSSL "yes" #else "no" #endif ", DNS: " #ifdef HAVE_THREADED_DNS "threads" #else "blocking" #endif ", charset: " #ifdef HAVE_ICU "yes" #else "no" #endif ; } CString CZNC::GetUptime() const { time_t now = time(NULL); return CString::ToTimeStr(now - TimeStarted()); } bool CZNC::OnBoot() { bool bFail = false; ALLMODULECALL(OnBoot(), &bFail); if (bFail) return false; return true; } bool CZNC::HandleUserDeletion() { map::iterator it; map::iterator end; if (m_msDelUsers.empty()) return false; end = m_msDelUsers.end(); for (it = m_msDelUsers.begin(); it != end; ++it) { CUser* pUser = it->second; pUser->SetBeingDeleted(true); if (GetModules().OnDeleteUser(*pUser)) { pUser->SetBeingDeleted(false); continue; } m_msUsers.erase(pUser->GetUserName()); CWebSock::FinishUserSessions(*pUser); delete pUser; } m_msDelUsers.clear(); return true; } void CZNC::Loop() { while (true) { CString sError; ConfigState eState = GetConfigState(); switch (eState) { case ECONFIG_NEED_REHASH: SetConfigState(ECONFIG_NOTHING); if (RehashConfig(sError)) { Broadcast("Rehashing succeeded", true); } else { Broadcast("Rehashing failed: " + sError, true); Broadcast("ZNC is in some possibly inconsistent state!", true); } break; case ECONFIG_NEED_WRITE: case ECONFIG_NEED_VERBOSE_WRITE: SetConfigState(ECONFIG_NOTHING); if (!WriteConfig()) { Broadcast("Writing the config file failed", true); } else if (eState == ECONFIG_NEED_VERBOSE_WRITE) { Broadcast("Writing the config succeeded", true); } break; case ECONFIG_NOTHING: break; } // Check for users that need to be deleted if (HandleUserDeletion()) { // Also remove those user(s) from the config file WriteConfig(); } // Csocket wants micro seconds // 100 msec to 600 sec m_Manager.DynamicSelectLoop(100 * 1000, 600 * 1000 * 1000); } } CFile* CZNC::InitPidFile() { if (!m_sPidFile.empty()) { CString sFile; // absolute path or relative to the data dir? if (m_sPidFile[0] != '/') sFile = GetZNCPath() + "/" + m_sPidFile; else sFile = m_sPidFile; return new CFile(sFile); } return NULL; } bool CZNC::WritePidFile(int iPid) { CFile* File = InitPidFile(); if (File == NULL) return false; CUtils::PrintAction("Writing pid file [" + File->GetLongName() + "]"); bool bRet = false; if (File->Open(O_WRONLY | O_TRUNC | O_CREAT)) { File->Write(CString(iPid) + "\n"); File->Close(); bRet = true; } delete File; CUtils::PrintStatus(bRet); return bRet; } bool CZNC::DeletePidFile() { CFile* File = InitPidFile(); if (File == NULL) return false; CUtils::PrintAction("Deleting pid file [" + File->GetLongName() + "]"); bool bRet = File->Delete(); delete File; CUtils::PrintStatus(bRet); return bRet; } bool CZNC::WritePemFile() { #ifndef HAVE_LIBSSL CUtils::PrintError("ZNC was not compiled with ssl support."); return false; #else CString sPemFile = GetPemLocation(); CUtils::PrintAction("Writing Pem file [" + sPemFile + "]"); #ifndef _WIN32 int fd = creat(sPemFile.c_str(), 0600); if (fd == -1) { CUtils::PrintStatus(false, "Unable to open"); return false; } FILE *f = fdopen(fd, "w"); #else FILE *f = fopen(sPemFile.c_str(), "w"); #endif if (!f) { CUtils::PrintStatus(false, "Unable to open"); return false; } CUtils::GenerateCert(f, ""); fclose(f); CUtils::PrintStatus(true); return true; #endif } void CZNC::DeleteUsers() { for (map::iterator a = m_msUsers.begin(); a != m_msUsers.end(); ++a) { a->second->SetBeingDeleted(true); delete a->second; } m_msUsers.clear(); DisableConnectQueue(); } bool CZNC::IsHostAllowed(const CString& sHostMask) const { for (map::const_iterator a = m_msUsers.begin(); a != m_msUsers.end(); ++a) { if (a->second->IsHostAllowed(sHostMask)) { return true; } } return false; } bool CZNC::AllowConnectionFrom(const CString& sIP) const { if (m_uiAnonIPLimit == 0) return true; return (GetManager().GetAnonConnectionCount(sIP) < m_uiAnonIPLimit); } void CZNC::InitDirs(const CString& sArgvPath, const CString& sDataDir) { // If the bin was not ran from the current directory, we need to add that dir onto our cwd CString::size_type uPos = sArgvPath.rfind('/'); if (uPos == CString::npos) m_sCurPath = "./"; else m_sCurPath = CDir::ChangeDir("./", sArgvPath.Left(uPos), ""); // Try to set the user's home dir, default to binpath on failure CFile::InitHomePath(m_sCurPath); if (sDataDir.empty()) { m_sZNCPath = CFile::GetHomePath() + "/.znc"; } else { m_sZNCPath = sDataDir; } m_sSSLCertFile = m_sZNCPath + "/znc.pem"; } CString CZNC::GetConfPath(bool bAllowMkDir) const { CString sConfPath = m_sZNCPath + "/configs"; if (bAllowMkDir && !CFile::Exists(sConfPath)) { CDir::MakeDir(sConfPath); } return sConfPath; } CString CZNC::GetUserPath() const { CString sUserPath = m_sZNCPath + "/users"; if (!CFile::Exists(sUserPath)) { CDir::MakeDir(sUserPath); } return sUserPath; } CString CZNC::GetModPath() const { CString sModPath = m_sZNCPath + "/modules"; return sModPath; } const CString& CZNC::GetCurPath() const { if (!CFile::Exists(m_sCurPath)) { CDir::MakeDir(m_sCurPath); } return m_sCurPath; } const CString& CZNC::GetHomePath() const { return CFile::GetHomePath(); } const CString& CZNC::GetZNCPath() const { if (!CFile::Exists(m_sZNCPath)) { CDir::MakeDir(m_sZNCPath); } return m_sZNCPath; } CString CZNC::GetPemLocation() const { return CDir::ChangeDir("", m_sSSLCertFile); } CString CZNC::ExpandConfigPath(const CString& sConfigFile, bool bAllowMkDir) { CString sRetPath; if (sConfigFile.empty()) { sRetPath = GetConfPath(bAllowMkDir) + "/znc.conf"; } else { if (sConfigFile.Left(2) == "./" || sConfigFile.Left(3) == "../") { sRetPath = GetCurPath() + "/" + sConfigFile; } else if (sConfigFile.Left(1) != "/") { sRetPath = GetConfPath(bAllowMkDir) + "/" + sConfigFile; } else { sRetPath = sConfigFile; } } return sRetPath; } bool CZNC::WriteConfig() { if (GetConfigFile().empty()) { DEBUG("Config file name is empty?!"); return false; } // We first write to a temporary file and then move it to the right place CFile *pFile = new CFile(GetConfigFile() + "~"); if (!pFile->Open(O_WRONLY | O_CREAT | O_TRUNC, 0600)) { DEBUG("Could not write config to " + GetConfigFile() + "~: " + CString(strerror(errno))); delete pFile; return false; } // We have to "transfer" our lock on the config to the new file. // The old file (= inode) is going away and thus a lock on it would be // useless. These lock should always succeed (races, anyone?). if (!pFile->TryExLock()) { DEBUG("Error while locking the new config file, errno says: " + CString(strerror(errno))); pFile->Delete(); delete pFile; return false; } pFile->Write(MakeConfigHeader() + "\n"); CConfig config; config.AddKeyValuePair("AnonIPLimit", CString(m_uiAnonIPLimit)); config.AddKeyValuePair("MaxBufferSize", CString(m_uiMaxBufferSize)); config.AddKeyValuePair("SSLCertFile", CString(m_sSSLCertFile)); config.AddKeyValuePair("ProtectWebSessions", CString(m_bProtectWebSessions)); config.AddKeyValuePair("HideVersion", CString(m_bHideVersion)); config.AddKeyValuePair("Version", CString(VERSION_STR)); for (size_t l = 0; l < m_vpListeners.size(); l++) { CListener* pListener = m_vpListeners[l]; CConfig listenerConfig; listenerConfig.AddKeyValuePair("Host", pListener->GetBindHost()); listenerConfig.AddKeyValuePair("URIPrefix", pListener->GetURIPrefix() + "/"); listenerConfig.AddKeyValuePair("Port", CString(pListener->GetPort())); listenerConfig.AddKeyValuePair("IPv4", CString(pListener->GetAddrType() != ADDR_IPV6ONLY)); listenerConfig.AddKeyValuePair("IPv6", CString(pListener->GetAddrType() != ADDR_IPV4ONLY)); listenerConfig.AddKeyValuePair("SSL", CString(pListener->IsSSL())); listenerConfig.AddKeyValuePair("AllowIRC", CString(pListener->GetAcceptType() != CListener::ACCEPT_HTTP)); listenerConfig.AddKeyValuePair("AllowWeb", CString(pListener->GetAcceptType() != CListener::ACCEPT_IRC)); config.AddSubConfig("Listener", "listener" + CString(l), listenerConfig); } config.AddKeyValuePair("ConnectDelay", CString(m_uiConnectDelay)); config.AddKeyValuePair("ServerThrottle", CString(m_sConnectThrottle.GetTTL()/1000)); if (!m_sPidFile.empty()) { config.AddKeyValuePair("PidFile", m_sPidFile.FirstLine()); } if (!m_sSkinName.empty()) { config.AddKeyValuePair("Skin", m_sSkinName.FirstLine()); } if (!m_sStatusPrefix.empty()) { config.AddKeyValuePair("StatusPrefix", m_sStatusPrefix.FirstLine()); } if (!m_sSSLCiphers.empty()) { config.AddKeyValuePair("SSLCiphers", CString(m_sSSLCiphers)); } if (!m_sSSLProtocols.empty()) { config.AddKeyValuePair("SSLProtocols", m_sSSLProtocols); } for (unsigned int m = 0; m < m_vsMotd.size(); m++) { config.AddKeyValuePair("Motd", m_vsMotd[m].FirstLine()); } for (unsigned int v = 0; v < m_vsBindHosts.size(); v++) { config.AddKeyValuePair("BindHost", m_vsBindHosts[v].FirstLine()); } for (unsigned int v = 0; v < m_vsTrustedProxies.size(); v++) { config.AddKeyValuePair("TrustedProxy", m_vsTrustedProxies[v].FirstLine()); } CModules& Mods = GetModules(); for (unsigned int a = 0; a < Mods.size(); a++) { CString sName = Mods[a]->GetModName(); CString sArgs = Mods[a]->GetArgs(); if (!sArgs.empty()) { sArgs = " " + sArgs.FirstLine(); } config.AddKeyValuePair("LoadModule", sName.FirstLine() + sArgs); } for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { CString sErr; if (!it->second->IsValid(sErr)) { DEBUG("** Error writing config for user [" << it->first << "] [" << sErr << "]"); continue; } config.AddSubConfig("User", it->second->GetUserName(), it->second->ToConfig()); } config.Write(*pFile); // If Sync() fails... well, let's hope nothing important breaks.. pFile->Sync(); if (pFile->HadError()) { DEBUG("Error while writing the config, errno says: " + CString(strerror(errno))); pFile->Delete(); delete pFile; return false; } // We wrote to a temporary name, move it to the right place if (!pFile->Move(GetConfigFile(), true)) { DEBUG("Error while replacing the config file with a new version, errno says " << strerror(errno)); pFile->Delete(); delete pFile; return false; } // Everything went fine, just need to update the saved path. pFile->SetFileName(GetConfigFile()); // Make sure the lock is kept alive as long as we need it. delete m_pLockFile; m_pLockFile = pFile; return true; } CString CZNC::MakeConfigHeader() { return "// WARNING\n" "//\n" "// Do NOT edit this file while ZNC is running!\n" "// Use webadmin or *controlpanel instead.\n" "//\n" "// Altering this file by hand will forfeit all support.\n" "//\n" "// But if you feel risky, you might want to read help on /znc saveconfig and /znc rehash.\n" "// Also check http://en.znc.in/wiki/Configuration\n"; } bool CZNC::WriteNewConfig(const CString& sConfigFile) { CString sAnswer, sUser, sNetwork; VCString vsLines; vsLines.push_back(MakeConfigHeader()); vsLines.push_back("Version = " + CString(VERSION_STR)); m_sConfigFile = ExpandConfigPath(sConfigFile); if (CFile::Exists(m_sConfigFile)) { CUtils::PrintStatus(false, "WARNING: config [" + m_sConfigFile + "] already exists."); } CUtils::PrintMessage(""); CUtils::PrintMessage("-- Global settings --"); CUtils::PrintMessage(""); // Listen #ifdef HAVE_IPV6 bool b6 = true; #else bool b6 = false; #endif CString sListenHost; CString sURIPrefix; bool bListenSSL = false; unsigned int uListenPort = 0; bool bSuccess; do { bSuccess = true; while (true) { if (!CUtils::GetNumInput("Listen on port", uListenPort, 1025, 65534)) { continue; } if (uListenPort == 6667) { CUtils::PrintStatus(false, "WARNING: Some web browsers reject port 6667. If you intend to"); CUtils::PrintStatus(false, "use ZNC's web interface, you might want to use another port."); if (!CUtils::GetBoolInput("Proceed with port 6667 anyway?", true)) { continue; } } break; } #ifdef HAVE_LIBSSL bListenSSL = CUtils::GetBoolInput("Listen using SSL", bListenSSL); #endif #ifdef HAVE_IPV6 b6 = CUtils::GetBoolInput("Listen using both IPv4 and IPv6", b6); #endif // Don't ask for listen host, it may be configured later if needed. CUtils::PrintAction("Verifying the listener"); CListener* pListener = new CListener((unsigned short int)uListenPort, sListenHost, sURIPrefix, bListenSSL, b6 ? ADDR_ALL : ADDR_IPV4ONLY, CListener::ACCEPT_ALL); if (!pListener->Listen()) { CUtils::PrintStatus(false, FormatBindError()); bSuccess = false; } else CUtils::PrintStatus(true); delete pListener; } while (!bSuccess); #ifdef HAVE_LIBSSL CString sPemFile = GetPemLocation(); if (!CFile::Exists(sPemFile)) { CUtils::PrintMessage("Unable to locate pem file: [" + sPemFile + "], creating it"); WritePemFile(); } #endif vsLines.push_back(""); vsLines.push_back("\tPort = " + CString(uListenPort)); vsLines.push_back("\tIPv4 = true"); vsLines.push_back("\tIPv6 = " + CString(b6)); vsLines.push_back("\tSSL = " + CString(bListenSSL)); if (!sListenHost.empty()) { vsLines.push_back("\tHost = " + sListenHost); } vsLines.push_back(""); // !Listen set ssGlobalMods; GetModules().GetDefaultMods(ssGlobalMods, CModInfo::GlobalModule); vector vsGlobalModNames; for (set::const_iterator it = ssGlobalMods.begin(); it != ssGlobalMods.end(); ++it) { vsGlobalModNames.push_back(it->GetName()); vsLines.push_back("LoadModule = " + it->GetName()); } CUtils::PrintMessage("Enabled global modules [" + CString(", ").Join(vsGlobalModNames.begin(), vsGlobalModNames.end()) + "]"); // User CUtils::PrintMessage(""); CUtils::PrintMessage("-- Admin user settings --"); CUtils::PrintMessage(""); vsLines.push_back(""); CString sNick; do { CUtils::GetInput("Username", sUser, "", "alphanumeric"); } while (!CUser::IsValidUserName(sUser)); vsLines.push_back(""); CString sSalt; sAnswer = CUtils::GetSaltedHashPass(sSalt); vsLines.push_back("\tPass = " + CUtils::sDefaultHash + "#" + sAnswer + "#" + sSalt + "#"); vsLines.push_back("\tAdmin = true"); CUtils::GetInput("Nick", sNick, CUser::MakeCleanUserName(sUser)); vsLines.push_back("\tNick = " + sNick); CUtils::GetInput("Alternate nick", sAnswer, sNick + "_"); if (!sAnswer.empty()) { vsLines.push_back("\tAltNick = " + sAnswer); } CUtils::GetInput("Ident", sAnswer, sUser); vsLines.push_back("\tIdent = " + sAnswer); CUtils::GetInput("Real name", sAnswer, "Got ZNC?"); vsLines.push_back("\tRealName = " + sAnswer); CUtils::GetInput("Bind host", sAnswer, "", "optional"); if (!sAnswer.empty()) { vsLines.push_back("\tBindHost = " + sAnswer); } set ssUserMods; GetModules().GetDefaultMods(ssUserMods, CModInfo::UserModule); vector vsUserModNames; for (set::const_iterator it = ssUserMods.begin(); it != ssUserMods.end(); ++it) { vsUserModNames.push_back(it->GetName()); vsLines.push_back("\tLoadModule = " + it->GetName()); } CUtils::PrintMessage("Enabled user modules [" + CString(", ").Join(vsUserModNames.begin(), vsUserModNames.end()) + "]"); CUtils::PrintMessage(""); if (CUtils::GetBoolInput("Set up a network?", true)) { vsLines.push_back(""); CUtils::PrintMessage(""); CUtils::PrintMessage("-- Network settings --"); CUtils::PrintMessage(""); do { CUtils::GetInput("Name", sNetwork, "freenode"); } while (!CIRCNetwork::IsValidNetwork(sNetwork)); vsLines.push_back("\t"); set ssNetworkMods; GetModules().GetDefaultMods(ssNetworkMods, CModInfo::NetworkModule); vector vsNetworkModNames; for (set::const_iterator it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) { vsNetworkModNames.push_back(it->GetName()); vsLines.push_back("\t\tLoadModule = " + it->GetName()); } CString sHost, sPass, sHint; bool bSSL = false; unsigned int uServerPort = 0; if (sNetwork.Equals("freenode")) { sHost = "chat.freenode.net"; #ifdef HAVE_LIBSSL bSSL = true; #endif } else { sHint = "host only"; } while (!CUtils::GetInput("Server host", sHost, sHost, sHint) || !CServer::IsValidHostName(sHost)); #ifdef HAVE_LIBSSL bSSL = CUtils::GetBoolInput("Server uses SSL?", bSSL); #endif while (!CUtils::GetNumInput("Server port", uServerPort, 1, 65535, bSSL ? 6697 : 6667)); CUtils::GetInput("Server password (probably empty)", sPass); vsLines.push_back("\t\tServer = " + sHost + ((bSSL) ? " +" : " ") + CString(uServerPort) + " " + sPass); CString sChans; if (CUtils::GetInput("Initial channels", sChans)) { vsLines.push_back(""); VCString vsChans; sChans.Replace(",", " "); sChans.Replace(";", " "); sChans.Split(" ", vsChans, false, "", "", true, true); for (const CString& sChan : vsChans) { vsLines.push_back("\t\t"); vsLines.push_back("\t\t"); } } CUtils::PrintMessage("Enabled network modules [" + CString(", ").Join(vsNetworkModNames.begin(), vsNetworkModNames.end()) + "]"); vsLines.push_back("\t"); } vsLines.push_back(""); CUtils::PrintMessage(""); // !User CFile File; bool bFileOK, bFileOpen = false; do { CUtils::PrintAction("Writing config [" + m_sConfigFile + "]"); bFileOK = true; if (CFile::Exists(m_sConfigFile)) { if (!File.TryExLock(m_sConfigFile)) { CUtils::PrintStatus(false, "ZNC is currently running on this config."); bFileOK = false; } else { File.Close(); CUtils::PrintStatus(false, "This config already exists."); if (CUtils::GetBoolInput("Are you sure you want to overwrite it?", false)) CUtils::PrintAction("Overwriting config [" + m_sConfigFile + "]"); else bFileOK = false; } } if (bFileOK) { File.SetFileName(m_sConfigFile); if (File.Open(O_WRONLY | O_CREAT | O_TRUNC, 0600)) { bFileOpen = true; } else { CUtils::PrintStatus(false, "Unable to open file"); bFileOK = false; } } if (!bFileOK) { while (!CUtils::GetInput("Please specify an alternate location", m_sConfigFile, "", "or \"stdout\" for displaying the config")); if (m_sConfigFile.Equals("stdout")) bFileOK = true; else m_sConfigFile = ExpandConfigPath(m_sConfigFile); } } while (!bFileOK); if (!bFileOpen) { CUtils::PrintMessage(""); CUtils::PrintMessage("Printing the new config to stdout:"); CUtils::PrintMessage(""); cout << endl << "----------------------------------------------------------------------------" << endl << endl; } for (unsigned int a = 0; a < vsLines.size(); a++) { if (bFileOpen) { File.Write(vsLines[a] + "\n"); } else { cout << vsLines[a] << endl; } } if (bFileOpen) { File.Close(); if (File.HadError()) CUtils::PrintStatus(false, "There was an error while writing the config"); else CUtils::PrintStatus(true); } else { cout << endl << "----------------------------------------------------------------------------" << endl << endl; } if (File.HadError()) { bFileOpen = false; CUtils::PrintMessage("Printing the new config to stdout instead:"); cout << endl << "----------------------------------------------------------------------------" << endl << endl; for (unsigned int a = 0; a < vsLines.size(); a++) { cout << vsLines[a] << endl; } cout << endl << "----------------------------------------------------------------------------" << endl << endl; } const CString sProtocol(bListenSSL ? "https" : "http"); const CString sSSL(bListenSSL ? "+" : ""); CUtils::PrintMessage(""); CUtils::PrintMessage("To connect to this ZNC you need to connect to it as your IRC server", true); CUtils::PrintMessage("using the port that you supplied. You have to supply your login info", true); CUtils::PrintMessage("as the IRC server password like this: user/network:pass.", true); CUtils::PrintMessage(""); CUtils::PrintMessage("Try something like this in your IRC client...", true); CUtils::PrintMessage("/server " + sSSL + CString(uListenPort) + " " + sUser + ":", true); CUtils::PrintMessage(""); CUtils::PrintMessage("To manage settings, users and networks, point your web browser to", true); CUtils::PrintMessage(sProtocol + "://:" + CString(uListenPort) + "/", true); CUtils::PrintMessage(""); File.UnLock(); return bFileOpen && CUtils::GetBoolInput("Launch ZNC now?", true); } void CZNC::BackupConfigOnce(const CString& sSuffix) { static bool didBackup = false; if (didBackup) return; didBackup = true; CUtils::PrintAction("Creating a config backup"); CString sBackup = CDir::ChangeDir(m_sConfigFile, "../znc.conf." + sSuffix); if (CFile::Copy(m_sConfigFile, sBackup)) CUtils::PrintStatus(true, sBackup); else CUtils::PrintStatus(false, strerror(errno)); } bool CZNC::ParseConfig(const CString& sConfig, CString& sError) { m_sConfigFile = ExpandConfigPath(sConfig, false); return DoRehash(sError); } bool CZNC::RehashConfig(CString& sError) { ALLMODULECALL(OnPreRehash(), NOTHING); // This clears m_msDelUsers HandleUserDeletion(); // Mark all users as going-to-be deleted m_msDelUsers = m_msUsers; m_msUsers.clear(); if (DoRehash(sError)) { ALLMODULECALL(OnPostRehash(), NOTHING); return true; } // Rehashing failed, try to recover CString s; while (!m_msDelUsers.empty()) { AddUser(m_msDelUsers.begin()->second, s); m_msDelUsers.erase(m_msDelUsers.begin()); } return false; } bool CZNC::DoRehash(CString& sError) { sError.clear(); CUtils::PrintAction("Opening config [" + m_sConfigFile + "]"); if (!CFile::Exists(m_sConfigFile)) { sError = "No such file"; CUtils::PrintStatus(false, sError); CUtils::PrintMessage("Restart ZNC with the --makeconf option if you wish to create this config."); return false; } if (!CFile::IsReg(m_sConfigFile)) { sError = "Not a file"; CUtils::PrintStatus(false, sError); return false; } CFile *pFile = new CFile(m_sConfigFile); // need to open the config file Read/Write for fcntl() // exclusive locking to work properly! if (!pFile->Open(m_sConfigFile, O_RDWR)) { sError = "Can not open config file"; CUtils::PrintStatus(false, sError); delete pFile; return false; } if (!pFile->TryExLock()) { sError = "ZNC is already running on this config."; CUtils::PrintStatus(false, sError); delete pFile; return false; } // (re)open the config file delete m_pLockFile; m_pLockFile = pFile; CFile &File = *pFile; CConfig config; if (!config.Parse(File, sError)) { CUtils::PrintStatus(false, sError); return false; } CUtils::PrintStatus(true); CString sSavedVersion; config.FindStringEntry("version", sSavedVersion); tuple tSavedVersion = make_tuple(sSavedVersion.Token(0, false, ".").ToUInt(), sSavedVersion.Token(1, false, ".").ToUInt()); tuple tCurrentVersion = make_tuple(VERSION_MAJOR, VERSION_MINOR); if (tSavedVersion < tCurrentVersion) { if (sSavedVersion.empty()) { sSavedVersion = "< 0.203"; } CUtils::PrintMessage("Found old config from ZNC " + sSavedVersion + ". Saving a backup of it."); BackupConfigOnce("pre-" + CString(VERSION_STR)); } else if (tSavedVersion > tCurrentVersion) { CUtils::PrintError("Config was saved from ZNC " + sSavedVersion + ". It may or may not work with current ZNC " + GetVersion()); } m_vsBindHosts.clear(); m_vsTrustedProxies.clear(); m_vsMotd.clear(); // Delete all listeners while (!m_vpListeners.empty()) { delete m_vpListeners[0]; m_vpListeners.erase(m_vpListeners.begin()); } MCString msModules; // Modules are queued for later loading VCString vsList; VCString::const_iterator vit; config.FindStringVector("loadmodule", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { CString sModName = vit->Token(0); CString sArgs = vit->Token(1, true); if (sModName == "saslauth" && tSavedVersion < make_tuple(0, 207)) { // XXX compatibility crap, added in 0.207 CUtils::PrintMessage("saslauth module was renamed to cyrusauth. Loading cyrusauth instead."); sModName = "cyrusauth"; } if (msModules.find(sModName) != msModules.end()) { sError = "Module [" + sModName + "] already loaded"; CUtils::PrintError(sError); return false; } CString sModRet; CModule *pOldMod; pOldMod = GetModules().FindModule(sModName); if (!pOldMod) { CUtils::PrintAction("Loading global module [" + sModName + "]"); bool bModRet = GetModules().LoadModule(sModName, sArgs, CModInfo::GlobalModule, NULL, NULL, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { sError = sModRet; return false; } } else if (pOldMod->GetArgs() != sArgs) { CUtils::PrintAction("Reloading global module [" + sModName + "]"); bool bModRet = GetModules().ReloadModule(sModName, sArgs, NULL, NULL, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { sError = sModRet; return false; } } else CUtils::PrintMessage("Module [" + sModName + "] already loaded."); msModules[sModName] = sArgs; } CString sISpoofFormat, sISpoofFile; config.FindStringEntry("ispoofformat", sISpoofFormat); config.FindStringEntry("ispooffile", sISpoofFile); if (!sISpoofFormat.empty() || !sISpoofFile.empty()) { CModule *pIdentFileMod = GetModules().FindModule("identfile"); if (!pIdentFileMod) { CUtils::PrintAction("Loading global Module [identfile]"); CString sModRet; bool bModRet = GetModules().LoadModule("identfile", "", CModInfo::GlobalModule, NULL, NULL, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { sError = sModRet; return false; } pIdentFileMod = GetModules().FindModule("identfile"); msModules["identfile"] = ""; } pIdentFileMod->SetNV("File", sISpoofFile); pIdentFileMod->SetNV("Format", sISpoofFormat); } config.FindStringVector("motd", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { AddMotd(*vit); } config.FindStringVector("bindhost", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { AddBindHost(*vit); } config.FindStringVector("trustedproxy", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { AddTrustedProxy(*vit); } config.FindStringVector("vhost", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { AddBindHost(*vit); } CString sVal; if (config.FindStringEntry("pidfile", sVal)) m_sPidFile = sVal; if (config.FindStringEntry("statusprefix", sVal)) m_sStatusPrefix = sVal; if (config.FindStringEntry("sslcertfile", sVal)) m_sSSLCertFile = sVal; if (config.FindStringEntry("sslciphers", sVal)) m_sSSLCiphers = sVal; if (config.FindStringEntry("skin", sVal)) SetSkinName(sVal); if (config.FindStringEntry("connectdelay", sVal)) SetConnectDelay(sVal.ToUInt()); if (config.FindStringEntry("serverthrottle", sVal)) m_sConnectThrottle.SetTTL(sVal.ToUInt() * 1000); if (config.FindStringEntry("anoniplimit", sVal)) m_uiAnonIPLimit = sVal.ToUInt(); if (config.FindStringEntry("maxbuffersize", sVal)) m_uiMaxBufferSize = sVal.ToUInt(); if (config.FindStringEntry("protectwebsessions", sVal)) m_bProtectWebSessions = sVal.ToBool(); if (config.FindStringEntry("hideversion", sVal)) m_bHideVersion = sVal.ToBool(); if (config.FindStringEntry("sslprotocols", m_sSSLProtocols)) { VCString vsProtocols; m_sSSLProtocols.Split(" ", vsProtocols, false, "", "", true, true); for (CString& sProtocol : vsProtocols) { unsigned int uFlag = 0; bool bEnable = sProtocol.TrimPrefix("+"); bool bDisable = sProtocol.TrimPrefix("-"); if (sProtocol.Equals("All")) { uFlag = ~0; } else if (sProtocol.Equals("SSLv2")) { uFlag = Csock::EDP_SSLv2; } else if (sProtocol.Equals("SSLv3")) { uFlag = Csock::EDP_SSLv3; } else if (sProtocol.Equals("TLSv1")) { uFlag = Csock::EDP_TLSv1; } else if (sProtocol.Equals("TLSv1.1")) { uFlag = Csock::EDP_TLSv1_1; } else if (sProtocol.Equals("TLSv1.2")) { uFlag = Csock::EDP_TLSv1_2; } else { CUtils::PrintError("Invalid SSLProtocols value [" + sProtocol + "]"); CUtils::PrintError("The syntax is [SSLProtocols = [+|-] ...]"); CUtils::PrintError("Available protocols are [SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2]"); return false; } if (bEnable) { m_uDisabledSSLProtocols &= ~uFlag; } else if (bDisable) { m_uDisabledSSLProtocols |= uFlag; } else { m_uDisabledSSLProtocols = ~uFlag; } } } // This has to be after SSLCertFile is handled since it uses that value const char *szListenerEntries[] = { "listen", "listen6", "listen4", "listener", "listener6", "listener4" }; const size_t numListenerEntries = sizeof(szListenerEntries) / sizeof(szListenerEntries[0]); for (size_t i = 0; i < numListenerEntries; i++) { config.FindStringVector(szListenerEntries[i], vsList); vit = vsList.begin(); for (; vit != vsList.end(); ++vit) { if (!AddListener(szListenerEntries[i] + CString(" ") + *vit, sError)) return false; } } CConfig::SubConfig subConf; CConfig::SubConfig::const_iterator subIt; config.FindSubConfig("listener", subConf); for (subIt = subConf.begin(); subIt != subConf.end(); ++subIt) { CConfig* pSubConf = subIt->second.m_pSubConfig; if (!AddListener(pSubConf, sError)) return false; if (!pSubConf->empty()) { sError = "Unhandled lines in Listener config!"; CUtils::PrintError(sError); CZNC::DumpConfig(pSubConf); return false; } } config.FindSubConfig("user", subConf); for (subIt = subConf.begin(); subIt != subConf.end(); ++subIt) { const CString& sUserName = subIt->first; CConfig* pSubConf = subIt->second.m_pSubConfig; CUser* pRealUser = NULL; CUtils::PrintMessage("Loading user [" + sUserName + "]"); // Either create a CUser* or use an existing one map::iterator it = m_msDelUsers.find(sUserName); if (it != m_msDelUsers.end()) { pRealUser = it->second; m_msDelUsers.erase(it); } CUser* pUser = new CUser(sUserName); if (!m_sStatusPrefix.empty()) { if (!pUser->SetStatusPrefix(m_sStatusPrefix)) { sError = "Invalid StatusPrefix [" + m_sStatusPrefix + "] Must be 1-5 chars, no spaces."; CUtils::PrintError(sError); return false; } } if (!pUser->ParseConfig(pSubConf, sError)) { CUtils::PrintError(sError); delete pUser; pUser = NULL; return false; } if (!pSubConf->empty()) { sError = "Unhandled lines in config for User [" + sUserName + "]!"; CUtils::PrintError(sError); DumpConfig(pSubConf); return false; } CString sErr; if (pRealUser) { if (!pRealUser->Clone(*pUser, sErr) || !AddUser(pRealUser, sErr)) { sError = "Invalid user [" + pUser->GetUserName() + "] " + sErr; DEBUG("CUser::Clone() failed in rehash"); } pUser->SetBeingDeleted(true); delete pUser; pUser = NULL; } else if (!AddUser(pUser, sErr)) { sError = "Invalid user [" + pUser->GetUserName() + "] " + sErr; } if (!sError.empty()) { CUtils::PrintError(sError); if (pUser) { pUser->SetBeingDeleted(true); delete pUser; pUser = NULL; } return false; } pUser = NULL; pRealUser = NULL; } if (!config.empty()) { sError = "Unhandled lines in config!"; CUtils::PrintError(sError); DumpConfig(&config); return false; } // Unload modules which are no longer in the config set ssUnload; for (size_t i = 0; i < GetModules().size(); i++) { CModule *pCurMod = GetModules()[i]; if (msModules.find(pCurMod->GetModName()) == msModules.end()) ssUnload.insert(pCurMod->GetModName()); } for (set::iterator it = ssUnload.begin(); it != ssUnload.end(); ++it) { if (GetModules().UnloadModule(*it)) CUtils::PrintMessage("Unloaded global module [" + *it + "]"); else CUtils::PrintMessage("Could not unload [" + *it + "]"); } if (m_msUsers.empty()) { sError = "You must define at least one user in your config."; CUtils::PrintError(sError); return false; } if (m_vpListeners.empty()) { sError = "You must supply at least one Listen port in your config."; CUtils::PrintError(sError); return false; } return true; } void CZNC::DumpConfig(const CConfig* pConfig) { CConfig::EntryMapIterator eit = pConfig->BeginEntries(); for (; eit != pConfig->EndEntries(); ++eit) { const CString& sKey = eit->first; const VCString& vsList = eit->second; VCString::const_iterator it = vsList.begin(); for (; it != vsList.end(); ++it) { CUtils::PrintError(sKey + " = " + *it); } } CConfig::SubConfigMapIterator sit = pConfig->BeginSubConfigs(); for (; sit != pConfig->EndSubConfigs(); ++sit) { const CString& sKey = sit->first; const CConfig::SubConfig& sSub = sit->second; CConfig::SubConfig::const_iterator it = sSub.begin(); for (; it != sSub.end(); ++it) { CUtils::PrintError("SubConfig [" + sKey + " " + it->first + "]:"); DumpConfig(it->second.m_pSubConfig); } } } void CZNC::ClearBindHosts() { m_vsBindHosts.clear(); } bool CZNC::AddBindHost(const CString& sHost) { if (sHost.empty()) { return false; } for (unsigned int a = 0; a < m_vsBindHosts.size(); a++) { if (m_vsBindHosts[a].Equals(sHost)) { return false; } } m_vsBindHosts.push_back(sHost); return true; } bool CZNC::RemBindHost(const CString& sHost) { VCString::iterator it; for (it = m_vsBindHosts.begin(); it != m_vsBindHosts.end(); ++it) { if (sHost.Equals(*it)) { m_vsBindHosts.erase(it); return true; } } return false; } void CZNC::ClearTrustedProxies() { m_vsTrustedProxies.clear(); } bool CZNC::AddTrustedProxy(const CString& sHost) { if (sHost.empty()) { return false; } for (unsigned int a = 0; a < m_vsTrustedProxies.size(); a++) { if (m_vsTrustedProxies[a].Equals(sHost)) { return false; } } m_vsTrustedProxies.push_back(sHost); return true; } bool CZNC::RemTrustedProxy(const CString& sHost) { VCString::iterator it; for (it = m_vsTrustedProxies.begin(); it != m_vsTrustedProxies.end(); ++it) { if (sHost.Equals(*it)) { m_vsTrustedProxies.erase(it); return true; } } return false; } void CZNC::Broadcast(const CString& sMessage, bool bAdminOnly, CUser* pSkipUser, CClient *pSkipClient) { for (map::iterator a = m_msUsers.begin(); a != m_msUsers.end(); ++a) { if (bAdminOnly && !a->second->IsAdmin()) continue; if (a->second != pSkipUser) { CString sMsg = sMessage; bool bContinue = false; USERMODULECALL(OnBroadcast(sMsg), a->second, NULL, &bContinue); if (bContinue) continue; a->second->PutStatusNotice("*** " + sMsg, NULL, pSkipClient); } } } CModule* CZNC::FindModule(const CString& sModName, const CString& sUsername) { if (sUsername.empty()) { return CZNC::Get().GetModules().FindModule(sModName); } CUser* pUser = FindUser(sUsername); return (!pUser) ? NULL : pUser->GetModules().FindModule(sModName); } CModule* CZNC::FindModule(const CString& sModName, CUser* pUser) { if (pUser) { return pUser->GetModules().FindModule(sModName); } return CZNC::Get().GetModules().FindModule(sModName); } bool CZNC::UpdateModule(const CString &sModule) { CModule *pModule; map::const_iterator it; map musLoaded; map::iterator musIt; map mnsLoaded; map::iterator mnsIt; // Unload the module for every user and network for (it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { CUser *pUser = it->second; pModule = pUser->GetModules().FindModule(sModule); if (pModule) { musLoaded[pUser] = pModule->GetArgs(); pUser->GetModules().UnloadModule(sModule); } // See if the user has this module loaded to a network vector vNetworks = pUser->GetNetworks(); vector::iterator it2; for (it2 = vNetworks.begin(); it2 != vNetworks.end(); ++it2) { CIRCNetwork *pNetwork = *it2; pModule = pNetwork->GetModules().FindModule(sModule); if (pModule) { mnsLoaded[pNetwork] = pModule->GetArgs(); pNetwork->GetModules().UnloadModule(sModule); } } } // Unload the global module bool bGlobal = false; CString sGlobalArgs; pModule = GetModules().FindModule(sModule); if (pModule) { bGlobal = true; sGlobalArgs = pModule->GetArgs(); GetModules().UnloadModule(sModule); } // Lets reload everything bool bError = false; CString sErr; // Reload the global module if (bGlobal) { if (!GetModules().LoadModule(sModule, sGlobalArgs, CModInfo::GlobalModule, NULL, NULL, sErr)) { DEBUG("Failed to reload [" << sModule << "] globally [" << sErr << "]"); bError = true; } } // Reload the module for all users for (musIt = musLoaded.begin(); musIt != musLoaded.end(); ++musIt) { CUser *pUser = musIt->first; CString& sArgs = musIt->second; if (!pUser->GetModules().LoadModule(sModule, sArgs, CModInfo::UserModule, pUser, NULL, sErr)) { DEBUG("Failed to reload [" << sModule << "] for [" << pUser->GetUserName() << "] [" << sErr << "]"); bError = true; } } // Reload the module for all networks for (mnsIt = mnsLoaded.begin(); mnsIt != mnsLoaded.end(); ++mnsIt) { CIRCNetwork *pNetwork = mnsIt->first; CString& sArgs = mnsIt->second; if (!pNetwork->GetModules().LoadModule(sModule, sArgs, CModInfo::NetworkModule, pNetwork->GetUser(), pNetwork, sErr)) { DEBUG("Failed to reload [" << sModule << "] for [" << pNetwork->GetUser()->GetUserName() << "/" << pNetwork->GetName() << "] [" << sErr << "]"); bError = true; } } return !bError; } CUser* CZNC::FindUser(const CString& sUsername) { map::iterator it = m_msUsers.find(sUsername); if (it != m_msUsers.end()) { return it->second; } return NULL; } bool CZNC::DeleteUser(const CString& sUsername) { CUser* pUser = FindUser(sUsername); if (!pUser) { return false; } m_msDelUsers[pUser->GetUserName()] = pUser; return true; } bool CZNC::AddUser(CUser* pUser, CString& sErrorRet) { if (FindUser(pUser->GetUserName()) != NULL) { sErrorRet = "User already exists"; DEBUG("User [" << pUser->GetUserName() << "] - already exists"); return false; } if (!pUser->IsValid(sErrorRet)) { DEBUG("Invalid user [" << pUser->GetUserName() << "] - [" << sErrorRet << "]"); return false; } bool bFailed = false; GLOBALMODULECALL(OnAddUser(*pUser, sErrorRet), &bFailed); if (bFailed) { DEBUG("AddUser [" << pUser->GetUserName() << "] aborted by a module [" << sErrorRet << "]"); return false; } m_msUsers[pUser->GetUserName()] = pUser; return true; } CListener* CZNC::FindListener(u_short uPort, const CString& sBindHost, EAddrType eAddr) { vector::iterator it; for (it = m_vpListeners.begin(); it < m_vpListeners.end(); ++it) { if ((*it)->GetPort() != uPort) continue; if ((*it)->GetBindHost() != sBindHost) continue; if ((*it)->GetAddrType() != eAddr) continue; return *it; } return NULL; } bool CZNC::AddListener(const CString& sLine, CString& sError) { CString sName = sLine.Token(0); CString sValue = sLine.Token(1, true); EAddrType eAddr = ADDR_ALL; if (sName.Equals("Listen4") || sName.Equals("Listen") || sName.Equals("Listener4")) { eAddr = ADDR_IPV4ONLY; } if (sName.Equals("Listener6")) { eAddr = ADDR_IPV6ONLY; } CListener::EAcceptType eAccept = CListener::ACCEPT_ALL; if (sValue.TrimPrefix("irc_only ")) eAccept = CListener::ACCEPT_IRC; else if (sValue.TrimPrefix("web_only ")) eAccept = CListener::ACCEPT_HTTP; bool bSSL = false; CString sPort; CString sBindHost; if (ADDR_IPV4ONLY == eAddr) { sValue.Replace(":", " "); } if (sValue.find(" ") != CString::npos) { sBindHost = sValue.Token(0, false, " "); sPort = sValue.Token(1, true, " "); } else { sPort = sValue; } if (sPort.Left(1) == "+") { sPort.LeftChomp(); bSSL = true; } // No support for URIPrefix for old-style configs. CString sURIPrefix; unsigned short uPort = sPort.ToUShort(); return AddListener(uPort, sBindHost, sURIPrefix, bSSL, eAddr, eAccept, sError); } bool CZNC::AddListener(unsigned short uPort, const CString& sBindHost, const CString& sURIPrefixRaw, bool bSSL, EAddrType eAddr, CListener::EAcceptType eAccept, CString& sError) { CString sHostComment; if (!sBindHost.empty()) { sHostComment = " on host [" + sBindHost + "]"; } CString sIPV6Comment; switch (eAddr) { case ADDR_ALL: sIPV6Comment = ""; break; case ADDR_IPV4ONLY: sIPV6Comment = " using ipv4"; break; case ADDR_IPV6ONLY: sIPV6Comment = " using ipv6"; } CUtils::PrintAction("Binding to port [" + CString((bSSL) ? "+" : "") + CString(uPort) + "]" + sHostComment + sIPV6Comment); #ifndef HAVE_IPV6 if (ADDR_IPV6ONLY == eAddr) { sError = "IPV6 is not enabled"; CUtils::PrintStatus(false, sError); return false; } #endif #ifndef HAVE_LIBSSL if (bSSL) { sError = "SSL is not enabled"; CUtils::PrintStatus(false, sError); return false; } #else CString sPemFile = GetPemLocation(); if (bSSL && !CFile::Exists(sPemFile)) { sError = "Unable to locate pem file: [" + sPemFile + "]"; CUtils::PrintStatus(false, sError); // If stdin is e.g. /dev/null and we call GetBoolInput(), // we are stuck in an endless loop! if (isatty(0) && CUtils::GetBoolInput("Would you like to create a new pem file?", true)) { sError.clear(); WritePemFile(); } else { return false; } CUtils::PrintAction("Binding to port [+" + CString(uPort) + "]" + sHostComment + sIPV6Comment); } #endif if (!uPort) { sError = "Invalid port"; CUtils::PrintStatus(false, sError); return false; } // URIPrefix must start with a slash and end without one. CString sURIPrefix = CString(sURIPrefixRaw); if(!sURIPrefix.empty()) { if (!sURIPrefix.StartsWith("/")) { sURIPrefix = "/" + sURIPrefix; } if (sURIPrefix.EndsWith("/")) { sURIPrefix.TrimRight("/"); } } CListener* pListener = new CListener(uPort, sBindHost, sURIPrefix, bSSL, eAddr, eAccept); if (!pListener->Listen()) { sError = FormatBindError(); CUtils::PrintStatus(false, sError); delete pListener; return false; } m_vpListeners.push_back(pListener); CUtils::PrintStatus(true); return true; } bool CZNC::AddListener(CConfig* pConfig, CString& sError) { CString sBindHost; CString sURIPrefix; bool bSSL; bool b4; #ifdef HAVE_IPV6 bool b6 = true; #else bool b6 = false; #endif bool bIRC; bool bWeb; unsigned short uPort; if (!pConfig->FindUShortEntry("port", uPort)) { sError = "No port given"; CUtils::PrintError(sError); return false; } pConfig->FindStringEntry("host", sBindHost); pConfig->FindBoolEntry("ssl", bSSL, false); pConfig->FindBoolEntry("ipv4", b4, true); pConfig->FindBoolEntry("ipv6", b6, b6); pConfig->FindBoolEntry("allowirc", bIRC, true); pConfig->FindBoolEntry("allowweb", bWeb, true); pConfig->FindStringEntry("uriprefix", sURIPrefix); EAddrType eAddr; if (b4 && b6) { eAddr = ADDR_ALL; } else if (b4 && !b6) { eAddr = ADDR_IPV4ONLY; } else if (!b4 && b6) { eAddr = ADDR_IPV6ONLY; } else { sError = "No address family given"; CUtils::PrintError(sError); return false; } CListener::EAcceptType eAccept; if (bIRC && bWeb) { eAccept = CListener::ACCEPT_ALL; } else if (bIRC && !bWeb) { eAccept = CListener::ACCEPT_IRC; } else if (!bIRC && bWeb) { eAccept = CListener::ACCEPT_HTTP; } else { sError = "Either Web or IRC or both should be selected"; CUtils::PrintError(sError); return false; } return AddListener(uPort, sBindHost, sURIPrefix, bSSL, eAddr, eAccept, sError); } bool CZNC::AddListener(CListener* pListener) { if (!pListener->GetRealListener()) { // Listener doesnt actually listen delete pListener; return false; } // We don't check if there is an identical listener already listening // since one can't listen on e.g. the same port multiple times m_vpListeners.push_back(pListener); return true; } bool CZNC::DelListener(CListener* pListener) { vector::iterator it; for (it = m_vpListeners.begin(); it < m_vpListeners.end(); ++it) { if (*it == pListener) { m_vpListeners.erase(it); delete pListener; return true; } } return false; } static CZNC* s_pZNC = NULL; void CZNC::CreateInstance() { if (s_pZNC) abort(); s_pZNC = new CZNC(); } CZNC& CZNC::Get() { return *s_pZNC; } void CZNC::DestroyInstance() { delete s_pZNC; s_pZNC = NULL; } CZNC::TrafficStatsMap CZNC::GetTrafficStats(TrafficStatsPair &Users, TrafficStatsPair &ZNC, TrafficStatsPair &Total) { TrafficStatsMap ret; unsigned long long uiUsers_in, uiUsers_out, uiZNC_in, uiZNC_out; const map& msUsers = CZNC::Get().GetUserMap(); uiUsers_in = uiUsers_out = 0; uiZNC_in = BytesRead(); uiZNC_out = BytesWritten(); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { ret[it->first] = TrafficStatsPair(it->second->BytesRead(), it->second->BytesWritten()); uiUsers_in += it->second->BytesRead(); uiUsers_out += it->second->BytesWritten(); } for (CSockManager::const_iterator it = m_Manager.begin(); it != m_Manager.end(); ++it) { CUser *pUser = NULL; if ((*it)->GetSockName().Left(5) == "IRC::") { pUser = ((CIRCSock *) *it)->GetNetwork()->GetUser(); } else if ((*it)->GetSockName().Left(5) == "USR::") { pUser = ((CClient*) *it)->GetUser(); } if (pUser) { ret[pUser->GetUserName()].first += (*it)->GetBytesRead(); ret[pUser->GetUserName()].second += (*it)->GetBytesWritten(); uiUsers_in += (*it)->GetBytesRead(); uiUsers_out += (*it)->GetBytesWritten(); } else { uiZNC_in += (*it)->GetBytesRead(); uiZNC_out += (*it)->GetBytesWritten(); } } Users = TrafficStatsPair(uiUsers_in, uiUsers_out); ZNC = TrafficStatsPair(uiZNC_in, uiZNC_out); Total = TrafficStatsPair(uiUsers_in + uiZNC_in, uiUsers_out + uiZNC_out); return ret; } void CZNC::AuthUser(std::shared_ptr AuthClass) { // TODO unless the auth module calls it, CUser::IsHostAllowed() is not honoured bool bReturn = false; GLOBALMODULECALL(OnLoginAttempt(AuthClass), &bReturn); if (bReturn) return; CUser* pUser = FindUser(AuthClass->GetUsername()); if (!pUser || !pUser->CheckPass(AuthClass->GetPassword())) { AuthClass->RefuseLogin("Invalid Password"); return; } CString sHost = AuthClass->GetRemoteIP(); if (!pUser->IsHostAllowed(sHost)) { AuthClass->RefuseLogin("Your host [" + sHost + "] is not allowed"); return; } AuthClass->AcceptLogin(*pUser); } class CConnectQueueTimer : public CCron { public: CConnectQueueTimer(int iSecs) : CCron() { SetName("Connect users"); Start(iSecs); // Don't wait iSecs seconds for first timer run m_bRunOnNextCall = true; } virtual ~CConnectQueueTimer() { // This is only needed when ZNC shuts down: // CZNC::~CZNC() sets its CConnectQueueTimer pointer to NULL and // calls the manager's Cleanup() which destroys all sockets and // timers. If something calls CZNC::EnableConnectQueue() here // (e.g. because a CIRCSock is destroyed), the socket manager // deletes that timer almost immediately, but CZNC now got a // dangling pointer to this timer which can crash later on. // // Unlikely but possible ;) CZNC::Get().LeakConnectQueueTimer(this); } protected: virtual void RunJob() { list ConnectionQueue; list& RealConnectionQueue = CZNC::Get().GetConnectionQueue(); // Problem: If a network can't connect right now because e.g. it // is throttled, it will re-insert itself into the connection // queue. However, we must only give each network a single // chance during this timer run. // // Solution: We move the connection queue to our local list at // the beginning and work from that. ConnectionQueue.swap(RealConnectionQueue); while (!ConnectionQueue.empty()) { CIRCNetwork *pNetwork = ConnectionQueue.front(); ConnectionQueue.pop_front(); if (pNetwork->Connect()) { break; } } /* Now re-insert anything that is left in our local list into * the real connection queue. */ RealConnectionQueue.splice(RealConnectionQueue.begin(), ConnectionQueue); if (RealConnectionQueue.empty()) { DEBUG("ConnectQueueTimer done"); CZNC::Get().DisableConnectQueue(); } } }; void CZNC::SetConnectDelay(unsigned int i) { if (i < 1) { // Don't hammer server with our failed connects i = 1; } if (m_uiConnectDelay != i && m_pConnectQueueTimer != NULL) { m_pConnectQueueTimer->Start(i); } m_uiConnectDelay = i; } void CZNC::EnableConnectQueue() { if (!m_pConnectQueueTimer && !m_uiConnectPaused && !m_lpConnectQueue.empty()) { m_pConnectQueueTimer = new CConnectQueueTimer(m_uiConnectDelay); GetManager().AddCron(m_pConnectQueueTimer); } } void CZNC::DisableConnectQueue() { if (m_pConnectQueueTimer) { // This will kill the cron m_pConnectQueueTimer->Stop(); m_pConnectQueueTimer = NULL; } } void CZNC::PauseConnectQueue() { DEBUG("Connection queue paused"); m_uiConnectPaused++; if (m_pConnectQueueTimer) { m_pConnectQueueTimer->Pause(); } } void CZNC::ResumeConnectQueue() { DEBUG("Connection queue resumed"); m_uiConnectPaused--; EnableConnectQueue(); if (m_pConnectQueueTimer) { m_pConnectQueueTimer->UnPause(); } } void CZNC::AddNetworkToQueue(CIRCNetwork *pNetwork) { // Make sure we are not already in the queue for (list::const_iterator it = m_lpConnectQueue.begin(); it != m_lpConnectQueue.end(); ++it) { if (*it == pNetwork) { return; } } m_lpConnectQueue.push_back(pNetwork); EnableConnectQueue(); } void CZNC::LeakConnectQueueTimer(CConnectQueueTimer *pTimer) { if (m_pConnectQueueTimer == pTimer) m_pConnectQueueTimer = NULL; } bool CZNC::WaitForChildLock() { return m_pLockFile && m_pLockFile->ExLock(); } znc-1.6.3/src/User.cpp0000644000175000017500000011236412663147131014763 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include #include using std::vector; using std::set; class CUserTimer : public CCron { public: CUserTimer(CUser* pUser) : CCron() { m_pUser = pUser; SetName("CUserTimer::" + m_pUser->GetUserName()); Start(CIRCNetwork::PING_SLACK); } virtual ~CUserTimer() {} private: protected: virtual void RunJob() { const vector& vUserClients = m_pUser->GetUserClients(); for (size_t c = 0; c < vUserClients.size(); ++c) { CClient* pUserClient = vUserClients[c]; if (pUserClient->GetTimeSinceLastDataTransaction() >= CIRCNetwork::PING_FREQUENCY) { pUserClient->PutClient("PING :ZNC"); } } } CUser* m_pUser; }; CUser::CUser(const CString& sUserName) : m_sUserName(sUserName), m_sCleanUserName(MakeCleanUserName(sUserName)) { // set path that depends on the user name: m_sUserPath = CZNC::Get().GetUserPath() + "/" + m_sUserName; m_sTimezone = ""; m_sNick = m_sCleanUserName; m_sIdent = m_sCleanUserName; m_sRealName = sUserName; m_uBytesRead = 0; m_uBytesWritten = 0; m_pModules = new CModules; m_bMultiClients = true; m_eHashType = HASH_NONE; m_bDenyLoadMod = false; m_bAdmin= false; m_bDenySetBindHost= false; m_sStatusPrefix = "*"; m_uBufferCount = 50; m_uMaxJoinTries = 10; m_bAutoClearChanBuffer = true; m_bAutoClearQueryBuffer = true; m_uMaxQueryBuffers = 50; m_uMaxJoins = 0; m_bBeingDeleted = false; m_sTimestampFormat = "[%H:%M:%S]"; m_bAppendTimestamp = false; m_bPrependTimestamp = true; m_uMaxNetworks = 1; m_sClientEncoding = ""; m_pUserTimer = new CUserTimer(this); CZNC::Get().GetManager().AddCron(m_pUserTimer); } CUser::~CUser() { // Delete networks while (!m_vIRCNetworks.empty()) { delete *m_vIRCNetworks.begin(); } // Delete clients while (!m_vClients.empty()) { CZNC::Get().GetManager().DelSockByAddr(m_vClients[0]); } m_vClients.clear(); // Delete modules (unloads all modules!) delete m_pModules; m_pModules = NULL; CZNC::Get().GetManager().DelCronByAddr(m_pUserTimer); CZNC::Get().AddBytesRead(BytesRead()); CZNC::Get().AddBytesWritten(BytesWritten()); } template struct TOption { const char *name; void (CUser::*pSetter)(T); }; bool CUser::ParseConfig(CConfig* pConfig, CString& sError) { TOption StringOptions[] = { { "nick", &CUser::SetNick }, { "quitmsg", &CUser::SetQuitMsg }, { "altnick", &CUser::SetAltNick }, { "ident", &CUser::SetIdent }, { "realname", &CUser::SetRealName }, { "chanmodes", &CUser::SetDefaultChanModes }, { "bindhost", &CUser::SetBindHost }, { "vhost", &CUser::SetBindHost }, { "dccbindhost", &CUser::SetDCCBindHost }, { "dccvhost", &CUser::SetDCCBindHost }, { "timestampformat", &CUser::SetTimestampFormat }, { "skin", &CUser::SetSkinName }, { "clientencoding", &CUser::SetClientEncoding }, }; size_t numStringOptions = sizeof(StringOptions) / sizeof(StringOptions[0]); TOption UIntOptions[] = { { "jointries", &CUser::SetJoinTries }, { "maxnetworks", &CUser::SetMaxNetworks }, { "maxquerybuffers", &CUser::SetMaxQueryBuffers }, { "maxjoins", &CUser::SetMaxJoins }, }; size_t numUIntOptions = sizeof(UIntOptions) / sizeof(UIntOptions[0]); TOption BoolOptions[] = { { "keepbuffer", &CUser::SetKeepBuffer }, // XXX compatibility crap from pre-0.207 { "autoclearchanbuffer", &CUser::SetAutoClearChanBuffer }, { "autoclearquerybuffer", &CUser::SetAutoClearQueryBuffer }, { "multiclients", &CUser::SetMultiClients }, { "denyloadmod", &CUser::SetDenyLoadMod }, { "admin", &CUser::SetAdmin }, { "denysetbindhost", &CUser::SetDenySetBindHost }, { "denysetvhost", &CUser::SetDenySetBindHost }, { "appendtimestamp", &CUser::SetTimestampAppend }, { "prependtimestamp", &CUser::SetTimestampPrepend }, }; size_t numBoolOptions = sizeof(BoolOptions) / sizeof(BoolOptions[0]); for (size_t i = 0; i < numStringOptions; i++) { CString sValue; if (pConfig->FindStringEntry(StringOptions[i].name, sValue)) (this->*StringOptions[i].pSetter)(sValue); } for (size_t i = 0; i < numUIntOptions; i++) { CString sValue; if (pConfig->FindStringEntry(UIntOptions[i].name, sValue)) (this->*UIntOptions[i].pSetter)(sValue.ToUInt()); } for (size_t i = 0; i < numBoolOptions; i++) { CString sValue; if (pConfig->FindStringEntry(BoolOptions[i].name, sValue)) (this->*BoolOptions[i].pSetter)(sValue.ToBool()); } VCString vsList; VCString::const_iterator vit; pConfig->FindStringVector("allow", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { AddAllowedHost(*vit); } pConfig->FindStringVector("ctcpreply", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { const CString& sValue = *vit; AddCTCPReply(sValue.Token(0), sValue.Token(1, true)); } CString sValue; CString sDCCLookupValue; pConfig->FindStringEntry("dcclookupmethod", sDCCLookupValue); if (pConfig->FindStringEntry("bouncedccs", sValue)) { if (sValue.ToBool()) { CUtils::PrintAction("Loading Module [bouncedcc]"); CString sModRet; bool bModRet = GetModules().LoadModule("bouncedcc", "", CModInfo::UserModule, this, NULL, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { sError = sModRet; return false; } if (sDCCLookupValue.Equals("Client")) { GetModules().FindModule("bouncedcc")->SetNV("UseClientIP", "1"); } } } if (pConfig->FindStringEntry("buffer", sValue)) SetBufferCount(sValue.ToUInt(), true); if (pConfig->FindStringEntry("awaysuffix", sValue)) { CUtils::PrintMessage("WARNING: AwaySuffix has been deprecated, instead try -> LoadModule = awaynick %nick%_" + sValue); } if (pConfig->FindStringEntry("autocycle", sValue)) { if (sValue.Equals("true")) CUtils::PrintError("WARNING: AutoCycle has been removed, instead try -> LoadModule = autocycle"); } if (pConfig->FindStringEntry("keepnick", sValue)) { if (sValue.Equals("true")) CUtils::PrintError("WARNING: KeepNick has been deprecated, instead try -> LoadModule = keepnick"); } if (pConfig->FindStringEntry("statusprefix", sValue)) { if (!SetStatusPrefix(sValue)) { sError = "Invalid StatusPrefix [" + sValue + "] Must be 1-5 chars, no spaces."; CUtils::PrintError(sError); return false; } } if (pConfig->FindStringEntry("timezone", sValue)) { SetTimezone(sValue); } if (pConfig->FindStringEntry("timezoneoffset", sValue)) { if (fabs(sValue.ToDouble()) > 0.1) { CUtils::PrintError("WARNING: TimezoneOffset has been deprecated, now you can set your timezone by name"); } } if (pConfig->FindStringEntry("timestamp", sValue)) { if (!sValue.Trim_n().Equals("true")) { if (sValue.Trim_n().Equals("append")) { SetTimestampAppend(true); SetTimestampPrepend(false); } else if (sValue.Trim_n().Equals("prepend")) { SetTimestampAppend(false); SetTimestampPrepend(true); } else if (sValue.Trim_n().Equals("false")) { SetTimestampAppend(false); SetTimestampPrepend(false); } else { SetTimestampFormat(sValue); } } } pConfig->FindStringEntry("pass", sValue); // There are different formats for this available: // Pass = // Pass = - // Pass = plain# // Pass = # // Pass = ### // 'Salted hash' means hash of 'password' + 'salt' // Possible hashes are md5 and sha256 if (sValue.Right(1) == "-") { sValue.RightChomp(); sValue.Trim(); SetPass(sValue, CUser::HASH_MD5); } else { CString sMethod = sValue.Token(0, false, "#"); CString sPass = sValue.Token(1, true, "#"); if (sMethod == "md5" || sMethod == "sha256") { CUser::eHashType type = CUser::HASH_MD5; if (sMethod == "sha256") type = CUser::HASH_SHA256; CString sSalt = sPass.Token(1, false, "#"); sPass = sPass.Token(0, false, "#"); SetPass(sPass, type, sSalt); } else if (sMethod == "plain") { SetPass(sPass, CUser::HASH_NONE); } else { SetPass(sValue, CUser::HASH_NONE); } } CConfig::SubConfig subConf; CConfig::SubConfig::const_iterator subIt; pConfig->FindSubConfig("pass", subConf); if (!sValue.empty() && !subConf.empty()) { sError = "Password defined more than once"; CUtils::PrintError(sError); return false; } subIt = subConf.begin(); if (subIt != subConf.end()) { CConfig* pSubConf = subIt->second.m_pSubConfig; CString sHash; CString sMethod; CString sSalt; CUser::eHashType method; pSubConf->FindStringEntry("hash", sHash); pSubConf->FindStringEntry("method", sMethod); pSubConf->FindStringEntry("salt", sSalt); if (sMethod.empty() || sMethod.Equals("plain")) method = CUser::HASH_NONE; else if (sMethod.Equals("md5")) method = CUser::HASH_MD5; else if (sMethod.Equals("sha256")) method = CUser::HASH_SHA256; else { sError = "Invalid hash method"; CUtils::PrintError(sError); return false; } SetPass(sHash, method, sSalt); if (!pSubConf->empty()) { sError = "Unhandled lines in config!"; CUtils::PrintError(sError); CZNC::DumpConfig(pSubConf); return false; } ++subIt; } if (subIt != subConf.end()) { sError = "Password defined more than once"; CUtils::PrintError(sError); return false; } pConfig->FindSubConfig("network", subConf); for (subIt = subConf.begin(); subIt != subConf.end(); ++subIt) { const CString& sNetworkName = subIt->first; CUtils::PrintMessage("Loading network [" + sNetworkName + "]"); CIRCNetwork *pNetwork = FindNetwork(sNetworkName); if (!pNetwork) { pNetwork = new CIRCNetwork(this, sNetworkName); } if (!pNetwork->ParseConfig(subIt->second.m_pSubConfig, sError)) { return false; } } if (pConfig->FindStringVector("server", vsList, false) || pConfig->FindStringVector("chan", vsList, false) || pConfig->FindSubConfig("chan", subConf, false)) { CIRCNetwork *pNetwork = FindNetwork("default"); if (!pNetwork) { CString sErrorDummy; pNetwork = AddNetwork("default", sErrorDummy); } if (pNetwork) { CUtils::PrintMessage("NOTICE: Found deprecated config, upgrading to a network"); if (!pNetwork->ParseConfig(pConfig, sError, true)) { return false; } } } pConfig->FindStringVector("loadmodule", vsList); for (vit = vsList.begin(); vit != vsList.end(); ++vit) { sValue = *vit; CString sModName = sValue.Token(0); CString sNotice = "Loading user module [" + sModName + "]"; // XXX Legacy crap, added in ZNC 0.089 if (sModName == "discon_kick") { sNotice = "NOTICE: [discon_kick] was renamed, loading [disconkick] instead"; sModName = "disconkick"; } // XXX Legacy crap, added in ZNC 0.099 if (sModName == "fixfreenode") { sNotice = "NOTICE: [fixfreenode] doesn't do anything useful anymore, ignoring it"; continue; } // XXX Legacy crap, added in ZNC 0.207 if (sModName == "admin") { sNotice = "NOTICE: [admin] module was renamed, loading [controlpanel] instead"; sModName = "controlpanel"; } // XXX Legacy crap, should have been added ZNC 0.207, but added only in 1.1 :( if (sModName == "away") { sNotice = "NOTICE: [away] was renamed, loading [awaystore] instead"; sModName = "awaystore"; } // XXX Legacy crap, added in 1.1; fakeonline module was dropped in 1.0 and returned in 1.1 if (sModName == "fakeonline") { sNotice = "NOTICE: [fakeonline] was renamed, loading [modules_online] instead"; sModName = "modules_online"; } // XXX Legacy crap, added in 1.3 if (sModName == "charset") { CUtils::PrintAction("NOTICE: Charset support was moved to core, importing old charset module settings"); size_t uIndex = 1; if (sValue.Token(uIndex).Equals("-force")) { uIndex++; } VCString vsClient, vsServer; sValue.Token(uIndex).Split(",", vsClient); sValue.Token(uIndex + 1).Split(",", vsServer); if (vsClient.empty() || vsServer.empty()) { CUtils::PrintStatus(false, "charset module was loaded with wrong parameters."); continue; } SetClientEncoding(vsClient[0]); for (vector::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { (*it)->SetEncoding(vsServer[0]); } CUtils::PrintStatus(true, "Using [" + vsClient[0] + "] for clients, and [" + vsServer[0] + "] for servers"); continue; } CString sModRet; CString sArgs = sValue.Token(1, true); bool bModRet = LoadModule(sModName, sArgs, sNotice, sModRet); CUtils::PrintStatus(bModRet, sModRet); if (!bModRet) { // XXX The awaynick module was retired in 1.6 (still available as external module) if (sModName == "awaynick") { // load simple_away instead, unless it's already on the list if (std::find(vsList.begin(), vsList.end(), "simple_away") == vsList.end()) { sNotice = "Loading [simple_away] module instead"; sModName = "simple_away"; // not a fatal error if simple_away is not available LoadModule(sModName, sArgs, sNotice, sModRet); } } else { sError = sModRet; return false; } } continue; } // Move ircconnectenabled to the networks if (pConfig->FindStringEntry("ircconnectenabled", sValue)) { for (vector::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { (*it)->SetIRCConnectEnabled(sValue.ToBool()); } } return true; } CIRCNetwork* CUser::AddNetwork(const CString &sNetwork, CString& sErrorRet) { if (!CIRCNetwork::IsValidNetwork(sNetwork)) { sErrorRet = "Invalid network name. It should be alphanumeric. Not to be confused with server name"; return NULL; } else if (FindNetwork(sNetwork)) { sErrorRet = "Network [" + sNetwork.Token(0) + "] already exists"; return NULL; } CIRCNetwork* pNetwork = new CIRCNetwork(this, sNetwork); bool bCancel = false; USERMODULECALL(OnAddNetwork(*pNetwork, sErrorRet), this, NULL, &bCancel); if(bCancel) { RemoveNetwork(pNetwork); delete pNetwork; return NULL; } return pNetwork; } bool CUser::AddNetwork(CIRCNetwork *pNetwork) { if (FindNetwork(pNetwork->GetName())) { return false; } m_vIRCNetworks.push_back(pNetwork); return true; } void CUser::RemoveNetwork(CIRCNetwork *pNetwork) { for (vector::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { if (pNetwork == *it) { m_vIRCNetworks.erase(it); return; } } } bool CUser::DeleteNetwork(const CString& sNetwork) { CIRCNetwork *pNetwork = FindNetwork(sNetwork); if (pNetwork) { bool bCancel = false; USERMODULECALL(OnDeleteNetwork(*pNetwork), this, NULL, &bCancel); if (!bCancel) { delete pNetwork; return true; } } return false; } CIRCNetwork* CUser::FindNetwork(const CString& sNetwork) const { for (vector::const_iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { CIRCNetwork *pNetwork = *it; if (pNetwork->GetName().Equals(sNetwork)) { return pNetwork; } } return NULL; } const vector& CUser::GetNetworks() const { return m_vIRCNetworks; } CString CUser::ExpandString(const CString& sStr) const { CString sRet; return ExpandString(sStr, sRet); } CString& CUser::ExpandString(const CString& sStr, CString& sRet) const { CString sTime = CUtils::CTime(time(NULL), m_sTimezone); sRet = sStr; sRet.Replace("%user%", GetUserName()); sRet.Replace("%defnick%", GetNick()); sRet.Replace("%nick%", GetNick()); sRet.Replace("%altnick%", GetAltNick()); sRet.Replace("%ident%", GetIdent()); sRet.Replace("%realname%", GetRealName()); sRet.Replace("%vhost%", GetBindHost()); sRet.Replace("%bindhost%", GetBindHost()); sRet.Replace("%version%", CZNC::GetVersion()); sRet.Replace("%time%", sTime); sRet.Replace("%uptime%", CZNC::Get().GetUptime()); sRet.Replace("%znc%", CZNC::GetTag(false)); // The following lines do not exist. You must be on DrUgS! sRet.Replace("%irc%", "All your IRC are belong to ZNC"); // Chosen by fair zocchihedron dice roll by SilverLeo sRet.Replace("%rand%", "42"); return sRet; } CString CUser::AddTimestamp(const CString& sStr) const { time_t tm; return AddTimestamp(time(&tm), sStr); } CString CUser::AddTimestamp(time_t tm, const CString& sStr) const { CString sRet = sStr; if (!GetTimestampFormat().empty() && (m_bAppendTimestamp || m_bPrependTimestamp)) { CString sTimestamp = CUtils::FormatTime(tm, GetTimestampFormat(), m_sTimezone); if (sTimestamp.empty()) { return sRet; } if (m_bPrependTimestamp) { sRet = sTimestamp; sRet += " " + sStr; } if (m_bAppendTimestamp) { // From http://www.mirc.com/colors.html // The Control+O key combination in mIRC inserts ascii character 15, // which turns off all previous attributes, including color, bold, underline, and italics. // // \x02 bold // \x03 mIRC-compatible color // \x04 RRGGBB color // \x0F normal/reset (turn off bold, colors, etc.) // \x12 reverse (weechat) // \x16 reverse (mirc, kvirc) // \x1D italic // \x1F underline // Also see http://www.visualirc.net/tech-attrs.php // // Keep in sync with CIRCSocket::IcuExt__UCallback if (CString::npos != sRet.find_first_of("\x02\x03\x04\x0F\x12\x16\x1D\x1F")) { sRet += "\x0F"; } sRet += " " + sTimestamp; } } return sRet; } void CUser::BounceAllClients() { for (unsigned int a = 0; a < m_vClients.size(); a++) { m_vClients[a]->BouncedOff(); } m_vClients.clear(); } void CUser::UserConnected(CClient* pClient) { if (!MultiClients()) { BounceAllClients(); } pClient->PutClient(":irc.znc.in 001 " + pClient->GetNick() + " :- Welcome to ZNC -"); m_vClients.push_back(pClient); } void CUser::UserDisconnected(CClient* pClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if (m_vClients[a] == pClient) { m_vClients.erase(m_vClients.begin() + a); break; } } } void CUser::CloneNetworks(const CUser& User) { const vector& vNetworks = User.GetNetworks(); for (vector::const_iterator it = vNetworks.begin(); it != vNetworks.end(); ++it) { CIRCNetwork *pNetwork = FindNetwork((*it)->GetName()); if (pNetwork) { pNetwork->Clone(*(*it)); } else { new CIRCNetwork(this, *(*it)); } } set ssDeleteNetworks; for (vector::const_iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { if (!(User.FindNetwork((*it)->GetName()))) { ssDeleteNetworks.insert((*it)->GetName()); } } for (set::const_iterator it = ssDeleteNetworks.begin(); it != ssDeleteNetworks.end(); ++it) { // The following will move all the clients to the user. // So the clients are not disconnected. The client could // have requested the rehash. Then when we do // client->PutStatus("Rehashing succeeded!") we would // crash if there was no client anymore. const vector& vClients = FindNetwork(*it)->GetClients(); while (vClients.begin() != vClients.end()) { CClient *pClient = vClients.front(); // This line will remove pClient from vClients, // because it's a reference to the internal Network's vector. pClient->SetNetwork(NULL); } DeleteNetwork(*it); } } bool CUser::Clone(const CUser& User, CString& sErrorRet, bool bCloneNetworks) { unsigned int a = 0; sErrorRet.clear(); if (!User.IsValid(sErrorRet, true)) { return false; } // user names can only specified for the constructor, changing it later // on breaks too much stuff (e.g. lots of paths depend on the user name) if (GetUserName() != User.GetUserName()) { DEBUG("Ignoring username in CUser::Clone(), old username [" << GetUserName() << "]; New username [" << User.GetUserName() << "]"); } if (!User.GetPass().empty()) { SetPass(User.GetPass(), User.GetPassHashType(), User.GetPassSalt()); } SetNick(User.GetNick(false)); SetAltNick(User.GetAltNick(false)); SetIdent(User.GetIdent(false)); SetRealName(User.GetRealName()); SetStatusPrefix(User.GetStatusPrefix()); SetBindHost(User.GetBindHost()); SetDCCBindHost(User.GetDCCBindHost()); SetQuitMsg(User.GetQuitMsg()); SetSkinName(User.GetSkinName()); SetDefaultChanModes(User.GetDefaultChanModes()); SetBufferCount(User.GetBufferCount(), true); SetJoinTries(User.JoinTries()); SetMaxNetworks(User.MaxNetworks()); SetMaxQueryBuffers(User.MaxQueryBuffers()); SetMaxJoins(User.MaxJoins()); SetClientEncoding(User.GetClientEncoding()); // Allowed Hosts m_ssAllowedHosts.clear(); const set& ssHosts = User.GetAllowedHosts(); for (set::const_iterator it = ssHosts.begin(); it != ssHosts.end(); ++it) { AddAllowedHost(*it); } for (a = 0; a < m_vClients.size(); a++) { CClient* pSock = m_vClients[a]; if (!IsHostAllowed(pSock->GetRemoteIP())) { pSock->PutStatusNotice("You are being disconnected because your IP is no longer allowed to connect to this user"); pSock->Close(); } } // !Allowed Hosts // Networks if (bCloneNetworks) { CloneNetworks(User); } // !Networks // CTCP Replies m_mssCTCPReplies.clear(); const MCString& msReplies = User.GetCTCPReplies(); for (MCString::const_iterator it = msReplies.begin(); it != msReplies.end(); ++it) { AddCTCPReply(it->first, it->second); } // !CTCP Replies // Flags SetAutoClearChanBuffer(User.AutoClearChanBuffer()); SetAutoClearQueryBuffer(User.AutoClearQueryBuffer()); SetMultiClients(User.MultiClients()); SetDenyLoadMod(User.DenyLoadMod()); SetAdmin(User.IsAdmin()); SetDenySetBindHost(User.DenySetBindHost()); SetTimestampAppend(User.GetTimestampAppend()); SetTimestampPrepend(User.GetTimestampPrepend()); SetTimestampFormat(User.GetTimestampFormat()); SetTimezone(User.GetTimezone()); // !Flags // Modules set ssUnloadMods; CModules& vCurMods = GetModules(); const CModules& vNewMods = User.GetModules(); for (a = 0; a < vNewMods.size(); a++) { CString sModRet; CModule* pNewMod = vNewMods[a]; CModule* pCurMod = vCurMods.FindModule(pNewMod->GetModName()); if (!pCurMod) { vCurMods.LoadModule(pNewMod->GetModName(), pNewMod->GetArgs(), CModInfo::UserModule, this, NULL, sModRet); } else if (pNewMod->GetArgs() != pCurMod->GetArgs()) { vCurMods.ReloadModule(pNewMod->GetModName(), pNewMod->GetArgs(), this, NULL, sModRet); } } for (a = 0; a < vCurMods.size(); a++) { CModule* pCurMod = vCurMods[a]; CModule* pNewMod = vNewMods.FindModule(pCurMod->GetModName()); if (!pNewMod) { ssUnloadMods.insert(pCurMod->GetModName()); } } for (set::iterator it = ssUnloadMods.begin(); it != ssUnloadMods.end(); ++it) { vCurMods.UnloadModule(*it); } // !Modules return true; } const set& CUser::GetAllowedHosts() const { return m_ssAllowedHosts; } bool CUser::AddAllowedHost(const CString& sHostMask) { if (sHostMask.empty() || m_ssAllowedHosts.find(sHostMask) != m_ssAllowedHosts.end()) { return false; } m_ssAllowedHosts.insert(sHostMask); return true; } bool CUser::IsHostAllowed(const CString& sHostMask) const { if (m_ssAllowedHosts.empty()) { return true; } for (set::const_iterator a = m_ssAllowedHosts.begin(); a != m_ssAllowedHosts.end(); ++a) { if (sHostMask.WildCmp(*a)) { return true; } } return false; } const CString& CUser::GetTimestampFormat() const { return m_sTimestampFormat; } bool CUser::GetTimestampAppend() const { return m_bAppendTimestamp; } bool CUser::GetTimestampPrepend() const { return m_bPrependTimestamp; } bool CUser::IsValidUserName(const CString& sUserName) { // /^[a-zA-Z][a-zA-Z@._\-]*$/ const char* p = sUserName.c_str(); if (sUserName.empty()) { return false; } if ((*p < 'a' || *p > 'z') && (*p < 'A' || *p > 'Z')) { return false; } while (*p) { if (*p != '@' && *p != '.' && *p != '-' && *p != '_' && !isalnum(*p)) { return false; } p++; } return true; } bool CUser::IsValid(CString& sErrMsg, bool bSkipPass) const { sErrMsg.clear(); if (!bSkipPass && m_sPass.empty()) { sErrMsg = "Pass is empty"; return false; } if (m_sUserName.empty()) { sErrMsg = "Username is empty"; return false; } if (!CUser::IsValidUserName(m_sUserName)) { sErrMsg = "Username is invalid"; return false; } return true; } CConfig CUser::ToConfig() const { CConfig config; CConfig passConfig; CString sHash; switch (m_eHashType) { case HASH_NONE: sHash = "Plain"; break; case HASH_MD5: sHash = "MD5"; break; case HASH_SHA256: sHash = "SHA256"; break; } passConfig.AddKeyValuePair("Salt", m_sPassSalt); passConfig.AddKeyValuePair("Method", sHash); passConfig.AddKeyValuePair("Hash", GetPass()); config.AddSubConfig("Pass", "password", passConfig); config.AddKeyValuePair("Nick", GetNick()); config.AddKeyValuePair("AltNick", GetAltNick()); config.AddKeyValuePair("Ident", GetIdent()); config.AddKeyValuePair("RealName", GetRealName()); config.AddKeyValuePair("BindHost", GetBindHost()); config.AddKeyValuePair("DCCBindHost", GetDCCBindHost()); config.AddKeyValuePair("QuitMsg", GetQuitMsg()); if (CZNC::Get().GetStatusPrefix() != GetStatusPrefix()) config.AddKeyValuePair("StatusPrefix", GetStatusPrefix()); config.AddKeyValuePair("Skin", GetSkinName()); config.AddKeyValuePair("ChanModes", GetDefaultChanModes()); config.AddKeyValuePair("Buffer", CString(GetBufferCount())); config.AddKeyValuePair("AutoClearChanBuffer", CString(AutoClearChanBuffer())); config.AddKeyValuePair("AutoClearQueryBuffer", CString(AutoClearQueryBuffer())); config.AddKeyValuePair("MultiClients", CString(MultiClients())); config.AddKeyValuePair("DenyLoadMod", CString(DenyLoadMod())); config.AddKeyValuePair("Admin", CString(IsAdmin())); config.AddKeyValuePair("DenySetBindHost", CString(DenySetBindHost())); config.AddKeyValuePair("TimestampFormat", GetTimestampFormat()); config.AddKeyValuePair("AppendTimestamp", CString(GetTimestampAppend())); config.AddKeyValuePair("PrependTimestamp", CString(GetTimestampPrepend())); config.AddKeyValuePair("Timezone", m_sTimezone); config.AddKeyValuePair("JoinTries", CString(m_uMaxJoinTries)); config.AddKeyValuePair("MaxNetworks", CString(m_uMaxNetworks)); config.AddKeyValuePair("MaxQueryBuffers", CString(m_uMaxQueryBuffers)); config.AddKeyValuePair("MaxJoins", CString(m_uMaxJoins)); config.AddKeyValuePair("ClientEncoding", GetClientEncoding()); // Allow Hosts if (!m_ssAllowedHosts.empty()) { for (set::iterator it = m_ssAllowedHosts.begin(); it != m_ssAllowedHosts.end(); ++it) { config.AddKeyValuePair("Allow", *it); } } // CTCP Replies if (!m_mssCTCPReplies.empty()) { for (MCString::const_iterator itb = m_mssCTCPReplies.begin(); itb != m_mssCTCPReplies.end(); ++itb) { config.AddKeyValuePair("CTCPReply", itb->first.AsUpper() + " " + itb->second); } } // Modules const CModules& Mods = GetModules(); if (!Mods.empty()) { for (unsigned int a = 0; a < Mods.size(); a++) { CString sArgs = Mods[a]->GetArgs(); if (!sArgs.empty()) { sArgs = " " + sArgs; } config.AddKeyValuePair("LoadModule", Mods[a]->GetModName() + sArgs); } } // Networks for (unsigned int d = 0; d < m_vIRCNetworks.size(); d++) { CIRCNetwork *pNetwork = m_vIRCNetworks[d]; config.AddSubConfig("Network", pNetwork->GetName(), pNetwork->ToConfig()); } return config; } bool CUser::CheckPass(const CString& sPass) const { switch (m_eHashType) { case HASH_MD5: return m_sPass.Equals(CUtils::SaltedMD5Hash(sPass, m_sPassSalt)); case HASH_SHA256: return m_sPass.Equals(CUtils::SaltedSHA256Hash(sPass, m_sPassSalt)); case HASH_NONE: default: return (sPass == m_sPass); } } /*CClient* CUser::GetClient() { // Todo: optimize this by saving a pointer to the sock CSockManager& Manager = CZNC::Get().GetManager(); CString sSockName = "USR::" + m_sUserName; for (unsigned int a = 0; a < Manager.size(); a++) { Csock* pSock = Manager[a]; if (pSock->GetSockName().Equals(sSockName)) { if (!pSock->IsClosed()) { return (CClient*) pSock; } } } return (CClient*) CZNC::Get().GetManager().FindSockByName(sSockName); }*/ CString CUser::GetLocalDCCIP() const { if (!GetDCCBindHost().empty()) return GetDCCBindHost(); for (vector::const_iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { CIRCNetwork *pNetwork = *it; CIRCSock* pIRCSock = pNetwork->GetIRCSock(); if (pIRCSock) { return pIRCSock->GetLocalIP(); } } if (!GetAllClients().empty()) { return GetAllClients()[0]->GetLocalIP(); } return ""; } bool CUser::PutUser(const CString& sLine, CClient* pClient, CClient* pSkipClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) { m_vClients[a]->PutClient(sLine); if (pClient) { return true; } } } return (pClient == NULL); } bool CUser::PutAllUser(const CString& sLine, CClient* pClient, CClient* pSkipClient) { PutUser(sLine, pClient, pSkipClient); for (vector::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { CIRCNetwork* pNetwork = *it; if (pNetwork->PutUser(sLine, pClient, pSkipClient)) { return true; } } return (pClient == NULL); } bool CUser::PutStatus(const CString& sLine, CClient* pClient, CClient* pSkipClient) { vector vClients = GetAllClients(); for (unsigned int a = 0; a < vClients.size(); a++) { if ((!pClient || pClient == vClients[a]) && pSkipClient != vClients[a]) { vClients[a]->PutStatus(sLine); if (pClient) { return true; } } } return (pClient == NULL); } bool CUser::PutStatusNotice(const CString& sLine, CClient* pClient, CClient* pSkipClient) { vector vClients = GetAllClients(); for (unsigned int a = 0; a < vClients.size(); a++) { if ((!pClient || pClient == vClients[a]) && pSkipClient != vClients[a]) { vClients[a]->PutStatusNotice(sLine); if (pClient) { return true; } } } return (pClient == NULL); } bool CUser::PutModule(const CString& sModule, const CString& sLine, CClient* pClient, CClient* pSkipClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) { m_vClients[a]->PutModule(sModule, sLine); if (pClient) { return true; } } } return (pClient == NULL); } bool CUser::PutModNotice(const CString& sModule, const CString& sLine, CClient* pClient, CClient* pSkipClient) { for (unsigned int a = 0; a < m_vClients.size(); a++) { if ((!pClient || pClient == m_vClients[a]) && pSkipClient != m_vClients[a]) { m_vClients[a]->PutModNotice(sModule, sLine); if (pClient) { return true; } } } return (pClient == NULL); } CString CUser::MakeCleanUserName(const CString& sUserName) { return sUserName.Token(0, false, "@").Replace_n(".", ""); } bool CUser::IsUserAttached() const { if (!m_vClients.empty()) { return true; } for (vector::const_iterator i = m_vIRCNetworks.begin(); i != m_vIRCNetworks.end(); ++i) { if ((*i)->IsUserAttached()) { return true; } } return false; } bool CUser::LoadModule(const CString& sModName, const CString& sArgs, const CString& sNotice, CString& sError) { bool bModRet = true; CString sModRet; CModInfo ModInfo; if (!CZNC::Get().GetModules().GetModInfo(ModInfo, sModName, sModRet)) { sError = "Unable to find modinfo [" + sModName + "] [" + sModRet + "]"; return false; } CUtils::PrintAction(sNotice); if (!ModInfo.SupportsType(CModInfo::UserModule) && ModInfo.SupportsType(CModInfo::NetworkModule)) { CUtils::PrintMessage("NOTICE: Module [" + sModName + "] is a network module, loading module for all networks in user."); // Do they have old NV? CFile fNVFile = CFile(GetUserPath() + "/moddata/" + sModName + "/.registry"); for (vector::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) { // Check whether the network already has this module loaded (#954) if ((*it)->GetModules().FindModule(sModName)) { continue; } if (fNVFile.Exists()) { CString sNetworkModPath = (*it)->GetNetworkPath() + "/moddata/" + sModName; if (!CFile::Exists(sNetworkModPath)) { CDir::MakeDir(sNetworkModPath); } fNVFile.Copy(sNetworkModPath + "/.registry"); } bModRet = (*it)->GetModules().LoadModule(sModName, sArgs, CModInfo::NetworkModule, this, *it, sModRet); if (!bModRet) { break; } } } else { bModRet = GetModules().LoadModule(sModName, sArgs, CModInfo::UserModule, this, NULL, sModRet); } if (!bModRet) { sError = sModRet; } return bModRet; } // Setters void CUser::SetNick(const CString& s) { m_sNick = s; } void CUser::SetAltNick(const CString& s) { m_sAltNick = s; } void CUser::SetIdent(const CString& s) { m_sIdent = s; } void CUser::SetRealName(const CString& s) { m_sRealName = s; } void CUser::SetBindHost(const CString& s) { m_sBindHost = s; } void CUser::SetDCCBindHost(const CString& s) { m_sDCCBindHost = s; } void CUser::SetPass(const CString& s, eHashType eHash, const CString& sSalt) { m_sPass = s; m_eHashType = eHash; m_sPassSalt = sSalt; } void CUser::SetMultiClients(bool b) { m_bMultiClients = b; } void CUser::SetDenyLoadMod(bool b) { m_bDenyLoadMod = b; } void CUser::SetAdmin(bool b) { m_bAdmin = b; } void CUser::SetDenySetBindHost(bool b) { m_bDenySetBindHost = b; } void CUser::SetDefaultChanModes(const CString& s) { m_sDefaultChanModes = s; } void CUser::SetClientEncoding(const CString& s) { m_sClientEncoding = s; for (CClient* pClient : GetAllClients()) { pClient->SetEncoding(s); } } void CUser::SetQuitMsg(const CString& s) { m_sQuitMsg = s; } void CUser::SetAutoClearChanBuffer(bool b) { for (CIRCNetwork* pNetwork : m_vIRCNetworks) { for (CChan* pChan : pNetwork->GetChans()) { pChan->InheritAutoClearChanBuffer(b); } } m_bAutoClearChanBuffer = b; } void CUser::SetAutoClearQueryBuffer(bool b) { m_bAutoClearQueryBuffer = b; } bool CUser::SetBufferCount(unsigned int u, bool bForce) { if (!bForce && u > CZNC::Get().GetMaxBufferSize()) return false; for (CIRCNetwork* pNetwork : m_vIRCNetworks) { for (CChan* pChan : pNetwork->GetChans()) { pChan->InheritBufferCount(u, bForce); } } m_uBufferCount = u; return true; } bool CUser::AddCTCPReply(const CString& sCTCP, const CString& sReply) { // Reject CTCP requests containing spaces if (sCTCP.find_first_of(' ') != CString::npos) { return false; } // Reject empty CTCP requests if (sCTCP.empty()) { return false; } m_mssCTCPReplies[sCTCP.AsUpper()] = sReply; return true; } bool CUser::DelCTCPReply(const CString& sCTCP) { return m_mssCTCPReplies.erase(sCTCP.AsUpper()) > 0; } bool CUser::SetStatusPrefix(const CString& s) { if ((!s.empty()) && (s.length() < 6) && (s.find(' ') == CString::npos)) { m_sStatusPrefix = (s.empty()) ? "*" : s; return true; } return false; } // !Setters // Getters vector CUser::GetAllClients() const { vector vClients; for (unsigned int a = 0; a < m_vIRCNetworks.size(); a++) { for (unsigned int b = 0; b < m_vIRCNetworks[a]->GetClients().size(); b++) { vClients.push_back(m_vIRCNetworks[a]->GetClients()[b]); } } for (unsigned int a = 0; a < m_vClients.size(); a++) { vClients.push_back(m_vClients[a]); } return vClients; } const CString& CUser::GetUserName() const { return m_sUserName; } const CString& CUser::GetCleanUserName() const { return m_sCleanUserName; } const CString& CUser::GetNick(bool bAllowDefault) const { return (bAllowDefault && m_sNick.empty()) ? GetCleanUserName() : m_sNick; } const CString& CUser::GetAltNick(bool bAllowDefault) const { return (bAllowDefault && m_sAltNick.empty()) ? GetCleanUserName() : m_sAltNick; } const CString& CUser::GetIdent(bool bAllowDefault) const { return (bAllowDefault && m_sIdent.empty()) ? GetCleanUserName() : m_sIdent; } const CString& CUser::GetRealName() const { return m_sRealName.empty() ? m_sUserName : m_sRealName; } const CString& CUser::GetBindHost() const { return m_sBindHost; } const CString& CUser::GetDCCBindHost() const { return m_sDCCBindHost; } const CString& CUser::GetPass() const { return m_sPass; } CUser::eHashType CUser::GetPassHashType() const { return m_eHashType; } const CString& CUser::GetPassSalt() const { return m_sPassSalt; } bool CUser::DenyLoadMod() const { return m_bDenyLoadMod; } bool CUser::IsAdmin() const { return m_bAdmin; } bool CUser::DenySetBindHost() const { return m_bDenySetBindHost; } bool CUser::MultiClients() const { return m_bMultiClients; } const CString& CUser::GetStatusPrefix() const { return m_sStatusPrefix; } const CString& CUser::GetDefaultChanModes() const { return m_sDefaultChanModes; } const CString& CUser::GetClientEncoding() const { return m_sClientEncoding; } bool CUser::HasSpaceForNewNetwork() const { return GetNetworks().size() < MaxNetworks(); } CString CUser::GetQuitMsg() const { return (!m_sQuitMsg.Trim_n().empty()) ? m_sQuitMsg : "%znc%"; } const MCString& CUser::GetCTCPReplies() const { return m_mssCTCPReplies; } unsigned int CUser::GetBufferCount() const { return m_uBufferCount; } bool CUser::AutoClearChanBuffer() const { return m_bAutoClearChanBuffer; } bool CUser::AutoClearQueryBuffer() const { return m_bAutoClearQueryBuffer; } //CString CUser::GetSkinName() const { return (!m_sSkinName.empty()) ? m_sSkinName : CZNC::Get().GetSkinName(); } CString CUser::GetSkinName() const { return m_sSkinName; } const CString& CUser::GetUserPath() const { if (!CFile::Exists(m_sUserPath)) { CDir::MakeDir(m_sUserPath); } return m_sUserPath; } // !Getters znc-1.6.3/AUTHORS0000777000175000017500000000000012663147130014513 2NOTICEustar somebodysomebodyznc-1.6.3/configure.ac0000644000175000017500000004676112663147131015047 0ustar somebodysomebodydnl This redefines AC_PROG_CC to a version which errors out instead. This is dnl because all our tests should be done with the C++ compiler. This should dnl catch stuff which accidentally uses the C compiler. AC_DEFUN([AC_PROG_CC], [m4_errprint(__file__:__line__[: Something is trying to use the C compiler. Since this is a C++ project, this should not happen! ])m4_exit(1)]) dnl Needed for AC_PATH_PROGS_FEATURE_CHECK which was added in 2.62 AC_PREREQ([2.62]) dnl Keep the version number in sync with version.h! AC_INIT([znc], [1.6.3]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR([src/znc.cpp]) AC_LANG([C++]) AC_CONFIG_HEADERS([include/znc/zncconfig.h]) AH_TOP([#ifndef ZNCCONFIG_H #define ZNCCONFIG_H]) AH_BOTTOM([#endif /* ZNCCONFIG_H */]) AC_DEFUN([ZNC_AUTO_FAIL], [ # This looks better in the summary at the end $1="not found" if test "x$old_$1" != "xauto" ; then AC_MSG_ERROR([$2]) else AC_MSG_WARN([$3]) fi ]) # AC_PROG_CXX sets CXXFLAGS to "-O2 -g" if it is unset which we don't want CXXFLAGS="$CXXFLAGS " AC_PROG_CXX # "Optional" because we want custom error message AX_CXX_COMPILE_STDCXX_11([noext], [optional]) if test x"$HAVE_CXX11" != x1; then AC_MSG_ERROR([Upgrade your compiler. GCC 4.7+ and Clang 3.2+ are known to work.]) fi AC_PROG_INSTALL AC_PROG_GREP AC_PROG_SED AC_CANONICAL_HOST AC_SYS_LARGEFILE ZNC_VISIBILITY AC_PATH_PROG([GIT], [git]) appendLib () { if test "$LIBS" != ""; then LIBS="$LIBS $*" else LIBS=$* fi } appendCXX () { if test "$CXXFLAGS" != ""; then CXXFLAGS="$CXXFLAGS $*" else CXXFLAGS=$* fi } appendMod () { if test "$MODFLAGS" != ""; then MODFLAGS="$MODFLAGS $*" else MODFLAGS=$* fi } appendLD () { if test "$LDFLAGS" != ""; then LDFLAGS="$LDFLAGS $*" else LDFLAGS=$* fi } case "${host_os}" in freebsd*) # -D__GNU_LIBRARY__ makes this work on fbsd 4.11 appendCXX -I/usr/local/include -D__GNU_LIBRARY__ appendLib -L/usr/local/lib -lcompat appendMod -L/usr/local/lib ;; solaris*) appendLib -lsocket -lnsl -lresolv ISSUN=1 ;; cygwin) # We don't want to use -std=gnu++11 instead of -std=c++11, but among other things, -std=c++11 defines __STRICT_ANSI__ which makes cygwin not to compile: undefined references to strerror_r, to fdopen, to strcasecmp, etc (their declarations in system headers are between ifdef) appendCXX -U__STRICT_ANSI__ ISCYGWIN=1 ;; darwin*) ISDARWIN=1 ;; esac PKG_PROG_PKG_CONFIG() AC_ARG_WITH( [openssl], AS_HELP_STRING([--with-openssl=DIR], [openssl installation prefix]), [OPENSSL=$withval],) AC_ARG_ENABLE( [debug], AS_HELP_STRING([--enable-debug], [enable debugging]), [DEBUG="$enableval"], [DEBUG="no"]) AC_ARG_ENABLE( [ipv6], AS_HELP_STRING([--disable-ipv6], [disable ipv6 support]), [IPV6="$enableval"], [IPV6="yes"]) AC_ARG_ENABLE( [openssl], AS_HELP_STRING([--disable-openssl], [disable openssl]), [SSL="$enableval"], [SSL="auto"]) AC_ARG_ENABLE( [zlib], AS_HELP_STRING([--disable-zlib], [disable zlib]), [ZLIB="$enableval"], [ZLIB="auto"]) AC_ARG_ENABLE( [perl], AS_HELP_STRING([--enable-perl], [enable perl]), [PERL="$enableval"], [PERL="no"]) AC_ARG_ENABLE( [python], AS_HELP_STRING([--enable-python[[[=python3]]]], [enable python. By default python3.pc of pkg-config is used, but you can use another name, for example python-3.1]), [PYTHON="$enableval"], [PYTHON="no"]) AC_ARG_ENABLE( [swig], AS_HELP_STRING([--enable-swig], [Enable automatic generation of source files needed for modperl/modpython. This value is ignored if perl and python are disabled. Usually no need to enable it. ]), [USESWIG="$enableval"], [USESWIG="auto"]) AC_ARG_ENABLE( [cyrus], AS_HELP_STRING([--enable-cyrus], [enable cyrus]), [if test "$enableval" = "yes" ; then CYRUS=1; fi],) AC_ARG_ENABLE( [optimization], AS_HELP_STRING([--disable-optimization], [Disable some compiler optimizations to decrease memory usage while compiling]), [OPTIMIZE="$enableval"], [OPTIMIZE="yes"]) AC_ARG_ENABLE( [tdns], AS_HELP_STRING([--disable-tdns], [disable threads usage for DNS resolving]), [TDNS="$enableval"], [TDNS="auto"]) AC_ARG_ENABLE( [run-from-source], AS_HELP_STRING([--enable-run-from-source], [ZNC will be runnable without installation]), [if test "x$enableval" = "xyes" ; then AC_DEFINE([RUN_FROM_SOURCE], [1], [Define if ZNC should be runnable without installation]) fi RUNFROMSOURCE="$enableval"], [RUNFROMSOURCE="no"]) AC_ARG_ENABLE( [poll], AS_HELP_STRING([--disable-poll], [use select() instead of poll()]), [POLL="$enableval"], [POLL="yes"]) AC_ARG_WITH( [gtest], AS_HELP_STRING([--with-gtest=DIR], [Path to directory with src/gtest-all.cc and src/gtest_main.cc files. If not specified, "make test" will download gtest tarball and use it.])) AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), [ if test x"$with_systemdsystemunitdir" = xyes; then with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) fi ]) if test "x$with_gtest" != xno; then AC_SUBST([GTEST_DIR], [$with_gtest]) fi if test "x$with_systemdsystemunitdir" != xno; then AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir]) fi AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ]) # In old times needed to define _FORTIFY_SOURCE to 2 ourself. # Then GCC started to define it itself to 2. It was ok. # But then GCC 4.7 started to define it to 0 or 2 depending on optimization level, and it started to conflict with our define. AC_MSG_CHECKING([whether compiler predefines _FORTIFY_SOURCE]) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ ]], [[ #ifndef _FORTIFY_SOURCE #error "Just checking, nothing fatal here" #endif ]]) ], [ AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) appendCXX "-D_FORTIFY_SOURCE=2" ]) if test "$DEBUG" != "no"; then appendCXX -ggdb3 AC_DEFINE([_DEBUG], [1], [Define for debugging]) if test "x$ISCYGWIN" != x1; then # These enable some debug options in g++'s STL, e.g. invalid use of iterators # But they cause crashes on cygwin while loading modules AC_DEFINE([_GLIBCXX_DEBUG], [1], [Enable extra debugging checks in libstdc++]) AC_DEFINE([_GLIBCXX_DEBUG_PEDANTIC], [1], [Enable extra debugging checks in libstdc++]) fi else if test "x$OPTIMIZE" = "xyes"; then appendCXX -O2 fi fi if test "$IPV6" != "no"; then AC_DEFINE([HAVE_IPV6], [1], [Define if IPv6 support is enabled]) fi if test "x$GXX" = "xyes"; then appendCXX -Wall -W -Wno-unused-parameter -Woverloaded-virtual -Wshadow fi if test "$POLL" = "yes"; then # poll() is broken on Mac OS, it fails with POLLNVAL for pipe()s. if test -n "$ISDARWIN" then # Did they give us --enable-poll? if test -n "$enable_poll" then # Yes, they asked for this. AC_MSG_WARN([poll() is known to be broken on Mac OS X. You have been warned.]) else # No, our default value of "yes" got applied. AC_MSG_WARN([poll() is known to be broken on Mac OS X. Using select() instead.]) AC_MSG_WARN([Use --enable-poll for forcing poll() to be used.]) POLL=no fi fi if test "$POLL" = "yes"; then AC_DEFINE([CSOCK_USE_POLL], [1], [Use poll() instead of select()]) fi fi AC_CHECK_LIB( gnugetopt, getopt_long,) AC_CHECK_FUNCS([lstat getopt_long getpassphrase]) # ----- Check for dlopen AC_SEARCH_LIBS([dlopen], [dl], [], [AC_MSG_ERROR([Could not find dlopen. ZNC will not work on this box until you upgrade this ancient system or at least install the necessary system libraries.])]) # ----- Check for pthreads DNS_TEXT=blocking if test "x$TDNS" != "xno"; then old_TDNS=$TDNS AX_PTHREAD([ AC_DEFINE([HAVE_PTHREAD], [1], [Define if you have POSIX threads libraries and header files.]) appendCXX "$PTHREAD_CFLAGS" appendLib "$PTHREAD_LIBS" AC_MSG_CHECKING([whether getaddrinfo() supports AI_ADDRCONFIG]) AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ #include #include #include ]], [[ int x = AI_ADDRCONFIG; (void) x; ]]) ], [ AC_MSG_RESULT([yes]) TDNS=yes ], [ AC_MSG_RESULT([no]) TDNS=no # Note that broken systems, such as OpenBSD, NetBSD, which don't support AI_ADDRCONFIG, # also have thread-unsafe getaddrinfo(). ]) ], [ TDNS=no ]) if test "x$TDNS" = "xyes"; then DNS_TEXT=threads AC_DEFINE([HAVE_THREADED_DNS], [1], [Define if threaded DNS is enabled]) else ZNC_AUTO_FAIL([TDNS], [support for threaded DNS not found. Try --disable-tdns. Disabling it may result in a slight performance decrease but will not have any other side-effects], [support for threaded DNS not found, so DNS resolving will be blocking]) fi fi # ----- Check for openssl SSL_TEXT="$SSL" if test "x$SSL" != "xno"; then if test -n "$OPENSSL"; then appendLib -L${OPENSSL}/lib appendLib -L${OPENSSL}/lib64 appendCXX -I${OPENSSL}/include PKG_CONFIG_PATH="$OPENSSL/lib/pkgconfig/:$OPENSSL/lib64/pkgconfig/:$PKG_CONFIG_PATH" fi old_SSL=$SSL PKG_CHECK_MODULES([openssl], [openssl], [ appendLib "$openssl_LIBS" appendCXX "$openssl_CFLAGS" ], [ # Don't reorder this! # On some arches libssl depends on libcrypto without linking to it :( AC_CHECK_LIB( crypto, BIO_new,, SSL=no ; SSL_TEXT="no (libcrypt not found)" ) AC_CHECK_LIB( ssl, SSL_shutdown,, SSL=no ; SSL_TEXT="no (libssl not found)" ) ]) if test "x$SSL" != "xno"; then AC_MSG_CHECKING([whether openssl is usable]) AC_LINK_IFELSE([ AC_LANG_PROGRAM([[ #include ]], [[ SSL_CTX* ctx = SSL_CTX_new(TLSv1_method()); SSL* ssl = SSL_new(ctx); DH* dh = DH_new(); DH_free(dh); SSL_free(ssl); SSL_CTX_free(ctx); ]]) ], [ AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) SSL=no SSL_TEXT="no (openssl not usable)" ]) fi if test "x$SSL" = "xno" ; then ZNC_AUTO_FAIL([SSL], [OpenSSL not found. Try --disable-openssl.], [OpenSSL was not found and thus disabled]) NOSSL=1 else AC_DEFINE([HAVE_LIBSSL], [1], [Define if openssl is enabled]) SSL=yes SSL_TEXT=yes fi else NOSSL=1 SSL_TEXT="no (explicitly disabled)" fi # ----- Check for zlib old_ZLIB="$ZLIB" ZLIB_TEXT="$ZLIB" if test "x$ZLIB" != "xno"; then AC_MSG_CHECKING([whether zlib is usable]) my_saved_LIBS="$LIBS" appendLib "-lz" AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #include "zlib.h" ]], [[ z_stream zs; (void) deflateInit2(&zs, 0, 0, 0, 0, 0); (void) deflate(&zs, 0); ]]) ], [ AC_MSG_RESULT([yes]) ZLIB=yes ZLIB_TEXT=yes ], [ AC_MSG_RESULT([no]) ZLIB=no ZLIB_TEXT="no (libz not found)" ]) if test "x$ZLIB" = "xno"; then ZNC_AUTO_FAIL([ZLIB], [zlib was not found. Try --disable-zlib], [zlib was not found and thus disabled]) LIBS="$my_saved_LIBS" else AC_DEFINE([HAVE_ZLIB], [1], [Define if zlib is available]) fi fi AC_ARG_ENABLE( [charset], AS_HELP_STRING([--disable-charset], [disable ICU support]), [HAVE_ICU="$enableval"], [HAVE_ICU="auto"]) if test "x$HAVE_ICU" != "xno" then old_HAVE_ICU="$HAVE_ICU" PKG_CHECK_MODULES([icu], [icu-uc], [ appendLib "$icu_LIBS" appendCXX "$icu_CFLAGS" HAVE_ICU=yes AC_DEFINE([HAVE_ICU], [1], [Enable ICU library for Unicode handling]) AC_DEFINE([U_USING_ICU_NAMESPACE], [0], [Do not clutter global namespace with ICU C++ stuff]) ], [ ZNC_AUTO_FAIL([HAVE_ICU], [support for charset conversion not found. Try --disable-charset.], [support for charset conversion not found and thus disabled]) HAVE_ICU="no (icu-uc not found via pkg-config)" ]) fi AC_ARG_WITH( [module-prefix], AS_HELP_STRING([--with-module-prefix], [module object code [LIBDIR/znc]]), [MODDIR=$withval], [MODDIR="${libdir}/znc"] ) AC_ARG_WITH( [module-data-prefix], AS_HELP_STRING([--with-module-data-prefix=DIR], [static module data (webadmin skins) [DATADIR/znc]]), [DATADIR=$withval], [DATADIR="${datadir}/znc"] ) appendMod "$CXXFLAGS" appendMod "$CFLAG_VISIBILITY" if test -z "$ISSUN" -a -z "$ISDARWIN" -a -z "$ISCYGWIN"; then # This is an unknown compiler flag on some OS appendLD -Wl,--export-dynamic fi if test -z "$ISCYGWIN" ; then # cygwin doesn't need -fPIC, everything else does (for modules) # warning: -fPIC ignored for target (all code is position independent) appendMod -fPIC else # But cygwin does want most of ZNC in a shared lib LIBZNC="libznc.dll" LIBZNCDIR="$bindir" fi if test -z "$ISDARWIN"; then MODLINK="-shared" else # Mac OS X differentiates between shared libs (-dynamiclib) # and loadable modules (-bundle). MODLINK="-bundle -flat_namespace -undefined suppress" # TODO test if -twolevel_namespace and/or # -undefined dynamic_lookup work # (dynamic_lookup might only work on 10.4 and later) fi if test "x$PERL" != xno -o "x$PYTHON" != xno; then old_USESWIG="$USESWIG" if test "x$USESWIG" != "xno"; then AC_PROG_SWIG([3.0.0]) test -z "$SWIG" && USESWIG=no if test "x$USESWIG" = xno -a "x$old_USESWIG" = yes; then AC_MSG_ERROR([Could not found appropriate SWIG installation. Check config.log for details.]) fi fi if test -r "$srcdir/modules/modperl/ZNC.cpp" -a -r "$srcdir/modules/modpython/_znc_core.cpp"; then AC_MSG_NOTICE([modperl/modpython files are found, disabling SWIG]) USESWIG=no fi if test "x$USESWIG" = xno; then if test ! -r "$srcdir/modules/modperl/ZNC.cpp" -o ! -r "$srcdir/modules/modpython/_znc_core.cpp"; then AC_MSG_ERROR([Can not build modperl/modpython. Either install SWIG, or build ZNC from a tarball, or disable modperl/modpython. Check config.log for details.]) else AC_MSG_NOTICE([modperl/modpython files are found, no SWIG needed]) fi USESWIG="not needed" SWIG="" else USESWIG=yes fi else if test "x$USESWIG" = "xyes"; then AC_MSG_WARN([swig is used only for perl and python, but both are disabled. Disabling swig.]) fi USESWIG='not needed' fi PERL_TEXT="$PERL" if test "x$PERL" != "xno"; then old_PERL="$PERL" AC_PATH_PROG([PERL_BINARY], [perl], []) if test -n "$PERL_BINARY" && eval "$PERL_BINARY -e'use 5.010'"; then my_saved_LDFLAGS="$LDFLAGS" appendLD `$PERL_BINARY -MExtUtils::Embed -e ccopts -e ldopts` AC_CHECK_LIB(perl, perl_alloc, [: No, we do not want autoconf to do sth automatically], PERL="no" ; PERL_TEXT="no (libperl not found)") LDFLAGS="$my_saved_LDFLAGS" else PERL="no" PERL_TEXT="no (perl binary not found or too old)" fi if test "x$PERL" = "xno"; then ZNC_AUTO_FAIL([PERL], [perl not found. Try --disable-perl.], [perl was not found and thus disabled]) PERL_BINARY="" else PERL="yes" PERL_TEXT="yes" fi fi PYTHON_TEXT="$PYTHON" if test "x$PYTHON" != "xno"; then # Default value for just --enable-python if test "x$PYTHON" = "xyes"; then PYTHON="python3" fi old_PYTHON="$PYTHON" if test -z "$PKG_CONFIG"; then AC_MSG_ERROR([pkg-config is required for modpython.]) fi PKG_CHECK_MODULES([python], [$PYTHON >= 3.0],, AC_MSG_ERROR([$PYTHON.pc not found or is wrong. Try --disable-python or install python3.])) my_saved_LIBS="$LIBS" my_saved_CXXFLAGS="$CXXFLAGS" appendLib $python_LIBS appendCXX $python_CFLAGS AC_CHECK_FUNC([Py_Initialize], [], [PYTHON="no" ; PYTHON_TEXT="no (libpython not found)"]) if test "x$PYTHON" != "xno"; then # Yes, modpython depends on perl. AC_PATH_PROG([PERL_BINARY], [perl]) if test -z "$PERL_BINARY"; then AC_MSG_ERROR([To compile modpython you need to be able to execute perl scripts. Try --disable-python or install perl.]) fi LIBS="$my_saved_LIBS" CXXFLAGS="$my_saved_CXXFLAGS" fi if test "x$PYTHON" = "xno"; then ZNC_AUTO_FAIL([PYTHON], [python not found. Try --disable-python.], [python was not found and thus disabled]) PYTHONCFG_BINARY="" else PYTHON="yes" PYTHON_TEXT="yes" fi fi if test -n "$CYRUS"; then AC_CHECK_LIB( sasl2, sasl_server_init, [: Dont let autoconf add -lsasl2, Makefile handles that], AC_MSG_ERROR([could not find libsasl2. Try --disable-cyrus.])) fi # Check if we want modtcl AC_ARG_ENABLE( [tcl], AS_HELP_STRING([--enable-tcl], [enable modtcl]), [TCL="$enableval"], [TCL="no"]) AC_ARG_WITH( [tcl-flags], AS_HELP_STRING([--with-tcl-flags=FLAGS], [The flags needed for compiling and linking modtcl]), [TCL_FLAGS="$withval"],) if test x"$TCL" = "xyes" then AC_ARG_WITH( [tcl], AS_HELP_STRING([--with-tcl=DIR], [directory containing tclConfig.sh]), TCL_DIR="${withval}") # This will need to be extended in the future, but I don't think # it's a good idea to stuff a shitload of random stuff in here right now for path in $TCL_DIR /usr/lib /usr/lib/tcl8.4 /usr/lib/tcl8.5 do file="${path}/tclConfig.sh" AC_MSG_CHECKING([for ${file}]) if test -r ${file} then TCL_CONF=${file} AC_MSG_RESULT([yes]) break fi AC_MSG_RESULT([no]) done if test x"${TCL_CONF}" = x then # They --enable-tcl'd, so give them some sane default TCL_FLAGS="-I/usr/include/tcl -ltcl" AC_MSG_WARN([Could not find tclConfig.sh, using some sane defaults.]) else AC_MSG_CHECKING([modtcl flags]) . ${TCL_CONF} # eval because those vars depend on other vars in there eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" eval "TCL_INCLUDE_SPEC=\"${TCL_INCLUDE_SPEC}\"" TCL_FLAGS="$TCL_INCLUDE_SPEC $TCL_LIB_SPEC" AC_MSG_RESULT([$TCL_FLAGS]) fi my_saved_LIBS="$LIBS" appendLib "$TCL_FLAGS" AC_CHECK_FUNC([Tcl_CreateInterp], [TCL_TEST=yes], [TCL_TEST=no]) if test x"$TCL_TEST" = "xno"; then AC_MSG_ERROR([tcl not found, try --disable-tcl, or install tcl properly. If tcl is installed to a non-standard path, use --enable-tcl --with-tcl=/path]) fi LIBS="$my_saved_LIBS" fi AC_CACHE_CHECK([for GNU make], [ac_cv_path_GNUMAKE], [ AC_PATH_PROGS_FEATURE_CHECK([GNUMAKE], [make gmake], [[ if $ac_path_GNUMAKE --version | $GREP GNU > /dev/null; then ac_cv_path_GNUMAKE=$ac_path_GNUMAKE ac_path_GNUMAKE_found=: fi ]], [AC_MSG_ERROR([could not find GNU make])] ) ]) GNUMAKE_DIRNAME=`AS_DIRNAME(["$ac_cv_path_GNUMAKE"])` GNUMAKE=`echo $ac_cv_path_GNUMAKE | $SED "s%$GNUMAKE_DIRNAME/%%"` # this is in the end, for not trying to include it when it doesn't exist yet appendCXX "-include znc/zncconfig.h" appendMod "-include znc/zncconfig.h" AC_SUBST([CXXFLAGS]) AC_SUBST([CPPFLAGS]) AC_SUBST([MODFLAGS]) AC_SUBST([LDFLAGS]) AC_SUBST([LIBS]) AC_SUBST([LIBZNC]) AC_SUBST([LIBZNCDIR]) AC_SUBST([ISCYGWIN]) AC_SUBST([MODLINK]) AC_SUBST([NOSSL]) AC_SUBST([TCL_FLAGS]) AC_SUBST([CYRUS]) AC_SUBST([MODDIR]) AC_SUBST([DATADIR]) AC_SUBST([PERL]) AC_SUBST([PYTHON]) AC_SUBST([SWIG]) AC_SUBST([python_CFLAGS]) AC_SUBST([python_LIBS]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([znc-buildmod]) AC_CONFIG_FILES([man/Makefile]) AC_CONFIG_FILES([znc.pc]) AC_CONFIG_FILES([znc-uninstalled.pc]) AC_CONFIG_FILES([modules/Makefile]) AC_OUTPUT if test "x$ISCYGWIN" = x1; then # Side effect of undefining __STRICT_ANSI__ # http://llvm.org/bugs/show_bug.cgi?id=13530 echo >> include/znc/zncconfig.h echo '#ifndef ZNCCONFIG_H_ADDITIONS' >> include/znc/zncconfig.h echo '#define ZNCCONFIG_H_ADDITIONS' >> include/znc/zncconfig.h echo '#ifdef __clang__' >> include/znc/zncconfig.h echo 'struct __float128;' >> include/znc/zncconfig.h echo '#endif' >> include/znc/zncconfig.h echo '#endif' >> include/znc/zncconfig.h fi echo echo ZNC AC_PACKAGE_VERSION configured echo echo "prefix: $prefix" echo "debug: $DEBUG" echo "ipv6: $IPV6" echo "openssl: $SSL_TEXT" echo "dns: $DNS_TEXT" echo "perl: $PERL_TEXT" echo "python: $PYTHON_TEXT" echo "swig: $USESWIG" if test x"$CYRUS" = "x" ; then echo "cyrus: no" else echo "cyrus: yes" fi if test x"$TCL_FLAGS" = "x" ; then echo "tcl: no" else echo "tcl: yes" fi echo "charset: $HAVE_ICU" echo "zlib: $ZLIB_TEXT" echo "run from src: $RUNFROMSOURCE" echo echo "Now you can run \"$GNUMAKE\" to compile ZNC" znc-1.6.3/NOTICE0000644000175000017500000000472212663147131013454 0ustar somebodysomebodyZNC === ZNC includes code from Csocket (https://github.com/jimloco/Csocket), licensed by Sleepycat-alike License. ZNC includes code generated by SWIG (http://www.swig.org), not governed by SWIG's license. ZNC includes code of autoconf macro AX_CXX_COMPILE_STDCXX_11, its permissive license is inside the file. ZNC includes modified code of autoconf macro AX_PTHREAD, licensed by GPLv3+. ZNC includes modified code of autoconf macro AC_PROG_SWIG, licensed by GPLv2+ with Autoconf Exception. ZNC includes modified code of autoconf macro AM_ICONV, licensed by FSF Unlimited License. ZNC includes modified code of autoconf macro gl_VISIBILITY, licensed by FSF Unlimited License. ZNC includes modified code of MD5 implementation by Christophe Devine, licensed by GPLv2+. ZNC includes resized External Wikipedia icon (https://commons.wikimedia.org/wiki/File:External.svg), licensed by public domain license. ZNC includes modified code for SSL verification by Alban Diquet (https://github.com/iSECPartners/ssl-conservatory/) and Daniel Stenberg (https://github.com/bagder/curl/blob/master/lib/), licensed by MIT. ZNC includes code from jQuery, licensed by MIT. ZNC is developed by these people: Prozac Jim Hull Uli Schlachter SilverLeo kroimon flakes Alexey "DarthGandalf" Sokolov Kyle Fuller These people, in no particular order, have helped develop ZNC, for example by sending in patches, writing new modules or finding significant bugs: Kuja - runs and pays for znc.in derblubber toby Zack3000 d4n13L - graphiX webadmin skin Veit "Cru" Wahlich crox Freman (http://fremnet.net/contact) Sebastian Ramacher cnu - master of destruction (security issues) Ingmar "KiNgMaR" Runge Michael "Svedrin" Ziegler Robert Lacroix (http://www.robertlacroix.com) Martin "Nirjen" Martimeo Reed Loden Brian Campbell (bcampbell@splafinga.com) Joshua M. Clulow (http://sysmgr.org) evaryont Michael "adgar" Edgar Jens-Andre "vain" Koch Heiko Hund - cyrusauth module Philippe (http://sourceforge.net/users/cycomate) - kickrejoin module J-P Nurmi If you did something useful and want to be listed here too, add yourself and submit the patch. znc-1.6.3/config.sub0000755000175000017500000010702212663147133014532 0ustar somebodysomebody#! /bin/sh # Configuration validation subroutine script. # Copyright 1992-2015 Free Software Foundation, Inc. timestamp='2015-07-28' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # Please send patches to . # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright 1992-2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arceb \ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | avr | avr32 \ | ba \ | be32 | be64 \ | bfin \ | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx | dvp \ | e2k | epiphany \ | fido | fr30 | frv | ft32 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | k1om \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa32r6 | mipsisa32r6el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64r6 | mipsisa64r6el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ | open8 | or1k | or1knd | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | riscv32 | riscv64 \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | visium \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; leon|leon[3-9]) basic_machine=sparc-$basic_machine ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | ba-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | e2k-* | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | k1om-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r6-* | mipsisa32r6el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64r6-* | mipsisa64r6el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | or1k*-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | riscv32-* | riscv64-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | visium-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; asmjs) basic_machine=asmjs-unknown ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; leon-*|leon[3-9]-*) basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze*) basic_machine=microblaze-xilinx ;; mingw64) basic_machine=x86_64-pc os=-mingw64 ;; mingw32) basic_machine=i686-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mipsEE* | ee | ps2) basic_machine=mips64r5900el-scei case $os in -linux*) ;; *) os=-elf ;; esac ;; iop) basic_machine=mipsel-scei os=-irx ;; dvp) basic_machine=dvp-scei os=-elf ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; moxiebox) basic_machine=moxie-unknown os=-moxiebox ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i686-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos | rdos64) basic_machine=x86_64-pc os=-rdos ;; rdos32) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* | -cloudabi* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; c8051-*) os=-elf ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: znc-1.6.3/znc.pc.in0000644000175000017500000000074312663147131014272 0ustar somebodysomebody# You can access these with e.g. pkg-config --variable=moddir znc prefix=@prefix@ exec_prefix=@exec_prefix@ datarootdir=@datarootdir@ bindir=@bindir@ datadir=@datadir@ includedir=@includedir@ cxx=@CXX@ CPPFLAGS=@CPPFLAGS@ MODFLAGS=@MODFLAGS@ version=@PACKAGE_VERSION@ moddir=@MODDIR@ moddatadir=@DATADIR@ modlink=@MODLINK@ INC_PATH=-I${includedir}/znc Name: ZNC Description: An advanced IRC proxy Version: ${version} URL: http://znc.in Cflags: ${CPPFLAGS} ${MODFLAGS} ${INC_PATH} znc-1.6.3/znc.service0000644000175000017500000000023112663147131014713 0ustar somebodysomebody[Unit] Description=ZNC, an advanced IRC bouncer After=network.target [Service] ExecStart=/usr/bin/znc -f User=znc [Install] WantedBy=multi-user.target znc-1.6.3/README.md0000644000175000017500000001115312663147131014023 0ustar somebodysomebody#[![ZNC](http://wiki.znc.in/skins/common/images/wiki.png)](http://znc.in) - An advanced IRC bouncer ## Table of contents - Minimal Requirements - Optional Requirements - Installing ZNC - Setting up znc.conf - Special config options - Using ZNC - File Locations - ZNC's config file - Writing own modules - Further infos ## Minimal Requirements Core: - GNU make (try gmake if make fails) - GCC 4 or later ## Optional Requirements SSL support: - openssl 0.9.7d or later (try installing openssl-dev, openssl-devel or libssl-dev) modperl: - This needs perl and its bundled libperl modpython: - This needs perl(!) and python's bundled libpython cyrusauth: - This module needs cyrus-sasl2 ## Installing ZNC If you are building from git, you will need to run `./autogen.sh` first to produce the `configure` script. Note that this requires `automake` and `gettext` to be installed. Installation is done with the `./configure ; make ; make install` commands. You can use `./configure --help` if you want to get a list of options, though the defaults should be suiting most needs. After you compiled it with make (or gmake if make doesn't work) you can install it with `make install`. ## Setting up znc.conf For setting up a configuration file in `~/.znc` you can simply do `znc --makeconf` or `./znc --makeconf` for in-place execution. If you are using SSL you should do `znc --makepem` ## Special config options When you create your ZNC configuration file via --makeconf, you are asked two questions which might not be easy to understand. > Number of lines to buffer per channel How many messages should be buffered for each channel. When you connect to ZNC you get a buffer replay for each channel which shows what was said last. This option selects the number of lines this replay should consist of. Increasing this can greatly increase ZNC's memory usage if you are hosting many users. The default value should be fine for most setups. > Would you like to keep buffers after replay? If this is disabled, you get the buffer playback only once and then it is deleted. If this is enabled, the buffer is not deleted. This may be useful if you regularly use more than one client to connect to ZNC. ## Using ZNC Once you have started ZNC you can connect with your favorite IRC-client to ZNC. You should use `username:password` as the server password (e.g. `/pass user:pass`). Once you are connected you can do `/msg *status help` for some commands. Every module you have loaded (`/msg *status listmods`) should additionally provide `/msg *modulename help` ## File Locations In its data dir (`~/.znc` is default) ZNC saves most of its data. The only exception are modules and module data, which are saved in `/lib/znc` and `/share/znc`, and the znc binary itself. More modules (e.g. if you install some later) can be saved in `/modules` (-> `~/.znc/modules`). In the datadir is only one file: - `znc.pem` - This is the server certificate ZNC uses for listening and is created with `znc --makepem`. These directories are also in there: - configs - Contains `znc.conf` (ZNC's config file) and backups of older configs. - modules - ZNC also looks in here for a module. - moddata - Global modules save their settings here. (e.g. webadmin saves the current skin name in here) - users - This is per-user data and mainly contains just a moddata directory. ## ZNC's config file This file shouldn't be too hard too understand. An explanation of all the items can be found on the [Configuration](http://wiki.znc.in/Configuration)-Page. **Warning: better not to edit config, while ZNC is running.** Use the [webadmin] and [controlpanel] modules instead. [webadmin]:http://wiki.znc.in/Webadmin [controlpanel]:http://wiki.znc.in/Controlpanel If you changed some settings while ZNC is running, a simple `pkill -SIGUSR1 znc` will make ZNC rewrite its config file. Alternatively you can use `/msg *status saveconfig` ## Writing own modules You can write your own modules in either C++, python or perl. C++ modules are compiled by either saving them in the modules source dir and running make or with the `znc-buildmod` shell script. For additional info look in the wiki: - [Writing modules](http://wiki.znc.in/Writing_modules) Perl modules are loaded through the global module [ModPerl](http://wiki.znc.in/Modperl). Python modules are loaded through the global module [ModPython](http://wiki.znc.in/Modpython). ## Further infos Please visit http://znc.in/ or [#znc on freenode](ircs://irc.freenode.net:6697/#znc) if you still have questions. You can get the latest development version with git: `git clone https://github.com/znc/znc.git --recursive` znc-1.6.3/znc-uninstalled.pc.in0000644000175000017500000000107712663147131016613 0ustar somebodysomebody# You can access these with e.g. pkg-config --variable=moddir znc prefix=@prefix@ exec_prefix=@exec_prefix@ datarootdir=@datarootdir@ bindir=@bindir@ datadir=@datadir@ includedir=@includedir@ cxx=@CXX@ CPPFLAGS=@CPPFLAGS@ MODFLAGS=@MODFLAGS@ version=@PACKAGE_VERSION@ moddir=@MODDIR@ moddatadir=@DATADIR@ modlink=@MODLINK@ # This and the following two lines should be the only differences to znc.pc.in srcdir=@abs_srcdir@ INC_PATH=-I${srcdir}/ Name: ZNC Description: An advanced IRC proxy Version: ${version} URL: http://znc.in Cflags: ${CPPFLAGS} ${MODFLAGS} ${INC_PATH} znc-1.6.3/third_party/0000755000175000017500000000000012663147131015074 5ustar somebodysomebodyznc-1.6.3/third_party/Csocket/0000755000175000017500000000000012663147131016467 5ustar somebodysomebodyznc-1.6.3/.gitmodules0000644000175000017500000000014012663147130014712 0ustar somebodysomebody[submodule "Csocket"] path = third_party/Csocket url = https://github.com/jimloco/Csocket.git znc-1.6.3/bootstrap.sh0000777000175000017500000000000012663147131017107 2autogen.shustar somebodysomebodyznc-1.6.3/man/0000755000175000017500000000000012663147131013316 5ustar somebodysomebodyznc-1.6.3/man/znc-buildmod.10000644000175000017500000000100712663147131015765 0ustar somebodysomebody.TH ZNC\-BUILDMOD 1 2013\-06\-12 ZNC .SH NAME znc\-buildmod \- compile ZNC modules .SH SYNOPSIS .B znc\-buildmod FILE... .SH DESCRIPTION .BR znc\-buildmod compiles a ZNC module for you. You just give it a list of source files and every single file is compiled into a module. .SH EXIT STATUS Normally, exit status is 0 if everything went fine. In case the compiler errors when compiling some module, the exit status is 1. .SH ENVIRONMENT Variables .SS CXXFLAGS .SS LDFLAGS .SS MODLINK .SS INCLUDES .SS LIBS may be used. znc-1.6.3/man/Makefile.in0000644000175000017500000000136212663147131015365 0ustar somebodysomebodySHELL := @SHELL@ # Support out-of-tree builds VPATH := @srcdir@ prefix := @prefix@ exec_prefix := @exec_prefix@ datarootdir := @datarootdir@ mandir := @mandir@ INSTALL := @INSTALL@ INSTALL_DATA := @INSTALL_DATA@ MAN1 := znc.1.gz znc-buildmod.1.gz ifneq "$(V)" "" VERBOSE=1 endif ifeq "$(VERBOSE)" "" Q=@ E=@echo else Q= E=@\# endif all: $(MAN1) %.1.gz: %.1 Makefile $(E) Packing man page $@... $(Q)gzip -9 <$< >$@ clean: -rm -f $(MAN1) install: $(MAN1) test -d $(DESTDIR)$(mandir)/man1 || $(INSTALL) -d $(DESTDIR)$(mandir)/man1 $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(mandir)/man1 uninstall: for file in $(MAN1) ; do \ rm $(DESTDIR)$(mandir)/man1/$$file || exit 1 ; \ done rmdir $(DESTDIR)$(mandir)/man1 znc-1.6.3/man/znc.10000644000175000017500000000605212663147131014175 0ustar somebodysomebody.TH ZNC 1 2010\-05\-10 ZNC .SH NAME znc \- An advanced IRC bouncer .SH SYNOPSIS .B znc \-\-help .br .B znc \-\-version .br .B znc \-\-makepass .br .B znc .RB [ \-n ] .RB [ \-d .IR datadir ] .RB [ \-D ] .RB [ \-f ] .br .B znc .RB [ \-n ] .RB [ \-d .IR datadir ] .RB [ \-D ] .RB [ \-f ] .B \-\-makeconf .br .B znc .RB [ \-n ] .RB [ \-d .IR datadir ] .RB [ \-D ] .RB [ \-f ] .B \-\-makepem .SH DESCRIPTION .B znc is an IRC proxy. It runs as a daemon and connects to IRC server, then allows you to connect from a workstation and work as the user that is logged in to the IRC server. After you disconnect, it maintains the connection to the server. It acts like any normal IRC server, so you can use any IRC client to connect to it. .SH OPTIONS .TP .BR \-h ", " \-\-help Output a brief help message. .TP .BR \-v ", " \-\-version Show the full version number. .TP .BR \-n ", " \-\-no-color Don't use any color escape sequences. .TP .BR \-f ", " \-\-foreground Don't fork the ZNC process into the background. .TP .BR \-D ", " \-\-debug Print debug output to the console. Implies .BR --foreground . .TP .BI \-d " DATADIR" "\fR,\fP \-\-datadir=" DATADIR Specify another datadir. This is where .B znc saves everything. .TP .BR \-c ", " \-\-makeconf Interactively create a new configuration. .TP .BR \-s ", " \-\-makepass Hash a password for use in .IR znc.conf . .TP .BR \-p ", " \-\-makepem Generate .IR znc.pem . This is the server certificate .B znc uses. You need this for SSL. .TP .BR \-r ", " \-\-allow-root Don't complain if ZNC is run with root privilegies. .SH SIGNALS This section explains how .B znc reacts to different signals: .TP .B SIGINT Exit ZNC. This is equivalent to .I /znc shutdown .TP .B SIGHUP Reload znc.conf. This is equivalent to .I /znc rehash. .B DO NOT do this very often, things can break badly! .TP .B SIGUSR1 Rewrite znc.conf. This is equivalent to .I /znc saveconfig .SH FILES .TP .I /usr/local/share/znc/ Static module data like webadmin skins .TP .I /usr/local/lib/znc/ .B znc installs its modules to this directory. .TP .I /usr/local/include/znc/ These are the headers needed for compiling own modules. .TP .I ~/.znc This is the default datadir. The following paths assume that you use this. If you change this via .I \-\-datadir then the following lines are relative to that dir. .TP .I ~/.znc/znc.pem This is the server certificate .B znc uses for listening on SSL ports. You can generate this via .I --makepem and you may replace this with your own certificate, if you want to. .TP .I ~/.znc/modules/ If you compile your own modules, you can save them here. .TP .I ~/.znc/configs/znc.conf This is the path to .IR znc.conf . Use .I \-\-makeconf for an easy way to generate it. .TP .IB ~/.znc/users/ USERNAME / The data for every user is saved in this dir. .B USERNAME refers to the user name of that user. .TP .IB ~/.znc/users/ USERNAME /moddata/ MODULENAME / This is where each module can save some stuff. This is mainly used for remembering module settings that are not part of .IR znc.conf . .TP .IB ~/.znc/moddata/ MODULENAME / This is where global modules may save their settings. znc-1.6.3/autogen.sh0000755000175000017500000000243712663147131014552 0ustar somebodysomebody#!/bin/sh # Run this to generate all the initial makefiles, etc. # This is based on various examples which can be found everywhere. set -e FLAGS=${FLAGS--Wall} ACLOCAL=${ACLOCAL-aclocal} AUTOHEADER=${AUTOHEADER-autoheader} AUTOCONF=${AUTOCONF-autoconf} AUTOMAKE=${AUTOMAKE-automake} ACLOCAL_FLAGS="${ACLOCAL_FLAGS--I m4} ${FLAGS}" AUTOHEADER_FLAGS="${AUTOHEADER_FLAGS} ${FLAGS}" AUTOCONF_FLAGS="${AUTOCONF_FLAGS} ${FLAGS}" AUTOMAKE_FLAGS="${AUTOMAKE_FLAGS---add-missing} ${FLAGS}" die() { echo "$@" exit 1 } do_cmd() { echo "Running '$@'" $@ } test -f configure.ac || die "No configure.ac found." which pkg-config > /dev/null || die "ERROR: pkg-config not found. Install pkg-config and run $0 again" # Generate aclocal.m4 for use by autoconf do_cmd $ACLOCAL $ACLOCAL_FLAGS # Generate zncconfig.h.in for configure do_cmd $AUTOHEADER $AUTOHEADER_FLAGS # Generate configure do_cmd $AUTOCONF $AUTOCONF_FLAGS # Copy config.sub, config.guess, install.sh, ... # This will complain that we don't use automake, let's just ignore that do_cmd $AUTOMAKE $AUTOMAKE_FLAGS || true test -f config.guess -a -f config.sub -a -f install-sh || die "Automake didn't install config.guess, config.sub and install-sh!" echo "(Yes, automake is supposed to fail, ignore that)" echo echo "You may now run ./configure." znc-1.6.3/config.guess0000755000175000017500000012541112663147133015071 0ustar somebodysomebody#! /bin/sh # Attempt to guess a canonical system name. # Copyright 1992-2015 Free Software Foundation, Inc. timestamp='2015-07-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that # program. This Exception is an additional permission under section 7 # of the GNU General Public License, version 3 ("GPLv3"). # # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD # # Please send patches to . me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright 1992-2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown case "${UNAME_SYSTEM}" in Linux|GNU|GNU/*) # If the system lacks a compiler, then just pick glibc. # We could probably try harder. LIBC=gnu eval $set_cc_for_build cat <<-EOF > $dummy.c #include #if defined(__UCLIBC__) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc #else LIBC=gnu #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` ;; esac # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ /sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || \ echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; earmv*) arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` machine=${arch}${endian}-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # Determine ABI tags. case "${UNAME_MACHINE_ARCH}" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}${abi}" exit ;; *:Bitrig:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/lslpp ] ; then IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW64*:*) echo ${UNAME_MACHINE}-pc-mingw64 exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; *:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arc:Linux:*:* | arceb:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi else echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; e2k:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; openrisc*:Linux:*:*) echo or1k-unknown-linux-${LIBC} exit ;; or32:Linux:*:* | or1k*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-${LIBC} exit ;; ppc64le:Linux:*:*) echo powerpc64le-unknown-linux-${LIBC} exit ;; ppcle:Linux:*:*) echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) eval $set_cc_for_build X86_64_ABI= # If there is a compiler, see if it is configured for 32-bit objects. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_X32 >/dev/null then X86_64_ABI=x32 fi fi echo ${UNAME_MACHINE}-pc-linux-${LIBC}${X86_64_ABI} exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; x86_64:Haiku:*:*) echo x86_64-unknown-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown eval $set_cc_for_build if test "$UNAME_PROCESSOR" = unknown ; then UNAME_PROCESSOR=powerpc fi if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then case $UNAME_PROCESSOR in i386) UNAME_PROCESSOR=x86_64 ;; powerpc) UNAME_PROCESSOR=powerpc64 ;; esac fi fi elif test "$UNAME_PROCESSOR" = i386 ; then # Avoid executing cc on OS X 10.9, as it ships with a stub # that puts up a graphical alert prompting to install # developer tools. Any system running Mac OS X 10.7 or # later (Darwin 11 and later) is required to have a 64-bit # processor. This is not true of the ARM version of Darwin # that Apple uses in portable devices. UNAME_PROCESSOR=x86_64 fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: znc-1.6.3/LICENSE0000644000175000017500000002613612663147131013560 0ustar somebodysomebody Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. znc-1.6.3/modules/0000755000175000017500000000000012663147145014220 5ustar somebodysomebodyznc-1.6.3/modules/data/0000755000175000017500000000000012663147131015124 5ustar somebodysomebodyznc-1.6.3/modules/data/listsockets/0000755000175000017500000000000012663147131017473 5ustar somebodysomebodyznc-1.6.3/modules/data/listsockets/tmpl/0000755000175000017500000000000012663147131020447 5ustar somebodysomebodyznc-1.6.3/modules/data/listsockets/tmpl/index.tmpl0000644000175000017500000000114512663147131022455 0ustar somebodysomebody
Name Created State SSL Local Remote Data In Data Out
znc-1.6.3/modules/data/send_raw/0000755000175000017500000000000012663147131016726 5ustar somebodysomebodyznc-1.6.3/modules/data/send_raw/tmpl/0000755000175000017500000000000012663147131017702 5ustar somebodysomebodyznc-1.6.3/modules/data/send_raw/tmpl/index.tmpl0000644000175000017500000000315712663147131021715 0ustar somebodysomebody

Send a raw IRC line

User/Network:
Send to:
Line:
znc-1.6.3/modules/data/send_raw/files/0000755000175000017500000000000012663147131020030 5ustar somebodysomebodyznc-1.6.3/modules/data/send_raw/files/select.js0000644000175000017500000000060212663147131021643 0ustar somebodysomebodyfunction updateUser() { var select = document.getElementById('selectnetwork'); var opt = select.options[select.selectedIndex]; document.getElementById('user').value = opt.parentNode.getAttribute('label'); } function init() { updateUser(); document.getElementById('networklabel').firstChild.nodeValue = 'Network:'; document.getElementById('userblock').removeAttribute('style'); } znc-1.6.3/modules/data/blockuser/0000755000175000017500000000000012663147131017115 5ustar somebodysomebodyznc-1.6.3/modules/data/blockuser/tmpl/0000755000175000017500000000000012663147131020071 5ustar somebodysomebodyznc-1.6.3/modules/data/blockuser/tmpl/blockuser_WebadminUser.tmpl0000644000175000017500000000110312663147131025420 0ustar somebodysomebody
checked="checked" disabled="disabled" />
znc-1.6.3/modules/data/perform/0000755000175000017500000000000012663147131016576 5ustar somebodysomebodyznc-1.6.3/modules/data/perform/tmpl/0000755000175000017500000000000012663147131017552 5ustar somebodysomebodyznc-1.6.3/modules/data/perform/tmpl/index.tmpl0000644000175000017500000000130412663147131021555 0ustar somebodysomebody

Perform

Perform commands:

Commands sent to the IRC server on connect, one per line.
znc-1.6.3/modules/data/stickychan/0000755000175000017500000000000012663147131017264 5ustar somebodysomebodyznc-1.6.3/modules/data/stickychan/tmpl/0000755000175000017500000000000012663147131020240 5ustar somebodysomebodyznc-1.6.3/modules/data/stickychan/tmpl/index.tmpl0000644000175000017500000000125512663147131022250 0ustar somebodysomebody
Name Sticky
checked="checked" />
znc-1.6.3/modules/data/stickychan/tmpl/stickychan_WebadminChan.tmpl0000644000175000017500000000076012663147131025701 0ustar somebodysomebody
checked="checked" />
znc-1.6.3/modules/data/cert/0000755000175000017500000000000012663147131016061 5ustar somebodysomebodyznc-1.6.3/modules/data/cert/tmpl/0000755000175000017500000000000012663147131017035 5ustar somebodysomebodyznc-1.6.3/modules/data/cert/tmpl/index.tmpl0000644000175000017500000000157112663147131021046 0ustar somebodysomebody

You already have a certificate set, use the form below to overwrite the current certificate. Alternatively click here to delete your certificate.

You do not have a cert.

Certificate

PEM File:
znc-1.6.3/modules/data/lastseen/0000755000175000017500000000000012663147131016742 5ustar somebodysomebodyznc-1.6.3/modules/data/lastseen/tmpl/0000755000175000017500000000000012663147131017716 5ustar somebodysomebodyznc-1.6.3/modules/data/lastseen/tmpl/index.tmpl0000644000175000017500000000151512663147131021725 0ustar somebodysomebody
User Last Seen Info Action
[Edit] [Delete]
znc-1.6.3/modules/data/lastseen/tmpl/lastseen_WebadminUser.tmpl0000644000175000017500000000034012663147131025074 0ustar somebodysomebody
znc-1.6.3/modules/data/certauth/0000755000175000017500000000000012663147131016743 5ustar somebodysomebodyznc-1.6.3/modules/data/certauth/tmpl/0000755000175000017500000000000012663147131017717 5ustar somebodysomebodyznc-1.6.3/modules/data/certauth/tmpl/index.tmpl0000644000175000017500000000164012663147131021725 0ustar somebodysomebody

Add A Note

Key:

You have no keys.

Key
[del]
znc-1.6.3/modules/data/notes/0000755000175000017500000000000012663147131016254 5ustar somebodysomebodyznc-1.6.3/modules/data/notes/tmpl/0000755000175000017500000000000012663147131017230 5ustar somebodysomebodyznc-1.6.3/modules/data/notes/tmpl/index.tmpl0000644000175000017500000000235012663147131021235 0ustar somebodysomebody

Add A Note

Key:
Note:

You have no notes to display.

Key Note
[del]
znc-1.6.3/modules/data/notes/files/0000755000175000017500000000000012663147131017356 5ustar somebodysomebodyznc-1.6.3/modules/data/notes/files/trash.gif0000644000175000017500000000014212663147131021163 0ustar somebodysomebodyGIF89a€fff!ù,@9Œ©Ðï"C²¾i€vyã …ÜG–f²¥êÈXÖç†äêömÖ%»ðŠ¢D2LL#"Ê ³…‹ž ;znc-1.6.3/modules/data/q/0000755000175000017500000000000012663147131015364 5ustar somebodysomebodyznc-1.6.3/modules/data/q/tmpl/0000755000175000017500000000000012663147131016340 5ustar somebodysomebodyznc-1.6.3/modules/data/q/tmpl/index.tmpl0000644000175000017500000000260312663147131020346 0ustar somebodysomebody

Q

Username:
Password:

Options

checked="checked" disabled="disabled" />
znc-1.6.3/modules/data/webadmin/0000755000175000017500000000000012663147131016712 5ustar somebodysomebodyznc-1.6.3/modules/data/webadmin/tmpl/0000755000175000017500000000000012663147131017666 5ustar somebodysomebodyznc-1.6.3/modules/data/webadmin/tmpl/listusers.tmpl0000644000175000017500000000242412663147131022623 0ustar somebodysomebody
There are no users defined. Click here if you would like to add one.
[Add] Username Networks Clients
[Edit] [Clone] [Delete]
znc-1.6.3/modules/data/webadmin/tmpl/index.tmpl0000644000175000017500000000031612663147131021673 0ustar somebodysomebody

Welcome to the ZNC webadmin module.
All changes you make will be in effect immediately after you submitted them.

znc-1.6.3/modules/data/webadmin/tmpl/traffic.tmpl0000644000175000017500000000460412663147131022206 0ustar somebodysomebody

Information

Uptime
Total Users
Total Networks
Attached Networks
Total Client Connections
Total IRC Connections

Traffic

Add the totals separately so that if sort is ever used they stay at the bottom By keeping them inside the loop we can figure out even/odd classes though.
Username In Out Total
User Total
ZNC Total
Grand Total
znc-1.6.3/modules/data/webadmin/tmpl/add_edit_chan.tmpl0000644000175000017500000000515112663147131023314 0ustar somebodysomebody

Channel Info

Channel Name:
Key:
Buffer Count:
Default Modes:

Flags

checked="checked" /> checked="checked" disabled="disabled" />

Module

znc-1.6.3/modules/data/webadmin/tmpl/del_network.tmpl0000644000175000017500000000146612663147131023110 0ustar somebodysomebody

Confirm Network Deletion

Are you sure you want to delete "/"?
znc-1.6.3/modules/data/webadmin/tmpl/del_user.tmpl0000644000175000017500000000140112663147131022362 0ustar somebodysomebody

Confirm User Deletion

Are you sure you want to delete ""?
znc-1.6.3/modules/data/webadmin/tmpl/settings.tmpl0000644000175000017500000002146512663147131022434 0ustar somebodysomebody

Listen Port(s)

Port BindHost SSL IPv4 IPv6 IRC Web URIPrefix Delete
checked="checked"/>
checked="checked"/>
checked="checked"/>
checked="checked"/>
checked="checked"/>

Settings

Skin:
Status Prefix:

Default for new users only.
Maximum Buffer Size:
Connect Delay:
Server Throttle:
Anonymous IP Limit:
Protect Web Sessions:
checked="checked" />
Hide ZNC Version:
checked="checked" />
MOTD:

"Message of the Day", sent to all ZNC users on connect.
BindHosts:

One host name or IP entry per line.

Global Modules

Name Arguments Description Loaded by networks Loaded by users
checked="checked" disabled="disabled" /> disabled="disabled" title="" /> checked="checked" disabled="disabled"/> checked="checked" disabled="disabled"/>
znc-1.6.3/modules/data/webadmin/tmpl/add_edit_user.tmpl0000644000175000017500000003415012663147131023362 0ustar somebodysomebody

Authentication

Username:
Password:
Confirm password:
Allowed IPs:

Leave empty to allow connections from all IPs.
Otherwise, one entry per line, wildcards * and ? are available.

IRC Information

Nick, AltNick, Ident, RealName and QuitMsg can be left empty to use default values.
Nickname:
Alt. Nickname:
Ident:
StatusPrefix:
Realname:
BindHost:
DCCBindHost:
Quit Message:

Networks

[Add] Name Clients Current Server IRC Nick <- Add a network (opens in same page)
[Edit] [Del]
You will be able to add + modify networks here after you have clonedcreated the user.

Modules

Name Arguments Description Loaded globally Loaded by networks
checked="checked" disabled="disabled" /> disabled="disabled" title="" /> checked="checked" disabled="disabled"/> checked="checked" disabled="disabled"/>

Default Settings

Channel Modes:

Empty = use standard value
Buffer Size:

Empty = use standard value

Flags

checked="checked" disabled="disabled" />

ZNC Behavior

Any of the following text boxes can be left empty to use their default value.
Timestamp Format:
Timezone:

E.g. Europe/Berlin, or GMT-6
Client encoding:
Join Tries:
Max Joins:
Max IRC Networks Number:
disabled="disabled" />
Max Query Buffers:
CTCP Replies:

One reply per line. Example: TIME Buy a watch!
Substitutions are available
Skin:
1 ?> No other skins found

Module

znc-1.6.3/modules/data/webadmin/tmpl/add_edit_network.tmpl0000644000175000017500000002402612663147131024076 0ustar somebodysomebody

To connect to this network from your IRC client, you can set the server password field as follows: /<network>:<password> or username field as /<network>

Network Info

Nick, AltNick, Ident, RealName, BindHost can be left empty to use the value from the user.
Network Name:
Nickname:
Alt. Nickname:
Ident:
Realname:
BindHost:
Quit Message:
Active:
checked="checked" />
Servers of this IRC network:

One server per line, "host [[+]port] [password]", + means SSL
Trusted SSL fingerprints of this IRC network:

When these certificates are encountered, checks for hostname, expiration date, CA are skipped
Flood protection:
checked="checked" />
Flood protection rate:
value="" value="1.00" disabled="disabled" /> seconds per line
Flood protection burst:
value="" value="4" disabled="disabled" /> lines can be sent immediately
Channel join delay:
seconds
Server encoding:

Channels

You will be able to add + modify channels here after you created the network.
[Add] Save Name CurModes DefModes BufferCount Options <- Add a channel (opens in same page)
[Edit] [Del] checked="checked" />

Modules

Name Arguments Description Loaded globally Loaded by user
checked="checked" disabled="disabled" /> disabled="disabled" title="" /> checked="checked" disabled="disabled"/> checked="checked" disabled="disabled"/>

Module

znc-1.6.3/modules/data/webadmin/tmpl/encoding_settings.tmpl0000644000175000017500000000604612663147131024300 0ustar somebodysomebody
ZNC is compiled without encodings support. ICU is required for it.
checked="checked" disabled="disabled" />
checked="checked" disabled="disabled" />
checked="checked" disabled="disabled" />
checked="checked" disabled="disabled" />
disabled="disabled" />
E.g. UTF-8, or ISO-8859-15
znc-1.6.3/modules/data/webadmin/files/0000755000175000017500000000000012663147131020014 5ustar somebodysomebodyznc-1.6.3/modules/data/webadmin/files/webadmin.css0000644000175000017500000000016512663147131022316 0ustar somebodysomebody.encoding-placeholder-big { text-decoration:underline; font-style:italic; } .encoding-settings { width: 500px; } znc-1.6.3/modules/data/webadmin/files/webadmin.js0000644000175000017500000000060212663147131022136 0ustar somebodysomebodyfunction floodprotection_change() { var protection = document.getElementById('floodprotection_checkbox'); var rate = document.getElementById('floodrate'); var burst = document.getElementById('floodburst'); if (protection.checked) { rate.removeAttribute('disabled'); burst.removeAttribute('disabled'); } else { rate.disabled = 'disabled'; burst.disabled = 'disabled'; } } znc-1.6.3/modules/alias.cpp0000644000175000017500000002614212663147131016015 0ustar somebodysomebody/* * Copyright (C) 2004-2013 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include using std::vector; using std::stringstream; class CAlias { private: CModule *parent; CString name; VCString alias_cmds; public: // getters/setters const CString &GetName() const { return name; } // name should be a single, all uppercase word void SetName(const CString &newname) { name = newname.Token(0, false, " "); name.MakeUpper(); } // combined getter/setter for command list VCString &AliasCmds() { return alias_cmds; } // check registry if alias exists static bool AliasExists(CModule *module, CString alias_name) { alias_name = alias_name.Token(0, false, " ").MakeUpper(); return (module->FindNV(alias_name) != module->EndNV()); } // populate alias from stored settings in registry, or return false if none exists static bool AliasGet(CAlias &alias, CModule *module, CString line) { line = line.Token(0, false, " ").MakeUpper(); MCString::iterator i = module->FindNV(line); if (i == module->EndNV()) return false; alias.parent = module; alias.name = line; i->second.Split("\n", alias.alias_cmds, false); return true; } // constructors CAlias() : parent(NULL) {} CAlias(CModule *new_parent, const CString &new_name) : parent(new_parent) { SetName(new_name); } // produce a command string from this alias' command list CString GetCommands() const { return CString("\n").Join(alias_cmds.begin(), alias_cmds.end()); } // write this alias to registry void Commit() const { if (!parent) return; parent->SetNV(name, GetCommands()); } // delete this alias from regisrty void Delete() const { if (!parent) return; parent->DelNV(name); } private: // this function helps imprint out. it checks if there is a substitution token at 'caret' in 'alias_data' // and if it finds one, pulls the appropriate token out of 'line' and appends it to 'output', and updates 'caret'. // 'skip' is updated based on the logic that we should skip the % at the caret if we fail to parse the token. static void ParseToken(const CString &alias_data, const CString &line, CString &output, size_t &caret, size_t &skip) { bool optional = false; bool subsequent = false; size_t index = caret + 1; int token = -1; skip = 1; if (alias_data.length() > index && alias_data[index] == '?') { optional = true; ++index; } // try to read optional flag if (alias_data.length() > index && CString(alias_data.substr(index)).Convert(&token)) // try to read integer { while(alias_data.length() > index && alias_data[index] >= '0' && alias_data[index] <= '9') ++index; // skip any numeric digits in string } // (supposed to fail if whitespace precedes integer) else return; // token was malformed. leave caret unchanged, and flag first character for skipping if (alias_data.length() > index && alias_data[index] == '+') { subsequent = true; ++index; } // try to read subsequent flag if (alias_data.length() > index && alias_data[index] == '%') { ++index; } // try to read end-of-substitution marker else return; CString stok = line.Token(token, subsequent, " "); // if we get here, we're definitely dealing with a token, so get the token's value if (stok.empty() && !optional) throw std::invalid_argument(CString("missing required parameter: ") + CString(token)); // blow up if token is required and also empty output.append(stok); // write token value to output skip = 0; // since we're moving the cursor after the end of the token, skip no characters caret = index; // advance the cursor forward by the size of the token } public: // read an IRC line and do token substitution // throws an exception if a required parameter is missing, and might also throw if you manage to make it bork CString Imprint(CString line) const { CString output; CString alias_data = GetCommands(); alias_data = parent->ExpandString(alias_data); size_t lastfound = 0, skip = 0; // it would be very inefficient to attempt to blindly replace every possible token // so let's just parse the line and replace when we find them // token syntax: // %[?]n[+]% // adding ? makes the substitution optional (you'll get "" if there are insufficient tokens, otherwise the alias will fail) // adding + makes the substitution contain all tokens from the nth to the end of the line while (true) { // if (found >= (int) alias_data.length()) break; // shouldn't be possible. size_t found = alias_data.find("%", lastfound + skip); if (found == CString::npos) break; // if we found nothing, break output.append(alias_data.substr(lastfound, found - lastfound)); // capture everything between the last stopping point and here ParseToken(alias_data, line, output, found, skip); // attempt to read a token, updates indices based on success/failure lastfound = found; } output += alias_data.substr(lastfound); // append from the final return output; } }; class CAliasMod : public CModule { private: bool sending_lines; public: void CreateCommand(const CString& sLine) { CString name = sLine.Token(1, false, " "); if (!CAlias::AliasExists(this, name)) { CAlias na(this, name); na.Commit(); PutModule("Created alias: " + na.GetName()); } else PutModule("Alias already exists."); } void DeleteCommand(const CString& sLine) { CString name = sLine.Token(1, false, " "); CAlias delete_alias; if (CAlias::AliasGet(delete_alias, this, name)) { PutModule("Deleted alias: " + delete_alias.GetName()); delete_alias.Delete(); } else PutModule("Alias does not exist."); } void AddCmd(const CString& sLine) { CString name = sLine.Token(1, false, " "); CAlias add_alias; if (CAlias::AliasGet(add_alias, this, name)) { add_alias.AliasCmds().push_back(sLine.Token(2, true, " ")); add_alias.Commit(); PutModule("Modified alias."); } else PutModule("Alias does not exist."); } void InsertCommand(const CString& sLine) { CString name = sLine.Token(1, false, " "); CAlias insert_alias; int index; if (CAlias::AliasGet(insert_alias, this, name)) { // if Convert succeeds, then i has been successfully read from user input if (!sLine.Token(2, false, " ").Convert(&index) || index < 0 || index > (int) insert_alias.AliasCmds().size()) { PutModule("Invalid index."); return; } insert_alias.AliasCmds().insert(insert_alias.AliasCmds().begin() + index, sLine.Token(3, true, " ")); insert_alias.Commit(); PutModule("Modified alias."); } else PutModule("Alias does not exist."); } void RemoveCommand(const CString& sLine) { CString name = sLine.Token(1, false, " "); CAlias remove_alias; int index; if (CAlias::AliasGet(remove_alias, this, name)) { if (!sLine.Token(2, false, " ").Convert(&index) || index < 0 || index > (int) remove_alias.AliasCmds().size() - 1) { PutModule("Invalid index."); return; } remove_alias.AliasCmds().erase(remove_alias.AliasCmds().begin() + index); remove_alias.Commit(); PutModule("Modified alias."); } else PutModule("Alias does not exist."); } void ClearCommand(const CString& sLine) { CString name = sLine.Token(1, false, " "); CAlias clear_alias; if (CAlias::AliasGet(clear_alias, this, name)) { clear_alias.AliasCmds().clear(); clear_alias.Commit(); PutModule("Modified alias."); } else PutModule("Alias does not exist."); } void ListCommand(const CString& sLine) { CString output = "The following aliases exist:"; MCString::iterator i = BeginNV(); if (i == EndNV()) output += " [none]"; for (; i != EndNV(); ++i) { output.append(" "); output.append(i->first); } PutModule(output); } void InfoCommand(const CString& sLine) { CString name = sLine.Token(1, false, " "); CAlias info_alias; if (CAlias::AliasGet(info_alias, this, name)) { PutModule("Actions for alias " + info_alias.GetName() + ":"); for (size_t i = 0; i < info_alias.AliasCmds().size(); ++i) { CString num(i); CString padding(4 - (num.length() > 3 ? 3 : num.length()), ' '); PutModule(num + padding + info_alias.AliasCmds()[i]); } PutModule("End of actions for alias " + info_alias.GetName() + "."); } else PutModule("Alias does not exist."); } MODCONSTRUCTOR(CAliasMod), sending_lines(false) { AddHelpCommand(); AddCommand("Create", static_cast(&CAliasMod::CreateCommand), "", "Creates a new, blank alias called name."); AddCommand("Delete", static_cast(&CAliasMod::DeleteCommand), "", "Deletes an existing alias."); AddCommand("Add", static_cast(&CAliasMod::AddCmd), " ", "Adds a line to an existing alias."); AddCommand("Insert", static_cast(&CAliasMod::InsertCommand), " ", "Inserts a line into an existing alias."); AddCommand("Remove", static_cast(&CAliasMod::RemoveCommand), " ", "Removes a line from an existing alias."); AddCommand("Clear", static_cast(&CAliasMod::ClearCommand), "", "Removes all line from an existing alias."); AddCommand("List", static_cast(&CAliasMod::ListCommand), "", "Lists all aliases by name."); AddCommand("Info", static_cast(&CAliasMod::InfoCommand), "", "Reports the actions performed by an alias."); } virtual EModRet OnUserRaw(CString& sLine) override { CAlias current_alias; if (sending_lines) return CONTINUE; try { if (sLine.Equals("ZNC-CLEAR-ALL-ALIASES!")) { ListCommand(""); PutModule("Clearing all of them!"); ClearNV(); return HALT; } else if (CAlias::AliasGet(current_alias, this, sLine)) { VCString rawLines; current_alias.Imprint(sLine).Split("\n", rawLines, false); sending_lines = true; for (size_t i = 0; i < rawLines.size(); ++i) { m_pClient->ReadLine(rawLines[i]); } sending_lines = false; return HALT; } } catch (std::exception &e) { CString my_nick = (GetNetwork() == NULL ? "" : GetNetwork()->GetCurNick()); if (my_nick.empty()) my_nick = "*"; PutUser(CString(":znc.in 461 " + my_nick + " " + current_alias.GetName() + " :ZNC alias error: ") + e.what()); return HALTCORE; } return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("alias"); Info.AddType(CModInfo::NetworkModule); } USERMODULEDEFS(CAliasMod, "Provides bouncer-side command alias support.") znc-1.6.3/modules/blockuser.cpp0000644000175000017500000001311012663147131016704 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; #define MESSAGE "Your account has been disabled. Contact your administrator." class CBlockUser : public CModule { public: MODCONSTRUCTOR(CBlockUser) { AddHelpCommand(); AddCommand("List", static_cast(&CBlockUser::OnListCommand), "", "List blocked users"); AddCommand("Block", static_cast(&CBlockUser::OnBlockCommand), "", "Block a user"); AddCommand("Unblock", static_cast(&CBlockUser::OnUnblockCommand), "", "Unblock a user"); } virtual ~CBlockUser() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { VCString vArgs; VCString::iterator it; MCString::iterator it2; // Load saved settings for (it2 = BeginNV(); it2 != EndNV(); ++it2) { // Ignore errors Block(it2->first); } // Parse arguments, each argument is a user name to block sArgs.Split(" ", vArgs, false); for (it = vArgs.begin(); it != vArgs.end(); ++it) { if (!Block(*it)) { sMessage = "Could not block [" + *it + "]"; return false; } } return true; } virtual EModRet OnLoginAttempt(std::shared_ptr Auth) override { if (IsBlocked(Auth->GetUsername())) { Auth->RefuseLogin(MESSAGE); return HALT; } return CONTINUE; } void OnModCommand(const CString& sCommand) override { if (!GetUser()->IsAdmin()) { PutModule("Access denied"); } else { HandleCommand(sCommand); } } void OnListCommand(const CString& sCommand) { CTable Table; MCString::iterator it; Table.AddColumn("Blocked user"); for (it = BeginNV(); it != EndNV(); ++it) { Table.AddRow(); Table.SetCell("Blocked user", it->first); } if (PutModule(Table) == 0) PutModule("No users blocked"); } void OnBlockCommand(const CString& sCommand) { CString sUser = sCommand.Token(1, true); if (sUser.empty()) { PutModule("Usage: Block "); return; } if (GetUser()->GetUserName().Equals(sUser)) { PutModule("You can't block yourself"); return; } if (Block(sUser)) PutModule("Blocked [" + sUser + "]"); else PutModule("Could not block [" + sUser + "] (misspelled?)"); } void OnUnblockCommand(const CString& sCommand) { CString sUser = sCommand.Token(1, true); if (sUser.empty()) { PutModule("Usage: Unblock "); return; } if (DelNV(sUser)) PutModule("Unblocked [" + sUser + "]"); else PutModule("This user is not blocked"); } bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "webadmin/user" && WebSock.GetSession()->IsAdmin()) { CString sAction = Tmpl["WebadminAction"]; if (sAction == "display") { Tmpl["Blocked"] = CString(IsBlocked(Tmpl["Username"])); Tmpl["Self"] = CString(Tmpl["Username"].Equals(WebSock.GetSession()->GetUser()->GetUserName())); return true; } if (sAction == "change" && WebSock.GetParam("embed_blockuser_presented").ToBool()) { if (Tmpl["Username"].Equals(WebSock.GetSession()->GetUser()->GetUserName()) && WebSock.GetParam("embed_blockuser_block").ToBool()) { WebSock.GetSession()->AddError("You can't block yourself"); } else if (WebSock.GetParam("embed_blockuser_block").ToBool()) { if (!WebSock.GetParam("embed_blockuser_old").ToBool()) { if (Block(Tmpl["Username"])) { WebSock.GetSession()->AddSuccess("Blocked [" + Tmpl["Username"] + "]"); } else { WebSock.GetSession()->AddError("Couldn't block [" + Tmpl["Username"] + "]"); } } } else if (WebSock.GetParam("embed_blockuser_old").ToBool()){ if (DelNV(Tmpl["Username"])) { WebSock.GetSession()->AddSuccess("Unblocked [" + Tmpl["Username"] + "]"); } else { WebSock.GetSession()->AddError("User [" + Tmpl["Username"] + "is not blocked"); } } return true; } } return false; } private: bool IsBlocked(const CString& sUser) { MCString::iterator it; for (it = BeginNV(); it != EndNV(); ++it) { if (sUser == it->first) { return true; } } return false; } bool Block(const CString& sUser) { CUser *pUser = CZNC::Get().FindUser(sUser); if (!pUser) return false; // Disconnect all clients vector vpClients = pUser->GetAllClients(); vector::iterator it; for (it = vpClients.begin(); it != vpClients.end(); ++it) { (*it)->PutStatusNotice(MESSAGE); (*it)->Close(Csock::CLT_AFTERWRITE); } // Disconnect all networks from irc vector vNetworks = pUser->GetNetworks(); for (vector::iterator it2 = vNetworks.begin(); it2 != vNetworks.end(); ++it2) { (*it2)->SetIRCConnectEnabled(false); } SetNV(pUser->GetUserName(), ""); return true; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("blockuser"); Info.SetHasArgs(true); Info.SetArgsHelpText("Enter one or more user names. Separate them by spaces."); } GLOBALMODULEDEFS(CBlockUser, "Block certain users from logging in.") znc-1.6.3/modules/nickserv.cpp0000644000175000017500000001107412663147131016546 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include class CNickServ : public CModule { void DoNickCommand(const CString& sCmd, const CString& sNick) { MCString msValues; msValues["nickname"] = sNick; msValues["password"] = GetNV("Password"); PutIRC(CString::NamedFormat(GetNV(sCmd), msValues)); } public: void SetCommand(const CString& sLine) { SetNV("Password", sLine.Token(1, true)); PutModule("Password set"); } void ClearCommand(const CString& sLine) { DelNV("Password"); } void SetNSNameCommand(const CString& sLine) { SetNV("NickServName", sLine.Token(1, true)); PutModule("NickServ name set"); } void ClearNSNameCommand(const CString& sLine) { DelNV("NickServName"); } void ViewCommandsCommand(const CString& sLine) { PutModule("IDENTIFY " + GetNV("IdentifyCmd")); } void SetCommandCommand(const CString& sLine) { CString sCmd = sLine.Token(1); CString sNewCmd = sLine.Token(2, true); if (sCmd.Equals("IDENTIFY")) { SetNV("IdentifyCmd", sNewCmd); } else { PutModule("No such editable command. See ViewCommands for list."); return; } PutModule("Ok"); } MODCONSTRUCTOR(CNickServ) { AddHelpCommand(); AddCommand("Set", static_cast(&CNickServ::SetCommand), "password"); AddCommand("Clear", static_cast(&CNickServ::ClearCommand), "", "Clear your nickserv password"); AddCommand("SetNSName", static_cast(&CNickServ::SetNSNameCommand), "nickname", "Set NickServ name (Useful on networks like EpiKnet, where NickServ is named Themis)"); AddCommand("ClearNSName", static_cast(&CNickServ::ClearNSNameCommand), "", "Reset NickServ name to default (NickServ)"); AddCommand("ViewCommands", static_cast(&CNickServ::ViewCommandsCommand), "", "Show patterns for lines, which are being sent to NickServ"); AddCommand("SetCommand", static_cast(&CNickServ::SetCommandCommand), "cmd new-pattern", "Set pattern for commands"); } virtual ~CNickServ() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { if (!sArgs.empty() && sArgs != "") { SetNV("Password", sArgs); SetArgs(""); } if (GetNV("IdentifyCmd").empty()) { SetNV("IdentifyCmd", "PRIVMSG NickServ :IDENTIFY {password}"); } return true; } void HandleMessage(CNick& Nick, const CString& sMessage) { CString sNickServName = (!GetNV("NickServName").empty()) ? GetNV("NickServName") : "NickServ"; if (!GetNV("Password").empty() && Nick.NickEquals(sNickServName) && (sMessage.find("msg") != CString::npos || sMessage.find("authenticate") != CString::npos || sMessage.find("choose a different nickname") != CString::npos || sMessage.find("please choose a different nick") != CString::npos || sMessage.find("If this is your nick, identify yourself with") != CString::npos || sMessage.find("If this is your nick, type") != CString::npos || sMessage.find("This is a registered nickname, please identify") != CString::npos || sMessage.StripControls_n().find("type /NickServ IDENTIFY password") != CString::npos || sMessage.StripControls_n().find("type /msg NickServ IDENTIFY password") != CString::npos) && sMessage.AsUpper().find("IDENTIFY") != CString::npos && sMessage.find("help") == CString::npos) { MCString msValues; msValues["password"] = GetNV("Password"); PutIRC(CString::NamedFormat(GetNV("IdentifyCmd"), msValues)); } } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { HandleMessage(Nick, sMessage); return CONTINUE; } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override { HandleMessage(Nick, sMessage); return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("nickserv"); Info.SetHasArgs(true); Info.SetArgsHelpText("Please enter your nickserv password."); } NETWORKMODULEDEFS(CNickServ, "Auths you with NickServ") znc-1.6.3/modules/q.cpp0000644000175000017500000005021612663147131015163 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include using std::set; #ifndef Q_DEBUG_COMMUNICATION #define Q_DEBUG_COMMUNICATION 0 #endif class CQModule : public CModule { public: MODCONSTRUCTOR(CQModule) {} virtual ~CQModule() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { if (!sArgs.empty()) { SetUsername(sArgs.Token(0)); SetPassword(sArgs.Token(1)); } else { m_sUsername = GetNV("Username"); m_sPassword = GetNV("Password"); } CString sTmp; m_bUseCloakedHost = (sTmp = GetNV("UseCloakedHost")).empty() ? true : sTmp.ToBool(); m_bUseChallenge = (sTmp = GetNV("UseChallenge")).empty() ? true : sTmp.ToBool(); m_bRequestPerms = GetNV("RequestPerms").ToBool(); m_bJoinOnInvite = (sTmp = GetNV("JoinOnInvite")).empty() ? true : sTmp.ToBool(); m_bJoinAfterCloaked = (sTmp = GetNV("JoinAfterCloaked")).empty() ? true : sTmp.ToBool(); // Make sure NVs are stored in config. Note: SetUseCloakedHost() is called further down. SetUseChallenge(m_bUseChallenge); SetRequestPerms(m_bRequestPerms); SetJoinOnInvite(m_bJoinOnInvite); SetJoinAfterCloaked(m_bJoinAfterCloaked); OnIRCDisconnected(); // reset module's state if (IsIRCConnected()) { // check for usermode +x if we are already connected set scUserModes = GetNetwork()->GetIRCSock()->GetUserModes(); if (scUserModes.find('x') != scUserModes.end()) m_bCloaked = true; // This will only happen once, and only if the user loads the module after connecting to IRC. // Also don't notify the user in case he already had mode +x set. if (GetNV("UseCloakedHost").empty()) { if (!m_bCloaked) PutModule("Notice: Your host will be cloaked the next time you reconnect to IRC. " "If you want to cloak your host now, /msg *q Cloak. You can set your preference " "with /msg *q Set UseCloakedHost true/false."); m_bUseCloakedHost = true; SetUseCloakedHost(m_bUseCloakedHost); m_bJoinAfterCloaked = true; SetJoinAfterCloaked(m_bJoinAfterCloaked); } else if (m_bUseChallenge) { Cloak(); } WhoAmI(); } else { SetUseCloakedHost(m_bUseCloakedHost); } return true; } virtual void OnIRCDisconnected() override { m_bCloaked = false; m_bAuthed = false; m_bRequestedWhoami = false; m_bRequestedChallenge = false; m_bCatchResponse = false; } virtual void OnIRCConnected() override { if (m_bUseCloakedHost) Cloak(); WhoAmI(); } virtual void OnModCommand(const CString& sLine) override { CString sCommand = sLine.Token(0).AsLower(); if (sCommand == "help") { PutModule("The following commands are available:"); CTable Table; Table.AddColumn("Command"); Table.AddColumn("Description"); Table.AddRow(); Table.SetCell("Command", "Auth [ ]"); Table.SetCell("Description", "Tries to authenticate you with Q. Both parameters are optional."); Table.AddRow(); Table.SetCell("Command", "Cloak"); Table.SetCell("Description", "Tries to set usermode +x to hide your real hostname."); Table.AddRow(); Table.SetCell("Command", "Status"); Table.SetCell("Description", "Prints the current status of the module."); Table.AddRow(); Table.SetCell("Command", "Update"); Table.SetCell("Description", "Re-requests the current user information from Q."); Table.AddRow(); Table.SetCell("Command", "Set "); Table.SetCell("Description", "Changes the value of the given setting. See the list of settings below."); Table.AddRow(); Table.SetCell("Command", "Get"); Table.SetCell("Description", "Prints out the current configuration. See the list of settings below."); PutModule(Table); PutModule("The following settings are available:"); CTable Table2; Table2.AddColumn("Setting"); Table2.AddColumn("Type"); Table2.AddColumn("Description"); Table2.AddRow(); Table2.SetCell("Setting", "Username"); Table2.SetCell("Type", "String"); Table2.SetCell("Description", "Your Q username."); Table2.AddRow(); Table2.SetCell("Setting", "Password"); Table2.SetCell("Type", "String"); Table2.SetCell("Description", "Your Q password."); Table2.AddRow(); Table2.SetCell("Setting", "UseCloakedHost"); Table2.SetCell("Type", "Boolean"); Table2.SetCell("Description", "Whether to cloak your hostname (+x) automatically on connect."); Table2.AddRow(); Table2.SetCell("Setting", "UseChallenge"); Table2.SetCell("Type", "Boolean"); Table2.SetCell("Description", "Whether to use the CHALLENGEAUTH mechanism to avoid sending passwords in cleartext."); Table2.AddRow(); Table2.SetCell("Setting", "RequestPerms"); Table2.SetCell("Type", "Boolean"); Table2.SetCell("Description", "Whether to request voice/op from Q on join/devoice/deop."); Table2.AddRow(); Table2.SetCell("Setting", "JoinOnInvite"); Table2.SetCell("Type", "Boolean"); Table2.SetCell("Description", "Whether to join channels when Q invites you."); Table2.AddRow(); Table2.SetCell("Setting", "JoinAfterCloaked"); Table2.SetCell("Type", "Boolean"); Table2.SetCell("Description", "Whether to delay joining channels until after you are cloaked."); PutModule(Table2); PutModule("This module takes 2 optional parameters: "); PutModule("Module settings are stored between restarts."); } else if (sCommand == "set") { CString sSetting = sLine.Token(1).AsLower(); CString sValue = sLine.Token(2); if (sSetting.empty() || sValue.empty()) { PutModule("Syntax: Set "); } else if (sSetting == "username") { SetUsername(sValue); PutModule("Username set"); } else if (sSetting == "password") { SetPassword(sValue); PutModule("Password set"); } else if (sSetting == "usecloakedhost") { SetUseCloakedHost(sValue.ToBool()); PutModule("UseCloakedHost set"); } else if (sSetting == "usechallenge") { SetUseChallenge(sValue.ToBool()); PutModule("UseChallenge set"); } else if (sSetting == "requestperms") { SetRequestPerms(sValue.ToBool()); PutModule("RequestPerms set"); } else if (sSetting == "joinoninvite") { SetJoinOnInvite(sValue.ToBool()); PutModule("JoinOnInvite set"); } else if (sSetting == "joinaftercloaked") { SetJoinAfterCloaked(sValue.ToBool()); PutModule("JoinAfterCloaked set"); } else PutModule("Unknown setting: " + sSetting); } else if (sCommand == "get" || sCommand == "list") { CTable Table; Table.AddColumn("Setting"); Table.AddColumn("Value"); Table.AddRow(); Table.SetCell("Setting", "Username"); Table.SetCell("Value", m_sUsername); Table.AddRow(); Table.SetCell("Setting", "Password"); Table.SetCell("Value", "*****"); // m_sPassword Table.AddRow(); Table.SetCell("Setting", "UseCloakedHost"); Table.SetCell("Value", CString(m_bUseCloakedHost)); Table.AddRow(); Table.SetCell("Setting", "UseChallenge"); Table.SetCell("Value", CString(m_bUseChallenge)); Table.AddRow(); Table.SetCell("Setting", "RequestPerms"); Table.SetCell("Value", CString(m_bRequestPerms)); Table.AddRow(); Table.SetCell("Setting", "JoinOnInvite"); Table.SetCell("Value", CString(m_bJoinOnInvite)); Table.AddRow(); Table.SetCell("Setting", "JoinAfterCloaked"); Table.SetCell("Value", CString(m_bJoinAfterCloaked)); PutModule(Table); } else if (sCommand == "status") { PutModule("Connected: " + CString(IsIRCConnected() ? "yes" : "no")); PutModule("Cloaked: " + CString(m_bCloaked ? "yes" : "no")); PutModule("Authed: " + CString(m_bAuthed ? "yes" : "no")); } else { // The following commands require an IRC connection. if (!IsIRCConnected()) { PutModule("Error: You are not connected to IRC."); return; } if (sCommand == "cloak") { if (!m_bCloaked) Cloak(); else PutModule("Error: You are already cloaked!"); } else if (sCommand == "auth") { if (!m_bAuthed) Auth(sLine.Token(1), sLine.Token(2)); else PutModule("Error: You are already authed!"); } else if (sCommand == "update") { WhoAmI(); PutModule("Update requested."); } else { PutModule("Unknown command. Try 'help'."); } } } virtual EModRet OnRaw(CString& sLine) override { // use OnRaw because OnUserMode is not defined (yet?) if (sLine.Token(1) == "396" && sLine.Token(3).find("users.quakenet.org") != CString::npos) { m_bCloaked = true; PutModule("Cloak successful: Your hostname is now cloaked."); // Join channels immediately after our spoof is set, but only if // both UseCloakedHost and JoinAfterCloaked is enabled. See #602. if (m_bJoinAfterCloaked) { GetNetwork()->JoinChans(); } } return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { return HandleMessage(Nick, sMessage); } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override { return HandleMessage(Nick, sMessage); } virtual EModRet OnJoining(CChan& Channel) override { // Halt if are not already cloaked, but the user requres that we delay // channel join till after we are cloaked. if (!m_bCloaked && m_bUseCloakedHost && m_bJoinAfterCloaked) return HALT; return CONTINUE; } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { if (m_bRequestPerms && IsSelf(Nick)) HandleNeed(Channel, "ov"); } virtual void OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { if (m_bRequestPerms && IsSelf(Nick) && (!pOpNick || !IsSelf(*pOpNick))) HandleNeed(Channel, "o"); } virtual void OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { if (m_bRequestPerms && IsSelf(Nick) && (!pOpNick || !IsSelf(*pOpNick))) HandleNeed(Channel, "v"); } virtual EModRet OnInvite(const CNick& Nick, const CString& sChan) override { if (!Nick.NickEquals("Q") || !Nick.GetHost().Equals("CServe.quakenet.org")) return CONTINUE; if (m_bJoinOnInvite) GetNetwork()->AddChan(sChan, false); return CONTINUE; } virtual CString GetWebMenuTitle() override { return "Q"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { bool bSubmitted = (WebSock.GetParam("submitted").ToInt() != 0); if (bSubmitted) { CString FormUsername = WebSock.GetParam("user"); if (!FormUsername.empty()) SetUsername(FormUsername); CString FormPassword = WebSock.GetParam("password"); if (!FormPassword.empty()) SetPassword(FormPassword); SetUseCloakedHost(WebSock.GetParam("usecloakedhost").ToBool()); SetUseChallenge(WebSock.GetParam("usechallenge").ToBool()); SetRequestPerms(WebSock.GetParam("requestperms").ToBool()); SetJoinOnInvite(WebSock.GetParam("joinoninvite").ToBool()); SetJoinAfterCloaked(WebSock.GetParam("joinaftercloaked").ToBool()); } Tmpl["Username"] = m_sUsername; CTemplate& o1 = Tmpl.AddRow("OptionLoop"); o1["Name"] = "usecloakedhost"; o1["DisplayName"] = "UseCloakedHost"; o1["Tooltip"] = "Whether to cloak your hostname (+x) automatically on connect."; o1["Checked"] = CString(m_bUseCloakedHost); CTemplate& o2 = Tmpl.AddRow("OptionLoop"); o2["Name"] = "usechallenge"; o2["DisplayName"] = "UseChallenge"; o2["Tooltip"] = "Whether to use the CHALLENGEAUTH mechanism to avoid sending passwords in cleartext."; o2["Checked"] = CString(m_bUseChallenge); CTemplate& o3 = Tmpl.AddRow("OptionLoop"); o3["Name"] = "requestperms"; o3["DisplayName"] = "RequestPerms"; o3["Tooltip"] = "Whether to request voice/op from Q on join/devoice/deop."; o3["Checked"] = CString(m_bRequestPerms); CTemplate& o4 = Tmpl.AddRow("OptionLoop"); o4["Name"] = "joinoninvite"; o4["DisplayName"] = "JoinOnInvite"; o4["Tooltip"] = "Whether to join channels when Q invites you."; o4["Checked"] = CString(m_bJoinOnInvite); CTemplate& o5 = Tmpl.AddRow("OptionLoop"); o5["Name"] = "joinaftercloaked"; o5["DisplayName"] = "JoinAfterCloaked"; o5["Tooltip"] = "Whether to delay joining channels until after you are cloaked."; o5["Checked"] = CString(m_bJoinAfterCloaked); if (bSubmitted) { WebSock.GetSession()->AddSuccess("Changes have been saved!"); } return true; } return false; } private: bool m_bCloaked{}; bool m_bAuthed{}; bool m_bRequestedWhoami{}; bool m_bRequestedChallenge{}; bool m_bCatchResponse{}; MCString m_msChanModes; void PutQ(const CString& sMessage) { PutIRC("PRIVMSG Q@CServe.quakenet.org :" + sMessage); #if Q_DEBUG_COMMUNICATION PutModule("[ZNC --> Q] " + sMessage); #endif } void Cloak() { if (m_bCloaked) return; PutModule("Cloak: Trying to cloak your hostname, setting +x..."); PutIRC("MODE " + GetNetwork()->GetIRCSock()->GetNick() + " +x"); } void WhoAmI() { m_bRequestedWhoami = true; PutQ("WHOAMI"); } void Auth(const CString& sUsername = "", const CString& sPassword = "") { if (m_bAuthed) return; if (!sUsername.empty()) SetUsername(sUsername); if (!sPassword.empty()) SetPassword(sPassword); if (m_sUsername.empty() || m_sPassword.empty()) { PutModule("You have to set a username and password to use this module! See 'help' for details."); return; } if (m_bUseChallenge) { PutModule("Auth: Requesting CHALLENGE..."); m_bRequestedChallenge = true; PutQ("CHALLENGE"); } else { PutModule("Auth: Sending AUTH request..."); PutQ("AUTH " + m_sUsername + " " + m_sPassword); } } void ChallengeAuth(CString sChallenge) { if (m_bAuthed) return; CString sUsername = m_sUsername.AsLower() .Replace_n("[", "{") .Replace_n("]", "}") .Replace_n("\\", "|"); CString sPasswordHash = m_sPassword.Left(10).SHA256(); CString sKey = CString(sUsername + ":" + sPasswordHash).SHA256(); CString sResponse = HMAC_SHA256(sKey, sChallenge); PutModule("Auth: Received challenge, sending CHALLENGEAUTH request..."); PutQ("CHALLENGEAUTH " + m_sUsername + " " + sResponse + " HMAC-SHA-256"); } EModRet HandleMessage(const CNick& Nick, CString sMessage) { if (!Nick.NickEquals("Q") || !Nick.GetHost().Equals("CServe.quakenet.org")) return CONTINUE; sMessage.Trim(); #if Q_DEBUG_COMMUNICATION PutModule("[ZNC <-- Q] " + sMessage); #endif // WHOAMI if (sMessage.find("WHOAMI is only available to authed users") != CString::npos) { m_bAuthed = false; Auth(); m_bCatchResponse = m_bRequestedWhoami; } else if (sMessage.find("Information for user") != CString::npos) { m_bAuthed = true; m_msChanModes.clear(); m_bCatchResponse = m_bRequestedWhoami; m_bRequestedWhoami = true; } else if (m_bRequestedWhoami && sMessage.WildCmp("#*")) { CString sChannel = sMessage.Token(0); CString sFlags = sMessage.Token(1, true).Trim_n().TrimLeft_n("+"); m_msChanModes[sChannel] = sFlags; } else if (m_bRequestedWhoami && m_bCatchResponse && (sMessage.Equals("End of list.") || sMessage.Equals("account, or HELLO to create an account."))) { m_bRequestedWhoami = m_bCatchResponse = false; return HALT; } // AUTH else if (sMessage.Equals("Username or password incorrect.")) { m_bAuthed = false; PutModule("Auth failed: " + sMessage); return HALT; } else if (sMessage.WildCmp("You are now logged in as *.")) { m_bAuthed = true; PutModule("Auth successful: " + sMessage); WhoAmI(); return HALT; } else if (m_bRequestedChallenge && sMessage.Token(0).Equals("CHALLENGE")) { m_bRequestedChallenge = false; if (sMessage.find("not available once you have authed") != CString::npos) { m_bAuthed = true; } else { if (sMessage.find("HMAC-SHA-256") != CString::npos) { ChallengeAuth(sMessage.Token(1)); } else { PutModule("Auth failed: Q does not support HMAC-SHA-256 for CHALLENGEAUTH, falling back to standard AUTH."); SetUseChallenge(false); Auth(); } } return HALT; } // prevent buffering of Q's responses return !m_bCatchResponse && GetUser()->IsUserAttached() ? CONTINUE : HALT; } void HandleNeed(const CChan& Channel, const CString& sPerms) { MCString::iterator it = m_msChanModes.find(Channel.GetName()); if (it == m_msChanModes.end()) return; CString sModes = it->second; bool bMaster = (sModes.find("m") != CString::npos) || (sModes.find("n") != CString::npos); if (sPerms.find("o") != CString::npos) { bool bOp = (sModes.find("o") != CString::npos); bool bAutoOp = (sModes.find("a") != CString::npos); if (bMaster || bOp) { if (!bAutoOp) { PutModule("RequestPerms: Requesting op on " + Channel.GetName()); PutQ("OP " + Channel.GetName()); } return; } } if (sPerms.find("v") != CString::npos) { bool bVoice = (sModes.find("v") != CString::npos); bool bAutoVoice = (sModes.find("g") != CString::npos); if (bMaster || bVoice) { if (!bAutoVoice) { PutModule("RequestPerms: Requesting voice on " + Channel.GetName()); PutQ("VOICE " + Channel.GetName()); } return; } } } /* Utility Functions */ bool IsIRCConnected() { CIRCSock* pIRCSock = GetNetwork()->GetIRCSock(); return pIRCSock && pIRCSock->IsAuthed(); } bool IsSelf(const CNick& Nick) { return Nick.NickEquals(GetNetwork()->GetCurNick()); } bool PackHex(const CString& sHex, CString& sPackedHex) { if (sHex.length() % 2) return false; sPackedHex.clear(); CString::size_type len = sHex.length() / 2; for (CString::size_type i = 0; i < len; i++) { unsigned int value; int n = sscanf(&sHex[i*2], "%02x", &value); if (n != 1 || value > 0xff) return false; sPackedHex += (unsigned char) value; } return true; } CString HMAC_SHA256(const CString& sKey, const CString& sData) { CString sRealKey; if (sKey.length() > 64) PackHex(sKey.SHA256(), sRealKey); else sRealKey = sKey; CString sOuterKey, sInnerKey; CString::size_type iKeyLength = sRealKey.length(); for (unsigned int i = 0; i < 64; i++) { char r = (i < iKeyLength ? sRealKey[i] : '\0'); sOuterKey += r ^ 0x5c; sInnerKey += r ^ 0x36; } CString sInnerHash; PackHex(CString(sInnerKey + sData).SHA256(), sInnerHash); return CString(sOuterKey + sInnerHash).SHA256(); } /* Settings */ CString m_sUsername; CString m_sPassword; bool m_bUseCloakedHost{}; bool m_bUseChallenge{}; bool m_bRequestPerms{}; bool m_bJoinOnInvite{}; bool m_bJoinAfterCloaked{}; void SetUsername(const CString& sUsername) { m_sUsername = sUsername; SetNV("Username", sUsername); } void SetPassword(const CString& sPassword) { m_sPassword = sPassword; SetNV("Password", sPassword); } void SetUseCloakedHost(const bool bUseCloakedHost) { m_bUseCloakedHost = bUseCloakedHost; SetNV("UseCloakedHost", CString(bUseCloakedHost)); if (!m_bCloaked && m_bUseCloakedHost && IsIRCConnected()) Cloak(); } void SetUseChallenge(const bool bUseChallenge) { m_bUseChallenge = bUseChallenge; SetNV("UseChallenge", CString(bUseChallenge)); } void SetRequestPerms(const bool bRequestPerms) { m_bRequestPerms = bRequestPerms; SetNV("RequestPerms", CString(bRequestPerms)); } void SetJoinOnInvite(const bool bJoinOnInvite) { m_bJoinOnInvite = bJoinOnInvite; SetNV("JoinOnInvite", CString(bJoinOnInvite)); } void SetJoinAfterCloaked(const bool bJoinAfterCloaked) { m_bJoinAfterCloaked = bJoinAfterCloaked; SetNV("JoinAfterCloaked", CString(bJoinAfterCloaked)); } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("Q"); Info.SetHasArgs(true); Info.SetArgsHelpText("Please provide your username and password for Q."); } NETWORKMODULEDEFS(CQModule, "Auths you with QuakeNet's Q bot.") znc-1.6.3/modules/log.cpp0000644000175000017500000003221212663147131015500 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Copyright (C) 2006-2007, CNU (http://cnu.dieplz.net/znc) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include using std::vector; class CLogRule { public: CLogRule(const CString& sRule, bool bEnabled = true) : m_sRule(sRule), m_bEnabled(bEnabled) {} const CString& GetRule() const { return m_sRule; } bool IsEnabled() const { return m_bEnabled; } void SetEnabled(bool bEnabled) { m_bEnabled = bEnabled; } bool Compare(const CString& sTarget) const { return sTarget.WildCmp(m_sRule); } bool operator==(const CLogRule& sOther) const { return m_sRule == sOther.GetRule(); } CString ToString() const { return (m_bEnabled ? "" : "!") + m_sRule; } private: CString m_sRule; bool m_bEnabled; }; class CLogMod: public CModule { public: MODCONSTRUCTOR(CLogMod) { m_bSanitize = false; AddHelpCommand(); AddCommand("SetRules", static_cast(&CLogMod::SetRulesCmd), "", "Set logging rules, use !#chan or !query to negate and * for wildcards"); AddCommand("ClearRules", static_cast(&CLogMod::ClearRulesCmd), "", "Clear all logging rules"); AddCommand("ListRules", static_cast(&CLogMod::ListRulesCmd), "", "List all logging rules"); } void SetRulesCmd(const CString& sLine); void ClearRulesCmd(const CString& sLine); void ListRulesCmd(const CString& sLine = ""); void SetRules(const VCString& vsRules); VCString SplitRules(const CString& sRules) const; CString JoinRules(const CString& sSeparator) const; bool TestRules(const CString& sTarget) const; void PutLog(const CString& sLine, const CString& sWindow = "status"); void PutLog(const CString& sLine, const CChan& Channel); void PutLog(const CString& sLine, const CNick& Nick); CString GetServer(); virtual bool OnLoad(const CString& sArgs, CString& sMessage) override; virtual void OnIRCConnected() override; virtual void OnIRCDisconnected() override; virtual EModRet OnBroadcast(CString& sMessage) override; virtual void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) override; virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override; virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override; virtual void OnJoin(const CNick& Nick, CChan& Channel) override; virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override; virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) override; virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) override; /* notices */ virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override; virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override; /* actions */ virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override; virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) override; /* msgs */ virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override; virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override; private: CString m_sLogPath; bool m_bSanitize; vector m_vRules; }; void CLogMod::SetRulesCmd(const CString& sLine) { VCString vsRules = SplitRules(sLine.Token(1, true)); if (vsRules.empty()) { PutModule("Usage: SetRules "); PutModule("Wildcards are allowed"); } else { SetRules(vsRules); SetNV("rules", JoinRules(",")); ListRulesCmd(); } } void CLogMod::ClearRulesCmd(const CString& sLine) { size_t uCount = m_vRules.size(); if (uCount == 0) { PutModule("No logging rules. Everything is logged."); } else { CString sRules = JoinRules(" "); SetRules(VCString()); DelNV("rules"); PutModule(CString(uCount) + " rule(s) removed: " + sRules); } } void CLogMod::ListRulesCmd(const CString& sLine) { CTable Table; Table.AddColumn("Rule"); Table.AddColumn("Logging enabled"); for (const CLogRule& Rule : m_vRules) { Table.AddRow(); Table.SetCell("Rule", Rule.GetRule()); Table.SetCell("Logging enabled", CString(Rule.IsEnabled())); } if (Table.empty()) { PutModule("No logging rules. Everything is logged."); } else { PutModule(Table); } } void CLogMod::SetRules(const VCString& vsRules) { m_vRules.clear(); for (CString sRule : vsRules) { bool bEnabled = !sRule.TrimPrefix("!"); m_vRules.push_back(CLogRule(sRule, bEnabled)); } } VCString CLogMod::SplitRules(const CString& sRules) const { CString sCopy = sRules; sCopy.Replace(",", " "); VCString vsRules; sCopy.Split(" ", vsRules, false, "", "", true, true); return vsRules; } CString CLogMod::JoinRules(const CString& sSeparator) const { VCString vsRules; for (const CLogRule& Rule : m_vRules) { vsRules.push_back(Rule.ToString()); } return sSeparator.Join(vsRules.begin(), vsRules.end()); } bool CLogMod::TestRules(const CString& sTarget) const { for (const CLogRule& Rule : m_vRules) { if (Rule.Compare(sTarget)) { return Rule.IsEnabled(); } } return true; } void CLogMod::PutLog(const CString& sLine, const CString& sWindow /*= "Status"*/) { if (!TestRules(sWindow)) { return; } CString sPath; time_t curtime; time(&curtime); // Generate file name sPath = CUtils::FormatTime(curtime, m_sLogPath, GetUser()->GetTimezone()); if (sPath.empty()) { DEBUG("Could not format log path [" << sPath << "]"); return; } // TODO: Properly handle IRC case mapping // $WINDOW has to be handled last, since it can contain % sPath.Replace("$USER", CString((GetUser() ? GetUser()->GetUserName() : "UNKNOWN")).AsLower()); sPath.Replace("$NETWORK", CString((GetNetwork() ? GetNetwork()->GetName() : "znc")).AsLower()); sPath.Replace("$WINDOW", CString(sWindow.Replace_n("/", "-").Replace_n("\\", "-")).AsLower()); // Check if it's allowed to write in this specific path sPath = CDir::CheckPathPrefix(GetSavePath(), sPath); if (sPath.empty()) { DEBUG("Invalid log path ["<GetTimezone()) + (m_bSanitize ? sLine.StripControls_n() : sLine) + "\n"); } else DEBUG("Could not open log file [" << sPath << "]: " << strerror(errno)); } void CLogMod::PutLog(const CString& sLine, const CChan& Channel) { PutLog(sLine, Channel.GetName()); } void CLogMod::PutLog(const CString& sLine, const CNick& Nick) { PutLog(sLine, Nick.GetNick()); } CString CLogMod::GetServer() { CServer* pServer = GetNetwork()->GetCurrentServer(); CString sSSL; if (!pServer) return "(no server)"; if (pServer->IsSSL()) sSSL = "+"; return pServer->GetName() + " " + sSSL + CString(pServer->GetPort()); } bool CLogMod::OnLoad(const CString& sArgs, CString& sMessage) { size_t uIndex = 0; if (sArgs.Token(0).Equals("-sanitize")) { m_bSanitize = true; ++uIndex; } // Use load parameter as save path m_sLogPath = sArgs.Token(uIndex); // Add default filename to path if it's a folder if (GetType() == CModInfo::UserModule) { if (m_sLogPath.Right(1) == "/" || m_sLogPath.find("$WINDOW") == CString::npos || m_sLogPath.find("$NETWORK") == CString::npos) { if (!m_sLogPath.empty()) { m_sLogPath += "/"; } m_sLogPath += "$NETWORK/$WINDOW/%Y-%m-%d.log"; } } else if (GetType() == CModInfo::NetworkModule) { if (m_sLogPath.Right(1) == "/" || m_sLogPath.find("$WINDOW") == CString::npos) { if (!m_sLogPath.empty()) { m_sLogPath += "/"; } m_sLogPath += "$WINDOW/%Y-%m-%d.log"; } } else { if (m_sLogPath.Right(1) == "/" || m_sLogPath.find("$USER") == CString::npos || m_sLogPath.find("$WINDOW") == CString::npos || m_sLogPath.find("$NETWORK") == CString::npos) { if (!m_sLogPath.empty()) { m_sLogPath += "/"; } m_sLogPath += "$USER/$NETWORK/$WINDOW/%Y-%m-%d.log"; } } CString sRules = GetNV("rules"); VCString vsRules = SplitRules(sRules); SetRules(vsRules); // Check if it's allowed to write in this path in general m_sLogPath = CDir::CheckPathPrefix(GetSavePath(), m_sLogPath); if (m_sLogPath.empty()) { sMessage = "Invalid log path ["+m_sLogPath+"]."; return false; } else { sMessage = "Logging to ["+m_sLogPath+"]."; return true; } } void CLogMod::OnIRCConnected() { PutLog("Connected to IRC (" + GetServer() + ")"); } void CLogMod::OnIRCDisconnected() { PutLog("Disconnected from IRC (" + GetServer() + ")"); } CModule::EModRet CLogMod::OnBroadcast(CString& sMessage) { PutLog("Broadcast: " + sMessage); return CONTINUE; } void CLogMod::OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { const CString sNick = pOpNick ? pOpNick->GetNick() : "Server"; PutLog("*** " + sNick + " sets mode: " + sModes + " " + sArgs, Channel); } void CLogMod::OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { PutLog("*** " + sKickedNick + " was kicked by " + OpNick.GetNick() + " (" + sMessage + ")", Channel); } void CLogMod::OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { for (std::vector::const_iterator pChan = vChans.begin(); pChan != vChans.end(); ++pChan) PutLog("*** Quits: " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") (" + sMessage + ")", **pChan); } void CLogMod::OnJoin(const CNick& Nick, CChan& Channel) { PutLog("*** Joins: " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ")", Channel); } void CLogMod::OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { PutLog("*** Parts: " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") (" + sMessage + ")", Channel); } void CLogMod::OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) { for (std::vector::const_iterator pChan = vChans.begin(); pChan != vChans.end(); ++pChan) PutLog("*** " + OldNick.GetNick() + " is now known as " + sNewNick, **pChan); } CModule::EModRet CLogMod::OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { PutLog("*** " + Nick.GetNick() + " changes topic to '" + sTopic + "'", Channel); return CONTINUE; } /* notices */ CModule::EModRet CLogMod::OnUserNotice(CString& sTarget, CString& sMessage) { CIRCNetwork* pNetwork = GetNetwork(); if (pNetwork) { PutLog("-" + pNetwork->GetCurNick() + "- " + sMessage, sTarget); } return CONTINUE; } CModule::EModRet CLogMod::OnPrivNotice(CNick& Nick, CString& sMessage) { PutLog("-" + Nick.GetNick() + "- " + sMessage, Nick); return CONTINUE; } CModule::EModRet CLogMod::OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { PutLog("-" + Nick.GetNick() + "- " + sMessage, Channel); return CONTINUE; } /* actions */ CModule::EModRet CLogMod::OnUserAction(CString& sTarget, CString& sMessage) { CIRCNetwork* pNetwork = GetNetwork(); if (pNetwork) { PutLog("* " + pNetwork->GetCurNick() + " " + sMessage, sTarget); } return CONTINUE; } CModule::EModRet CLogMod::OnPrivAction(CNick& Nick, CString& sMessage) { PutLog("* " + Nick.GetNick() + " " + sMessage, Nick); return CONTINUE; } CModule::EModRet CLogMod::OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { PutLog("* " + Nick.GetNick() + " " + sMessage, Channel); return CONTINUE; } /* msgs */ CModule::EModRet CLogMod::OnUserMsg(CString& sTarget, CString& sMessage) { CIRCNetwork* pNetwork = GetNetwork(); if (pNetwork) { PutLog("<" + pNetwork->GetCurNick() + "> " + sMessage, sTarget); } return CONTINUE; } CModule::EModRet CLogMod::OnPrivMsg(CNick& Nick, CString& sMessage) { PutLog("<" + Nick.GetNick() + "> " + sMessage, Nick); return CONTINUE; } CModule::EModRet CLogMod::OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { PutLog("<" + Nick.GetNick() + "> " + sMessage, Channel); return CONTINUE; } template<> void TModInfo(CModInfo& Info) { Info.AddType(CModInfo::NetworkModule); Info.AddType(CModInfo::GlobalModule); Info.SetHasArgs(true); Info.SetArgsHelpText("[-sanitize] Optional path where to store logs."); Info.SetWikiPage("log"); } USERMODULEDEFS(CLogMod, "Write IRC logs.") znc-1.6.3/modules/savebuff.cpp0000644000175000017500000003015712663147131016526 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Author: imaginos * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Buffer Saving thing, incase your shit goes out while your out * * Its only as secure as your shell, the encryption only offers a slightly * better solution then plain text. */ #define REQUIRESSL #include #include #include #include #include using std::set; using std::vector; #define LEGACY_VERIFICATION_TOKEN "::__:SAVEBUFF:__::" #define CHAN_VERIFICATION_TOKEN "::__:CHANBUFF:__::" #define QUERY_VERIFICATION_TOKEN "::__:QUERYBUFF:__::" // this is basically plain text, but so is having the pass in the command line so *shrug* // you could at least do something kind of cool like a bunch of unprintable text #define CRYPT_LAME_PASS "::__:NOPASS:__::" #define CRYPT_ASK_PASS "--ask-pass" class CSaveBuff; class CSaveBuffJob : public CTimer { public: CSaveBuffJob(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {} virtual ~CSaveBuffJob() {} protected: virtual void RunJob() override; }; class CSaveBuff : public CModule { public: MODCONSTRUCTOR(CSaveBuff) { m_bBootError = false; AddHelpCommand(); AddCommand("SetPass", static_cast(&CSaveBuff::OnSetPassCommand), "", "Sets the password"); AddCommand("Replay", static_cast(&CSaveBuff::OnReplayCommand), "", "Replays the buffer"); AddCommand("Save", static_cast(&CSaveBuff::OnSaveCommand), "", "Saves all buffers"); } virtual ~CSaveBuff() { if (!m_bBootError) { SaveBuffersToDisk(); } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { if( sArgs == CRYPT_ASK_PASS ) { char *pPass = getpass( "Enter pass for savebuff: " ); if( pPass ) m_sPassword = CBlowfish::MD5( pPass ); else { m_bBootError = true; sMessage = "Nothing retrieved from console. aborting"; } } else if( sArgs.empty() ) m_sPassword = CBlowfish::MD5( CRYPT_LAME_PASS ); else m_sPassword = CBlowfish::MD5(sArgs); AddTimer(new CSaveBuffJob(this, 60, 0, "SaveBuff", "Saves the current buffer to disk every 1 minute")); return( !m_bBootError ); } virtual bool OnBoot() override { CDir saveDir(GetSavePath()); for (CFile* pFile : saveDir) { CString sName; CString sBuffer; EBufferType eType = DecryptBuffer(pFile->GetLongName(), sBuffer, sName); switch (eType) { case InvalidBuffer: m_sPassword = ""; CUtils::PrintError("[" + GetModName() + ".so] Failed to Decrypt [" + pFile->GetLongName() + "]"); if (!sName.empty()) { PutUser(":***!znc@znc.in PRIVMSG " + sName + " :Failed to decrypt this buffer, did you change the encryption pass?"); } break; case ChanBuffer: if (CChan *pChan = GetNetwork()->FindChan(sName)) { BootStrap(pChan, sBuffer); } break; case QueryBuffer: if (CQuery* pQuery = GetNetwork()->AddQuery(sName)) { BootStrap(pQuery, sBuffer); } break; default: break; } } return true; } template void BootStrap(T *pTarget, const CString& sContent) { if (!pTarget->GetBuffer().IsEmpty()) return; // in this case the module was probably reloaded VCString vsLines; VCString::iterator it; sContent.Split("\n", vsLines); for (it = vsLines.begin(); it != vsLines.end(); ++it) { CString sLine(*it); sLine.Trim(); if (sLine[0] == '@' && it+1 != vsLines.end()) { CString sTimestamp = sLine.Token(0); sTimestamp.TrimLeft("@"); timeval ts; ts.tv_sec = sTimestamp.Token(0, false, ",").ToLongLong(); ts.tv_usec = sTimestamp.Token(1, false, ",").ToLong(); CString sFormat = sLine.Token(1, true); CString sText(*++it); sText.Trim(); pTarget->AddBuffer(sFormat, sText, &ts); } else { // Old format, escape the line and use as is. pTarget->AddBuffer(_NAMEDFMT(sLine)); } } } void SaveBufferToDisk(const CBuffer& Buffer, const CString& sPath, const CString& sHeader) { CFile File(sPath); CString sContent = sHeader + "\n"; size_t uSize = Buffer.Size(); for (unsigned int uIdx = 0; uIdx < uSize; uIdx++) { const CBufLine& Line = Buffer.GetBufLine(uIdx); timeval ts = Line.GetTime(); sContent += "@" + CString(ts.tv_sec) + "," + CString(ts.tv_usec) + " " + Line.GetFormat() + "\n" + Line.GetText() + "\n"; } CBlowfish c(m_sPassword, BF_ENCRYPT); sContent = c.Crypt(sContent); if (File.Open(O_WRONLY | O_CREAT | O_TRUNC, 0600)) { File.Chmod(0600); File.Write(sContent); } File.Close(); } void SaveBuffersToDisk() { if (!m_sPassword.empty()) { set ssPaths; const vector& vChans = GetNetwork()->GetChans(); for (CChan* pChan : vChans) { CString sPath = GetPath(pChan->GetName()); SaveBufferToDisk(pChan->GetBuffer(), sPath, CHAN_VERIFICATION_TOKEN + pChan->GetName()); ssPaths.insert(sPath); } const vector& vQueries = GetNetwork()->GetQueries(); for (CQuery* pQuery : vQueries) { CString sPath = GetPath(pQuery->GetName()); SaveBufferToDisk(pQuery->GetBuffer(), sPath, QUERY_VERIFICATION_TOKEN + pQuery->GetName()); ssPaths.insert(sPath); } // cleanup leftovers ie. cleared buffers CDir saveDir(GetSavePath()); for (CFile* pFile : saveDir) { if (ssPaths.count(pFile->GetLongName()) == 0) { pFile->Delete(); } } } else { PutModule( "Password is unset usually meaning the decryption failed. You can setpass to the appropriate pass and things should start working, or setpass to a new pass and save to reinstantiate" ); } } void OnSetPassCommand(const CString& sCmdLine) { CString sArgs = sCmdLine.Token(1, true); if(sArgs.empty()) sArgs = CRYPT_LAME_PASS; PutModule("Password set to [" + sArgs + "]"); m_sPassword = CBlowfish::MD5(sArgs); } void OnModCommand(const CString& sCmdLine) override { CString sCommand = sCmdLine.Token(0); CString sArgs = sCmdLine.Token(1, true); if (sCommand.Equals("dumpbuff")) { // for testing purposes - hidden from help CString sFile; CString sName; if (DecryptBuffer(GetPath(sArgs), sFile, sName)) { VCString vsLines; VCString::iterator it; sFile.Split("\n", vsLines); for (it = vsLines.begin(); it != vsLines.end(); ++it) { CString sLine(*it); sLine.Trim(); PutModule("[" + sLine + "]"); } } PutModule("//!-- EOF " + sArgs); } else { HandleCommand(sCmdLine); } } void OnReplayCommand(const CString& sCmdLine) { CString sArgs = sCmdLine.Token(1, true); Replay(sArgs); PutModule("Replayed " + sArgs); } void OnSaveCommand(const CString& sCmdLine) { SaveBuffersToDisk(); PutModule("Done."); } void Replay(const CString & sBuffer) { CString sFile; CString sName; PutUser(":***!znc@znc.in PRIVMSG " + sBuffer + " :Buffer Playback..."); if (DecryptBuffer(GetPath(sBuffer), sFile, sName)) { VCString vsLines; VCString::iterator it; sFile.Split("\n", vsLines); for (it = vsLines.begin(); it != vsLines.end(); ++it) { CString sLine(*it); sLine.Trim(); PutUser(sLine); } } PutUser(":***!znc@znc.in PRIVMSG " + sBuffer + " :Playback Complete."); } CString GetPath(const CString & sTarget) const { CString sBuffer = GetUser()->GetUserName() + sTarget.AsLower(); CString sRet = GetSavePath(); sRet += "/" + CBlowfish::MD5(sBuffer, true); return(sRet); } CString FindLegacyBufferName(const CString & sPath) const { const vector& vChans = GetNetwork()->GetChans(); for (CChan* pChan : vChans) { const CString& sName = pChan->GetName(); if (GetPath(sName).Equals(sPath)) { return sName; } } return CString(); } #ifdef LEGACY_SAVEBUFF /* event logging is deprecated now in savebuf. Use buffextras module along side of this */ CString SpoofChanMsg(const CString & sChannel, const CString & sMesg) { CString sReturn = ":*" + GetModName() + "!znc@znc.in PRIVMSG " + sChannel + " :" + CString(time(NULL)) + " " + sMesg; return(sReturn); } void AddBuffer(CChan& chan, const CString &sLine) { // If they have AutoClearChanBuffer enabled, only add messages if no client is connected if (chan.AutoClearChanBuffer() && GetNetwork()->IsUserAttached()) return; chan.AddBuffer(sLine); } virtual void OnRawMode(const CNick& cOpNick, CChan& cChannel, const CString& sModes, const CString& sArgs) override { AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), cOpNick.GetNickMask() + " MODE " + sModes + " " + sArgs)); } virtual void OnQuit(const CNick& cNick, const CString& sMessage, const vector& vChans) override { for (size_t a = 0; a < vChans.size(); a++) { AddBuffer(*vChans[a], SpoofChanMsg(vChans[a]->GetName(), cNick.GetNickMask() + " QUIT " + sMessage)); } if (cNick.NickEquals(GetUser()->GetNick())) SaveBuffersToDisk(); // need to force a save here to see this! } virtual void OnNick(const CNick& cNick, const CString& sNewNick, const vector& vChans) override { for (size_t a = 0; a < vChans.size(); a++) { AddBuffer(*vChans[a], SpoofChanMsg(vChans[a]->GetName(), cNick.GetNickMask() + " NICK " + sNewNick)); } } virtual void OnKick(const CNick& cNick, const CString& sOpNick, CChan& cChannel, const CString& sMessage) override { AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), sOpNick + " KICK " + cNick.GetNickMask() + " " + sMessage)); } virtual void OnJoin(const CNick& cNick, CChan& cChannel) override { if (cNick.NickEquals(GetUser()->GetNick()) && cChannel.GetBuffer().empty()) { BootStrap((CChan *)&cChannel); if (!cChannel.GetBuffer().empty()) Replay(cChannel.GetName()); } AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), cNick.GetNickMask() + " JOIN")); } virtual void OnPart(const CNick& cNick, CChan& cChannel) override { AddBuffer(cChannel, SpoofChanMsg(cChannel.GetName(), cNick.GetNickMask() + " PART")); if (cNick.NickEquals(GetUser()->GetNick())) SaveBuffersToDisk(); // need to force a save here to see this! } #endif /* LEGACY_SAVEBUFF */ private: bool m_bBootError; CString m_sPassword; enum EBufferType { InvalidBuffer = 0, EmptyBuffer, ChanBuffer, QueryBuffer }; EBufferType DecryptBuffer(const CString& sPath, CString& sBuffer, CString& sName) { CString sContent; sBuffer = ""; CFile File(sPath); if (sPath.empty() || !File.Open() || !File.ReadFile(sContent)) return EmptyBuffer; File.Close(); if (!sContent.empty()) { CBlowfish c(m_sPassword, BF_DECRYPT); sBuffer = c.Crypt(sContent); if (sBuffer.TrimPrefix(LEGACY_VERIFICATION_TOKEN)) { sName = FindLegacyBufferName(sPath); return ChanBuffer; } else if (sBuffer.TrimPrefix(CHAN_VERIFICATION_TOKEN)) { sName = sBuffer.FirstLine(); if (sBuffer.TrimLeft(sName + "\n")) return ChanBuffer; } else if (sBuffer.TrimPrefix(QUERY_VERIFICATION_TOKEN)) { sName = sBuffer.FirstLine(); if (sBuffer.TrimLeft(sName + "\n")) return QueryBuffer; } PutModule("Unable to decode Encrypted file [" + sPath + "]"); return InvalidBuffer; } return EmptyBuffer; } }; void CSaveBuffJob::RunJob() { CSaveBuff *p = (CSaveBuff *)GetModule(); p->SaveBuffersToDisk(); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("savebuff"); Info.SetHasArgs(true); Info.SetArgsHelpText("This user module takes up to one arguments. Either --ask-pass or the password itself (which may contain spaces) or nothing"); } NETWORKMODULEDEFS(CSaveBuff, "Stores channel and query buffers to disk, encrypted") znc-1.6.3/modules/fail2ban.cpp0000644000175000017500000000662312663147131016404 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include class CFailToBanMod : public CModule { public: MODCONSTRUCTOR(CFailToBanMod) {} virtual ~CFailToBanMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { CString sTimeout = sArgs.Token(0); CString sAttempts = sArgs.Token(1); unsigned int timeout = sTimeout.ToUInt(); if (sAttempts.empty()) m_uiAllowedFailed = 2; else m_uiAllowedFailed = sAttempts.ToUInt();; if (sArgs.empty()) { timeout = 1; } else if (timeout == 0 || m_uiAllowedFailed == 0 || !sArgs.Token(2, true).empty()) { sMessage = "Invalid argument, must be the number of minutes " "IPs are blocked after a failed login and can be " "followed by number of allowed failed login attempts"; return false; } // SetTTL() wants milliseconds m_Cache.SetTTL(timeout * 60 * 1000); return true; } virtual void OnPostRehash() override { m_Cache.Clear(); } void Add(const CString& sHost, unsigned int count) { m_Cache.AddItem(sHost, count, m_Cache.GetTTL()); } virtual void OnModCommand(const CString& sCommand) override { PutModule("This module can only be configured through its arguments."); PutModule("The module argument is the number of minutes an IP"); PutModule("is blocked after a failed login."); } virtual void OnClientConnect(CZNCSock* pClient, const CString& sHost, unsigned short uPort) override { unsigned int *pCount = m_Cache.GetItem(sHost); if (sHost.empty() || pCount == NULL || *pCount < m_uiAllowedFailed) { return; } // refresh their ban Add(sHost, *pCount); pClient->Write("ERROR :Closing link [Please try again later - reconnecting too fast]\r\n"); pClient->Close(Csock::CLT_AFTERWRITE); } virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) override { unsigned int *pCount = m_Cache.GetItem(sRemoteIP); if (pCount) Add(sRemoteIP, *pCount + 1); else Add(sRemoteIP, 1); } virtual EModRet OnLoginAttempt(std::shared_ptr Auth) override { // e.g. webadmin ends up here const CString& sRemoteIP = Auth->GetRemoteIP(); if (sRemoteIP.empty()) return CONTINUE; unsigned int *pCount = m_Cache.GetItem(sRemoteIP); if (pCount && *pCount >= m_uiAllowedFailed) { // OnFailedLogin() will refresh their ban Auth->RefuseLogin("Please try again later - reconnecting too fast"); return HALT; } return CONTINUE; } private: TCacheMap m_Cache; unsigned int m_uiAllowedFailed{}; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("fail2ban"); Info.SetHasArgs(true); Info.SetArgsHelpText("You might enter the time in minutes for the IP banning and the number of failed logins before any action is taken."); } GLOBALMODULEDEFS(CFailToBanMod, "Block IPs for some time after a failed login.") znc-1.6.3/modules/modpython/0000755000175000017500000000000012663147145016241 5ustar somebodysomebodyznc-1.6.3/modules/modpython/Makefile.inc0000644000175000017500000000517112663147131020450 0ustar somebodysomebody# vim: filetype=make ifeq "$(PYTHON_ON)" "yes" PYTHONCOMMON := $(PY_CFLAGS) PYTHONCOMMON += -DSWIG_TYPE_TABLE=znc # Could someone fix all of these in swig / python, please? PYTHONCOMMON += -Wno-missing-field-initializers -Wno-unused -Wno-shadow PYTHONCOMMON += -Wno-missing-declarations -Wno-uninitialized -Wno-switch-enum PYTHONCOMMON += -Wno-redundant-decls modpythonCXXFLAGS := $(PYTHONCOMMON) -I. modpythonLDFLAGS := $(PY_LDFLAGS) ifeq "${ISCYGWIN}" "1" PYCEXT_EXT := dll PYDEPONMOD := ./modpython.so else PYCEXT_EXT := so PYDEPONMOD := endif PYTHONHOOK := modpython_install CLEAN += modpython/_znc_core.$(PYCEXT_EXT) CLEAN += modpython/_znc_core.o modpython/compiler.o ifneq "$(SWIG)" "" # Only delete these files if we can regenerate them CLEAN += modpython/_znc_core.cpp modpython/znc_core.py CLEAN += modpython/swigpyrun.h modpython/functions.cpp endif ifneq "$(srcdir)" "." # Copied from source for out-of-tree builds CLEAN += modpython/znc.py endif else FILES := $(shell echo $(FILES) | sed -e "s/modpython//") endif .PHONY: modpython_install modpython_all install: $(PYTHONHOOK) ifeq "$(PYTHON_ON)" "yes" all: modpython_all endif modpython_all: modpython/_znc_core.$(PYCEXT_EXT) modpython/_znc_core.o: modpython/_znc_core.cpp Makefile @mkdir -p modpython @mkdir -p .depend $(E) Building ZNC python bindings library... $(Q)$(CXX) $(MODFLAGS) -I$(srcdir) -MD -MF .depend/modpython.library.dep $(PYTHONCOMMON) -o $@ $< -c modpython/_znc_core.$(PYCEXT_EXT): modpython/_znc_core.o Makefile modpython.so $(E) Linking ZNC python bindings library... $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $(PY_LDFLAGS) $(PYDEPONMOD) ifneq "$(SWIG)" "" include $(srcdir)/modpython/Makefile.gen endif modpython.o: modpython/functions.cpp modpython/swigpyrun.h modpython/compiler.o: modpython/compiler.cpp Makefile @mkdir -p modpython @mkdir -p .depend $(E) Building optimizer for python files... $(Q)$(CXX) $(PYTHONCOMMON) -o $@ $< -c -MD -MF .depend/modpython.compiler.dep modpython/compiler: modpython/compiler.o Makefile $(E) Linking optimizer for python files... $(Q)$(CXX) -o $@ $< $(PY_LDFLAGS) modpython_install: install_datadir modpython_all -for i in $(srcdir)/*.py; do \ $(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \ done mkdir -p $(DESTDIR)$(MODDIR)/modpython $(INSTALL_PROGRAM) modpython/_znc_core.$(PYCEXT_EXT) $(DESTDIR)$(MODDIR)/modpython if test -r modpython/znc_core.py;\ then $(INSTALL_DATA) modpython/znc_core.py $(DESTDIR)$(MODDIR)/modpython;\ else $(INSTALL_DATA) $(srcdir)/modpython/znc_core.py $(DESTDIR)$(MODDIR)/modpython;\ fi $(INSTALL_DATA) $(srcdir)/modpython/znc.py $(DESTDIR)$(MODDIR)/modpython znc-1.6.3/modules/modpython/znc_core.py0000644000175000017500000117160112663147145020424 0ustar somebodysomebody# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.5 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2, 6, 0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_znc_core', [dirname(__file__)]) except ImportError: import _znc_core return _znc_core if fp is not None: try: _mod = imp.load_module('_znc_core', fp, pathname, description) finally: fp.close() return _mod _znc_core = swig_import_helper() del swig_import_helper else: import _znc_core del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self, class_type, name, value, static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name, None) if method: return method(self, value) if (not static): if _newclass: object.__setattr__(self, name, value) else: self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self, class_type, name, value): return _swig_setattr_nondynamic(self, class_type, name, value, 0) def _swig_getattr_nondynamic(self, class_type, name, static=1): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name, None) if method: return method(self) if (not static): return object.__getattr__(self, name) else: raise AttributeError(name) def _swig_getattr(self, class_type, name): return _swig_getattr_nondynamic(self, class_type, name, 0) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object: pass _newclass = 0 import collections class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _znc_core.delete_SwigPyIterator __del__ = lambda self: None def value(self) -> "PyObject *": return _znc_core.SwigPyIterator_value(self) def incr(self, n: 'size_t'=1) -> "swig::SwigPyIterator *": return _znc_core.SwigPyIterator_incr(self, n) def decr(self, n: 'size_t'=1) -> "swig::SwigPyIterator *": return _znc_core.SwigPyIterator_decr(self, n) def distance(self, x: 'SwigPyIterator') -> "ptrdiff_t": return _znc_core.SwigPyIterator_distance(self, x) def equal(self, x: 'SwigPyIterator') -> "bool": return _znc_core.SwigPyIterator_equal(self, x) def copy(self) -> "swig::SwigPyIterator *": return _znc_core.SwigPyIterator_copy(self) def next(self) -> "PyObject *": return _znc_core.SwigPyIterator_next(self) def __next__(self) -> "PyObject *": return _znc_core.SwigPyIterator___next__(self) def previous(self) -> "PyObject *": return _znc_core.SwigPyIterator_previous(self) def advance(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator *": return _znc_core.SwigPyIterator_advance(self, n) def __eq__(self, x: 'SwigPyIterator') -> "bool": return _znc_core.SwigPyIterator___eq__(self, x) def __ne__(self, x: 'SwigPyIterator') -> "bool": return _znc_core.SwigPyIterator___ne__(self, x) def __iadd__(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator &": return _znc_core.SwigPyIterator___iadd__(self, n) def __isub__(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator &": return _znc_core.SwigPyIterator___isub__(self, n) def __add__(self, n: 'ptrdiff_t') -> "swig::SwigPyIterator *": return _znc_core.SwigPyIterator___add__(self, n) def __sub__(self, *args) -> "ptrdiff_t": return _znc_core.SwigPyIterator___sub__(self, *args) def __iter__(self): return self SwigPyIterator_swigregister = _znc_core.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator) _znc_core.SHARED_PTR_DISOWN_swigconstant(_znc_core) SHARED_PTR_DISOWN = _znc_core.SHARED_PTR_DISOWN class _stringlist(collections.MutableSequence): __swig_setmethods__ = {} for _s in [collections.MutableSequence]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, _stringlist, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSequence]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, _stringlist, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core._stringlist_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core._stringlist___nonzero__(self) def __bool__(self) -> "bool": return _znc_core._stringlist___bool__(self) def __len__(self) -> "std::list< CString >::size_type": return _znc_core._stringlist___len__(self) def pop(self) -> "std::list< CString >::value_type": return _znc_core._stringlist_pop(self) def __getslice__(self, i: 'std::list< CString >::difference_type', j: 'std::list< CString >::difference_type') -> "std::list< CString,std::allocator< CString > > *": return _znc_core._stringlist___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core._stringlist___setslice__(self, *args) def __delslice__(self, i: 'std::list< CString >::difference_type', j: 'std::list< CString >::difference_type') -> "void": return _znc_core._stringlist___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core._stringlist___delitem__(self, *args) def __getitem__(self, *args) -> "std::list< CString >::value_type const &": return _znc_core._stringlist___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core._stringlist___setitem__(self, *args) def append(self, x: 'std::list< CString >::value_type const &') -> "void": return _znc_core._stringlist_append(self, x) def empty(self) -> "bool": return _znc_core._stringlist_empty(self) def size(self) -> "std::list< CString >::size_type": return _znc_core._stringlist_size(self) def clear(self) -> "void": return _znc_core._stringlist_clear(self) def swap(self, v: '_stringlist') -> "void": return _znc_core._stringlist_swap(self, v) def get_allocator(self) -> "std::list< CString >::allocator_type": return _znc_core._stringlist_get_allocator(self) def begin(self) -> "std::list< CString >::iterator": return _znc_core._stringlist_begin(self) def end(self) -> "std::list< CString >::iterator": return _znc_core._stringlist_end(self) def rbegin(self) -> "std::list< CString >::reverse_iterator": return _znc_core._stringlist_rbegin(self) def rend(self) -> "std::list< CString >::reverse_iterator": return _znc_core._stringlist_rend(self) def pop_back(self) -> "void": return _znc_core._stringlist_pop_back(self) def erase(self, *args) -> "std::list< CString >::iterator": return _znc_core._stringlist_erase(self, *args) def __init__(self, *args): this = _znc_core.new__stringlist(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'std::list< CString >::value_type const &') -> "void": return _znc_core._stringlist_push_back(self, x) def front(self) -> "std::list< CString >::value_type const &": return _znc_core._stringlist_front(self) def back(self) -> "std::list< CString >::value_type const &": return _znc_core._stringlist_back(self) def assign(self, n: 'std::list< CString >::size_type', x: 'std::list< CString >::value_type const &') -> "void": return _znc_core._stringlist_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core._stringlist_resize(self, *args) def insert(self, *args) -> "void": return _znc_core._stringlist_insert(self, *args) def pop_front(self) -> "void": return _znc_core._stringlist_pop_front(self) def push_front(self, x: 'std::list< CString >::value_type const &') -> "void": return _znc_core._stringlist_push_front(self, x) def reverse(self) -> "void": return _znc_core._stringlist_reverse(self) __swig_destroy__ = _znc_core.delete__stringlist __del__ = lambda self: None _stringlist_swigregister = _znc_core._stringlist_swigregister _stringlist_swigregister(_stringlist) class VIRCNetworks(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VIRCNetworks, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VIRCNetworks, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VIRCNetworks_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VIRCNetworks___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VIRCNetworks___bool__(self) def __len__(self) -> "std::vector< CIRCNetwork * >::size_type": return _znc_core.VIRCNetworks___len__(self) def pop(self) -> "std::vector< CIRCNetwork * >::value_type": return _znc_core.VIRCNetworks_pop(self) def __getslice__(self, i: 'std::vector< CIRCNetwork * >::difference_type', j: 'std::vector< CIRCNetwork * >::difference_type') -> "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *": return _znc_core.VIRCNetworks___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VIRCNetworks___setslice__(self, *args) def __delslice__(self, i: 'std::vector< CIRCNetwork * >::difference_type', j: 'std::vector< CIRCNetwork * >::difference_type') -> "void": return _znc_core.VIRCNetworks___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VIRCNetworks___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CIRCNetwork * >::value_type": return _znc_core.VIRCNetworks___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VIRCNetworks___setitem__(self, *args) def append(self, x: 'CIRCNetwork') -> "void": return _znc_core.VIRCNetworks_append(self, x) def empty(self) -> "bool": return _znc_core.VIRCNetworks_empty(self) def size(self) -> "std::vector< CIRCNetwork * >::size_type": return _znc_core.VIRCNetworks_size(self) def clear(self) -> "void": return _znc_core.VIRCNetworks_clear(self) def swap(self, v: 'VIRCNetworks') -> "void": return _znc_core.VIRCNetworks_swap(self, v) def get_allocator(self) -> "std::vector< CIRCNetwork * >::allocator_type": return _znc_core.VIRCNetworks_get_allocator(self) def begin(self) -> "std::vector< CIRCNetwork * >::iterator": return _znc_core.VIRCNetworks_begin(self) def end(self) -> "std::vector< CIRCNetwork * >::iterator": return _znc_core.VIRCNetworks_end(self) def rbegin(self) -> "std::vector< CIRCNetwork * >::reverse_iterator": return _znc_core.VIRCNetworks_rbegin(self) def rend(self) -> "std::vector< CIRCNetwork * >::reverse_iterator": return _znc_core.VIRCNetworks_rend(self) def pop_back(self) -> "void": return _znc_core.VIRCNetworks_pop_back(self) def erase(self, *args) -> "std::vector< CIRCNetwork * >::iterator": return _znc_core.VIRCNetworks_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VIRCNetworks(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'CIRCNetwork') -> "void": return _znc_core.VIRCNetworks_push_back(self, x) def front(self) -> "std::vector< CIRCNetwork * >::value_type": return _znc_core.VIRCNetworks_front(self) def back(self) -> "std::vector< CIRCNetwork * >::value_type": return _znc_core.VIRCNetworks_back(self) def assign(self, n: 'std::vector< CIRCNetwork * >::size_type', x: 'CIRCNetwork') -> "void": return _znc_core.VIRCNetworks_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VIRCNetworks_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VIRCNetworks_insert(self, *args) def reserve(self, n: 'std::vector< CIRCNetwork * >::size_type') -> "void": return _znc_core.VIRCNetworks_reserve(self, n) def capacity(self) -> "std::vector< CIRCNetwork * >::size_type": return _znc_core.VIRCNetworks_capacity(self) __swig_destroy__ = _znc_core.delete_VIRCNetworks __del__ = lambda self: None VIRCNetworks_swigregister = _znc_core.VIRCNetworks_swigregister VIRCNetworks_swigregister(VIRCNetworks) class VChannels(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VChannels, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VChannels, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VChannels_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VChannels___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VChannels___bool__(self) def __len__(self) -> "std::vector< CChan * >::size_type": return _znc_core.VChannels___len__(self) def pop(self) -> "std::vector< CChan * >::value_type": return _znc_core.VChannels_pop(self) def __getslice__(self, i: 'std::vector< CChan * >::difference_type', j: 'std::vector< CChan * >::difference_type') -> "std::vector< CChan *,std::allocator< CChan * > > *": return _znc_core.VChannels___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VChannels___setslice__(self, *args) def __delslice__(self, i: 'std::vector< CChan * >::difference_type', j: 'std::vector< CChan * >::difference_type') -> "void": return _znc_core.VChannels___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VChannels___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CChan * >::value_type": return _znc_core.VChannels___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VChannels___setitem__(self, *args) def append(self, x: 'CChan') -> "void": return _znc_core.VChannels_append(self, x) def empty(self) -> "bool": return _znc_core.VChannels_empty(self) def size(self) -> "std::vector< CChan * >::size_type": return _znc_core.VChannels_size(self) def clear(self) -> "void": return _znc_core.VChannels_clear(self) def swap(self, v: 'VChannels') -> "void": return _znc_core.VChannels_swap(self, v) def get_allocator(self) -> "std::vector< CChan * >::allocator_type": return _znc_core.VChannels_get_allocator(self) def begin(self) -> "std::vector< CChan * >::iterator": return _znc_core.VChannels_begin(self) def end(self) -> "std::vector< CChan * >::iterator": return _znc_core.VChannels_end(self) def rbegin(self) -> "std::vector< CChan * >::reverse_iterator": return _znc_core.VChannels_rbegin(self) def rend(self) -> "std::vector< CChan * >::reverse_iterator": return _znc_core.VChannels_rend(self) def pop_back(self) -> "void": return _znc_core.VChannels_pop_back(self) def erase(self, *args) -> "std::vector< CChan * >::iterator": return _znc_core.VChannels_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VChannels(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'CChan') -> "void": return _znc_core.VChannels_push_back(self, x) def front(self) -> "std::vector< CChan * >::value_type": return _znc_core.VChannels_front(self) def back(self) -> "std::vector< CChan * >::value_type": return _znc_core.VChannels_back(self) def assign(self, n: 'std::vector< CChan * >::size_type', x: 'CChan') -> "void": return _znc_core.VChannels_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VChannels_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VChannels_insert(self, *args) def reserve(self, n: 'std::vector< CChan * >::size_type') -> "void": return _znc_core.VChannels_reserve(self, n) def capacity(self) -> "std::vector< CChan * >::size_type": return _znc_core.VChannels_capacity(self) __swig_destroy__ = _znc_core.delete_VChannels __del__ = lambda self: None VChannels_swigregister = _znc_core.VChannels_swigregister VChannels_swigregister(VChannels) class MNicks(collections.MutableMapping): __swig_setmethods__ = {} for _s in [collections.MutableMapping]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, MNicks, name, value) __swig_getmethods__ = {} for _s in [collections.MutableMapping]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, MNicks, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.MNicks_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.MNicks___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.MNicks___bool__(self) def __len__(self) -> "std::map< CString,CNick >::size_type": return _znc_core.MNicks___len__(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __getitem__(self, key: 'std::map< CString,CNick >::key_type const &') -> "std::map< CString,CNick >::mapped_type const &": return _znc_core.MNicks___getitem__(self, key) def __delitem__(self, key: 'std::map< CString,CNick >::key_type const &') -> "void": return _znc_core.MNicks___delitem__(self, key) def has_key(self, key: 'std::map< CString,CNick >::key_type const &') -> "bool": return _znc_core.MNicks_has_key(self, key) def keys(self) -> "PyObject *": return _znc_core.MNicks_keys(self) def values(self) -> "PyObject *": return _znc_core.MNicks_values(self) def items(self) -> "PyObject *": return _znc_core.MNicks_items(self) def __contains__(self, key: 'std::map< CString,CNick >::key_type const &') -> "bool": return _znc_core.MNicks___contains__(self, key) def key_iterator(self) -> "swig::SwigPyIterator *": return _znc_core.MNicks_key_iterator(self) def value_iterator(self) -> "swig::SwigPyIterator *": return _znc_core.MNicks_value_iterator(self) def __setitem__(self, *args) -> "void": return _znc_core.MNicks___setitem__(self, *args) def asdict(self) -> "PyObject *": return _znc_core.MNicks_asdict(self) def __init__(self, *args): this = _znc_core.new_MNicks(*args) try: self.this.append(this) except: self.this = this def empty(self) -> "bool": return _znc_core.MNicks_empty(self) def size(self) -> "std::map< CString,CNick >::size_type": return _znc_core.MNicks_size(self) def clear(self) -> "void": return _znc_core.MNicks_clear(self) def swap(self, v: 'MNicks') -> "void": return _znc_core.MNicks_swap(self, v) def get_allocator(self) -> "std::map< CString,CNick >::allocator_type": return _znc_core.MNicks_get_allocator(self) def begin(self) -> "std::map< CString,CNick >::iterator": return _znc_core.MNicks_begin(self) def end(self) -> "std::map< CString,CNick >::iterator": return _znc_core.MNicks_end(self) def rbegin(self) -> "std::map< CString,CNick >::reverse_iterator": return _znc_core.MNicks_rbegin(self) def rend(self) -> "std::map< CString,CNick >::reverse_iterator": return _znc_core.MNicks_rend(self) def count(self, x: 'std::map< CString,CNick >::key_type const &') -> "std::map< CString,CNick >::size_type": return _znc_core.MNicks_count(self, x) def erase(self, *args) -> "void": return _znc_core.MNicks_erase(self, *args) def find(self, x: 'std::map< CString,CNick >::key_type const &') -> "std::map< CString,CNick >::iterator": return _znc_core.MNicks_find(self, x) def lower_bound(self, x: 'std::map< CString,CNick >::key_type const &') -> "std::map< CString,CNick >::iterator": return _znc_core.MNicks_lower_bound(self, x) def upper_bound(self, x: 'std::map< CString,CNick >::key_type const &') -> "std::map< CString,CNick >::iterator": return _znc_core.MNicks_upper_bound(self, x) __swig_destroy__ = _znc_core.delete_MNicks __del__ = lambda self: None MNicks_swigregister = _znc_core.MNicks_swigregister MNicks_swigregister(MNicks) class SModInfo(collections.MutableSet): __swig_setmethods__ = {} for _s in [collections.MutableSet]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, SModInfo, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSet]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, SModInfo, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.SModInfo_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.SModInfo___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.SModInfo___bool__(self) def __len__(self) -> "std::set< CModInfo >::size_type": return _znc_core.SModInfo___len__(self) def append(self, x: 'CModInfo') -> "void": return _znc_core.SModInfo_append(self, x) def __contains__(self, x: 'CModInfo') -> "bool": return _znc_core.SModInfo___contains__(self, x) def __getitem__(self, i: 'std::set< CModInfo >::difference_type') -> "std::set< CModInfo >::value_type": return _znc_core.SModInfo___getitem__(self, i) def add(self, x: 'CModInfo') -> "void": return _znc_core.SModInfo_add(self, x) def discard(self, x: 'CModInfo') -> "void": return _znc_core.SModInfo_discard(self, x) def __init__(self, *args): this = _znc_core.new_SModInfo(*args) try: self.this.append(this) except: self.this = this def empty(self) -> "bool": return _znc_core.SModInfo_empty(self) def size(self) -> "std::set< CModInfo >::size_type": return _znc_core.SModInfo_size(self) def clear(self) -> "void": return _znc_core.SModInfo_clear(self) def swap(self, v: 'SModInfo') -> "void": return _znc_core.SModInfo_swap(self, v) def count(self, x: 'CModInfo') -> "std::set< CModInfo >::size_type": return _znc_core.SModInfo_count(self, x) def begin(self) -> "std::set< CModInfo >::iterator": return _znc_core.SModInfo_begin(self) def end(self) -> "std::set< CModInfo >::iterator": return _znc_core.SModInfo_end(self) def rbegin(self) -> "std::set< CModInfo >::reverse_iterator": return _znc_core.SModInfo_rbegin(self) def rend(self) -> "std::set< CModInfo >::reverse_iterator": return _znc_core.SModInfo_rend(self) def erase(self, *args) -> "void": return _znc_core.SModInfo_erase(self, *args) def find(self, x: 'CModInfo') -> "std::set< CModInfo >::iterator": return _znc_core.SModInfo_find(self, x) def lower_bound(self, x: 'CModInfo') -> "std::set< CModInfo >::iterator": return _znc_core.SModInfo_lower_bound(self, x) def upper_bound(self, x: 'CModInfo') -> "std::set< CModInfo >::iterator": return _znc_core.SModInfo_upper_bound(self, x) def equal_range(self, x: 'CModInfo') -> "std::pair< std::set< CModInfo >::iterator,std::set< CModInfo >::iterator >": return _znc_core.SModInfo_equal_range(self, x) def insert(self, __x: 'CModInfo') -> "std::pair< std::set< CModInfo >::iterator,bool >": return _znc_core.SModInfo_insert(self, __x) __swig_destroy__ = _znc_core.delete_SModInfo __del__ = lambda self: None SModInfo_swigregister = _znc_core.SModInfo_swigregister SModInfo_swigregister(SModInfo) class SCString(collections.MutableSet): __swig_setmethods__ = {} for _s in [collections.MutableSet]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, SCString, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSet]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, SCString, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.SCString_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.SCString___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.SCString___bool__(self) def __len__(self) -> "std::set< CString >::size_type": return _znc_core.SCString___len__(self) def append(self, x: 'std::set< CString >::value_type') -> "void": return _znc_core.SCString_append(self, x) def __contains__(self, x: 'std::set< CString >::value_type') -> "bool": return _znc_core.SCString___contains__(self, x) def __getitem__(self, i: 'std::set< CString >::difference_type') -> "std::set< CString >::value_type": return _znc_core.SCString___getitem__(self, i) def add(self, x: 'std::set< CString >::value_type') -> "void": return _znc_core.SCString_add(self, x) def discard(self, x: 'std::set< CString >::value_type') -> "void": return _znc_core.SCString_discard(self, x) def __init__(self, *args): this = _znc_core.new_SCString(*args) try: self.this.append(this) except: self.this = this def empty(self) -> "bool": return _znc_core.SCString_empty(self) def size(self) -> "std::set< CString >::size_type": return _znc_core.SCString_size(self) def clear(self) -> "void": return _znc_core.SCString_clear(self) def swap(self, v: 'SCString') -> "void": return _znc_core.SCString_swap(self, v) def count(self, x: 'std::set< CString >::key_type const &') -> "std::set< CString >::size_type": return _znc_core.SCString_count(self, x) def begin(self) -> "std::set< CString >::iterator": return _znc_core.SCString_begin(self) def end(self) -> "std::set< CString >::iterator": return _znc_core.SCString_end(self) def rbegin(self) -> "std::set< CString >::reverse_iterator": return _znc_core.SCString_rbegin(self) def rend(self) -> "std::set< CString >::reverse_iterator": return _znc_core.SCString_rend(self) def erase(self, *args) -> "void": return _znc_core.SCString_erase(self, *args) def find(self, x: 'std::set< CString >::key_type const &') -> "std::set< CString >::iterator": return _znc_core.SCString_find(self, x) def lower_bound(self, x: 'std::set< CString >::key_type const &') -> "std::set< CString >::iterator": return _znc_core.SCString_lower_bound(self, x) def upper_bound(self, x: 'std::set< CString >::key_type const &') -> "std::set< CString >::iterator": return _znc_core.SCString_upper_bound(self, x) def equal_range(self, x: 'std::set< CString >::key_type const &') -> "std::pair< std::set< CString >::iterator,std::set< CString >::iterator >": return _znc_core.SCString_equal_range(self, x) def insert(self, __x: 'std::set< CString >::value_type const &') -> "std::pair< std::set< CString >::iterator,bool >": return _znc_core.SCString_insert(self, __x) __swig_destroy__ = _znc_core.delete_SCString __del__ = lambda self: None SCString_swigregister = _znc_core.SCString_swigregister SCString_swigregister(SCString) class VCString(collections.MutableSequence): __swig_setmethods__ = {} for _s in [collections.MutableSequence]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, VCString, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSequence]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, VCString, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VCString_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VCString___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VCString___bool__(self) def __len__(self) -> "std::vector< CString >::size_type": return _znc_core.VCString___len__(self) def pop(self) -> "std::vector< CString >::value_type": return _znc_core.VCString_pop(self) def __getslice__(self, i: 'std::vector< CString >::difference_type', j: 'std::vector< CString >::difference_type') -> "std::vector< CString,std::allocator< CString > > *": return _znc_core.VCString___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VCString___setslice__(self, *args) def __delslice__(self, i: 'std::vector< CString >::difference_type', j: 'std::vector< CString >::difference_type') -> "void": return _znc_core.VCString___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VCString___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CString >::value_type const &": return _znc_core.VCString___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VCString___setitem__(self, *args) def append(self, x: 'std::vector< CString >::value_type const &') -> "void": return _znc_core.VCString_append(self, x) def empty(self) -> "bool": return _znc_core.VCString_empty(self) def size(self) -> "std::vector< CString >::size_type": return _znc_core.VCString_size(self) def clear(self) -> "void": return _znc_core.VCString_clear(self) def swap(self, v: 'VCString') -> "void": return _znc_core.VCString_swap(self, v) def get_allocator(self) -> "std::vector< CString >::allocator_type": return _znc_core.VCString_get_allocator(self) def begin(self) -> "std::vector< CString >::iterator": return _znc_core.VCString_begin(self) def end(self) -> "std::vector< CString >::iterator": return _znc_core.VCString_end(self) def rbegin(self) -> "std::vector< CString >::reverse_iterator": return _znc_core.VCString_rbegin(self) def rend(self) -> "std::vector< CString >::reverse_iterator": return _znc_core.VCString_rend(self) def pop_back(self) -> "void": return _znc_core.VCString_pop_back(self) def erase(self, *args) -> "std::vector< CString >::iterator": return _znc_core.VCString_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VCString(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'std::vector< CString >::value_type const &') -> "void": return _znc_core.VCString_push_back(self, x) def front(self) -> "std::vector< CString >::value_type const &": return _znc_core.VCString_front(self) def back(self) -> "std::vector< CString >::value_type const &": return _znc_core.VCString_back(self) def assign(self, n: 'std::vector< CString >::size_type', x: 'std::vector< CString >::value_type const &') -> "void": return _znc_core.VCString_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VCString_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VCString_insert(self, *args) def reserve(self, n: 'std::vector< CString >::size_type') -> "void": return _znc_core.VCString_reserve(self, n) def capacity(self) -> "std::vector< CString >::size_type": return _znc_core.VCString_capacity(self) __swig_destroy__ = _znc_core.delete_VCString __del__ = lambda self: None VCString_swigregister = _znc_core.VCString_swigregister VCString_swigregister(VCString) class PyMCString(collections.MutableMapping): __swig_setmethods__ = {} for _s in [collections.MutableMapping]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, PyMCString, name, value) __swig_getmethods__ = {} for _s in [collections.MutableMapping]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, PyMCString, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyMCString_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.PyMCString___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.PyMCString___bool__(self) def __len__(self) -> "std::map< CString,CString >::size_type": return _znc_core.PyMCString___len__(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __getitem__(self, key: 'std::map< CString,CString >::key_type const &') -> "std::map< CString,CString >::mapped_type const &": return _znc_core.PyMCString___getitem__(self, key) def __delitem__(self, key: 'std::map< CString,CString >::key_type const &') -> "void": return _znc_core.PyMCString___delitem__(self, key) def has_key(self, key: 'std::map< CString,CString >::key_type const &') -> "bool": return _znc_core.PyMCString_has_key(self, key) def keys(self) -> "PyObject *": return _znc_core.PyMCString_keys(self) def values(self) -> "PyObject *": return _znc_core.PyMCString_values(self) def items(self) -> "PyObject *": return _znc_core.PyMCString_items(self) def __contains__(self, key: 'std::map< CString,CString >::key_type const &') -> "bool": return _znc_core.PyMCString___contains__(self, key) def key_iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyMCString_key_iterator(self) def value_iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyMCString_value_iterator(self) def __setitem__(self, *args) -> "void": return _znc_core.PyMCString___setitem__(self, *args) def asdict(self) -> "PyObject *": return _znc_core.PyMCString_asdict(self) def __init__(self, *args): this = _znc_core.new_PyMCString(*args) try: self.this.append(this) except: self.this = this def empty(self) -> "bool": return _znc_core.PyMCString_empty(self) def size(self) -> "std::map< CString,CString >::size_type": return _znc_core.PyMCString_size(self) def clear(self) -> "void": return _znc_core.PyMCString_clear(self) def swap(self, v: 'PyMCString') -> "void": return _znc_core.PyMCString_swap(self, v) def get_allocator(self) -> "std::map< CString,CString >::allocator_type": return _znc_core.PyMCString_get_allocator(self) def begin(self) -> "std::map< CString,CString >::iterator": return _znc_core.PyMCString_begin(self) def end(self) -> "std::map< CString,CString >::iterator": return _znc_core.PyMCString_end(self) def rbegin(self) -> "std::map< CString,CString >::reverse_iterator": return _znc_core.PyMCString_rbegin(self) def rend(self) -> "std::map< CString,CString >::reverse_iterator": return _znc_core.PyMCString_rend(self) def count(self, x: 'std::map< CString,CString >::key_type const &') -> "std::map< CString,CString >::size_type": return _znc_core.PyMCString_count(self, x) def erase(self, *args) -> "void": return _znc_core.PyMCString_erase(self, *args) def find(self, x: 'std::map< CString,CString >::key_type const &') -> "std::map< CString,CString >::iterator": return _znc_core.PyMCString_find(self, x) def lower_bound(self, x: 'std::map< CString,CString >::key_type const &') -> "std::map< CString,CString >::iterator": return _znc_core.PyMCString_lower_bound(self, x) def upper_bound(self, x: 'std::map< CString,CString >::key_type const &') -> "std::map< CString,CString >::iterator": return _znc_core.PyMCString_upper_bound(self, x) __swig_destroy__ = _znc_core.delete_PyMCString __del__ = lambda self: None PyMCString_swigregister = _znc_core.PyMCString_swigregister PyMCString_swigregister(PyMCString) class PyMStringVString(collections.MutableMapping): __swig_setmethods__ = {} for _s in [collections.MutableMapping]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, PyMStringVString, name, value) __swig_getmethods__ = {} for _s in [collections.MutableMapping]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, PyMStringVString, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyMStringVString_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.PyMStringVString___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.PyMStringVString___bool__(self) def __len__(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.PyMStringVString___len__(self) def __iter__(self): return self.key_iterator() def iterkeys(self): return self.key_iterator() def itervalues(self): return self.value_iterator() def iteritems(self): return self.iterator() def __getitem__(self, key: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &": return _znc_core.PyMStringVString___getitem__(self, key) def __delitem__(self, key: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "void": return _znc_core.PyMStringVString___delitem__(self, key) def has_key(self, key: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "bool": return _znc_core.PyMStringVString_has_key(self, key) def keys(self) -> "PyObject *": return _znc_core.PyMStringVString_keys(self) def values(self) -> "PyObject *": return _znc_core.PyMStringVString_values(self) def items(self) -> "PyObject *": return _znc_core.PyMStringVString_items(self) def __contains__(self, key: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "bool": return _znc_core.PyMStringVString___contains__(self, key) def key_iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyMStringVString_key_iterator(self) def value_iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyMStringVString_value_iterator(self) def __setitem__(self, *args) -> "void": return _znc_core.PyMStringVString___setitem__(self, *args) def asdict(self) -> "PyObject *": return _znc_core.PyMStringVString_asdict(self) def __init__(self, *args): this = _znc_core.new_PyMStringVString(*args) try: self.this.append(this) except: self.this = this def empty(self) -> "bool": return _znc_core.PyMStringVString_empty(self) def size(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.PyMStringVString_size(self) def clear(self) -> "void": return _znc_core.PyMStringVString_clear(self) def swap(self, v: 'PyMStringVString') -> "void": return _znc_core.PyMStringVString_swap(self, v) def get_allocator(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::allocator_type": return _znc_core.PyMStringVString_get_allocator(self) def begin(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.PyMStringVString_begin(self) def end(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.PyMStringVString_end(self) def rbegin(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::reverse_iterator": return _znc_core.PyMStringVString_rbegin(self) def rend(self) -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::reverse_iterator": return _znc_core.PyMStringVString_rend(self) def count(self, x: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.PyMStringVString_count(self, x) def erase(self, *args) -> "void": return _znc_core.PyMStringVString_erase(self, *args) def find(self, x: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.PyMStringVString_find(self, x) def lower_bound(self, x: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.PyMStringVString_lower_bound(self, x) def upper_bound(self, x: 'std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &') -> "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.PyMStringVString_upper_bound(self, x) __swig_destroy__ = _znc_core.delete_PyMStringVString __del__ = lambda self: None PyMStringVString_swigregister = _znc_core.PyMStringVString_swigregister PyMStringVString_swigregister(PyMStringVString) class MCString(PyMCString): __swig_setmethods__ = {} for _s in [PyMCString]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, MCString, name, value) __swig_getmethods__ = {} for _s in [PyMCString]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, MCString, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_MCString() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_MCString __del__ = lambda self: None MCString_swigregister = _znc_core.MCString_swigregister MCString_swigregister(MCString) class PyModulesVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, PyModulesVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, PyModulesVector, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.PyModulesVector_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.PyModulesVector___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.PyModulesVector___bool__(self) def __len__(self) -> "std::vector< CModule * >::size_type": return _znc_core.PyModulesVector___len__(self) def pop(self) -> "std::vector< CModule * >::value_type": return _znc_core.PyModulesVector_pop(self) def __getslice__(self, i: 'std::vector< CModule * >::difference_type', j: 'std::vector< CModule * >::difference_type') -> "std::vector< CModule *,std::allocator< CModule * > > *": return _znc_core.PyModulesVector___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.PyModulesVector___setslice__(self, *args) def __delslice__(self, i: 'std::vector< CModule * >::difference_type', j: 'std::vector< CModule * >::difference_type') -> "void": return _znc_core.PyModulesVector___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.PyModulesVector___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CModule * >::value_type": return _znc_core.PyModulesVector___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.PyModulesVector___setitem__(self, *args) def append(self, x: 'CModule') -> "void": return _znc_core.PyModulesVector_append(self, x) def empty(self) -> "bool": return _znc_core.PyModulesVector_empty(self) def size(self) -> "std::vector< CModule * >::size_type": return _znc_core.PyModulesVector_size(self) def clear(self) -> "void": return _znc_core.PyModulesVector_clear(self) def swap(self, v: 'PyModulesVector') -> "void": return _znc_core.PyModulesVector_swap(self, v) def get_allocator(self) -> "std::vector< CModule * >::allocator_type": return _znc_core.PyModulesVector_get_allocator(self) def begin(self) -> "std::vector< CModule * >::iterator": return _znc_core.PyModulesVector_begin(self) def end(self) -> "std::vector< CModule * >::iterator": return _znc_core.PyModulesVector_end(self) def rbegin(self) -> "std::vector< CModule * >::reverse_iterator": return _znc_core.PyModulesVector_rbegin(self) def rend(self) -> "std::vector< CModule * >::reverse_iterator": return _znc_core.PyModulesVector_rend(self) def pop_back(self) -> "void": return _znc_core.PyModulesVector_pop_back(self) def erase(self, *args) -> "std::vector< CModule * >::iterator": return _znc_core.PyModulesVector_erase(self, *args) def __init__(self, *args): this = _znc_core.new_PyModulesVector(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'CModule') -> "void": return _znc_core.PyModulesVector_push_back(self, x) def front(self) -> "std::vector< CModule * >::value_type": return _znc_core.PyModulesVector_front(self) def back(self) -> "std::vector< CModule * >::value_type": return _znc_core.PyModulesVector_back(self) def assign(self, n: 'std::vector< CModule * >::size_type', x: 'CModule') -> "void": return _znc_core.PyModulesVector_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.PyModulesVector_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.PyModulesVector_insert(self, *args) def reserve(self, n: 'std::vector< CModule * >::size_type') -> "void": return _znc_core.PyModulesVector_reserve(self, n) def capacity(self) -> "std::vector< CModule * >::size_type": return _znc_core.PyModulesVector_capacity(self) __swig_destroy__ = _znc_core.delete_PyModulesVector __del__ = lambda self: None PyModulesVector_swigregister = _znc_core.PyModulesVector_swigregister PyModulesVector_swigregister(PyModulesVector) class VListeners(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VListeners, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VListeners, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VListeners_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VListeners___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VListeners___bool__(self) def __len__(self) -> "std::vector< CListener * >::size_type": return _znc_core.VListeners___len__(self) def pop(self) -> "std::vector< CListener * >::value_type": return _znc_core.VListeners_pop(self) def __getslice__(self, i: 'std::vector< CListener * >::difference_type', j: 'std::vector< CListener * >::difference_type') -> "std::vector< CListener *,std::allocator< CListener * > > *": return _znc_core.VListeners___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VListeners___setslice__(self, *args) def __delslice__(self, i: 'std::vector< CListener * >::difference_type', j: 'std::vector< CListener * >::difference_type') -> "void": return _znc_core.VListeners___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VListeners___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CListener * >::value_type": return _znc_core.VListeners___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VListeners___setitem__(self, *args) def append(self, x: 'CListener') -> "void": return _znc_core.VListeners_append(self, x) def empty(self) -> "bool": return _znc_core.VListeners_empty(self) def size(self) -> "std::vector< CListener * >::size_type": return _znc_core.VListeners_size(self) def clear(self) -> "void": return _znc_core.VListeners_clear(self) def swap(self, v: 'VListeners') -> "void": return _znc_core.VListeners_swap(self, v) def get_allocator(self) -> "std::vector< CListener * >::allocator_type": return _znc_core.VListeners_get_allocator(self) def begin(self) -> "std::vector< CListener * >::iterator": return _znc_core.VListeners_begin(self) def end(self) -> "std::vector< CListener * >::iterator": return _znc_core.VListeners_end(self) def rbegin(self) -> "std::vector< CListener * >::reverse_iterator": return _znc_core.VListeners_rbegin(self) def rend(self) -> "std::vector< CListener * >::reverse_iterator": return _znc_core.VListeners_rend(self) def pop_back(self) -> "void": return _znc_core.VListeners_pop_back(self) def erase(self, *args) -> "std::vector< CListener * >::iterator": return _znc_core.VListeners_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VListeners(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'CListener') -> "void": return _znc_core.VListeners_push_back(self, x) def front(self) -> "std::vector< CListener * >::value_type": return _znc_core.VListeners_front(self) def back(self) -> "std::vector< CListener * >::value_type": return _znc_core.VListeners_back(self) def assign(self, n: 'std::vector< CListener * >::size_type', x: 'CListener') -> "void": return _znc_core.VListeners_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VListeners_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VListeners_insert(self, *args) def reserve(self, n: 'std::vector< CListener * >::size_type') -> "void": return _znc_core.VListeners_reserve(self, n) def capacity(self) -> "std::vector< CListener * >::size_type": return _znc_core.VListeners_capacity(self) __swig_destroy__ = _znc_core.delete_VListeners __del__ = lambda self: None VListeners_swigregister = _znc_core.VListeners_swigregister VListeners_swigregister(VListeners) class BufLines(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, BufLines, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, BufLines, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.BufLines_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.BufLines___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.BufLines___bool__(self) def __len__(self) -> "std::deque< CBufLine >::size_type": return _znc_core.BufLines___len__(self) def pop(self) -> "std::deque< CBufLine >::value_type": return _znc_core.BufLines_pop(self) def __getslice__(self, i: 'std::deque< CBufLine >::difference_type', j: 'std::deque< CBufLine >::difference_type') -> "std::deque< CBufLine,std::allocator< CBufLine > > *": return _znc_core.BufLines___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.BufLines___setslice__(self, *args) def __delslice__(self, i: 'std::deque< CBufLine >::difference_type', j: 'std::deque< CBufLine >::difference_type') -> "void": return _znc_core.BufLines___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.BufLines___delitem__(self, *args) def __getitem__(self, *args) -> "std::deque< CBufLine >::value_type const &": return _znc_core.BufLines___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.BufLines___setitem__(self, *args) def append(self, x: 'CBufLine') -> "void": return _znc_core.BufLines_append(self, x) def empty(self) -> "bool": return _znc_core.BufLines_empty(self) def size(self) -> "std::deque< CBufLine >::size_type": return _znc_core.BufLines_size(self) def clear(self) -> "void": return _znc_core.BufLines_clear(self) def swap(self, v: 'BufLines') -> "void": return _znc_core.BufLines_swap(self, v) def get_allocator(self) -> "std::deque< CBufLine >::allocator_type": return _znc_core.BufLines_get_allocator(self) def begin(self) -> "std::deque< CBufLine >::iterator": return _znc_core.BufLines_begin(self) def end(self) -> "std::deque< CBufLine >::iterator": return _znc_core.BufLines_end(self) def rbegin(self) -> "std::deque< CBufLine >::reverse_iterator": return _znc_core.BufLines_rbegin(self) def rend(self) -> "std::deque< CBufLine >::reverse_iterator": return _znc_core.BufLines_rend(self) def pop_back(self) -> "void": return _znc_core.BufLines_pop_back(self) def erase(self, *args) -> "std::deque< CBufLine >::iterator": return _znc_core.BufLines_erase(self, *args) def __init__(self, *args): this = _znc_core.new_BufLines(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'CBufLine') -> "void": return _znc_core.BufLines_push_back(self, x) def front(self) -> "std::deque< CBufLine >::value_type const &": return _znc_core.BufLines_front(self) def back(self) -> "std::deque< CBufLine >::value_type const &": return _znc_core.BufLines_back(self) def assign(self, n: 'std::deque< CBufLine >::size_type', x: 'CBufLine') -> "void": return _znc_core.BufLines_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.BufLines_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.BufLines_insert(self, *args) def pop_front(self) -> "void": return _znc_core.BufLines_pop_front(self) def push_front(self, x: 'CBufLine') -> "void": return _znc_core.BufLines_push_front(self, x) __swig_destroy__ = _znc_core.delete_BufLines __del__ = lambda self: None BufLines_swigregister = _znc_core.BufLines_swigregister BufLines_swigregister(BufLines) class VVString(collections.MutableSequence): __swig_setmethods__ = {} for _s in [collections.MutableSequence]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, VVString, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSequence]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, VVString, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VVString_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VVString___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VVString___bool__(self) def __len__(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.VVString___len__(self) def pop(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::value_type": return _znc_core.VVString_pop(self) def __getslice__(self, i: 'std::vector< std::vector< CString,std::allocator< CString > > >::difference_type', j: 'std::vector< std::vector< CString,std::allocator< CString > > >::difference_type') -> "std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *": return _znc_core.VVString___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VVString___setslice__(self, *args) def __delslice__(self, i: 'std::vector< std::vector< CString,std::allocator< CString > > >::difference_type', j: 'std::vector< std::vector< CString,std::allocator< CString > > >::difference_type') -> "void": return _znc_core.VVString___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VVString___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &": return _znc_core.VVString___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VVString___setitem__(self, *args) def append(self, x: 'VCString') -> "void": return _znc_core.VVString_append(self, x) def empty(self) -> "bool": return _znc_core.VVString_empty(self) def size(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.VVString_size(self) def clear(self) -> "void": return _znc_core.VVString_clear(self) def swap(self, v: 'VVString') -> "void": return _znc_core.VVString_swap(self, v) def get_allocator(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::allocator_type": return _znc_core.VVString_get_allocator(self) def begin(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.VVString_begin(self) def end(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.VVString_end(self) def rbegin(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::reverse_iterator": return _znc_core.VVString_rbegin(self) def rend(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::reverse_iterator": return _znc_core.VVString_rend(self) def pop_back(self) -> "void": return _znc_core.VVString_pop_back(self) def erase(self, *args) -> "std::vector< std::vector< CString,std::allocator< CString > > >::iterator": return _znc_core.VVString_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VVString(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'VCString') -> "void": return _znc_core.VVString_push_back(self, x) def front(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &": return _znc_core.VVString_front(self) def back(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &": return _znc_core.VVString_back(self) def assign(self, n: 'std::vector< std::vector< CString,std::allocator< CString > > >::size_type', x: 'VCString') -> "void": return _znc_core.VVString_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VVString_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VVString_insert(self, *args) def reserve(self, n: 'std::vector< std::vector< CString,std::allocator< CString > > >::size_type') -> "void": return _znc_core.VVString_reserve(self, n) def capacity(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.VVString_capacity(self) __swig_destroy__ = _znc_core.delete_VVString __del__ = lambda self: None VVString_swigregister = _znc_core.VVString_swigregister VVString_swigregister(VVString) class VClients(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, VClients, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, VClients, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VClients_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VClients___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VClients___bool__(self) def __len__(self) -> "std::vector< CClient * >::size_type": return _znc_core.VClients___len__(self) def pop(self) -> "std::vector< CClient * >::value_type": return _znc_core.VClients_pop(self) def __getslice__(self, i: 'std::vector< CClient * >::difference_type', j: 'std::vector< CClient * >::difference_type') -> "std::vector< CClient *,std::allocator< CClient * > > *": return _znc_core.VClients___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VClients___setslice__(self, *args) def __delslice__(self, i: 'std::vector< CClient * >::difference_type', j: 'std::vector< CClient * >::difference_type') -> "void": return _znc_core.VClients___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VClients___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< CClient * >::value_type": return _znc_core.VClients___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VClients___setitem__(self, *args) def append(self, x: 'CClient') -> "void": return _znc_core.VClients_append(self, x) def empty(self) -> "bool": return _znc_core.VClients_empty(self) def size(self) -> "std::vector< CClient * >::size_type": return _znc_core.VClients_size(self) def clear(self) -> "void": return _znc_core.VClients_clear(self) def swap(self, v: 'VClients') -> "void": return _znc_core.VClients_swap(self, v) def get_allocator(self) -> "std::vector< CClient * >::allocator_type": return _znc_core.VClients_get_allocator(self) def begin(self) -> "std::vector< CClient * >::iterator": return _znc_core.VClients_begin(self) def end(self) -> "std::vector< CClient * >::iterator": return _znc_core.VClients_end(self) def rbegin(self) -> "std::vector< CClient * >::reverse_iterator": return _znc_core.VClients_rbegin(self) def rend(self) -> "std::vector< CClient * >::reverse_iterator": return _znc_core.VClients_rend(self) def pop_back(self) -> "void": return _znc_core.VClients_pop_back(self) def erase(self, *args) -> "std::vector< CClient * >::iterator": return _znc_core.VClients_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VClients(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'CClient') -> "void": return _znc_core.VClients_push_back(self, x) def front(self) -> "std::vector< CClient * >::value_type": return _znc_core.VClients_front(self) def back(self) -> "std::vector< CClient * >::value_type": return _znc_core.VClients_back(self) def assign(self, n: 'std::vector< CClient * >::size_type', x: 'CClient') -> "void": return _znc_core.VClients_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VClients_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VClients_insert(self, *args) def reserve(self, n: 'std::vector< CClient * >::size_type') -> "void": return _znc_core.VClients_reserve(self, n) def capacity(self) -> "std::vector< CClient * >::size_type": return _znc_core.VClients_capacity(self) __swig_destroy__ = _znc_core.delete_VClients __del__ = lambda self: None VClients_swigregister = _znc_core.VClients_swigregister VClients_swigregister(VClients) def SetFdCloseOnExec(fd: 'int') -> "void": return _znc_core.SetFdCloseOnExec(fd) SetFdCloseOnExec = _znc_core.SetFdCloseOnExec class CUtils(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CUtils, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CUtils, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CUtils() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CUtils __del__ = lambda self: None __swig_getmethods__["GetIP"] = lambda x: _znc_core.CUtils_GetIP if _newclass: GetIP = staticmethod(_znc_core.CUtils_GetIP) __swig_getmethods__["GetLongIP"] = lambda x: _znc_core.CUtils_GetLongIP if _newclass: GetLongIP = staticmethod(_znc_core.CUtils_GetLongIP) __swig_getmethods__["PrintError"] = lambda x: _znc_core.CUtils_PrintError if _newclass: PrintError = staticmethod(_znc_core.CUtils_PrintError) __swig_getmethods__["PrintMessage"] = lambda x: _znc_core.CUtils_PrintMessage if _newclass: PrintMessage = staticmethod(_znc_core.CUtils_PrintMessage) __swig_getmethods__["PrintPrompt"] = lambda x: _znc_core.CUtils_PrintPrompt if _newclass: PrintPrompt = staticmethod(_znc_core.CUtils_PrintPrompt) __swig_getmethods__["PrintAction"] = lambda x: _znc_core.CUtils_PrintAction if _newclass: PrintAction = staticmethod(_znc_core.CUtils_PrintAction) __swig_getmethods__["PrintStatus"] = lambda x: _znc_core.CUtils_PrintStatus if _newclass: PrintStatus = staticmethod(_znc_core.CUtils_PrintStatus) __swig_getmethods__["GetSaltedHashPass"] = lambda x: _znc_core.CUtils_GetSaltedHashPass if _newclass: GetSaltedHashPass = staticmethod(_znc_core.CUtils_GetSaltedHashPass) __swig_getmethods__["GetSalt"] = lambda x: _znc_core.CUtils_GetSalt if _newclass: GetSalt = staticmethod(_znc_core.CUtils_GetSalt) __swig_getmethods__["SaltedMD5Hash"] = lambda x: _znc_core.CUtils_SaltedMD5Hash if _newclass: SaltedMD5Hash = staticmethod(_znc_core.CUtils_SaltedMD5Hash) __swig_getmethods__["SaltedSHA256Hash"] = lambda x: _znc_core.CUtils_SaltedSHA256Hash if _newclass: SaltedSHA256Hash = staticmethod(_znc_core.CUtils_SaltedSHA256Hash) __swig_getmethods__["GetPass"] = lambda x: _znc_core.CUtils_GetPass if _newclass: GetPass = staticmethod(_znc_core.CUtils_GetPass) __swig_getmethods__["GetInput"] = lambda x: _znc_core.CUtils_GetInput if _newclass: GetInput = staticmethod(_znc_core.CUtils_GetInput) __swig_getmethods__["GetBoolInput"] = lambda x: _znc_core.CUtils_GetBoolInput if _newclass: GetBoolInput = staticmethod(_znc_core.CUtils_GetBoolInput) __swig_getmethods__["GetNumInput"] = lambda x: _znc_core.CUtils_GetNumInput if _newclass: GetNumInput = staticmethod(_znc_core.CUtils_GetNumInput) __swig_getmethods__["GetMillTime"] = lambda x: _znc_core.CUtils_GetMillTime if _newclass: GetMillTime = staticmethod(_znc_core.CUtils_GetMillTime) __swig_getmethods__["CTime"] = lambda x: _znc_core.CUtils_CTime if _newclass: CTime = staticmethod(_znc_core.CUtils_CTime) __swig_getmethods__["FormatTime"] = lambda x: _znc_core.CUtils_FormatTime if _newclass: FormatTime = staticmethod(_znc_core.CUtils_FormatTime) __swig_getmethods__["FormatServerTime"] = lambda x: _znc_core.CUtils_FormatServerTime if _newclass: FormatServerTime = staticmethod(_znc_core.CUtils_FormatServerTime) __swig_getmethods__["GetTimezones"] = lambda x: _znc_core.CUtils_GetTimezones if _newclass: GetTimezones = staticmethod(_znc_core.CUtils_GetTimezones) __swig_getmethods__["GetEncodings"] = lambda x: _znc_core.CUtils_GetEncodings if _newclass: GetEncodings = staticmethod(_znc_core.CUtils_GetEncodings) __swig_getmethods__["GetMessageTags"] = lambda x: _znc_core.CUtils_GetMessageTags if _newclass: GetMessageTags = staticmethod(_znc_core.CUtils_GetMessageTags) __swig_getmethods__["SetMessageTags"] = lambda x: _znc_core.CUtils_SetMessageTags if _newclass: SetMessageTags = staticmethod(_znc_core.CUtils_SetMessageTags) CUtils_swigregister = _znc_core.CUtils_swigregister CUtils_swigregister(CUtils) cvar = _znc_core.cvar g_HexDigits = cvar.g_HexDigits def CUtils_GetIP(addr: 'unsigned long') -> "CString": return _znc_core.CUtils_GetIP(addr) CUtils_GetIP = _znc_core.CUtils_GetIP def CUtils_GetLongIP(sIP: 'CString const &') -> "unsigned long": return _znc_core.CUtils_GetLongIP(sIP) CUtils_GetLongIP = _znc_core.CUtils_GetLongIP def CUtils_PrintError(sMessage: 'CString const &') -> "void": return _znc_core.CUtils_PrintError(sMessage) CUtils_PrintError = _znc_core.CUtils_PrintError def CUtils_PrintMessage(sMessage: 'CString const &', bStrong: 'bool'=False) -> "void": return _znc_core.CUtils_PrintMessage(sMessage, bStrong) CUtils_PrintMessage = _znc_core.CUtils_PrintMessage def CUtils_PrintPrompt(sMessage: 'CString const &') -> "void": return _znc_core.CUtils_PrintPrompt(sMessage) CUtils_PrintPrompt = _znc_core.CUtils_PrintPrompt def CUtils_PrintAction(sMessage: 'CString const &') -> "void": return _znc_core.CUtils_PrintAction(sMessage) CUtils_PrintAction = _znc_core.CUtils_PrintAction def CUtils_PrintStatus(*args) -> "void": return _znc_core.CUtils_PrintStatus(*args) CUtils_PrintStatus = _znc_core.CUtils_PrintStatus CUtils.sDefaultHash = _znc_core.cvar.CUtils_sDefaultHash def CUtils_GetSaltedHashPass(sSalt: 'CString &') -> "CString": return _znc_core.CUtils_GetSaltedHashPass(sSalt) CUtils_GetSaltedHashPass = _znc_core.CUtils_GetSaltedHashPass def CUtils_GetSalt() -> "CString": return _znc_core.CUtils_GetSalt() CUtils_GetSalt = _znc_core.CUtils_GetSalt def CUtils_SaltedMD5Hash(sPass: 'CString const &', sSalt: 'CString const &') -> "CString": return _znc_core.CUtils_SaltedMD5Hash(sPass, sSalt) CUtils_SaltedMD5Hash = _znc_core.CUtils_SaltedMD5Hash def CUtils_SaltedSHA256Hash(sPass: 'CString const &', sSalt: 'CString const &') -> "CString": return _znc_core.CUtils_SaltedSHA256Hash(sPass, sSalt) CUtils_SaltedSHA256Hash = _znc_core.CUtils_SaltedSHA256Hash def CUtils_GetPass(sPrompt: 'CString const &') -> "CString": return _znc_core.CUtils_GetPass(sPrompt) CUtils_GetPass = _znc_core.CUtils_GetPass def CUtils_GetInput(*args) -> "bool": return _znc_core.CUtils_GetInput(*args) CUtils_GetInput = _znc_core.CUtils_GetInput def CUtils_GetBoolInput(*args) -> "bool": return _znc_core.CUtils_GetBoolInput(*args) CUtils_GetBoolInput = _znc_core.CUtils_GetBoolInput def CUtils_GetNumInput(*args) -> "bool": return _znc_core.CUtils_GetNumInput(*args) CUtils_GetNumInput = _znc_core.CUtils_GetNumInput def CUtils_GetMillTime() -> "unsigned long long": return _znc_core.CUtils_GetMillTime() CUtils_GetMillTime = _znc_core.CUtils_GetMillTime def CUtils_CTime(t: 'time_t', sTZ: 'CString const &') -> "CString": return _znc_core.CUtils_CTime(t, sTZ) CUtils_CTime = _znc_core.CUtils_CTime def CUtils_FormatTime(t: 'time_t', sFormat: 'CString const &', sTZ: 'CString const &') -> "CString": return _znc_core.CUtils_FormatTime(t, sFormat, sTZ) CUtils_FormatTime = _znc_core.CUtils_FormatTime def CUtils_FormatServerTime(tv: 'timeval const &') -> "CString": return _znc_core.CUtils_FormatServerTime(tv) CUtils_FormatServerTime = _znc_core.CUtils_FormatServerTime def CUtils_GetTimezones() -> "SCString": return _znc_core.CUtils_GetTimezones() CUtils_GetTimezones = _znc_core.CUtils_GetTimezones def CUtils_GetEncodings() -> "SCString": return _znc_core.CUtils_GetEncodings() CUtils_GetEncodings = _znc_core.CUtils_GetEncodings def CUtils_GetMessageTags(sLine: 'CString const &') -> "MCString": return _znc_core.CUtils_GetMessageTags(sLine) CUtils_GetMessageTags = _znc_core.CUtils_GetMessageTags def CUtils_SetMessageTags(sLine: 'CString &', mssTags: 'MCString') -> "void": return _znc_core.CUtils_SetMessageTags(sLine, mssTags) CUtils_SetMessageTags = _znc_core.CUtils_SetMessageTags class CException(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CException, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CException, name) __repr__ = _swig_repr EX_Shutdown = _znc_core.CException_EX_Shutdown EX_Restart = _znc_core.CException_EX_Restart def __init__(self, e: 'CException::EType'): this = _znc_core.new_CException(e) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CException __del__ = lambda self: None def GetType(self) -> "CException::EType": return _znc_core.CException_GetType(self) CException_swigregister = _znc_core.CException_swigregister CException_swigregister(CException) class CTable(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CTable, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CTable, name) __repr__ = _swig_repr def __init__(self, uPreferredWidth: 'std::vector< std::vector< CString,std::allocator< CString > > >::size_type'=110): this = _znc_core.new_CTable(uPreferredWidth) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTable __del__ = lambda self: None def AddColumn(self, sName: 'CString const &', bWrappable: 'bool'=True) -> "bool": return _znc_core.CTable_AddColumn(self, sName, bWrappable) def AddRow(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.CTable_AddRow(self) def SetCell(self, *args) -> "bool": return _znc_core.CTable_SetCell(self, *args) def GetLine(self, uIdx: 'unsigned int', sLine: 'CString &') -> "bool": return _znc_core.CTable_GetLine(self, uIdx, sLine) def GetColumnWidth(self, uIdx: 'unsigned int') -> "CString::size_type": return _znc_core.CTable_GetColumnWidth(self, uIdx) def Clear(self) -> "void": return _znc_core.CTable_Clear(self) def size(self) -> "std::vector< std::vector< CString,std::allocator< CString > > >::size_type": return _znc_core.CTable_size(self) def empty(self) -> "bool": return _znc_core.CTable_empty(self) CTable_swigregister = _znc_core.CTable_swigregister CTable_swigregister(CTable) class CConfigEntry(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CConfigEntry, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CConfigEntry, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CConfigEntry(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CConfigEntry __del__ = lambda self: None __swig_setmethods__["m_pSubConfig"] = _znc_core.CConfigEntry_m_pSubConfig_set __swig_getmethods__["m_pSubConfig"] = _znc_core.CConfigEntry_m_pSubConfig_get if _newclass: m_pSubConfig = _swig_property(_znc_core.CConfigEntry_m_pSubConfig_get, _znc_core.CConfigEntry_m_pSubConfig_set) CConfigEntry_swigregister = _znc_core.CConfigEntry_swigregister CConfigEntry_swigregister(CConfigEntry) class CConfig(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CConfig, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CConfig, name) __repr__ = _swig_repr def BeginEntries(self) -> "CConfig::EntryMapIterator": return _znc_core.CConfig_BeginEntries(self) def EndEntries(self) -> "CConfig::EntryMapIterator": return _znc_core.CConfig_EndEntries(self) def BeginSubConfigs(self) -> "CConfig::SubConfigMapIterator": return _znc_core.CConfig_BeginSubConfigs(self) def EndSubConfigs(self) -> "CConfig::SubConfigMapIterator": return _znc_core.CConfig_EndSubConfigs(self) def AddKeyValuePair(self, sName: 'CString const &', sValue: 'CString const &') -> "void": return _znc_core.CConfig_AddKeyValuePair(self, sName, sValue) def AddSubConfig(self, sTag: 'CString const &', sName: 'CString const &', Config: 'CConfig') -> "bool": return _znc_core.CConfig_AddSubConfig(self, sTag, sName, Config) def FindStringVector(self, sName: 'CString const &', vsList: 'VCString', bErase: 'bool'=True) -> "bool": return _znc_core.CConfig_FindStringVector(self, sName, vsList, bErase) def FindStringEntry(self, *args) -> "bool": return _znc_core.CConfig_FindStringEntry(self, *args) def FindBoolEntry(self, sName: 'CString const &', bRes: 'bool &', bDefault: 'bool'=False) -> "bool": return _znc_core.CConfig_FindBoolEntry(self, sName, bRes, bDefault) def FindUIntEntry(self, sName: 'CString const &', uRes: 'unsigned int &', uDefault: 'unsigned int'=0) -> "bool": return _znc_core.CConfig_FindUIntEntry(self, sName, uRes, uDefault) def FindUShortEntry(self, sName: 'CString const &', uRes: 'unsigned short &', uDefault: 'unsigned short'=0) -> "bool": return _znc_core.CConfig_FindUShortEntry(self, sName, uRes, uDefault) def FindDoubleEntry(self, sName: 'CString const &', fRes: 'double &', fDefault: 'double'=0) -> "bool": return _znc_core.CConfig_FindDoubleEntry(self, sName, fRes, fDefault) def FindSubConfig(self, sName: 'CString const &', Config: 'CConfig::SubConfig &', bErase: 'bool'=True) -> "bool": return _znc_core.CConfig_FindSubConfig(self, sName, Config, bErase) def empty(self) -> "bool": return _znc_core.CConfig_empty(self) def Parse(self, file: 'CFile', sErrorMsg: 'CString &') -> "bool": return _znc_core.CConfig_Parse(self, file, sErrorMsg) def Write(self, file: 'CFile', iIndentation: 'unsigned int'=0) -> "void": return _znc_core.CConfig_Write(self, file, iIndentation) def __init__(self): this = _znc_core.new_CConfig() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CConfig __del__ = lambda self: None CConfig_swigregister = _znc_core.CConfig_swigregister CConfig_swigregister(CConfig) _znc_core.CS_INVALID_SOCK_swigconstant(_znc_core) CS_INVALID_SOCK = _znc_core.CS_INVALID_SOCK class CSCharBuffer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CSCharBuffer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CSCharBuffer, name) __repr__ = _swig_repr def __init__(self, iSize: 'size_t'): this = _znc_core.new_CSCharBuffer(iSize) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSCharBuffer __del__ = lambda self: None def __call__(self) -> "char *": return _znc_core.CSCharBuffer___call__(self) CSCharBuffer_swigregister = _znc_core.CSCharBuffer_swigregister CSCharBuffer_swigregister(CSCharBuffer) class CSSockAddr(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CSSockAddr, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CSSockAddr, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CSSockAddr() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSSockAddr __del__ = lambda self: None RAF_ANY = _znc_core.CSSockAddr_RAF_ANY RAF_INET = _znc_core.CSSockAddr_RAF_INET def SinFamily(self) -> "void": return _znc_core.CSSockAddr_SinFamily(self) def SinPort(self, iPort: 'uint16_t') -> "void": return _znc_core.CSSockAddr_SinPort(self, iPort) def SetIPv6(self, b: 'bool') -> "void": return _znc_core.CSSockAddr_SetIPv6(self, b) def GetIPv6(self) -> "bool": return _znc_core.CSSockAddr_GetIPv6(self) def GetSockAddrLen(self) -> "socklen_t": return _znc_core.CSSockAddr_GetSockAddrLen(self) def GetSockAddr(self) -> "sockaddr_in *": return _znc_core.CSSockAddr_GetSockAddr(self) def GetAddr(self) -> "in_addr *": return _znc_core.CSSockAddr_GetAddr(self) def SetAFRequire(self, iWhich: 'CSSockAddr::EAFRequire') -> "void": return _znc_core.CSSockAddr_SetAFRequire(self, iWhich) def GetAFRequire(self) -> "CSSockAddr::EAFRequire": return _znc_core.CSSockAddr_GetAFRequire(self) CSSockAddr_swigregister = _znc_core.CSSockAddr_swigregister CSSockAddr_swigregister(CSSockAddr) class CGetAddrInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CGetAddrInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CGetAddrInfo, name) __repr__ = _swig_repr def __init__(self, sHostname: 'CString const &', pSock: 'Csock', csSockAddr: 'CSSockAddr'): this = _znc_core.new_CGetAddrInfo(sHostname, pSock, csSockAddr) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CGetAddrInfo __del__ = lambda self: None def Init(self) -> "void": return _znc_core.CGetAddrInfo_Init(self) def Process(self) -> "int": return _znc_core.CGetAddrInfo_Process(self) def Finish(self) -> "int": return _znc_core.CGetAddrInfo_Finish(self) CGetAddrInfo_swigregister = _znc_core.CGetAddrInfo_swigregister CGetAddrInfo_swigregister(CGetAddrInfo) def GetAddrInfo(sHostname: 'CString const &', pSock: 'Csock', csSockAddr: 'CSSockAddr') -> "int": return _znc_core.GetAddrInfo(sHostname, pSock, csSockAddr) GetAddrInfo = _znc_core.GetAddrInfo def GetCsockSSLIdx() -> "int": return _znc_core.GetCsockSSLIdx() GetCsockSSLIdx = _znc_core.GetCsockSSLIdx def InitCsocket() -> "bool": return _znc_core.InitCsocket() InitCsocket = _znc_core.InitCsocket def ShutdownCsocket() -> "void": return _znc_core.ShutdownCsocket() ShutdownCsocket = _znc_core.ShutdownCsocket def GetSockError() -> "int": return _znc_core.GetSockError() GetSockError = _znc_core.GetSockError def TFD_ZERO(set: 'fd_set *') -> "void": return _znc_core.TFD_ZERO(set) TFD_ZERO = _znc_core.TFD_ZERO def TFD_SET(iSock: 'cs_sock_t', set: 'fd_set *') -> "void": return _znc_core.TFD_SET(iSock, set) TFD_SET = _znc_core.TFD_SET def TFD_ISSET(iSock: 'cs_sock_t', set: 'fd_set *') -> "bool": return _znc_core.TFD_ISSET(iSock, set) TFD_ISSET = _znc_core.TFD_ISSET def TFD_CLR(iSock: 'cs_sock_t', set: 'fd_set *') -> "void": return _znc_core.TFD_CLR(iSock, set) TFD_CLR = _znc_core.TFD_CLR def __Perror(s: 'CString const &', pszFile: 'char const *', iLineNo: 'uint32_t') -> "void": return _znc_core.__Perror(s, pszFile, iLineNo) __Perror = _znc_core.__Perror def millitime() -> "uint64_t": return _znc_core.millitime() millitime = _znc_core.millitime class CCron(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CCron, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CCron, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CCron() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CCron __del__ = lambda self: None def run(self, tNow: 'timeval &') -> "void": return _znc_core.CCron_run(self, tNow) def StartMaxCycles(self, *args) -> "void": return _znc_core.CCron_StartMaxCycles(self, *args) def Start(self, *args) -> "void": return _znc_core.CCron_Start(self, *args) def Stop(self) -> "void": return _znc_core.CCron_Stop(self) def Pause(self) -> "void": return _znc_core.CCron_Pause(self) def UnPause(self) -> "void": return _znc_core.CCron_UnPause(self) def Reset(self) -> "void": return _znc_core.CCron_Reset(self) def GetInterval(self) -> "timeval": return _znc_core.CCron_GetInterval(self) def GetMaxCycles(self) -> "uint32_t": return _znc_core.CCron_GetMaxCycles(self) def GetCyclesLeft(self) -> "uint32_t": return _znc_core.CCron_GetCyclesLeft(self) def isValid(self) -> "bool": return _znc_core.CCron_isValid(self) def GetName(self) -> "CString const &": return _znc_core.CCron_GetName(self) def SetName(self, sName: 'CString const &') -> "void": return _znc_core.CCron_SetName(self, sName) def GetNextRun(self) -> "timeval": return _znc_core.CCron_GetNextRun(self) def RunJob(self) -> "void": return _znc_core.CCron_RunJob(self) CCron_swigregister = _znc_core.CCron_swigregister CCron_swigregister(CCron) CS_BLOCKSIZE = cvar.CS_BLOCKSIZE class CSMonitorFD(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CSMonitorFD, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CSMonitorFD, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CSMonitorFD() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSMonitorFD __del__ = lambda self: None def GatherFDsForSelect(self, miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &', iTimeoutMS: 'long &') -> "bool": return _znc_core.CSMonitorFD_GatherFDsForSelect(self, miiReadyFds, iTimeoutMS) def FDsThatTriggered(self, miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &') -> "bool": return _znc_core.CSMonitorFD_FDsThatTriggered(self, miiReadyFds) def CheckFDs(self, miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &') -> "bool": return _znc_core.CSMonitorFD_CheckFDs(self, miiReadyFds) def Add(self, iFD: 'cs_sock_t', iMonitorEvents: 'short') -> "void": return _znc_core.CSMonitorFD_Add(self, iFD, iMonitorEvents) def Remove(self, iFD: 'cs_sock_t') -> "void": return _znc_core.CSMonitorFD_Remove(self, iFD) def DisableMonitor(self) -> "void": return _znc_core.CSMonitorFD_DisableMonitor(self) def IsEnabled(self) -> "bool": return _znc_core.CSMonitorFD_IsEnabled(self) CSMonitorFD_swigregister = _znc_core.CSMonitorFD_swigregister CSMonitorFD_swigregister(CSMonitorFD) class CSockCommon(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CSockCommon, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CSockCommon, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CSockCommon() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSockCommon __del__ = lambda self: None def CleanupCrons(self) -> "void": return _znc_core.CSockCommon_CleanupCrons(self) def CleanupFDMonitors(self) -> "void": return _znc_core.CSockCommon_CleanupFDMonitors(self) def GetCrons(self) -> "std::vector< CCron *,std::allocator< CCron * > > const &": return _znc_core.CSockCommon_GetCrons(self) def Cron(self) -> "void": return _znc_core.CSockCommon_Cron(self) def AddCron(self, pcCron: 'CCron') -> "void": return _znc_core.CSockCommon_AddCron(self, pcCron) def DelCron(self, *args) -> "void": return _znc_core.CSockCommon_DelCron(self, *args) def DelCronByAddr(self, pcCron: 'CCron') -> "void": return _znc_core.CSockCommon_DelCronByAddr(self, pcCron) def CheckFDs(self, miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &') -> "void": return _znc_core.CSockCommon_CheckFDs(self, miiReadyFds) def AssignFDs(self, miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &', tvtimeout: 'timeval *') -> "void": return _znc_core.CSockCommon_AssignFDs(self, miiReadyFds, tvtimeout) def MonitorFD(self, pMonitorFD: 'CSMonitorFD') -> "void": return _znc_core.CSockCommon_MonitorFD(self, pMonitorFD) CSockCommon_swigregister = _znc_core.CSockCommon_swigregister CSockCommon_swigregister(CSockCommon) class Csock(CSockCommon): __swig_setmethods__ = {} for _s in [CSockCommon]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, Csock, name, value) __swig_getmethods__ = {} for _s in [CSockCommon]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, Csock, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_Csock(*args) try: self.this.append(this) except: self.this = this def GetSockObj(self, sHostname: 'CString const &', iPort: 'uint16_t') -> "Csock *": return _znc_core.Csock_GetSockObj(self, sHostname, iPort) __swig_destroy__ = _znc_core.delete_Csock __del__ = lambda self: None def Dereference(self) -> "void": return _znc_core.Csock_Dereference(self) def Copy(self, cCopy: 'Csock') -> "void": return _znc_core.Csock_Copy(self, cCopy) OUTBOUND = _znc_core.Csock_OUTBOUND LISTENER = _znc_core.Csock_LISTENER INBOUND = _znc_core.Csock_INBOUND READ_EOF = _znc_core.Csock_READ_EOF READ_ERR = _znc_core.Csock_READ_ERR READ_EAGAIN = _znc_core.Csock_READ_EAGAIN READ_CONNREFUSED = _znc_core.Csock_READ_CONNREFUSED READ_TIMEDOUT = _znc_core.Csock_READ_TIMEDOUT SEL_OK = _znc_core.Csock_SEL_OK SEL_TIMEOUT = _znc_core.Csock_SEL_TIMEOUT SEL_EAGAIN = _znc_core.Csock_SEL_EAGAIN SEL_ERR = _znc_core.Csock_SEL_ERR SSL23 = _znc_core.Csock_SSL23 SSL2 = _znc_core.Csock_SSL2 SSL3 = _znc_core.Csock_SSL3 TLS1 = _znc_core.Csock_TLS1 TLS11 = _znc_core.Csock_TLS11 TLS12 = _znc_core.Csock_TLS12 EDP_None = _znc_core.Csock_EDP_None EDP_SSLv2 = _znc_core.Csock_EDP_SSLv2 EDP_SSLv3 = _znc_core.Csock_EDP_SSLv3 EDP_TLSv1 = _znc_core.Csock_EDP_TLSv1 EDP_TLSv1_1 = _znc_core.Csock_EDP_TLSv1_1 EDP_TLSv1_2 = _znc_core.Csock_EDP_TLSv1_2 EDP_SSL = _znc_core.Csock_EDP_SSL CST_START = _znc_core.Csock_CST_START CST_DNS = _znc_core.Csock_CST_DNS CST_BINDVHOST = _znc_core.Csock_CST_BINDVHOST CST_DESTDNS = _znc_core.Csock_CST_DESTDNS CST_CONNECT = _znc_core.Csock_CST_CONNECT CST_CONNECTSSL = _znc_core.Csock_CST_CONNECTSSL CST_OK = _znc_core.Csock_CST_OK CLT_DONT = _znc_core.Csock_CLT_DONT CLT_NOW = _znc_core.Csock_CLT_NOW CLT_AFTERWRITE = _znc_core.Csock_CLT_AFTERWRITE CLT_DEREFERENCE = _znc_core.Csock_CLT_DEREFERENCE def __lshift__(self, *args) -> "Csock &": return _znc_core.Csock___lshift__(self, *args) def Connect(self) -> "bool": return _znc_core.Csock_Connect(self) def Listen(self, *args) -> "bool": return _znc_core.Csock_Listen(self, *args) def Accept(self, sHost: 'CString &', iRPort: 'uint16_t &') -> "cs_sock_t": return _znc_core.Csock_Accept(self, sHost, iRPort) def AcceptSSL(self) -> "bool": return _znc_core.Csock_AcceptSSL(self) def SSLClientSetup(self) -> "bool": return _znc_core.Csock_SSLClientSetup(self) def SSLServerSetup(self) -> "bool": return _znc_core.Csock_SSLServerSetup(self) def ConnectSSL(self) -> "bool": return _znc_core.Csock_ConnectSSL(self) def StartTLS(self) -> "bool": return _znc_core.Csock_StartTLS(self) def Write(self, *args) -> "bool": return _znc_core.Csock_Write(self, *args) def Read(self, data: 'char *', len: 'size_t') -> "cs_ssize_t": return _znc_core.Csock_Read(self, data, len) def GetLocalIP(self) -> "CString": return _znc_core.Csock_GetLocalIP(self) def GetRemoteIP(self) -> "CString": return _znc_core.Csock_GetRemoteIP(self) def IsConnected(self) -> "bool": return _znc_core.Csock_IsConnected(self) def SetIsConnected(self, b: 'bool') -> "void": return _znc_core.Csock_SetIsConnected(self, b) def GetRSock(self, *args) -> "cs_sock_t const &": return _znc_core.Csock_GetRSock(self, *args) def SetRSock(self, iSock: 'cs_sock_t') -> "void": return _znc_core.Csock_SetRSock(self, iSock) def GetWSock(self, *args) -> "cs_sock_t const &": return _znc_core.Csock_GetWSock(self, *args) def SetWSock(self, iSock: 'cs_sock_t') -> "void": return _znc_core.Csock_SetWSock(self, iSock) def SetSock(self, iSock: 'cs_sock_t') -> "void": return _znc_core.Csock_SetSock(self, iSock) def GetSock(self, *args) -> "cs_sock_t const &": return _znc_core.Csock_GetSock(self, *args) def CallSockError(self, *args) -> "void": return _znc_core.Csock_CallSockError(self, *args) def ResetTimer(self) -> "void": return _znc_core.Csock_ResetTimer(self) def PauseRead(self) -> "void": return _znc_core.Csock_PauseRead(self) def UnPauseRead(self) -> "void": return _znc_core.Csock_UnPauseRead(self) def IsReadPaused(self) -> "bool": return _znc_core.Csock_IsReadPaused(self) TMO_READ = _znc_core.Csock_TMO_READ TMO_WRITE = _znc_core.Csock_TMO_WRITE TMO_ACCEPT = _znc_core.Csock_TMO_ACCEPT TMO_ALL = _znc_core.Csock_TMO_ALL def SetTimeout(self, *args) -> "void": return _znc_core.Csock_SetTimeout(self, *args) def SetTimeoutType(self, iTimeoutType: 'uint32_t') -> "void": return _znc_core.Csock_SetTimeoutType(self, iTimeoutType) def GetTimeout(self) -> "int": return _znc_core.Csock_GetTimeout(self) def GetTimeoutType(self) -> "uint32_t": return _znc_core.Csock_GetTimeoutType(self) def CheckTimeout(self, iNow: 'time_t') -> "bool": return _znc_core.Csock_CheckTimeout(self, iNow) def PushBuff(self, data: 'char const *', len: 'size_t', bStartAtZero: 'bool'=False) -> "void": return _znc_core.Csock_PushBuff(self, data, len, bStartAtZero) def GetInternalReadBuffer(self) -> "CString &": return _znc_core.Csock_GetInternalReadBuffer(self) def GetInternalWriteBuffer(self) -> "CString &": return _znc_core.Csock_GetInternalWriteBuffer(self) def SetMaxBufferThreshold(self, iThreshold: 'uint32_t') -> "void": return _znc_core.Csock_SetMaxBufferThreshold(self, iThreshold) def GetMaxBufferThreshold(self) -> "uint32_t": return _znc_core.Csock_GetMaxBufferThreshold(self) def GetType(self) -> "int": return _znc_core.Csock_GetType(self) def SetType(self, iType: 'int') -> "void": return _znc_core.Csock_SetType(self, iType) def GetSockName(self) -> "CString const &": return _znc_core.Csock_GetSockName(self) def SetSockName(self, sName: 'CString const &') -> "void": return _znc_core.Csock_SetSockName(self, sName) def GetHostName(self) -> "CString const &": return _znc_core.Csock_GetHostName(self) def SetHostName(self, sHostname: 'CString const &') -> "void": return _znc_core.Csock_SetHostName(self, sHostname) def GetStartTime(self) -> "uint64_t": return _znc_core.Csock_GetStartTime(self) def ResetStartTime(self) -> "void": return _znc_core.Csock_ResetStartTime(self) def GetBytesRead(self) -> "uint64_t": return _znc_core.Csock_GetBytesRead(self) def ResetBytesRead(self) -> "void": return _znc_core.Csock_ResetBytesRead(self) def GetBytesWritten(self) -> "uint64_t": return _znc_core.Csock_GetBytesWritten(self) def ResetBytesWritten(self) -> "void": return _znc_core.Csock_ResetBytesWritten(self) def GetAvgRead(self, iSample: 'uint64_t'=1000) -> "double": return _znc_core.Csock_GetAvgRead(self, iSample) def GetAvgWrite(self, iSample: 'uint64_t'=1000) -> "double": return _znc_core.Csock_GetAvgWrite(self, iSample) def GetRemotePort(self) -> "uint16_t": return _znc_core.Csock_GetRemotePort(self) def GetLocalPort(self) -> "uint16_t": return _znc_core.Csock_GetLocalPort(self) def GetPort(self) -> "uint16_t": return _znc_core.Csock_GetPort(self) def SetPort(self, iPort: 'uint16_t') -> "void": return _znc_core.Csock_SetPort(self, iPort) def Close(self, *args) -> "void": return _znc_core.Csock_Close(self, *args) def GetCloseType(self) -> "Csock::ECloseType": return _znc_core.Csock_GetCloseType(self) def IsClosed(self) -> "bool": return _znc_core.Csock_IsClosed(self) def NonBlockingIO(self) -> "void": return _znc_core.Csock_NonBlockingIO(self) def GetSSL(self) -> "bool": return _znc_core.Csock_GetSSL(self) def SetSSL(self, b: 'bool') -> "void": return _znc_core.Csock_SetSSL(self, b) def HasWriteBuffer(self) -> "bool": return _znc_core.Csock_HasWriteBuffer(self) def ClearWriteBuffer(self) -> "void": return _znc_core.Csock_ClearWriteBuffer(self) def SslIsEstablished(self) -> "bool": return _znc_core.Csock_SslIsEstablished(self) def ConnectInetd(self, *args) -> "bool": return _znc_core.Csock_ConnectInetd(self, *args) def ConnectFD(self, *args) -> "bool": return _znc_core.Csock_ConnectFD(self, *args) def SetParentSockName(self, sParentName: 'CString const &') -> "void": return _znc_core.Csock_SetParentSockName(self, sParentName) def GetParentSockName(self) -> "CString const &": return _znc_core.Csock_GetParentSockName(self) def SetRate(self, iBytes: 'uint32_t', iMilliseconds: 'uint64_t') -> "void": return _znc_core.Csock_SetRate(self, iBytes, iMilliseconds) def GetRateBytes(self) -> "uint32_t": return _znc_core.Csock_GetRateBytes(self) def GetRateTime(self) -> "uint64_t": return _znc_core.Csock_GetRateTime(self) def Connected(self) -> "void": return _znc_core.Csock_Connected(self) def Disconnected(self) -> "void": return _znc_core.Csock_Disconnected(self) def Timeout(self) -> "void": return _znc_core.Csock_Timeout(self) def ReadData(self, data: 'char const *', len: 'size_t') -> "void": return _znc_core.Csock_ReadData(self, data, len) def ReadLine(self, sLine: 'CString const &') -> "void": return _znc_core.Csock_ReadLine(self, sLine) def EnableReadLine(self) -> "void": return _znc_core.Csock_EnableReadLine(self) def DisableReadLine(self) -> "void": return _znc_core.Csock_DisableReadLine(self) def HasReadLine(self) -> "bool": return _znc_core.Csock_HasReadLine(self) def ReachedMaxBuffer(self) -> "void": return _znc_core.Csock_ReachedMaxBuffer(self) def SockError(self, iErrno: 'int', sDescription: 'CString const &') -> "void": return _znc_core.Csock_SockError(self, iErrno, sDescription) def ConnectionFrom(self, sHost: 'CString const &', iPort: 'uint16_t') -> "bool": return _znc_core.Csock_ConnectionFrom(self, sHost, iPort) def Listening(self, sBindIP: 'CString const &', uPort: 'uint16_t') -> "void": return _znc_core.Csock_Listening(self, sBindIP, uPort) def ConnectionRefused(self) -> "void": return _znc_core.Csock_ConnectionRefused(self) def ReadPaused(self) -> "void": return _znc_core.Csock_ReadPaused(self) def GetTimeSinceLastDataTransaction(self, iNow: 'time_t'=0) -> "time_t": return _znc_core.Csock_GetTimeSinceLastDataTransaction(self, iNow) def GetLastCheckTimeout(self) -> "time_t": return _znc_core.Csock_GetLastCheckTimeout(self) def GetNextCheckTimeout(self, iNow: 'time_t'=0) -> "time_t": return _znc_core.Csock_GetNextCheckTimeout(self, iNow) def GetPending(self) -> "int": return _znc_core.Csock_GetPending(self) def GetConState(self) -> "Csock::ECONState": return _znc_core.Csock_GetConState(self) def SetConState(self, eState: 'Csock::ECONState') -> "void": return _znc_core.Csock_SetConState(self, eState) def CreateSocksFD(self) -> "bool": return _znc_core.Csock_CreateSocksFD(self) def CloseSocksFD(self) -> "void": return _znc_core.Csock_CloseSocksFD(self) def GetBindHost(self) -> "CString const &": return _znc_core.Csock_GetBindHost(self) def SetBindHost(self, sBindHost: 'CString const &') -> "void": return _znc_core.Csock_SetBindHost(self, sBindHost) DNS_VHOST = _znc_core.Csock_DNS_VHOST DNS_DEST = _znc_core.Csock_DNS_DEST def DNSLookup(self, eDNSLType: 'Csock::EDNSLType') -> "int": return _znc_core.Csock_DNSLookup(self, eDNSLType) def SetupVHost(self) -> "bool": return _znc_core.Csock_SetupVHost(self) def GetIPv6(self) -> "bool": return _znc_core.Csock_GetIPv6(self) def SetIPv6(self, b: 'bool') -> "void": return _znc_core.Csock_SetIPv6(self, b) def SetAFRequire(self, iAFRequire: 'CSSockAddr::EAFRequire') -> "void": return _znc_core.Csock_SetAFRequire(self, iAFRequire) def AllowWrite(self, iNOW: 'uint64_t &') -> "bool": return _znc_core.Csock_AllowWrite(self, iNOW) def SetSkipConnect(self, b: 'bool') -> "void": return _znc_core.Csock_SetSkipConnect(self, b) def GetAddrInfo(self, sHostname: 'CString const &', csSockAddr: 'CSSockAddr') -> "int": return _znc_core.Csock_GetAddrInfo(self, sHostname, csSockAddr) def ConvertAddress(self, pAddr: 'sockaddr_storage const *', iAddrLen: 'socklen_t', sIP: 'CString &', piPort: 'uint16_t *') -> "int": return _znc_core.Csock_ConvertAddress(self, pAddr, iAddrLen, sIP, piPort) def GetMaxConns(self) -> "int": return _znc_core.Csock_GetMaxConns(self) def WriteBytes(self, data: 'PyObject *') -> "PyObject *": return _znc_core.Csock_WriteBytes(self, data) Csock_swigregister = _znc_core.Csock_swigregister Csock_swigregister(Csock) class CSConnection(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CSConnection, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CSConnection, name) __repr__ = _swig_repr def __init__(self, sHostname: 'CString const &', iPort: 'uint16_t', iTimeout: 'int'=60): this = _znc_core.new_CSConnection(sHostname, iPort, iTimeout) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSConnection __del__ = lambda self: None def GetHostname(self) -> "CString const &": return _znc_core.CSConnection_GetHostname(self) def GetSockName(self) -> "CString const &": return _znc_core.CSConnection_GetSockName(self) def GetBindHost(self) -> "CString const &": return _znc_core.CSConnection_GetBindHost(self) def GetPort(self) -> "uint16_t": return _znc_core.CSConnection_GetPort(self) def GetTimeout(self) -> "int": return _znc_core.CSConnection_GetTimeout(self) def GetIsSSL(self) -> "bool": return _znc_core.CSConnection_GetIsSSL(self) def GetAFRequire(self) -> "CSSockAddr::EAFRequire": return _znc_core.CSConnection_GetAFRequire(self) def SetHostname(self, s: 'CString const &') -> "void": return _znc_core.CSConnection_SetHostname(self, s) def SetSockName(self, s: 'CString const &') -> "void": return _znc_core.CSConnection_SetSockName(self, s) def SetBindHost(self, s: 'CString const &') -> "void": return _znc_core.CSConnection_SetBindHost(self, s) def SetPort(self, i: 'uint16_t') -> "void": return _znc_core.CSConnection_SetPort(self, i) def SetTimeout(self, i: 'int') -> "void": return _znc_core.CSConnection_SetTimeout(self, i) def SetIsSSL(self, b: 'bool') -> "void": return _znc_core.CSConnection_SetIsSSL(self, b) def SetAFRequire(self, iAFRequire: 'CSSockAddr::EAFRequire') -> "void": return _znc_core.CSConnection_SetAFRequire(self, iAFRequire) CSConnection_swigregister = _znc_core.CSConnection_swigregister CSConnection_swigregister(CSConnection) class CSSSLConnection(CSConnection): __swig_setmethods__ = {} for _s in [CSConnection]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CSSSLConnection, name, value) __swig_getmethods__ = {} for _s in [CSConnection]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CSSSLConnection, name) __repr__ = _swig_repr def __init__(self, sHostname: 'CString const &', iPort: 'uint16_t', iTimeout: 'int'=60): this = _znc_core.new_CSSSLConnection(sHostname, iPort, iTimeout) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSSSLConnection __del__ = lambda self: None CSSSLConnection_swigregister = _znc_core.CSSSLConnection_swigregister CSSSLConnection_swigregister(CSSSLConnection) class CSListener(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CSListener, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CSListener, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CSListener(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSListener __del__ = lambda self: None def SetDetach(self, b: 'bool') -> "void": return _znc_core.CSListener_SetDetach(self, b) def GetDetach(self) -> "bool": return _znc_core.CSListener_GetDetach(self) def GetPort(self) -> "uint16_t": return _znc_core.CSListener_GetPort(self) def GetSockName(self) -> "CString const &": return _znc_core.CSListener_GetSockName(self) def GetBindHost(self) -> "CString const &": return _znc_core.CSListener_GetBindHost(self) def GetIsSSL(self) -> "bool": return _znc_core.CSListener_GetIsSSL(self) def GetMaxConns(self) -> "int": return _znc_core.CSListener_GetMaxConns(self) def GetTimeout(self) -> "uint32_t": return _znc_core.CSListener_GetTimeout(self) def GetAFRequire(self) -> "CSSockAddr::EAFRequire": return _znc_core.CSListener_GetAFRequire(self) def SetPort(self, iPort: 'uint16_t') -> "void": return _znc_core.CSListener_SetPort(self, iPort) def SetSockName(self, sSockName: 'CString const &') -> "void": return _znc_core.CSListener_SetSockName(self, sSockName) def SetBindHost(self, sBindHost: 'CString const &') -> "void": return _znc_core.CSListener_SetBindHost(self, sBindHost) def SetIsSSL(self, b: 'bool') -> "void": return _znc_core.CSListener_SetIsSSL(self, b) def SetMaxConns(self, i: 'int') -> "void": return _znc_core.CSListener_SetMaxConns(self, i) def SetTimeout(self, i: 'uint32_t') -> "void": return _znc_core.CSListener_SetTimeout(self, i) def SetAFRequire(self, iAFRequire: 'CSSockAddr::EAFRequire') -> "void": return _znc_core.CSListener_SetAFRequire(self, iAFRequire) CSListener_swigregister = _znc_core.CSListener_swigregister CSListener_swigregister(CSListener) class CSocketManager(CSockCommon): __swig_setmethods__ = {} for _s in [CSockCommon]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CSocketManager, name, value) __swig_getmethods__ = {} for _s in [CSockCommon]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CSocketManager, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CSocketManager() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSocketManager __del__ = lambda self: None def clear(self) -> "void": return _znc_core.CSocketManager_clear(self) def Cleanup(self) -> "void": return _znc_core.CSocketManager_Cleanup(self) def GetSockObj(self, sHostname: 'CString const &', uPort: 'uint16_t', iTimeout: 'int'=60) -> "Csock *": return _znc_core.CSocketManager_GetSockObj(self, sHostname, uPort, iTimeout) SUCCESS = _znc_core.CSocketManager_SUCCESS SELECT_ERROR = _znc_core.CSocketManager_SELECT_ERROR SELECT_TIMEOUT = _znc_core.CSocketManager_SELECT_TIMEOUT SELECT_TRYAGAIN = _znc_core.CSocketManager_SELECT_TRYAGAIN def Connect(self, cCon: 'CSConnection', pcSock: 'Csock'=None) -> "void": return _znc_core.CSocketManager_Connect(self, cCon, pcSock) def Listen(self, cListen: 'CSListener', pcSock: 'Csock'=None, piRandPort: 'uint16_t *'=None) -> "bool": return _znc_core.CSocketManager_Listen(self, cListen, pcSock, piRandPort) def HasFDs(self) -> "bool": return _znc_core.CSocketManager_HasFDs(self) def Loop(self) -> "void": return _znc_core.CSocketManager_Loop(self) def DynamicSelectLoop(self, iLowerBounds: 'uint64_t', iUpperBounds: 'uint64_t', iMaxResolution: 'time_t'=3600) -> "void": return _znc_core.CSocketManager_DynamicSelectLoop(self, iLowerBounds, iUpperBounds, iMaxResolution) def AddSock(self, pcSock: 'Csock', sSockName: 'CString const &') -> "void": return _znc_core.CSocketManager_AddSock(self, pcSock, sSockName) def FindSockByRemotePort(self, iPort: 'uint16_t') -> "Csock *": return _znc_core.CSocketManager_FindSockByRemotePort(self, iPort) def FindSockByLocalPort(self, iPort: 'uint16_t') -> "Csock *": return _znc_core.CSocketManager_FindSockByLocalPort(self, iPort) def FindSockByName(self, sName: 'CString const &') -> "Csock *": return _znc_core.CSocketManager_FindSockByName(self, sName) def FindSockByFD(self, iFD: 'cs_sock_t') -> "Csock *": return _znc_core.CSocketManager_FindSockByFD(self, iFD) def FindSocksByName(self, sName: 'CString const &') -> "std::vector< Csock *,std::allocator< Csock * > >": return _znc_core.CSocketManager_FindSocksByName(self, sName) def FindSocksByRemoteHost(self, sHostname: 'CString const &') -> "std::vector< Csock *,std::allocator< Csock * > >": return _znc_core.CSocketManager_FindSocksByRemoteHost(self, sHostname) def GetErrno(self) -> "int": return _znc_core.CSocketManager_GetErrno(self) def GetSelectTimeout(self) -> "uint64_t": return _znc_core.CSocketManager_GetSelectTimeout(self) def SetSelectTimeout(self, iTimeout: 'uint64_t') -> "void": return _znc_core.CSocketManager_SetSelectTimeout(self, iTimeout) def DelSockByAddr(self, pcSock: 'Csock') -> "void": return _znc_core.CSocketManager_DelSockByAddr(self, pcSock) def DelSock(self, iPos: 'size_t') -> "void": return _znc_core.CSocketManager_DelSock(self, iPos) def SwapSockByIdx(self, pNewSock: 'Csock', iOrginalSockIdx: 'size_t') -> "bool": return _znc_core.CSocketManager_SwapSockByIdx(self, pNewSock, iOrginalSockIdx) def SwapSockByAddr(self, pNewSock: 'Csock', pOrigSock: 'Csock') -> "bool": return _znc_core.CSocketManager_SwapSockByAddr(self, pNewSock, pOrigSock) def GetBytesRead(self) -> "uint64_t": return _znc_core.CSocketManager_GetBytesRead(self) def GetBytesWritten(self) -> "uint64_t": return _znc_core.CSocketManager_GetBytesWritten(self) ECT_Read = _znc_core.CSocketManager_ECT_Read ECT_Write = _znc_core.CSocketManager_ECT_Write def FDSetCheck(self, iFd: 'cs_sock_t', miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &', eType: 'CSocketManager::ECheckType') -> "void": return _znc_core.CSocketManager_FDSetCheck(self, iFd, miiReadyFds, eType) def FDHasCheck(self, iFd: 'cs_sock_t', miiReadyFds: 'std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &', eType: 'CSocketManager::ECheckType') -> "bool": return _znc_core.CSocketManager_FDHasCheck(self, iFd, miiReadyFds, eType) CSocketManager_swigregister = _znc_core.CSocketManager_swigregister CSocketManager_swigregister(CSocketManager) class ZNCSocketManager(CSocketManager): __swig_setmethods__ = {} for _s in [CSocketManager]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, ZNCSocketManager, name, value) __swig_getmethods__ = {} for _s in [CSocketManager]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, ZNCSocketManager, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_ZNCSocketManager() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_ZNCSocketManager __del__ = lambda self: None def GetSockObj(self, sHostname: 'CString const &', uPort: 'uint16_t', iTimeout: 'int'=60) -> "CZNCSock *": return _znc_core.ZNCSocketManager_GetSockObj(self, sHostname, uPort, iTimeout) ZNCSocketManager_swigregister = _znc_core.ZNCSocketManager_swigregister ZNCSocketManager_swigregister(ZNCSocketManager) class CZNCSock(Csock): __swig_setmethods__ = {} for _s in [Csock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CZNCSock, name, value) __swig_getmethods__ = {} for _s in [Csock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CZNCSock, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CZNCSock(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CZNCSock __del__ = lambda self: None def ConvertAddress(self, pAddr: 'sockaddr_storage const *', iAddrLen: 'socklen_t', sIP: 'CString &', piPort: 'unsigned short *') -> "int": return _znc_core.CZNCSock_ConvertAddress(self, pAddr, iAddrLen, sIP, piPort) def SetHostToVerifySSL(self, sHost: 'CString const &') -> "void": return _znc_core.CZNCSock_SetHostToVerifySSL(self, sHost) def GetSSLPeerFingerprint(self) -> "CString": return _znc_core.CZNCSock_GetSSLPeerFingerprint(self) def SetSSLTrustedPeerFingerprints(self, ssFPs: 'SCString') -> "void": return _znc_core.CZNCSock_SetSSLTrustedPeerFingerprints(self, ssFPs) def SetEncoding(self, arg2: 'CString const &') -> "void": return _znc_core.CZNCSock_SetEncoding(self, arg2) def GetRemoteIP(self) -> "CString": return _znc_core.CZNCSock_GetRemoteIP(self) CZNCSock_swigregister = _znc_core.CZNCSock_swigregister CZNCSock_swigregister(CZNCSock) _znc_core.ADDR_IPV4ONLY_swigconstant(_znc_core) ADDR_IPV4ONLY = _znc_core.ADDR_IPV4ONLY _znc_core.ADDR_IPV6ONLY_swigconstant(_znc_core) ADDR_IPV6ONLY = _znc_core.ADDR_IPV6ONLY _znc_core.ADDR_ALL_swigconstant(_znc_core) ADDR_ALL = _znc_core.ADDR_ALL class CSockManager(ZNCSocketManager): __swig_setmethods__ = {} for _s in [ZNCSocketManager]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CSockManager, name, value) __swig_getmethods__ = {} for _s in [ZNCSocketManager]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CSockManager, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CSockManager() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSockManager __del__ = lambda self: None def ListenHost(self, *args) -> "bool": return _znc_core.CSockManager_ListenHost(self, *args) def ListenAll(self, *args) -> "bool": return _znc_core.CSockManager_ListenAll(self, *args) def ListenRand(self, *args) -> "unsigned short": return _znc_core.CSockManager_ListenRand(self, *args) def ListenAllRand(self, *args) -> "unsigned short": return _znc_core.CSockManager_ListenAllRand(self, *args) def Connect(self, *args) -> "void": return _znc_core.CSockManager_Connect(self, *args) def GetAnonConnectionCount(self, sIP: 'CString const &') -> "unsigned int": return _znc_core.CSockManager_GetAnonConnectionCount(self, sIP) CSockManager_swigregister = _znc_core.CSockManager_swigregister CSockManager_swigregister(CSockManager) class CSocket(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CSocket, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CSocket, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CSocket(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CSocket __del__ = lambda self: None def ReachedMaxBuffer(self) -> "void": return _znc_core.CSocket_ReachedMaxBuffer(self) def SockError(self, iErrno: 'int', sDescription: 'CString const &') -> "void": return _znc_core.CSocket_SockError(self, iErrno, sDescription) def ConnectionFrom(self, sHost: 'CString const &', uPort: 'unsigned short') -> "bool": return _znc_core.CSocket_ConnectionFrom(self, sHost, uPort) def Connect(self, *args) -> "bool": return _znc_core.CSocket_Connect(self, *args) def Listen(self, *args) -> "bool": return _znc_core.CSocket_Listen(self, *args) def GetModule(self) -> "CModule *": return _znc_core.CSocket_GetModule(self) CSocket_swigregister = _znc_core.CSocket_swigregister CSocket_swigregister(CSocket) class CIRCSocket(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CIRCSocket, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CIRCSocket, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CIRCSocket() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CIRCSocket __del__ = lambda self: None CIRCSocket_swigregister = _znc_core.CIRCSocket_swigregister CIRCSocket_swigregister(CIRCSocket) class CFile(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CFile, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CFile, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CFile(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CFile __del__ = lambda self: None FT_REGULAR = _znc_core.CFile_FT_REGULAR FT_DIRECTORY = _znc_core.CFile_FT_DIRECTORY FT_CHARACTER = _znc_core.CFile_FT_CHARACTER FT_BLOCK = _znc_core.CFile_FT_BLOCK FT_FIFO = _znc_core.CFile_FT_FIFO FT_LINK = _znc_core.CFile_FT_LINK FT_SOCK = _znc_core.CFile_FT_SOCK def SetFileName(self, sLongName: 'CString const &') -> "void": return _znc_core.CFile_SetFileName(self, sLongName) def IsReg(self, *args) -> "bool": return _znc_core.CFile_IsReg(self, *args) def IsDir(self, *args) -> "bool": return _znc_core.CFile_IsDir(self, *args) def IsChr(self, *args) -> "bool": return _znc_core.CFile_IsChr(self, *args) def IsBlk(self, *args) -> "bool": return _znc_core.CFile_IsBlk(self, *args) def IsFifo(self, *args) -> "bool": return _znc_core.CFile_IsFifo(self, *args) def IsLnk(self, *args) -> "bool": return _znc_core.CFile_IsLnk(self, *args) def IsSock(self, *args) -> "bool": return _znc_core.CFile_IsSock(self, *args) __swig_getmethods__["FType"] = lambda x: _znc_core.CFile_FType if _newclass: FType = staticmethod(_znc_core.CFile_FType) FA_Name = _znc_core.CFile_FA_Name FA_Size = _znc_core.CFile_FA_Size FA_ATime = _znc_core.CFile_FA_ATime FA_MTime = _znc_core.CFile_FA_MTime FA_CTime = _znc_core.CFile_FA_CTime FA_UID = _znc_core.CFile_FA_UID __swig_getmethods__["Exists"] = lambda x: _znc_core.CFile_Exists if _newclass: Exists = staticmethod(_znc_core.CFile_Exists) __swig_getmethods__["GetSize"] = lambda x: _znc_core.CFile_GetSize if _newclass: GetSize = staticmethod(_znc_core.CFile_GetSize) __swig_getmethods__["GetATime"] = lambda x: _znc_core.CFile_GetATime if _newclass: GetATime = staticmethod(_znc_core.CFile_GetATime) __swig_getmethods__["GetMTime"] = lambda x: _znc_core.CFile_GetMTime if _newclass: GetMTime = staticmethod(_znc_core.CFile_GetMTime) __swig_getmethods__["GetCTime"] = lambda x: _znc_core.CFile_GetCTime if _newclass: GetCTime = staticmethod(_znc_core.CFile_GetCTime) __swig_getmethods__["GetUID"] = lambda x: _znc_core.CFile_GetUID if _newclass: GetUID = staticmethod(_znc_core.CFile_GetUID) __swig_getmethods__["GetGID"] = lambda x: _znc_core.CFile_GetGID if _newclass: GetGID = staticmethod(_znc_core.CFile_GetGID) __swig_getmethods__["GetInfo"] = lambda x: _znc_core.CFile_GetInfo if _newclass: GetInfo = staticmethod(_znc_core.CFile_GetInfo) __swig_getmethods__["Delete"] = lambda x: _znc_core.CFile_Delete if _newclass: Delete = staticmethod(_znc_core.CFile_Delete) __swig_getmethods__["Move"] = lambda x: _znc_core.CFile_Move if _newclass: Move = staticmethod(_znc_core.CFile_Move) __swig_getmethods__["Copy"] = lambda x: _znc_core.CFile_Copy if _newclass: Copy = staticmethod(_znc_core.CFile_Copy) __swig_getmethods__["Chmod"] = lambda x: _znc_core.CFile_Chmod if _newclass: Chmod = staticmethod(_znc_core.CFile_Chmod) def Seek(self, uPos: 'off_t') -> "bool": return _znc_core.CFile_Seek(self, uPos) def Truncate(self) -> "bool": return _znc_core.CFile_Truncate(self) def Sync(self) -> "bool": return _znc_core.CFile_Sync(self) def Open(self, *args) -> "bool": return _znc_core.CFile_Open(self, *args) def Read(self, pszBuffer: 'char *', iBytes: 'int') -> "ssize_t": return _znc_core.CFile_Read(self, pszBuffer, iBytes) def ReadLine(self, *args) -> "bool": return _znc_core.CFile_ReadLine(self, *args) def ReadFile(self, *args) -> "bool": return _znc_core.CFile_ReadFile(self, *args) def Write(self, *args) -> "ssize_t": return _znc_core.CFile_Write(self, *args) def Close(self) -> "void": return _znc_core.CFile_Close(self) def ClearBuffer(self) -> "void": return _znc_core.CFile_ClearBuffer(self) def TryExLock(self, *args) -> "bool": return _znc_core.CFile_TryExLock(self, *args) def ExLock(self) -> "bool": return _znc_core.CFile_ExLock(self) def UnLock(self) -> "bool": return _znc_core.CFile_UnLock(self) def IsOpen(self) -> "bool": return _znc_core.CFile_IsOpen(self) def GetLongName(self) -> "CString": return _znc_core.CFile_GetLongName(self) def GetShortName(self) -> "CString": return _znc_core.CFile_GetShortName(self) def GetDir(self) -> "CString": return _znc_core.CFile_GetDir(self) def HadError(self) -> "bool": return _znc_core.CFile_HadError(self) def ResetError(self) -> "void": return _znc_core.CFile_ResetError(self) __swig_getmethods__["InitHomePath"] = lambda x: _znc_core.CFile_InitHomePath if _newclass: InitHomePath = staticmethod(_znc_core.CFile_InitHomePath) __swig_getmethods__["GetHomePath"] = lambda x: _znc_core.CFile_GetHomePath if _newclass: GetHomePath = staticmethod(_znc_core.CFile_GetHomePath) CFile_swigregister = _znc_core.CFile_swigregister CFile_swigregister(CFile) def CFile_FType(sFileName: 'CString const &', eType: 'CFile::EFileTypes', bUseLstat: 'bool'=False) -> "bool": return _znc_core.CFile_FType(sFileName, eType, bUseLstat) CFile_FType = _znc_core.CFile_FType def CFile_Exists(*args) -> "bool": return _znc_core.CFile_Exists(*args) CFile_Exists = _znc_core.CFile_Exists def CFile_GetSize(*args) -> "off_t": return _znc_core.CFile_GetSize(*args) CFile_GetSize = _znc_core.CFile_GetSize def CFile_GetATime(*args) -> "time_t": return _znc_core.CFile_GetATime(*args) CFile_GetATime = _znc_core.CFile_GetATime def CFile_GetMTime(*args) -> "time_t": return _znc_core.CFile_GetMTime(*args) CFile_GetMTime = _znc_core.CFile_GetMTime def CFile_GetCTime(*args) -> "time_t": return _znc_core.CFile_GetCTime(*args) CFile_GetCTime = _znc_core.CFile_GetCTime def CFile_GetUID(*args) -> "uid_t": return _znc_core.CFile_GetUID(*args) CFile_GetUID = _znc_core.CFile_GetUID def CFile_GetGID(*args) -> "gid_t": return _znc_core.CFile_GetGID(*args) CFile_GetGID = _znc_core.CFile_GetGID def CFile_GetInfo(sFile: 'CString const &', st: 'stat &') -> "int": return _znc_core.CFile_GetInfo(sFile, st) CFile_GetInfo = _znc_core.CFile_GetInfo def CFile_Delete(*args) -> "bool": return _znc_core.CFile_Delete(*args) CFile_Delete = _znc_core.CFile_Delete def CFile_Move(*args) -> "bool": return _znc_core.CFile_Move(*args) CFile_Move = _znc_core.CFile_Move def CFile_Copy(*args) -> "bool": return _znc_core.CFile_Copy(*args) CFile_Copy = _znc_core.CFile_Copy def CFile_Chmod(*args) -> "bool": return _znc_core.CFile_Chmod(*args) CFile_Chmod = _znc_core.CFile_Chmod def CFile_InitHomePath(sFallback: 'CString const &') -> "void": return _znc_core.CFile_InitHomePath(sFallback) CFile_InitHomePath = _znc_core.CFile_InitHomePath def CFile_GetHomePath() -> "CString const &": return _znc_core.CFile_GetHomePath() CFile_GetHomePath = _znc_core.CFile_GetHomePath class CDir(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CDir, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CDir, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CDir(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CDir __del__ = lambda self: None def CleanUp(self) -> "void": return _znc_core.CDir_CleanUp(self) def Fill(self, sDir: 'CString const &') -> "size_t": return _znc_core.CDir_Fill(self, sDir) def FillByWildcard(self, sDir: 'CString const &', sWildcard: 'CString const &') -> "size_t": return _znc_core.CDir_FillByWildcard(self, sDir, sWildcard) def Chmod(self, *args) -> "unsigned int": return _znc_core.CDir_Chmod(self, *args) def Delete(self, *args) -> "unsigned int": return _znc_core.CDir_Delete(self, *args) def GetSortAttr(self) -> "CFile::EFileAttr": return _znc_core.CDir_GetSortAttr(self) def IsDescending(self) -> "bool": return _znc_core.CDir_IsDescending(self) __swig_getmethods__["CheckPathPrefix"] = lambda x: _znc_core.CDir_CheckPathPrefix if _newclass: CheckPathPrefix = staticmethod(_znc_core.CDir_CheckPathPrefix) __swig_getmethods__["ChangeDir"] = lambda x: _znc_core.CDir_ChangeDir if _newclass: ChangeDir = staticmethod(_znc_core.CDir_ChangeDir) __swig_getmethods__["MakeDir"] = lambda x: _znc_core.CDir_MakeDir if _newclass: MakeDir = staticmethod(_znc_core.CDir_MakeDir) __swig_getmethods__["GetCWD"] = lambda x: _znc_core.CDir_GetCWD if _newclass: GetCWD = staticmethod(_znc_core.CDir_GetCWD) CDir_swigregister = _znc_core.CDir_swigregister CDir_swigregister(CDir) def CDir_CheckPathPrefix(*args) -> "CString": return _znc_core.CDir_CheckPathPrefix(*args) CDir_CheckPathPrefix = _znc_core.CDir_CheckPathPrefix def CDir_ChangeDir(*args) -> "CString": return _znc_core.CDir_ChangeDir(*args) CDir_ChangeDir = _znc_core.CDir_ChangeDir def CDir_MakeDir(sPath: 'CString const &', iMode: 'mode_t'=0o700) -> "bool": return _znc_core.CDir_MakeDir(sPath, iMode) CDir_MakeDir = _znc_core.CDir_MakeDir def CDir_GetCWD() -> "CString": return _znc_core.CDir_GetCWD() CDir_GetCWD = _znc_core.CDir_GetCWD class CTimer(CCron): __swig_setmethods__ = {} for _s in [CCron]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CTimer, name, value) __swig_getmethods__ = {} for _s in [CCron]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CTimer, name) __repr__ = _swig_repr def __init__(self, pModule: 'CModule', uInterval: 'unsigned int', uCycles: 'unsigned int', sLabel: 'CString const &', sDescription: 'CString const &'): this = _znc_core.new_CTimer(pModule, uInterval, uCycles, sLabel, sDescription) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTimer __del__ = lambda self: None def SetModule(self, p: 'CModule') -> "void": return _znc_core.CTimer_SetModule(self, p) def SetDescription(self, s: 'CString const &') -> "void": return _znc_core.CTimer_SetDescription(self, s) def GetModule(self) -> "CModule *": return _znc_core.CTimer_GetModule(self) def GetDescription(self) -> "CString const &": return _znc_core.CTimer_GetDescription(self) CTimer_swigregister = _znc_core.CTimer_swigregister CTimer_swigregister(CTimer) class CFPTimer(CTimer): __swig_setmethods__ = {} for _s in [CTimer]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CFPTimer, name, value) __swig_getmethods__ = {} for _s in [CTimer]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CFPTimer, name) __repr__ = _swig_repr def __init__(self, pModule: 'CModule', uInterval: 'unsigned int', uCycles: 'unsigned int', sLabel: 'CString const &', sDescription: 'CString const &'): this = _znc_core.new_CFPTimer(pModule, uInterval, uCycles, sLabel, sDescription) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CFPTimer __del__ = lambda self: None def SetFPCallback(self, p: 'FPTimer_t') -> "void": return _znc_core.CFPTimer_SetFPCallback(self, p) CFPTimer_swigregister = _znc_core.CFPTimer_swigregister CFPTimer_swigregister(CFPTimer) class CModInfo(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CModInfo, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CModInfo, name) __repr__ = _swig_repr GlobalModule = _znc_core.CModInfo_GlobalModule UserModule = _znc_core.CModInfo_UserModule NetworkModule = _znc_core.CModInfo_NetworkModule def __init__(self, *args): this = _znc_core.new_CModInfo(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CModInfo __del__ = lambda self: None def __lt__(self, Info: 'CModInfo') -> "bool": return _znc_core.CModInfo___lt__(self, Info) def SupportsType(self, eType: 'CModInfo::EModuleType') -> "bool": return _znc_core.CModInfo_SupportsType(self, eType) def AddType(self, eType: 'CModInfo::EModuleType') -> "void": return _znc_core.CModInfo_AddType(self, eType) __swig_getmethods__["ModuleTypeToString"] = lambda x: _znc_core.CModInfo_ModuleTypeToString if _newclass: ModuleTypeToString = staticmethod(_znc_core.CModInfo_ModuleTypeToString) def GetName(self) -> "CString const &": return _znc_core.CModInfo_GetName(self) def GetPath(self) -> "CString const &": return _znc_core.CModInfo_GetPath(self) def GetDescription(self) -> "CString const &": return _znc_core.CModInfo_GetDescription(self) def GetWikiPage(self) -> "CString const &": return _znc_core.CModInfo_GetWikiPage(self) def GetArgsHelpText(self) -> "CString const &": return _znc_core.CModInfo_GetArgsHelpText(self) def GetHasArgs(self) -> "bool": return _znc_core.CModInfo_GetHasArgs(self) def GetLoader(self) -> "CModInfo::ModLoader": return _znc_core.CModInfo_GetLoader(self) def GetDefaultType(self) -> "CModInfo::EModuleType": return _znc_core.CModInfo_GetDefaultType(self) def SetName(self, s: 'CString const &') -> "void": return _znc_core.CModInfo_SetName(self, s) def SetPath(self, s: 'CString const &') -> "void": return _znc_core.CModInfo_SetPath(self, s) def SetDescription(self, s: 'CString const &') -> "void": return _znc_core.CModInfo_SetDescription(self, s) def SetWikiPage(self, s: 'CString const &') -> "void": return _znc_core.CModInfo_SetWikiPage(self, s) def SetArgsHelpText(self, s: 'CString const &') -> "void": return _znc_core.CModInfo_SetArgsHelpText(self, s) def SetHasArgs(self, b: 'bool'=False) -> "void": return _znc_core.CModInfo_SetHasArgs(self, b) def SetLoader(self, fLoader: 'CModInfo::ModLoader') -> "void": return _znc_core.CModInfo_SetLoader(self, fLoader) def SetDefaultType(self, eType: 'CModInfo::EModuleType') -> "void": return _znc_core.CModInfo_SetDefaultType(self, eType) CModInfo_swigregister = _znc_core.CModInfo_swigregister CModInfo_swigregister(CModInfo) def CModInfo_ModuleTypeToString(eType: 'CModInfo::EModuleType') -> "CString": return _znc_core.CModInfo_ModuleTypeToString(eType) CModInfo_ModuleTypeToString = _znc_core.CModInfo_ModuleTypeToString class CModCommand(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CModCommand, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CModCommand, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CModCommand(*args) try: self.this.append(this) except: self.this = this __swig_getmethods__["InitHelp"] = lambda x: _znc_core.CModCommand_InitHelp if _newclass: InitHelp = staticmethod(_znc_core.CModCommand_InitHelp) def AddHelp(self, Table: 'CTable') -> "void": return _znc_core.CModCommand_AddHelp(self, Table) def GetCommand(self) -> "CString const &": return _znc_core.CModCommand_GetCommand(self) def GetFunction(self) -> "CModCommand::CmdFunc": return _znc_core.CModCommand_GetFunction(self) def GetArgs(self) -> "CString const &": return _znc_core.CModCommand_GetArgs(self) def GetDescription(self) -> "CString const &": return _znc_core.CModCommand_GetDescription(self) def Call(self, sLine: 'CString const &') -> "void": return _znc_core.CModCommand_Call(self, sLine) __swig_destroy__ = _znc_core.delete_CModCommand __del__ = lambda self: None CModCommand_swigregister = _znc_core.CModCommand_swigregister CModCommand_swigregister(CModCommand) def CModCommand_InitHelp(Table: 'CTable') -> "void": return _znc_core.CModCommand_InitHelp(Table) CModCommand_InitHelp = _znc_core.CModCommand_InitHelp class CModule(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CModule, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CModule, name) __repr__ = _swig_repr def __init__(self, pDLL: 'ModHandle', pUser: 'CUser', pNetwork: 'CIRCNetwork', sModName: 'CString const &', sDataDir: 'CString const &'): this = _znc_core.new_CModule(pDLL, pUser, pNetwork, sModName, sDataDir) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CModule __del__ = lambda self: None CONTINUE = _znc_core.CModule_CONTINUE HALT = _znc_core.CModule_HALT HALTMODS = _znc_core.CModule_HALTMODS HALTCORE = _znc_core.CModule_HALTCORE UNLOAD = _znc_core.CModule_UNLOAD def SetUser(self, pUser: 'CUser') -> "void": return _znc_core.CModule_SetUser(self, pUser) def SetNetwork(self, pNetwork: 'CIRCNetwork') -> "void": return _znc_core.CModule_SetNetwork(self, pNetwork) def SetClient(self, pClient: 'CClient') -> "void": return _znc_core.CModule_SetClient(self, pClient) def Unload(self) -> "void": return _znc_core.CModule_Unload(self) def OnLoad(self, sArgsi: 'CString const &', sMessage: 'CString &') -> "bool": return _znc_core.CModule_OnLoad(self, sArgsi, sMessage) def OnBoot(self) -> "bool": return _znc_core.CModule_OnBoot(self) def WebRequiresLogin(self) -> "bool": return _znc_core.CModule_WebRequiresLogin(self) def WebRequiresAdmin(self) -> "bool": return _znc_core.CModule_WebRequiresAdmin(self) def GetWebMenuTitle(self) -> "CString": return _znc_core.CModule_GetWebMenuTitle(self) def GetWebPath(self) -> "CString": return _znc_core.CModule_GetWebPath(self) def GetWebFilesPath(self) -> "CString": return _znc_core.CModule_GetWebFilesPath(self) def OnWebPreRequest(self, WebSock: 'CWebSock', sPageName: 'CString const &') -> "bool": return _znc_core.CModule_OnWebPreRequest(self, WebSock, sPageName) def OnWebRequest(self, WebSock: 'CWebSock', sPageName: 'CString const &', Tmpl: 'CTemplate') -> "bool": return _znc_core.CModule_OnWebRequest(self, WebSock, sPageName, Tmpl) def AddSubPage(self, spSubPage: 'TWebSubPage') -> "void": return _znc_core.CModule_AddSubPage(self, spSubPage) def ClearSubPages(self) -> "void": return _znc_core.CModule_ClearSubPages(self) def GetSubPages(self) -> "VWebSubPages &": return _znc_core.CModule_GetSubPages(self) def OnEmbeddedWebRequest(self, WebSock: 'CWebSock', sPageName: 'CString const &', Tmpl: 'CTemplate') -> "bool": return _znc_core.CModule_OnEmbeddedWebRequest(self, WebSock, sPageName, Tmpl) def OnPreRehash(self) -> "void": return _znc_core.CModule_OnPreRehash(self) def OnPostRehash(self) -> "void": return _znc_core.CModule_OnPostRehash(self) def OnIRCDisconnected(self) -> "void": return _znc_core.CModule_OnIRCDisconnected(self) def OnIRCConnected(self) -> "void": return _znc_core.CModule_OnIRCConnected(self) def OnIRCConnecting(self, pIRCSock: 'CIRCSock') -> "CModule::EModRet": return _znc_core.CModule_OnIRCConnecting(self, pIRCSock) def OnIRCConnectionError(self, pIRCSock: 'CIRCSock') -> "void": return _znc_core.CModule_OnIRCConnectionError(self, pIRCSock) def OnIRCRegistration(self, sPass: 'CString &', sNick: 'CString &', sIdent: 'CString &', sRealName: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnIRCRegistration(self, sPass, sNick, sIdent, sRealName) def OnBroadcast(self, sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnBroadcast(self, sMessage) def OnChanPermission2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', uMode: 'unsigned char', bAdded: 'bool', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnChanPermission2(self, pOpNick, Nick, Channel, uMode, bAdded, bNoChange) def OnChanPermission(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', uMode: 'unsigned char', bAdded: 'bool', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnChanPermission(self, OpNick, Nick, Channel, uMode, bAdded, bNoChange) def OnOp2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnOp2(self, pOpNick, Nick, Channel, bNoChange) def OnOp(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnOp(self, OpNick, Nick, Channel, bNoChange) def OnDeop2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnDeop2(self, pOpNick, Nick, Channel, bNoChange) def OnDeop(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnDeop(self, OpNick, Nick, Channel, bNoChange) def OnVoice2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnVoice2(self, pOpNick, Nick, Channel, bNoChange) def OnVoice(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnVoice(self, OpNick, Nick, Channel, bNoChange) def OnDevoice2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnDevoice2(self, pOpNick, Nick, Channel, bNoChange) def OnDevoice(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnDevoice(self, OpNick, Nick, Channel, bNoChange) def OnMode2(self, pOpNick: 'CNick', Channel: 'CChan', uMode: 'char', sArg: 'CString const &', bAdded: 'bool', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnMode2(self, pOpNick, Channel, uMode, sArg, bAdded, bNoChange) def OnMode(self, OpNick: 'CNick', Channel: 'CChan', uMode: 'char', sArg: 'CString const &', bAdded: 'bool', bNoChange: 'bool') -> "void": return _znc_core.CModule_OnMode(self, OpNick, Channel, uMode, sArg, bAdded, bNoChange) def OnRawMode2(self, pOpNick: 'CNick', Channel: 'CChan', sModes: 'CString const &', sArgs: 'CString const &') -> "void": return _znc_core.CModule_OnRawMode2(self, pOpNick, Channel, sModes, sArgs) def OnRawMode(self, OpNick: 'CNick', Channel: 'CChan', sModes: 'CString const &', sArgs: 'CString const &') -> "void": return _znc_core.CModule_OnRawMode(self, OpNick, Channel, sModes, sArgs) def OnRaw(self, sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnRaw(self, sLine) def OnStatusCommand(self, sCommand: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnStatusCommand(self, sCommand) def OnModCommand(self, sCommand: 'CString const &') -> "void": return _znc_core.CModule_OnModCommand(self, sCommand) def OnUnknownModCommand(self, sCommand: 'CString const &') -> "void": return _znc_core.CModule_OnUnknownModCommand(self, sCommand) def OnModNotice(self, sMessage: 'CString const &') -> "void": return _znc_core.CModule_OnModNotice(self, sMessage) def OnModCTCP(self, sMessage: 'CString const &') -> "void": return _znc_core.CModule_OnModCTCP(self, sMessage) def OnQuit(self, Nick: 'CNick', sMessage: 'CString const &', vChans: 'VChannels') -> "void": return _znc_core.CModule_OnQuit(self, Nick, sMessage, vChans) def OnNick(self, Nick: 'CNick', sNewNick: 'CString const &', vChans: 'VChannels') -> "void": return _znc_core.CModule_OnNick(self, Nick, sNewNick, vChans) def OnKick(self, OpNick: 'CNick', sKickedNick: 'CString const &', Channel: 'CChan', sMessage: 'CString const &') -> "void": return _znc_core.CModule_OnKick(self, OpNick, sKickedNick, Channel, sMessage) def OnJoining(self, Channel: 'CChan') -> "CModule::EModRet": return _znc_core.CModule_OnJoining(self, Channel) def OnJoin(self, Nick: 'CNick', Channel: 'CChan') -> "void": return _znc_core.CModule_OnJoin(self, Nick, Channel) def OnPart(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString const &') -> "void": return _znc_core.CModule_OnPart(self, Nick, Channel, sMessage) def OnInvite(self, Nick: 'CNick', sChan: 'CString const &') -> "CModule::EModRet": return _znc_core.CModule_OnInvite(self, Nick, sChan) def OnChanBufferStarting(self, Chan: 'CChan', Client: 'CClient') -> "CModule::EModRet": return _znc_core.CModule_OnChanBufferStarting(self, Chan, Client) def OnChanBufferEnding(self, Chan: 'CChan', Client: 'CClient') -> "CModule::EModRet": return _znc_core.CModule_OnChanBufferEnding(self, Chan, Client) def OnChanBufferPlayLine2(self, Chan: 'CChan', Client: 'CClient', sLine: 'CString &', tv: 'timeval const &') -> "CModule::EModRet": return _znc_core.CModule_OnChanBufferPlayLine2(self, Chan, Client, sLine, tv) def OnChanBufferPlayLine(self, Chan: 'CChan', Client: 'CClient', sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnChanBufferPlayLine(self, Chan, Client, sLine) def OnPrivBufferPlayLine2(self, Client: 'CClient', sLine: 'CString &', tv: 'timeval const &') -> "CModule::EModRet": return _znc_core.CModule_OnPrivBufferPlayLine2(self, Client, sLine, tv) def OnPrivBufferPlayLine(self, Client: 'CClient', sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnPrivBufferPlayLine(self, Client, sLine) def OnClientLogin(self) -> "void": return _znc_core.CModule_OnClientLogin(self) def OnClientDisconnect(self) -> "void": return _znc_core.CModule_OnClientDisconnect(self) def OnUserRaw(self, sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserRaw(self, sLine) def OnUserCTCPReply(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserCTCPReply(self, sTarget, sMessage) def OnUserCTCP(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserCTCP(self, sTarget, sMessage) def OnUserAction(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserAction(self, sTarget, sMessage) def OnUserMsg(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserMsg(self, sTarget, sMessage) def OnUserNotice(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserNotice(self, sTarget, sMessage) def OnUserJoin(self, sChannel: 'CString &', sKey: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserJoin(self, sChannel, sKey) def OnUserPart(self, sChannel: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserPart(self, sChannel, sMessage) def OnUserTopic(self, sChannel: 'CString &', sTopic: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserTopic(self, sChannel, sTopic) def OnUserTopicRequest(self, sChannel: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUserTopicRequest(self, sChannel) def OnCTCPReply(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnCTCPReply(self, Nick, sMessage) def OnPrivCTCP(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnPrivCTCP(self, Nick, sMessage) def OnChanCTCP(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnChanCTCP(self, Nick, Channel, sMessage) def OnPrivAction(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnPrivAction(self, Nick, sMessage) def OnChanAction(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnChanAction(self, Nick, Channel, sMessage) def OnPrivMsg(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnPrivMsg(self, Nick, sMessage) def OnChanMsg(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnChanMsg(self, Nick, Channel, sMessage) def OnPrivNotice(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnPrivNotice(self, Nick, sMessage) def OnChanNotice(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnChanNotice(self, Nick, Channel, sMessage) def OnTopic(self, Nick: 'CNick', Channel: 'CChan', sTopic: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnTopic(self, Nick, Channel, sTopic) def OnServerCapAvailable(self, sCap: 'CString const &') -> "bool": return _znc_core.CModule_OnServerCapAvailable(self, sCap) def OnServerCapResult(self, sCap: 'CString const &', bSuccess: 'bool') -> "void": return _znc_core.CModule_OnServerCapResult(self, sCap, bSuccess) def OnTimerAutoJoin(self, Channel: 'CChan') -> "CModule::EModRet": return _znc_core.CModule_OnTimerAutoJoin(self, Channel) def OnAddNetwork(self, Network: 'CIRCNetwork', sErrorRet: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnAddNetwork(self, Network, sErrorRet) def OnDeleteNetwork(self, Network: 'CIRCNetwork') -> "CModule::EModRet": return _znc_core.CModule_OnDeleteNetwork(self, Network) def OnSendToClient(self, sLine: 'CString &', Client: 'CClient') -> "CModule::EModRet": return _znc_core.CModule_OnSendToClient(self, sLine, Client) def OnSendToIRC(self, sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnSendToIRC(self, sLine) def GetDLL(self) -> "ModHandle": return _znc_core.CModule_GetDLL(self) __swig_getmethods__["GetCoreVersion"] = lambda x: _znc_core.CModule_GetCoreVersion if _newclass: GetCoreVersion = staticmethod(_znc_core.CModule_GetCoreVersion) def PutIRC(self, sLine: 'CString const &') -> "bool": return _znc_core.CModule_PutIRC(self, sLine) def PutUser(self, sLine: 'CString const &') -> "bool": return _znc_core.CModule_PutUser(self, sLine) def PutStatus(self, sLine: 'CString const &') -> "bool": return _znc_core.CModule_PutStatus(self, sLine) def PutModule(self, *args) -> "unsigned int": return _znc_core.CModule_PutModule(self, *args) def PutModNotice(self, sLine: 'CString const &') -> "bool": return _znc_core.CModule_PutModNotice(self, sLine) def GetModName(self) -> "CString const &": return _znc_core.CModule_GetModName(self) def GetModNick(self) -> "CString": return _znc_core.CModule_GetModNick(self) def GetModDataDir(self) -> "CString const &": return _znc_core.CModule_GetModDataDir(self) def AddTimer(self, *args) -> "bool": return _znc_core.CModule_AddTimer(self, *args) def RemTimer(self, *args) -> "bool": return _znc_core.CModule_RemTimer(self, *args) def UnlinkTimer(self, pTimer: 'CTimer') -> "bool": return _znc_core.CModule_UnlinkTimer(self, pTimer) def FindTimer(self, sLabel: 'CString const &') -> "CTimer *": return _znc_core.CModule_FindTimer(self, sLabel) def BeginTimers(self) -> "std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator": return _znc_core.CModule_BeginTimers(self) def EndTimers(self) -> "std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator": return _znc_core.CModule_EndTimers(self) def ListTimers(self) -> "void": return _znc_core.CModule_ListTimers(self) def AddSocket(self, pSocket: 'CSocket') -> "bool": return _znc_core.CModule_AddSocket(self, pSocket) def RemSocket(self, *args) -> "bool": return _znc_core.CModule_RemSocket(self, *args) def UnlinkSocket(self, pSocket: 'CSocket') -> "bool": return _znc_core.CModule_UnlinkSocket(self, pSocket) def FindSocket(self, sSockName: 'CString const &') -> "CSocket *": return _znc_core.CModule_FindSocket(self, sSockName) def BeginSockets(self) -> "std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator": return _znc_core.CModule_BeginSockets(self) def EndSockets(self) -> "std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator": return _znc_core.CModule_EndSockets(self) def ListSockets(self) -> "void": return _znc_core.CModule_ListSockets(self) def AddHelpCommand(self) -> "void": return _znc_core.CModule_AddHelpCommand(self) def AddCommand(self, *args) -> "bool": return _znc_core.CModule_AddCommand(self, *args) def RemCommand(self, sCmd: 'CString const &') -> "bool": return _znc_core.CModule_RemCommand(self, sCmd) def FindCommand(self, sCmd: 'CString const &') -> "CModCommand const *": return _znc_core.CModule_FindCommand(self, sCmd) def HandleCommand(self, sLine: 'CString const &') -> "bool": return _znc_core.CModule_HandleCommand(self, sLine) def HandleHelpCommand(self, *args) -> "void": return _znc_core.CModule_HandleHelpCommand(self, *args) def LoadRegistry(self) -> "bool": return _znc_core.CModule_LoadRegistry(self) def SaveRegistry(self) -> "bool": return _znc_core.CModule_SaveRegistry(self) def MoveRegistry(self, sPath: 'CString const &') -> "bool": return _znc_core.CModule_MoveRegistry(self, sPath) def SetNV(self, sName: 'CString const &', sValue: 'CString const &', bWriteToDisk: 'bool'=True) -> "bool": return _znc_core.CModule_SetNV(self, sName, sValue, bWriteToDisk) def GetNV(self, sName: 'CString const &') -> "CString": return _znc_core.CModule_GetNV(self, sName) def FindNV(self, sName: 'CString const &') -> "MCString::iterator": return _znc_core.CModule_FindNV(self, sName) def EndNV(self) -> "MCString::iterator": return _znc_core.CModule_EndNV(self) def BeginNV(self) -> "MCString::iterator": return _znc_core.CModule_BeginNV(self) def DelNV(self, *args) -> "void": return _znc_core.CModule_DelNV(self, *args) def ClearNV(self, bWriteToDisk: 'bool'=True) -> "bool": return _znc_core.CModule_ClearNV(self, bWriteToDisk) def GetSavePath(self) -> "CString const &": return _znc_core.CModule_GetSavePath(self) def ExpandString(self, *args) -> "CString &": return _znc_core.CModule_ExpandString(self, *args) def SetType(self, eType: 'CModInfo::EModuleType') -> "void": return _znc_core.CModule_SetType(self, eType) def SetDescription(self, s: 'CString const &') -> "void": return _znc_core.CModule_SetDescription(self, s) def SetModPath(self, s: 'CString const &') -> "void": return _znc_core.CModule_SetModPath(self, s) def SetArgs(self, s: 'CString const &') -> "void": return _znc_core.CModule_SetArgs(self, s) def GetType(self) -> "CModInfo::EModuleType": return _znc_core.CModule_GetType(self) def GetDescription(self) -> "CString const &": return _znc_core.CModule_GetDescription(self) def GetArgs(self) -> "CString const &": return _znc_core.CModule_GetArgs(self) def GetModPath(self) -> "CString const &": return _znc_core.CModule_GetModPath(self) def GetUser(self) -> "CUser *": return _znc_core.CModule_GetUser(self) def GetNetwork(self) -> "CIRCNetwork *": return _znc_core.CModule_GetNetwork(self) def GetClient(self) -> "CClient *": return _znc_core.CModule_GetClient(self) def GetManager(self) -> "CSockManager *": return _znc_core.CModule_GetManager(self) def OnAddUser(self, User: 'CUser', sErrorRet: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnAddUser(self, User, sErrorRet) def OnDeleteUser(self, User: 'CUser') -> "CModule::EModRet": return _znc_core.CModule_OnDeleteUser(self, User) def OnClientConnect(self, pSock: 'CZNCSock', sHost: 'CString const &', uPort: 'unsigned short') -> "void": return _znc_core.CModule_OnClientConnect(self, pSock, sHost, uPort) def OnLoginAttempt(self, Auth: 'std::shared_ptr< CAuthBase >') -> "CModule::EModRet": return _znc_core.CModule_OnLoginAttempt(self, Auth) def OnFailedLogin(self, sUsername: 'CString const &', sRemoteIP: 'CString const &') -> "void": return _znc_core.CModule_OnFailedLogin(self, sUsername, sRemoteIP) def OnUnknownUserRaw(self, pClient: 'CClient', sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnUnknownUserRaw(self, pClient, sLine) def OnClientCapLs(self, pClient: 'CClient', ssCaps: 'SCString') -> "void": return _znc_core.CModule_OnClientCapLs(self, pClient, ssCaps) def IsClientCapSupported(self, pClient: 'CClient', sCap: 'CString const &', bState: 'bool') -> "bool": return _znc_core.CModule_IsClientCapSupported(self, pClient, sCap, bState) def OnClientCapRequest(self, pClient: 'CClient', sCap: 'CString const &', bState: 'bool') -> "void": return _znc_core.CModule_OnClientCapRequest(self, pClient, sCap, bState) def OnModuleLoading(self, sModName: 'CString const &', sArgs: 'CString const &', eType: 'CModInfo::EModuleType', bSuccess: 'bool &', sRetMsg: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnModuleLoading(self, sModName, sArgs, eType, bSuccess, sRetMsg) def OnModuleUnloading(self, pModule: 'CModule', bSuccess: 'bool &', sRetMsg: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnModuleUnloading(self, pModule, bSuccess, sRetMsg) def OnGetModInfo(self, ModInfo: 'CModInfo', sModule: 'CString const &', bSuccess: 'bool &', sRetMsg: 'CString &') -> "CModule::EModRet": return _znc_core.CModule_OnGetModInfo(self, ModInfo, sModule, bSuccess, sRetMsg) def OnGetAvailableMods(self, ssMods: 'SModInfo', eType: 'CModInfo::EModuleType') -> "void": return _znc_core.CModule_OnGetAvailableMods(self, ssMods, eType) def __str__(self) -> "CString": return _znc_core.CModule___str__(self) def BeginNV_(self) -> "MCString_iter": return _znc_core.CModule_BeginNV_(self) def ExistsNV(self, sName: 'CString const &') -> "bool": return _znc_core.CModule_ExistsNV(self, sName) CModule_swigregister = _znc_core.CModule_swigregister CModule_swigregister(CModule) def CModule_GetCoreVersion() -> "double": return _znc_core.CModule_GetCoreVersion() CModule_GetCoreVersion = _znc_core.CModule_GetCoreVersion class CModules(PyModulesVector): __swig_setmethods__ = {} for _s in [PyModulesVector]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CModules, name, value) __swig_getmethods__ = {} for _s in [PyModulesVector]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CModules, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CModules() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CModules __del__ = lambda self: None def SetUser(self, pUser: 'CUser') -> "void": return _znc_core.CModules_SetUser(self, pUser) def SetNetwork(self, pNetwork: 'CIRCNetwork') -> "void": return _znc_core.CModules_SetNetwork(self, pNetwork) def SetClient(self, pClient: 'CClient') -> "void": return _znc_core.CModules_SetClient(self, pClient) def GetUser(self) -> "CUser *": return _znc_core.CModules_GetUser(self) def GetNetwork(self) -> "CIRCNetwork *": return _znc_core.CModules_GetNetwork(self) def GetClient(self) -> "CClient *": return _znc_core.CModules_GetClient(self) def UnloadAll(self) -> "void": return _znc_core.CModules_UnloadAll(self) def OnBoot(self) -> "bool": return _znc_core.CModules_OnBoot(self) def OnPreRehash(self) -> "bool": return _znc_core.CModules_OnPreRehash(self) def OnPostRehash(self) -> "bool": return _znc_core.CModules_OnPostRehash(self) def OnIRCDisconnected(self) -> "bool": return _znc_core.CModules_OnIRCDisconnected(self) def OnIRCConnected(self) -> "bool": return _znc_core.CModules_OnIRCConnected(self) def OnIRCConnecting(self, pIRCSock: 'CIRCSock') -> "bool": return _znc_core.CModules_OnIRCConnecting(self, pIRCSock) def OnIRCConnectionError(self, pIRCSock: 'CIRCSock') -> "bool": return _znc_core.CModules_OnIRCConnectionError(self, pIRCSock) def OnIRCRegistration(self, sPass: 'CString &', sNick: 'CString &', sIdent: 'CString &', sRealName: 'CString &') -> "bool": return _znc_core.CModules_OnIRCRegistration(self, sPass, sNick, sIdent, sRealName) def OnBroadcast(self, sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnBroadcast(self, sMessage) def OnChanPermission2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', uMode: 'unsigned char', bAdded: 'bool', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnChanPermission2(self, pOpNick, Nick, Channel, uMode, bAdded, bNoChange) def OnChanPermission(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', uMode: 'unsigned char', bAdded: 'bool', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnChanPermission(self, OpNick, Nick, Channel, uMode, bAdded, bNoChange) def OnOp2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnOp2(self, pOpNick, Nick, Channel, bNoChange) def OnOp(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnOp(self, OpNick, Nick, Channel, bNoChange) def OnDeop2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnDeop2(self, pOpNick, Nick, Channel, bNoChange) def OnDeop(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnDeop(self, OpNick, Nick, Channel, bNoChange) def OnVoice2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnVoice2(self, pOpNick, Nick, Channel, bNoChange) def OnVoice(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnVoice(self, OpNick, Nick, Channel, bNoChange) def OnDevoice2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnDevoice2(self, pOpNick, Nick, Channel, bNoChange) def OnDevoice(self, OpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnDevoice(self, OpNick, Nick, Channel, bNoChange) def OnRawMode2(self, pOpNick: 'CNick', Channel: 'CChan', sModes: 'CString const &', sArgs: 'CString const &') -> "bool": return _znc_core.CModules_OnRawMode2(self, pOpNick, Channel, sModes, sArgs) def OnRawMode(self, OpNick: 'CNick', Channel: 'CChan', sModes: 'CString const &', sArgs: 'CString const &') -> "bool": return _znc_core.CModules_OnRawMode(self, OpNick, Channel, sModes, sArgs) def OnMode2(self, pOpNick: 'CNick', Channel: 'CChan', uMode: 'char', sArg: 'CString const &', bAdded: 'bool', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnMode2(self, pOpNick, Channel, uMode, sArg, bAdded, bNoChange) def OnMode(self, OpNick: 'CNick', Channel: 'CChan', uMode: 'char', sArg: 'CString const &', bAdded: 'bool', bNoChange: 'bool') -> "bool": return _znc_core.CModules_OnMode(self, OpNick, Channel, uMode, sArg, bAdded, bNoChange) def OnRaw(self, sLine: 'CString &') -> "bool": return _znc_core.CModules_OnRaw(self, sLine) def OnStatusCommand(self, sCommand: 'CString &') -> "bool": return _znc_core.CModules_OnStatusCommand(self, sCommand) def OnModCommand(self, sCommand: 'CString const &') -> "bool": return _znc_core.CModules_OnModCommand(self, sCommand) def OnModNotice(self, sMessage: 'CString const &') -> "bool": return _znc_core.CModules_OnModNotice(self, sMessage) def OnModCTCP(self, sMessage: 'CString const &') -> "bool": return _znc_core.CModules_OnModCTCP(self, sMessage) def OnQuit(self, Nick: 'CNick', sMessage: 'CString const &', vChans: 'VChannels') -> "bool": return _znc_core.CModules_OnQuit(self, Nick, sMessage, vChans) def OnNick(self, Nick: 'CNick', sNewNick: 'CString const &', vChans: 'VChannels') -> "bool": return _znc_core.CModules_OnNick(self, Nick, sNewNick, vChans) def OnKick(self, Nick: 'CNick', sOpNick: 'CString const &', Channel: 'CChan', sMessage: 'CString const &') -> "bool": return _znc_core.CModules_OnKick(self, Nick, sOpNick, Channel, sMessage) def OnJoining(self, Channel: 'CChan') -> "bool": return _znc_core.CModules_OnJoining(self, Channel) def OnJoin(self, Nick: 'CNick', Channel: 'CChan') -> "bool": return _znc_core.CModules_OnJoin(self, Nick, Channel) def OnPart(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString const &') -> "bool": return _znc_core.CModules_OnPart(self, Nick, Channel, sMessage) def OnInvite(self, Nick: 'CNick', sChan: 'CString const &') -> "bool": return _znc_core.CModules_OnInvite(self, Nick, sChan) def OnChanBufferStarting(self, Chan: 'CChan', Client: 'CClient') -> "bool": return _znc_core.CModules_OnChanBufferStarting(self, Chan, Client) def OnChanBufferEnding(self, Chan: 'CChan', Client: 'CClient') -> "bool": return _znc_core.CModules_OnChanBufferEnding(self, Chan, Client) def OnChanBufferPlayLine2(self, Chan: 'CChan', Client: 'CClient', sLine: 'CString &', tv: 'timeval const &') -> "bool": return _znc_core.CModules_OnChanBufferPlayLine2(self, Chan, Client, sLine, tv) def OnChanBufferPlayLine(self, Chan: 'CChan', Client: 'CClient', sLine: 'CString &') -> "bool": return _znc_core.CModules_OnChanBufferPlayLine(self, Chan, Client, sLine) def OnPrivBufferPlayLine2(self, Client: 'CClient', sLine: 'CString &', tv: 'timeval const &') -> "bool": return _znc_core.CModules_OnPrivBufferPlayLine2(self, Client, sLine, tv) def OnPrivBufferPlayLine(self, Client: 'CClient', sLine: 'CString &') -> "bool": return _znc_core.CModules_OnPrivBufferPlayLine(self, Client, sLine) def OnClientLogin(self) -> "bool": return _znc_core.CModules_OnClientLogin(self) def OnClientDisconnect(self) -> "bool": return _znc_core.CModules_OnClientDisconnect(self) def OnUserRaw(self, sLine: 'CString &') -> "bool": return _znc_core.CModules_OnUserRaw(self, sLine) def OnUserCTCPReply(self, sTarget: 'CString &', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnUserCTCPReply(self, sTarget, sMessage) def OnUserCTCP(self, sTarget: 'CString &', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnUserCTCP(self, sTarget, sMessage) def OnUserAction(self, sTarget: 'CString &', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnUserAction(self, sTarget, sMessage) def OnUserMsg(self, sTarget: 'CString &', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnUserMsg(self, sTarget, sMessage) def OnUserNotice(self, sTarget: 'CString &', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnUserNotice(self, sTarget, sMessage) def OnUserJoin(self, sChannel: 'CString &', sKey: 'CString &') -> "bool": return _znc_core.CModules_OnUserJoin(self, sChannel, sKey) def OnUserPart(self, sChannel: 'CString &', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnUserPart(self, sChannel, sMessage) def OnUserTopic(self, sChannel: 'CString &', sTopic: 'CString &') -> "bool": return _znc_core.CModules_OnUserTopic(self, sChannel, sTopic) def OnUserTopicRequest(self, sChannel: 'CString &') -> "bool": return _znc_core.CModules_OnUserTopicRequest(self, sChannel) def OnCTCPReply(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnCTCPReply(self, Nick, sMessage) def OnPrivCTCP(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnPrivCTCP(self, Nick, sMessage) def OnChanCTCP(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnChanCTCP(self, Nick, Channel, sMessage) def OnPrivAction(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnPrivAction(self, Nick, sMessage) def OnChanAction(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnChanAction(self, Nick, Channel, sMessage) def OnPrivMsg(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnPrivMsg(self, Nick, sMessage) def OnChanMsg(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnChanMsg(self, Nick, Channel, sMessage) def OnPrivNotice(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnPrivNotice(self, Nick, sMessage) def OnChanNotice(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "bool": return _znc_core.CModules_OnChanNotice(self, Nick, Channel, sMessage) def OnTopic(self, Nick: 'CNick', Channel: 'CChan', sTopic: 'CString &') -> "bool": return _znc_core.CModules_OnTopic(self, Nick, Channel, sTopic) def OnTimerAutoJoin(self, Channel: 'CChan') -> "bool": return _znc_core.CModules_OnTimerAutoJoin(self, Channel) def OnAddNetwork(self, Network: 'CIRCNetwork', sErrorRet: 'CString &') -> "bool": return _znc_core.CModules_OnAddNetwork(self, Network, sErrorRet) def OnDeleteNetwork(self, Network: 'CIRCNetwork') -> "bool": return _znc_core.CModules_OnDeleteNetwork(self, Network) def OnSendToClient(self, sLine: 'CString &', Client: 'CClient') -> "bool": return _znc_core.CModules_OnSendToClient(self, sLine, Client) def OnSendToIRC(self, sLine: 'CString &') -> "bool": return _znc_core.CModules_OnSendToIRC(self, sLine) def OnServerCapAvailable(self, sCap: 'CString const &') -> "bool": return _znc_core.CModules_OnServerCapAvailable(self, sCap) def OnServerCapResult(self, sCap: 'CString const &', bSuccess: 'bool') -> "bool": return _znc_core.CModules_OnServerCapResult(self, sCap, bSuccess) def FindModule(self, sModule: 'CString const &') -> "CModule *": return _znc_core.CModules_FindModule(self, sModule) def LoadModule(self, sModule: 'CString const &', sArgs: 'CString const &', eType: 'CModInfo::EModuleType', pUser: 'CUser', pNetwork: 'CIRCNetwork', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_LoadModule(self, sModule, sArgs, eType, pUser, pNetwork, sRetMsg) def UnloadModule(self, *args) -> "bool": return _znc_core.CModules_UnloadModule(self, *args) def ReloadModule(self, sModule: 'CString const &', sArgs: 'CString const &', pUser: 'CUser', pNetwork: 'CIRCNetwork', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_ReloadModule(self, sModule, sArgs, pUser, pNetwork, sRetMsg) __swig_getmethods__["GetModInfo"] = lambda x: _znc_core.CModules_GetModInfo if _newclass: GetModInfo = staticmethod(_znc_core.CModules_GetModInfo) __swig_getmethods__["GetModPathInfo"] = lambda x: _znc_core.CModules_GetModPathInfo if _newclass: GetModPathInfo = staticmethod(_znc_core.CModules_GetModPathInfo) __swig_getmethods__["GetAvailableMods"] = lambda x: _znc_core.CModules_GetAvailableMods if _newclass: GetAvailableMods = staticmethod(_znc_core.CModules_GetAvailableMods) __swig_getmethods__["GetDefaultMods"] = lambda x: _znc_core.CModules_GetDefaultMods if _newclass: GetDefaultMods = staticmethod(_znc_core.CModules_GetDefaultMods) __swig_getmethods__["FindModPath"] = lambda x: _znc_core.CModules_FindModPath if _newclass: FindModPath = staticmethod(_znc_core.CModules_FindModPath) __swig_getmethods__["GetModDirs"] = lambda x: _znc_core.CModules_GetModDirs if _newclass: GetModDirs = staticmethod(_znc_core.CModules_GetModDirs) def OnAddUser(self, User: 'CUser', sErrorRet: 'CString &') -> "bool": return _znc_core.CModules_OnAddUser(self, User, sErrorRet) def OnDeleteUser(self, User: 'CUser') -> "bool": return _znc_core.CModules_OnDeleteUser(self, User) def OnClientConnect(self, pSock: 'CZNCSock', sHost: 'CString const &', uPort: 'unsigned short') -> "bool": return _znc_core.CModules_OnClientConnect(self, pSock, sHost, uPort) def OnLoginAttempt(self, Auth: 'std::shared_ptr< CAuthBase >') -> "bool": return _znc_core.CModules_OnLoginAttempt(self, Auth) def OnFailedLogin(self, sUsername: 'CString const &', sRemoteIP: 'CString const &') -> "bool": return _znc_core.CModules_OnFailedLogin(self, sUsername, sRemoteIP) def OnUnknownUserRaw(self, pClient: 'CClient', sLine: 'CString &') -> "bool": return _znc_core.CModules_OnUnknownUserRaw(self, pClient, sLine) def OnClientCapLs(self, pClient: 'CClient', ssCaps: 'SCString') -> "bool": return _znc_core.CModules_OnClientCapLs(self, pClient, ssCaps) def IsClientCapSupported(self, pClient: 'CClient', sCap: 'CString const &', bState: 'bool') -> "bool": return _znc_core.CModules_IsClientCapSupported(self, pClient, sCap, bState) def OnClientCapRequest(self, pClient: 'CClient', sCap: 'CString const &', bState: 'bool') -> "bool": return _znc_core.CModules_OnClientCapRequest(self, pClient, sCap, bState) def OnModuleLoading(self, sModName: 'CString const &', sArgs: 'CString const &', eType: 'CModInfo::EModuleType', bSuccess: 'bool &', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_OnModuleLoading(self, sModName, sArgs, eType, bSuccess, sRetMsg) def OnModuleUnloading(self, pModule: 'CModule', bSuccess: 'bool &', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_OnModuleUnloading(self, pModule, bSuccess, sRetMsg) def OnGetModInfo(self, ModInfo: 'CModInfo', sModule: 'CString const &', bSuccess: 'bool &', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_OnGetModInfo(self, ModInfo, sModule, bSuccess, sRetMsg) def OnGetAvailableMods(self, ssMods: 'SModInfo', eType: 'CModInfo::EModuleType') -> "bool": return _znc_core.CModules_OnGetAvailableMods(self, ssMods, eType) def removeModule(self, p: 'CModule') -> "bool": return _znc_core.CModules_removeModule(self, p) CModules_swigregister = _znc_core.CModules_swigregister CModules_swigregister(CModules) def CModules_GetModInfo(ModInfo: 'CModInfo', sModule: 'CString const &', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_GetModInfo(ModInfo, sModule, sRetMsg) CModules_GetModInfo = _znc_core.CModules_GetModInfo def CModules_GetModPathInfo(ModInfo: 'CModInfo', sModule: 'CString const &', sModPath: 'CString const &', sRetMsg: 'CString &') -> "bool": return _znc_core.CModules_GetModPathInfo(ModInfo, sModule, sModPath, sRetMsg) CModules_GetModPathInfo = _znc_core.CModules_GetModPathInfo def CModules_GetAvailableMods(*args) -> "void": return _znc_core.CModules_GetAvailableMods(*args) CModules_GetAvailableMods = _znc_core.CModules_GetAvailableMods def CModules_GetDefaultMods(*args) -> "void": return _znc_core.CModules_GetDefaultMods(*args) CModules_GetDefaultMods = _znc_core.CModules_GetDefaultMods def CModules_FindModPath(sModule: 'CString const &', sModPath: 'CString &', sDataPath: 'CString &') -> "bool": return _znc_core.CModules_FindModPath(sModule, sModPath, sDataPath) CModules_FindModPath = _znc_core.CModules_FindModPath def CModules_GetModDirs() -> "CModules::ModDirList": return _znc_core.CModules_GetModDirs() CModules_GetModDirs = _znc_core.CModules_GetModDirs class CNick(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CNick, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CNick, name) def __init__(self, *args): this = _znc_core.new_CNick(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CNick __del__ = lambda self: None def Reset(self) -> "void": return _znc_core.CNick_Reset(self) def Parse(self, sNickMask: 'CString const &') -> "void": return _znc_core.CNick_Parse(self, sNickMask) def GetHostMask(self) -> "CString": return _znc_core.CNick_GetHostMask(self) def GetCommonChans(self, vChans: 'VChannels', pNetwork: 'CIRCNetwork') -> "size_t": return _znc_core.CNick_GetCommonChans(self, vChans, pNetwork) def NickEquals(self, nickname: 'CString const &') -> "bool": return _znc_core.CNick_NickEquals(self, nickname) def SetNetwork(self, pNetwork: 'CIRCNetwork') -> "void": return _znc_core.CNick_SetNetwork(self, pNetwork) def SetNick(self, s: 'CString const &') -> "void": return _znc_core.CNick_SetNick(self, s) def SetIdent(self, s: 'CString const &') -> "void": return _znc_core.CNick_SetIdent(self, s) def SetHost(self, s: 'CString const &') -> "void": return _znc_core.CNick_SetHost(self, s) def AddPerm(self, uPerm: 'unsigned char') -> "bool": return _znc_core.CNick_AddPerm(self, uPerm) def RemPerm(self, uPerm: 'unsigned char') -> "bool": return _znc_core.CNick_RemPerm(self, uPerm) def GetPermStr(self) -> "CString": return _znc_core.CNick_GetPermStr(self) def GetPermChar(self) -> "unsigned char": return _znc_core.CNick_GetPermChar(self) def HasPerm(self, uPerm: 'unsigned char') -> "bool": return _znc_core.CNick_HasPerm(self, uPerm) def GetNick(self) -> "CString const &": return _znc_core.CNick_GetNick(self) def GetIdent(self) -> "CString const &": return _znc_core.CNick_GetIdent(self) def GetHost(self) -> "CString const &": return _znc_core.CNick_GetHost(self) def GetNickMask(self) -> "CString": return _znc_core.CNick_GetNickMask(self) def Clone(self, SourceNick: 'CNick') -> "void": return _znc_core.CNick_Clone(self, SourceNick) def __str__(self) -> "CString": return _znc_core.CNick___str__(self) def __repr__(self) -> "CString": return _znc_core.CNick___repr__(self) CNick_swigregister = _znc_core.CNick_swigregister CNick_swigregister(CNick) class CChan(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CChan, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CChan, name) Voice = _znc_core.CChan_Voice HalfOp = _znc_core.CChan_HalfOp Op = _znc_core.CChan_Op Admin = _znc_core.CChan_Admin Owner = _znc_core.CChan_Owner M_Private = _znc_core.CChan_M_Private M_Secret = _znc_core.CChan_M_Secret M_Moderated = _znc_core.CChan_M_Moderated M_InviteOnly = _znc_core.CChan_M_InviteOnly M_NoMessages = _znc_core.CChan_M_NoMessages M_OpTopic = _znc_core.CChan_M_OpTopic M_Limit = _znc_core.CChan_M_Limit M_Key = _znc_core.CChan_M_Key M_Op = _znc_core.CChan_M_Op M_Voice = _znc_core.CChan_M_Voice M_Ban = _znc_core.CChan_M_Ban M_Except = _znc_core.CChan_M_Except def __init__(self, sName: 'CString const &', pNetwork: 'CIRCNetwork', bInConfig: 'bool', pConfig: 'CConfig'=None): this = _znc_core.new_CChan(sName, pNetwork, bInConfig, pConfig) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CChan __del__ = lambda self: None def Reset(self) -> "void": return _znc_core.CChan_Reset(self) def ToConfig(self) -> "CConfig": return _znc_core.CChan_ToConfig(self) def Clone(self, chan: 'CChan') -> "void": return _znc_core.CChan_Clone(self, chan) def Cycle(self) -> "void": return _znc_core.CChan_Cycle(self) def JoinUser(self, *args) -> "void": return _znc_core.CChan_JoinUser(self, *args) def AttachUser(self, pClient: 'CClient'=None) -> "void": return _znc_core.CChan_AttachUser(self, pClient) def DetachUser(self) -> "void": return _znc_core.CChan_DetachUser(self) def OnWho(self, sNick: 'CString const &', sIdent: 'CString const &', sHost: 'CString const &') -> "void": return _znc_core.CChan_OnWho(self, sNick, sIdent, sHost) def SetModes(self, s: 'CString const &') -> "void": return _znc_core.CChan_SetModes(self, s) def ModeChange(self, sModes: 'CString const &', OpNick: 'CNick'=None) -> "void": return _znc_core.CChan_ModeChange(self, sModes, OpNick) def AddMode(self, uMode: 'unsigned char', sArg: 'CString const &') -> "bool": return _znc_core.CChan_AddMode(self, uMode, sArg) def RemMode(self, uMode: 'unsigned char') -> "bool": return _znc_core.CChan_RemMode(self, uMode) def GetModeString(self) -> "CString": return _znc_core.CChan_GetModeString(self) def GetModeForNames(self) -> "CString": return _znc_core.CChan_GetModeForNames(self) def ClearNicks(self) -> "void": return _znc_core.CChan_ClearNicks(self) def FindNick(self, *args) -> "CNick *": return _znc_core.CChan_FindNick(self, *args) def AddNicks(self, sNicks: 'CString const &') -> "int": return _znc_core.CChan_AddNicks(self, sNicks) def AddNick(self, sNick: 'CString const &') -> "bool": return _znc_core.CChan_AddNick(self, sNick) def RemNick(self, sNick: 'CString const &') -> "bool": return _znc_core.CChan_RemNick(self, sNick) def ChangeNick(self, sOldNick: 'CString const &', sNewNick: 'CString const &') -> "bool": return _znc_core.CChan_ChangeNick(self, sOldNick, sNewNick) def GetBuffer(self) -> "CBuffer const &": return _znc_core.CChan_GetBuffer(self) def GetBufferCount(self) -> "unsigned int": return _znc_core.CChan_GetBufferCount(self) def SetBufferCount(self, u: 'unsigned int', bForce: 'bool'=False) -> "bool": return _znc_core.CChan_SetBufferCount(self, u, bForce) def InheritBufferCount(self, u: 'unsigned int', bForce: 'bool'=False) -> "void": return _znc_core.CChan_InheritBufferCount(self, u, bForce) def AddBuffer(self, *args) -> "size_t": return _znc_core.CChan_AddBuffer(self, *args) def ClearBuffer(self) -> "void": return _znc_core.CChan_ClearBuffer(self) def SendBuffer(self, *args) -> "void": return _znc_core.CChan_SendBuffer(self, *args) def GetPermStr(self) -> "CString": return _znc_core.CChan_GetPermStr(self) def HasPerm(self, uPerm: 'unsigned char') -> "bool": return _znc_core.CChan_HasPerm(self, uPerm) def AddPerm(self, uPerm: 'unsigned char') -> "bool": return _znc_core.CChan_AddPerm(self, uPerm) def RemPerm(self, uPerm: 'unsigned char') -> "bool": return _znc_core.CChan_RemPerm(self, uPerm) def SetModeKnown(self, b: 'bool') -> "void": return _znc_core.CChan_SetModeKnown(self, b) def SetIsOn(self, b: 'bool') -> "void": return _znc_core.CChan_SetIsOn(self, b) def SetKey(self, s: 'CString const &') -> "void": return _znc_core.CChan_SetKey(self, s) def SetTopic(self, s: 'CString const &') -> "void": return _znc_core.CChan_SetTopic(self, s) def SetTopicOwner(self, s: 'CString const &') -> "void": return _znc_core.CChan_SetTopicOwner(self, s) def SetTopicDate(self, u: 'unsigned long') -> "void": return _znc_core.CChan_SetTopicDate(self, u) def SetDefaultModes(self, s: 'CString const &') -> "void": return _znc_core.CChan_SetDefaultModes(self, s) def SetAutoClearChanBuffer(self, b: 'bool') -> "void": return _znc_core.CChan_SetAutoClearChanBuffer(self, b) def InheritAutoClearChanBuffer(self, b: 'bool') -> "void": return _znc_core.CChan_InheritAutoClearChanBuffer(self, b) def SetDetached(self, b: 'bool'=True) -> "void": return _znc_core.CChan_SetDetached(self, b) def SetInConfig(self, b: 'bool') -> "void": return _znc_core.CChan_SetInConfig(self, b) def SetCreationDate(self, u: 'unsigned long') -> "void": return _znc_core.CChan_SetCreationDate(self, u) def Disable(self) -> "void": return _znc_core.CChan_Disable(self) def Enable(self) -> "void": return _znc_core.CChan_Enable(self) def IncJoinTries(self) -> "void": return _znc_core.CChan_IncJoinTries(self) def ResetJoinTries(self) -> "void": return _znc_core.CChan_ResetJoinTries(self) def IsModeKnown(self) -> "bool": return _znc_core.CChan_IsModeKnown(self) def HasMode(self, uMode: 'unsigned char') -> "bool": return _znc_core.CChan_HasMode(self, uMode) def GetOptions(self) -> "CString": return _znc_core.CChan_GetOptions(self) def GetModeArg(self, *args) -> "CString": return _znc_core.CChan_GetModeArg(self, *args) def GetPermCounts(self) -> "std::map< char,unsigned int,std::less< char >,std::allocator< std::pair< char const,unsigned int > > >": return _znc_core.CChan_GetPermCounts(self) def IsOn(self) -> "bool": return _znc_core.CChan_IsOn(self) def GetName(self) -> "CString const &": return _znc_core.CChan_GetName(self) def GetModes(self) -> "std::map< unsigned char,CString,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CString > > > const &": return _znc_core.CChan_GetModes(self) def GetKey(self) -> "CString const &": return _znc_core.CChan_GetKey(self) def GetTopic(self) -> "CString const &": return _znc_core.CChan_GetTopic(self) def GetTopicOwner(self) -> "CString const &": return _znc_core.CChan_GetTopicOwner(self) def GetTopicDate(self) -> "unsigned long": return _znc_core.CChan_GetTopicDate(self) def GetDefaultModes(self) -> "CString const &": return _znc_core.CChan_GetDefaultModes(self) def GetNicks(self) -> "std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > > const &": return _znc_core.CChan_GetNicks(self) def GetNickCount(self) -> "size_t": return _znc_core.CChan_GetNickCount(self) def AutoClearChanBuffer(self) -> "bool": return _znc_core.CChan_AutoClearChanBuffer(self) def IsDetached(self) -> "bool": return _znc_core.CChan_IsDetached(self) def InConfig(self) -> "bool": return _znc_core.CChan_InConfig(self) def GetCreationDate(self) -> "unsigned long": return _znc_core.CChan_GetCreationDate(self) def IsDisabled(self) -> "bool": return _znc_core.CChan_IsDisabled(self) def GetJoinTries(self) -> "unsigned int": return _znc_core.CChan_GetJoinTries(self) def HasBufferCountSet(self) -> "bool": return _znc_core.CChan_HasBufferCountSet(self) def HasAutoClearChanBufferSet(self) -> "bool": return _znc_core.CChan_HasAutoClearChanBufferSet(self) def __str__(self) -> "CString": return _znc_core.CChan___str__(self) def __repr__(self) -> "CString": return _znc_core.CChan___repr__(self) def GetNicks_(self) -> "std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > >": return _znc_core.CChan_GetNicks_(self) CChan_swigregister = _znc_core.CChan_swigregister CChan_swigregister(CChan) class CUser(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CUser, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CUser, name) def __init__(self, sUserName: 'CString const &'): this = _znc_core.new_CUser(sUserName) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CUser __del__ = lambda self: None def ParseConfig(self, Config: 'CConfig', sError: 'CString &') -> "bool": return _znc_core.CUser_ParseConfig(self, Config, sError) HASH_NONE = _znc_core.CUser_HASH_NONE HASH_MD5 = _znc_core.CUser_HASH_MD5 HASH_SHA256 = _znc_core.CUser_HASH_SHA256 HASH_DEFAULT = _znc_core.CUser_HASH_DEFAULT __swig_getmethods__["SaltedHash"] = lambda x: _znc_core.CUser_SaltedHash if _newclass: SaltedHash = staticmethod(_znc_core.CUser_SaltedHash) def ToConfig(self) -> "CConfig": return _znc_core.CUser_ToConfig(self) def CheckPass(self, sPass: 'CString const &') -> "bool": return _znc_core.CUser_CheckPass(self, sPass) def AddAllowedHost(self, sHostMask: 'CString const &') -> "bool": return _znc_core.CUser_AddAllowedHost(self, sHostMask) def IsHostAllowed(self, sHostMask: 'CString const &') -> "bool": return _znc_core.CUser_IsHostAllowed(self, sHostMask) def IsValid(self, sErrMsg: 'CString &', bSkipPass: 'bool'=False) -> "bool": return _znc_core.CUser_IsValid(self, sErrMsg, bSkipPass) __swig_getmethods__["IsValidUserName"] = lambda x: _znc_core.CUser_IsValidUserName if _newclass: IsValidUserName = staticmethod(_znc_core.CUser_IsValidUserName) __swig_getmethods__["MakeCleanUserName"] = lambda x: _znc_core.CUser_MakeCleanUserName if _newclass: MakeCleanUserName = staticmethod(_znc_core.CUser_MakeCleanUserName) def GetModules(self, *args) -> "CModules const &": return _znc_core.CUser_GetModules(self, *args) def DeleteNetwork(self, sNetwork: 'CString const &') -> "bool": return _znc_core.CUser_DeleteNetwork(self, sNetwork) def AddNetwork(self, *args) -> "bool": return _znc_core.CUser_AddNetwork(self, *args) def RemoveNetwork(self, pNetwork: 'CIRCNetwork') -> "void": return _znc_core.CUser_RemoveNetwork(self, pNetwork) def FindNetwork(self, sNetwork: 'CString const &') -> "CIRCNetwork *": return _znc_core.CUser_FindNetwork(self, sNetwork) def GetNetworks(self) -> "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &": return _znc_core.CUser_GetNetworks(self) def HasSpaceForNewNetwork(self) -> "bool": return _znc_core.CUser_HasSpaceForNewNetwork(self) def PutUser(self, sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CUser_PutUser(self, sLine, pClient, pSkipClient) def PutAllUser(self, sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CUser_PutAllUser(self, sLine, pClient, pSkipClient) def PutStatus(self, sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CUser_PutStatus(self, sLine, pClient, pSkipClient) def PutStatusNotice(self, sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CUser_PutStatusNotice(self, sLine, pClient, pSkipClient) def PutModule(self, sModule: 'CString const &', sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CUser_PutModule(self, sModule, sLine, pClient, pSkipClient) def PutModNotice(self, sModule: 'CString const &', sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CUser_PutModNotice(self, sModule, sLine, pClient, pSkipClient) def IsUserAttached(self) -> "bool": return _znc_core.CUser_IsUserAttached(self) def UserConnected(self, pClient: 'CClient') -> "void": return _znc_core.CUser_UserConnected(self, pClient) def UserDisconnected(self, pClient: 'CClient') -> "void": return _znc_core.CUser_UserDisconnected(self, pClient) def GetLocalDCCIP(self) -> "CString": return _znc_core.CUser_GetLocalDCCIP(self) def ExpandString(self, *args) -> "CString &": return _znc_core.CUser_ExpandString(self, *args) def AddTimestamp(self, *args) -> "CString": return _znc_core.CUser_AddTimestamp(self, *args) def CloneNetworks(self, User: 'CUser') -> "void": return _znc_core.CUser_CloneNetworks(self, User) def Clone(self, User: 'CUser', sErrorRet: 'CString &', bCloneNetworks: 'bool'=True) -> "bool": return _znc_core.CUser_Clone(self, User, sErrorRet, bCloneNetworks) def BounceAllClients(self) -> "void": return _znc_core.CUser_BounceAllClients(self) def AddBytesRead(self, u: 'unsigned long long') -> "void": return _znc_core.CUser_AddBytesRead(self, u) def AddBytesWritten(self, u: 'unsigned long long') -> "void": return _znc_core.CUser_AddBytesWritten(self, u) def SetNick(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetNick(self, s) def SetAltNick(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetAltNick(self, s) def SetIdent(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetIdent(self, s) def SetRealName(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetRealName(self, s) def SetBindHost(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetBindHost(self, s) def SetDCCBindHost(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetDCCBindHost(self, s) def SetPass(self, *args) -> "void": return _znc_core.CUser_SetPass(self, *args) def SetMultiClients(self, b: 'bool') -> "void": return _znc_core.CUser_SetMultiClients(self, b) def SetDenyLoadMod(self, b: 'bool') -> "void": return _znc_core.CUser_SetDenyLoadMod(self, b) def SetAdmin(self, b: 'bool') -> "void": return _znc_core.CUser_SetAdmin(self, b) def SetDenySetBindHost(self, b: 'bool') -> "void": return _znc_core.CUser_SetDenySetBindHost(self, b) def SetStatusPrefix(self, s: 'CString const &') -> "bool": return _znc_core.CUser_SetStatusPrefix(self, s) def SetDefaultChanModes(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetDefaultChanModes(self, s) def SetClientEncoding(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetClientEncoding(self, s) def SetQuitMsg(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetQuitMsg(self, s) def AddCTCPReply(self, sCTCP: 'CString const &', sReply: 'CString const &') -> "bool": return _znc_core.CUser_AddCTCPReply(self, sCTCP, sReply) def DelCTCPReply(self, sCTCP: 'CString const &') -> "bool": return _znc_core.CUser_DelCTCPReply(self, sCTCP) def SetBufferCount(self, u: 'unsigned int', bForce: 'bool'=False) -> "bool": return _znc_core.CUser_SetBufferCount(self, u, bForce) def SetAutoClearChanBuffer(self, b: 'bool') -> "void": return _znc_core.CUser_SetAutoClearChanBuffer(self, b) def SetAutoClearQueryBuffer(self, b: 'bool') -> "void": return _znc_core.CUser_SetAutoClearQueryBuffer(self, b) def SetBeingDeleted(self, b: 'bool') -> "void": return _znc_core.CUser_SetBeingDeleted(self, b) def SetTimestampFormat(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetTimestampFormat(self, s) def SetTimestampAppend(self, b: 'bool') -> "void": return _znc_core.CUser_SetTimestampAppend(self, b) def SetTimestampPrepend(self, b: 'bool') -> "void": return _znc_core.CUser_SetTimestampPrepend(self, b) def SetTimezone(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetTimezone(self, s) def SetJoinTries(self, i: 'unsigned int') -> "void": return _znc_core.CUser_SetJoinTries(self, i) def SetMaxJoins(self, i: 'unsigned int') -> "void": return _znc_core.CUser_SetMaxJoins(self, i) def SetSkinName(self, s: 'CString const &') -> "void": return _znc_core.CUser_SetSkinName(self, s) def SetMaxNetworks(self, i: 'unsigned int') -> "void": return _znc_core.CUser_SetMaxNetworks(self, i) def SetMaxQueryBuffers(self, i: 'unsigned int') -> "void": return _znc_core.CUser_SetMaxQueryBuffers(self, i) def GetUserClients(self) -> "std::vector< CClient *,std::allocator< CClient * > > const &": return _znc_core.CUser_GetUserClients(self) def GetAllClients(self) -> "std::vector< CClient *,std::allocator< CClient * > >": return _znc_core.CUser_GetAllClients(self) def GetUserName(self) -> "CString const &": return _znc_core.CUser_GetUserName(self) def GetCleanUserName(self) -> "CString const &": return _znc_core.CUser_GetCleanUserName(self) def GetNick(self, bAllowDefault: 'bool'=True) -> "CString const &": return _znc_core.CUser_GetNick(self, bAllowDefault) def GetAltNick(self, bAllowDefault: 'bool'=True) -> "CString const &": return _znc_core.CUser_GetAltNick(self, bAllowDefault) def GetIdent(self, bAllowDefault: 'bool'=True) -> "CString const &": return _znc_core.CUser_GetIdent(self, bAllowDefault) def GetRealName(self) -> "CString const &": return _znc_core.CUser_GetRealName(self) def GetBindHost(self) -> "CString const &": return _znc_core.CUser_GetBindHost(self) def GetDCCBindHost(self) -> "CString const &": return _znc_core.CUser_GetDCCBindHost(self) def GetPass(self) -> "CString const &": return _znc_core.CUser_GetPass(self) def GetPassHashType(self) -> "CUser::eHashType": return _znc_core.CUser_GetPassHashType(self) def GetPassSalt(self) -> "CString const &": return _znc_core.CUser_GetPassSalt(self) def GetAllowedHosts(self) -> "std::set< CString,std::less< CString >,std::allocator< CString > > const &": return _znc_core.CUser_GetAllowedHosts(self) def GetTimestampFormat(self) -> "CString const &": return _znc_core.CUser_GetTimestampFormat(self) def GetClientEncoding(self) -> "CString const &": return _znc_core.CUser_GetClientEncoding(self) def GetTimestampAppend(self) -> "bool": return _znc_core.CUser_GetTimestampAppend(self) def GetTimestampPrepend(self) -> "bool": return _znc_core.CUser_GetTimestampPrepend(self) def GetUserPath(self) -> "CString const &": return _znc_core.CUser_GetUserPath(self) def DenyLoadMod(self) -> "bool": return _znc_core.CUser_DenyLoadMod(self) def IsAdmin(self) -> "bool": return _znc_core.CUser_IsAdmin(self) def DenySetBindHost(self) -> "bool": return _znc_core.CUser_DenySetBindHost(self) def MultiClients(self) -> "bool": return _znc_core.CUser_MultiClients(self) def GetStatusPrefix(self) -> "CString const &": return _znc_core.CUser_GetStatusPrefix(self) def GetDefaultChanModes(self) -> "CString const &": return _znc_core.CUser_GetDefaultChanModes(self) def GetQuitMsg(self) -> "CString": return _znc_core.CUser_GetQuitMsg(self) def GetCTCPReplies(self) -> "MCString const &": return _znc_core.CUser_GetCTCPReplies(self) def GetBufferCount(self) -> "unsigned int": return _znc_core.CUser_GetBufferCount(self) def AutoClearChanBuffer(self) -> "bool": return _znc_core.CUser_AutoClearChanBuffer(self) def AutoClearQueryBuffer(self) -> "bool": return _znc_core.CUser_AutoClearQueryBuffer(self) def IsBeingDeleted(self) -> "bool": return _znc_core.CUser_IsBeingDeleted(self) def GetTimezone(self) -> "CString": return _znc_core.CUser_GetTimezone(self) def BytesRead(self) -> "unsigned long long": return _znc_core.CUser_BytesRead(self) def BytesWritten(self) -> "unsigned long long": return _znc_core.CUser_BytesWritten(self) def JoinTries(self) -> "unsigned int": return _znc_core.CUser_JoinTries(self) def MaxJoins(self) -> "unsigned int": return _znc_core.CUser_MaxJoins(self) def GetSkinName(self) -> "CString": return _znc_core.CUser_GetSkinName(self) def MaxNetworks(self) -> "unsigned int": return _znc_core.CUser_MaxNetworks(self) def MaxQueryBuffers(self) -> "unsigned int": return _znc_core.CUser_MaxQueryBuffers(self) def __str__(self) -> "CString": return _znc_core.CUser___str__(self) def __repr__(self) -> "CString": return _znc_core.CUser___repr__(self) def GetNetworks_(self) -> "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > >": return _znc_core.CUser_GetNetworks_(self) CUser_swigregister = _znc_core.CUser_swigregister CUser_swigregister(CUser) def CUser_SaltedHash(sPass: 'CString const &', sSalt: 'CString const &') -> "CString": return _znc_core.CUser_SaltedHash(sPass, sSalt) CUser_SaltedHash = _znc_core.CUser_SaltedHash def CUser_IsValidUserName(sUserName: 'CString const &') -> "bool": return _znc_core.CUser_IsValidUserName(sUserName) CUser_IsValidUserName = _znc_core.CUser_IsValidUserName def CUser_MakeCleanUserName(sUserName: 'CString const &') -> "CString": return _znc_core.CUser_MakeCleanUserName(sUserName) CUser_MakeCleanUserName = _znc_core.CUser_MakeCleanUserName class CIRCNetwork(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CIRCNetwork, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CIRCNetwork, name) __swig_getmethods__["IsValidNetwork"] = lambda x: _znc_core.CIRCNetwork_IsValidNetwork if _newclass: IsValidNetwork = staticmethod(_znc_core.CIRCNetwork_IsValidNetwork) def __init__(self, *args): this = _znc_core.new_CIRCNetwork(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CIRCNetwork __del__ = lambda self: None JOIN_FREQUENCY = _znc_core.CIRCNetwork_JOIN_FREQUENCY PING_FREQUENCY = _znc_core.CIRCNetwork_PING_FREQUENCY PING_SLACK = _znc_core.CIRCNetwork_PING_SLACK NO_TRAFFIC_TIMEOUT = _znc_core.CIRCNetwork_NO_TRAFFIC_TIMEOUT def Clone(self, Network: 'CIRCNetwork', bCloneName: 'bool'=True) -> "void": return _znc_core.CIRCNetwork_Clone(self, Network, bCloneName) def GetNetworkPath(self) -> "CString": return _znc_core.CIRCNetwork_GetNetworkPath(self) def DelServers(self) -> "void": return _znc_core.CIRCNetwork_DelServers(self) def ParseConfig(self, pConfig: 'CConfig', sError: 'CString &', bUpgrade: 'bool'=False) -> "bool": return _znc_core.CIRCNetwork_ParseConfig(self, pConfig, sError, bUpgrade) def ToConfig(self) -> "CConfig": return _znc_core.CIRCNetwork_ToConfig(self) def BounceAllClients(self) -> "void": return _znc_core.CIRCNetwork_BounceAllClients(self) def IsUserAttached(self) -> "bool": return _znc_core.CIRCNetwork_IsUserAttached(self) def IsUserOnline(self) -> "bool": return _znc_core.CIRCNetwork_IsUserOnline(self) def ClientConnected(self, pClient: 'CClient') -> "void": return _znc_core.CIRCNetwork_ClientConnected(self, pClient) def ClientDisconnected(self, pClient: 'CClient') -> "void": return _znc_core.CIRCNetwork_ClientDisconnected(self, pClient) def GetUser(self) -> "CUser *": return _znc_core.CIRCNetwork_GetUser(self) def GetName(self) -> "CString const &": return _znc_core.CIRCNetwork_GetName(self) def IsNetworkAttached(self) -> "bool": return _znc_core.CIRCNetwork_IsNetworkAttached(self) def GetClients(self) -> "std::vector< CClient *,std::allocator< CClient * > > const &": return _znc_core.CIRCNetwork_GetClients(self) def FindClients(self, sIdentifier: 'CString const &') -> "std::vector< CClient *,std::allocator< CClient * > >": return _znc_core.CIRCNetwork_FindClients(self, sIdentifier) def SetUser(self, pUser: 'CUser') -> "void": return _znc_core.CIRCNetwork_SetUser(self, pUser) def SetName(self, sName: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_SetName(self, sName) def GetModules(self, *args) -> "CModules const &": return _znc_core.CIRCNetwork_GetModules(self, *args) def PutUser(self, sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CIRCNetwork_PutUser(self, sLine, pClient, pSkipClient) def PutStatus(self, sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CIRCNetwork_PutStatus(self, sLine, pClient, pSkipClient) def PutModule(self, sModule: 'CString const &', sLine: 'CString const &', pClient: 'CClient'=None, pSkipClient: 'CClient'=None) -> "bool": return _znc_core.CIRCNetwork_PutModule(self, sModule, sLine, pClient, pSkipClient) def GetChans(self) -> "std::vector< CChan *,std::allocator< CChan * > > const &": return _znc_core.CIRCNetwork_GetChans(self) def FindChan(self, sName: 'CString') -> "CChan *": return _znc_core.CIRCNetwork_FindChan(self, sName) def FindChans(self, sWild: 'CString const &') -> "std::vector< CChan *,std::allocator< CChan * > >": return _znc_core.CIRCNetwork_FindChans(self, sWild) def AddChan(self, *args) -> "bool": return _znc_core.CIRCNetwork_AddChan(self, *args) def DelChan(self, sName: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_DelChan(self, sName) def JoinChans(self, *args) -> "void": return _znc_core.CIRCNetwork_JoinChans(self, *args) def GetQueries(self) -> "std::vector< CQuery *,std::allocator< CQuery * > > const &": return _znc_core.CIRCNetwork_GetQueries(self) def FindQuery(self, sName: 'CString const &') -> "CQuery *": return _znc_core.CIRCNetwork_FindQuery(self, sName) def FindQueries(self, sWild: 'CString const &') -> "std::vector< CQuery *,std::allocator< CQuery * > >": return _znc_core.CIRCNetwork_FindQueries(self, sWild) def AddQuery(self, sName: 'CString const &') -> "CQuery *": return _znc_core.CIRCNetwork_AddQuery(self, sName) def DelQuery(self, sName: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_DelQuery(self, sName) def GetChanPrefixes(self) -> "CString const &": return _znc_core.CIRCNetwork_GetChanPrefixes(self) def SetChanPrefixes(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetChanPrefixes(self, s) def IsChan(self, sChan: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_IsChan(self, sChan) def GetServers(self) -> "std::vector< CServer *,std::allocator< CServer * > > const &": return _znc_core.CIRCNetwork_GetServers(self) def HasServers(self) -> "bool": return _znc_core.CIRCNetwork_HasServers(self) def FindServer(self, sName: 'CString const &') -> "CServer *": return _znc_core.CIRCNetwork_FindServer(self, sName) def DelServer(self, sName: 'CString const &', uPort: 'unsigned short', sPass: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_DelServer(self, sName, uPort, sPass) def AddServer(self, *args) -> "bool": return _znc_core.CIRCNetwork_AddServer(self, *args) def GetNextServer(self) -> "CServer *": return _znc_core.CIRCNetwork_GetNextServer(self) def GetCurrentServer(self) -> "CServer *": return _znc_core.CIRCNetwork_GetCurrentServer(self) def SetIRCServer(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetIRCServer(self, s) def SetNextServer(self, pServer: 'CServer') -> "bool": return _znc_core.CIRCNetwork_SetNextServer(self, pServer) def IsLastServer(self) -> "bool": return _znc_core.CIRCNetwork_IsLastServer(self) def GetTrustedFingerprints(self) -> "SCString const &": return _znc_core.CIRCNetwork_GetTrustedFingerprints(self) def AddTrustedFingerprint(self, sFP: 'CString const &') -> "void": return _znc_core.CIRCNetwork_AddTrustedFingerprint(self, sFP) def DelTrustedFingerprint(self, sFP: 'CString const &') -> "void": return _znc_core.CIRCNetwork_DelTrustedFingerprint(self, sFP) def SetIRCConnectEnabled(self, b: 'bool') -> "void": return _znc_core.CIRCNetwork_SetIRCConnectEnabled(self, b) def GetIRCConnectEnabled(self) -> "bool": return _znc_core.CIRCNetwork_GetIRCConnectEnabled(self) def GetIRCSock(self, *args) -> "CIRCSock const *": return _znc_core.CIRCNetwork_GetIRCSock(self, *args) def GetIRCServer(self) -> "CString const &": return _znc_core.CIRCNetwork_GetIRCServer(self) def GetIRCNick(self) -> "CNick const &": return _znc_core.CIRCNetwork_GetIRCNick(self) def SetIRCNick(self, n: 'CNick') -> "void": return _znc_core.CIRCNetwork_SetIRCNick(self, n) def GetCurNick(self) -> "CString": return _znc_core.CIRCNetwork_GetCurNick(self) def IsIRCAway(self) -> "bool": return _znc_core.CIRCNetwork_IsIRCAway(self) def SetIRCAway(self, b: 'bool') -> "void": return _znc_core.CIRCNetwork_SetIRCAway(self, b) def Connect(self) -> "bool": return _znc_core.CIRCNetwork_Connect(self) def IsIRCConnected(self) -> "bool": return _znc_core.CIRCNetwork_IsIRCConnected(self) def SetIRCSocket(self, pIRCSock: 'CIRCSock') -> "void": return _znc_core.CIRCNetwork_SetIRCSocket(self, pIRCSock) def IRCConnected(self) -> "void": return _znc_core.CIRCNetwork_IRCConnected(self) def IRCDisconnected(self) -> "void": return _znc_core.CIRCNetwork_IRCDisconnected(self) def CheckIRCConnect(self) -> "void": return _znc_core.CIRCNetwork_CheckIRCConnect(self) def PutIRC(self, sLine: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_PutIRC(self, sLine) def AddRawBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_AddRawBuffer(self, *args) def UpdateRawBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_UpdateRawBuffer(self, *args) def UpdateExactRawBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_UpdateExactRawBuffer(self, *args) def ClearRawBuffer(self) -> "void": return _znc_core.CIRCNetwork_ClearRawBuffer(self) def AddMotdBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_AddMotdBuffer(self, *args) def UpdateMotdBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_UpdateMotdBuffer(self, *args) def ClearMotdBuffer(self) -> "void": return _znc_core.CIRCNetwork_ClearMotdBuffer(self) def AddNoticeBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_AddNoticeBuffer(self, *args) def UpdateNoticeBuffer(self, *args) -> "void": return _znc_core.CIRCNetwork_UpdateNoticeBuffer(self, *args) def ClearNoticeBuffer(self) -> "void": return _znc_core.CIRCNetwork_ClearNoticeBuffer(self) def GetNick(self, bAllowDefault: 'bool const'=True) -> "CString const &": return _znc_core.CIRCNetwork_GetNick(self, bAllowDefault) def GetAltNick(self, bAllowDefault: 'bool const'=True) -> "CString const &": return _znc_core.CIRCNetwork_GetAltNick(self, bAllowDefault) def GetIdent(self, bAllowDefault: 'bool const'=True) -> "CString const &": return _znc_core.CIRCNetwork_GetIdent(self, bAllowDefault) def GetRealName(self) -> "CString const &": return _znc_core.CIRCNetwork_GetRealName(self) def GetBindHost(self) -> "CString const &": return _znc_core.CIRCNetwork_GetBindHost(self) def GetEncoding(self) -> "CString const &": return _znc_core.CIRCNetwork_GetEncoding(self) def GetQuitMsg(self) -> "CString": return _znc_core.CIRCNetwork_GetQuitMsg(self) def SetNick(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetNick(self, s) def SetAltNick(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetAltNick(self, s) def SetIdent(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetIdent(self, s) def SetRealName(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetRealName(self, s) def SetBindHost(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetBindHost(self, s) def SetEncoding(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetEncoding(self, s) def SetQuitMsg(self, s: 'CString const &') -> "void": return _znc_core.CIRCNetwork_SetQuitMsg(self, s) def GetFloodRate(self) -> "double": return _znc_core.CIRCNetwork_GetFloodRate(self) def GetFloodBurst(self) -> "unsigned short": return _znc_core.CIRCNetwork_GetFloodBurst(self) def SetFloodRate(self, fFloodRate: 'double') -> "void": return _znc_core.CIRCNetwork_SetFloodRate(self, fFloodRate) def SetFloodBurst(self, uFloodBurst: 'unsigned short') -> "void": return _znc_core.CIRCNetwork_SetFloodBurst(self, uFloodBurst) def GetJoinDelay(self) -> "unsigned short": return _znc_core.CIRCNetwork_GetJoinDelay(self) def SetJoinDelay(self, uJoinDelay: 'unsigned short') -> "void": return _znc_core.CIRCNetwork_SetJoinDelay(self, uJoinDelay) def ExpandString(self, *args) -> "CString &": return _znc_core.CIRCNetwork_ExpandString(self, *args) def __str__(self) -> "CString": return _znc_core.CIRCNetwork___str__(self) def __repr__(self) -> "CString": return _znc_core.CIRCNetwork___repr__(self) def GetChans_(self) -> "std::vector< CChan *,std::allocator< CChan * > >": return _znc_core.CIRCNetwork_GetChans_(self) CIRCNetwork_swigregister = _znc_core.CIRCNetwork_swigregister CIRCNetwork_swigregister(CIRCNetwork) def CIRCNetwork_IsValidNetwork(sNetwork: 'CString const &') -> "bool": return _znc_core.CIRCNetwork_IsValidNetwork(sNetwork) CIRCNetwork_IsValidNetwork = _znc_core.CIRCNetwork_IsValidNetwork class CAuthBase(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CAuthBase, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CAuthBase, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _znc_core.delete_CAuthBase __del__ = lambda self: None def SetLoginInfo(self, sUsername: 'CString const &', sPassword: 'CString const &', pSock: 'CZNCSock') -> "void": return _znc_core.CAuthBase_SetLoginInfo(self, sUsername, sPassword, pSock) def AcceptLogin(self, User: 'CUser') -> "void": return _znc_core.CAuthBase_AcceptLogin(self, User) def RefuseLogin(self, sReason: 'CString const &') -> "void": return _znc_core.CAuthBase_RefuseLogin(self, sReason) def GetUsername(self) -> "CString const &": return _znc_core.CAuthBase_GetUsername(self) def GetPassword(self) -> "CString const &": return _znc_core.CAuthBase_GetPassword(self) def GetSocket(self) -> "Csock *": return _znc_core.CAuthBase_GetSocket(self) def GetRemoteIP(self) -> "CString": return _znc_core.CAuthBase_GetRemoteIP(self) def Invalidate(self) -> "void": return _znc_core.CAuthBase_Invalidate(self) CAuthBase_swigregister = _znc_core.CAuthBase_swigregister CAuthBase_swigregister(CAuthBase) class CClientAuth(CAuthBase): __swig_setmethods__ = {} for _s in [CAuthBase]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CClientAuth, name, value) __swig_getmethods__ = {} for _s in [CAuthBase]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CClientAuth, name) __repr__ = _swig_repr def __init__(self, pClient: 'CClient', sUsername: 'CString const &', sPassword: 'CString const &'): this = _znc_core.new_CClientAuth(pClient, sUsername, sPassword) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CClientAuth __del__ = lambda self: None def Invalidate(self) -> "void": return _znc_core.CClientAuth_Invalidate(self) def AcceptedLogin(self, User: 'CUser') -> "void": return _znc_core.CClientAuth_AcceptedLogin(self, User) def RefusedLogin(self, sReason: 'CString const &') -> "void": return _znc_core.CClientAuth_RefusedLogin(self, sReason) CClientAuth_swigregister = _znc_core.CClientAuth_swigregister CClientAuth_swigregister(CClientAuth) class CClient(CIRCSocket): __swig_setmethods__ = {} for _s in [CIRCSocket]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CClient, name, value) __swig_getmethods__ = {} for _s in [CIRCSocket]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CClient, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CClient() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CClient __del__ = lambda self: None def SendRequiredPasswordNotice(self) -> "void": return _znc_core.CClient_SendRequiredPasswordNotice(self) def AcceptLogin(self, User: 'CUser') -> "void": return _znc_core.CClient_AcceptLogin(self, User) def RefuseLogin(self, sReason: 'CString const &') -> "void": return _znc_core.CClient_RefuseLogin(self, sReason) def GetNick(self, bAllowIRCNick: 'bool'=True) -> "CString": return _znc_core.CClient_GetNick(self, bAllowIRCNick) def GetNickMask(self) -> "CString": return _znc_core.CClient_GetNickMask(self) def GetIdentifier(self) -> "CString": return _znc_core.CClient_GetIdentifier(self) def HasNamesx(self) -> "bool": return _znc_core.CClient_HasNamesx(self) def HasUHNames(self) -> "bool": return _znc_core.CClient_HasUHNames(self) def IsAway(self) -> "bool": return _znc_core.CClient_IsAway(self) def HasServerTime(self) -> "bool": return _znc_core.CClient_HasServerTime(self) def HasBatch(self) -> "bool": return _znc_core.CClient_HasBatch(self) def HasSelfMessage(self) -> "bool": return _znc_core.CClient_HasSelfMessage(self) __swig_getmethods__["IsValidIdentifier"] = lambda x: _znc_core.CClient_IsValidIdentifier if _newclass: IsValidIdentifier = staticmethod(_znc_core.CClient_IsValidIdentifier) def UserCommand(self, sLine: 'CString &') -> "void": return _znc_core.CClient_UserCommand(self, sLine) def UserPortCommand(self, sLine: 'CString &') -> "void": return _znc_core.CClient_UserPortCommand(self, sLine) def StatusCTCP(self, sCommand: 'CString const &') -> "void": return _znc_core.CClient_StatusCTCP(self, sCommand) def BouncedOff(self) -> "void": return _znc_core.CClient_BouncedOff(self) def IsAttached(self) -> "bool": return _znc_core.CClient_IsAttached(self) def IsPlaybackActive(self) -> "bool": return _znc_core.CClient_IsPlaybackActive(self) def SetPlaybackActive(self, bActive: 'bool') -> "void": return _znc_core.CClient_SetPlaybackActive(self, bActive) def PutIRC(self, sLine: 'CString const &') -> "void": return _znc_core.CClient_PutIRC(self, sLine) def PutClient(self, sLine: 'CString const &') -> "void": return _znc_core.CClient_PutClient(self, sLine) def PutStatus(self, *args) -> "void": return _znc_core.CClient_PutStatus(self, *args) def PutStatusNotice(self, sLine: 'CString const &') -> "void": return _znc_core.CClient_PutStatusNotice(self, sLine) def PutModule(self, sModule: 'CString const &', sLine: 'CString const &') -> "void": return _znc_core.CClient_PutModule(self, sModule, sLine) def PutModNotice(self, sModule: 'CString const &', sLine: 'CString const &') -> "void": return _znc_core.CClient_PutModNotice(self, sModule, sLine) def IsCapEnabled(self, sCap: 'CString const &') -> "bool": return _znc_core.CClient_IsCapEnabled(self, sCap) def ReadLine(self, sData: 'CString const &') -> "void": return _znc_core.CClient_ReadLine(self, sData) def SendMotd(self) -> "bool": return _znc_core.CClient_SendMotd(self) def HelpUser(self, *args) -> "void": return _znc_core.CClient_HelpUser(self, *args) def AuthUser(self) -> "void": return _znc_core.CClient_AuthUser(self) def Connected(self) -> "void": return _znc_core.CClient_Connected(self) def Timeout(self) -> "void": return _znc_core.CClient_Timeout(self) def Disconnected(self) -> "void": return _znc_core.CClient_Disconnected(self) def ConnectionRefused(self) -> "void": return _znc_core.CClient_ConnectionRefused(self) def ReachedMaxBuffer(self) -> "void": return _znc_core.CClient_ReachedMaxBuffer(self) def SetNick(self, s: 'CString const &') -> "void": return _znc_core.CClient_SetNick(self, s) def SetAway(self, bAway: 'bool') -> "void": return _znc_core.CClient_SetAway(self, bAway) def GetUser(self) -> "CUser *": return _znc_core.CClient_GetUser(self) def SetNetwork(self, pNetwork: 'CIRCNetwork', bDisconnect: 'bool'=True, bReconnect: 'bool'=True) -> "void": return _znc_core.CClient_SetNetwork(self, pNetwork, bDisconnect, bReconnect) def GetNetwork(self) -> "CIRCNetwork *": return _znc_core.CClient_GetNetwork(self) def GetClients(self) -> "std::vector< CClient *,std::allocator< CClient * > > const &": return _znc_core.CClient_GetClients(self) def GetIRCSock(self, *args) -> "CIRCSock *": return _znc_core.CClient_GetIRCSock(self, *args) def GetFullName(self) -> "CString": return _znc_core.CClient_GetFullName(self) CClient_swigregister = _znc_core.CClient_swigregister CClient_swigregister(CClient) def CClient_IsValidIdentifier(sIdentifier: 'CString const &') -> "bool": return _znc_core.CClient_IsValidIdentifier(sIdentifier) CClient_IsValidIdentifier = _znc_core.CClient_IsValidIdentifier class CIRCSock(CIRCSocket): __swig_setmethods__ = {} for _s in [CIRCSocket]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CIRCSock, name, value) __swig_getmethods__ = {} for _s in [CIRCSocket]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CIRCSock, name) __repr__ = _swig_repr def __init__(self, pNetwork: 'CIRCNetwork'): this = _znc_core.new_CIRCSock(pNetwork) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CIRCSock __del__ = lambda self: None ListArg = _znc_core.CIRCSock_ListArg HasArg = _znc_core.CIRCSock_HasArg ArgWhenSet = _znc_core.CIRCSock_ArgWhenSet NoArg = _znc_core.CIRCSock_NoArg def OnCTCPReply(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnCTCPReply(self, Nick, sMessage) def OnPrivCTCP(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnPrivCTCP(self, Nick, sMessage) def OnChanCTCP(self, Nick: 'CNick', sChan: 'CString const &', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnChanCTCP(self, Nick, sChan, sMessage) def OnGeneralCTCP(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnGeneralCTCP(self, Nick, sMessage) def OnPrivMsg(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnPrivMsg(self, Nick, sMessage) def OnChanMsg(self, Nick: 'CNick', sChan: 'CString const &', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnChanMsg(self, Nick, sChan, sMessage) def OnPrivNotice(self, Nick: 'CNick', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnPrivNotice(self, Nick, sMessage) def OnChanNotice(self, Nick: 'CNick', sChan: 'CString const &', sMessage: 'CString &') -> "bool": return _znc_core.CIRCSock_OnChanNotice(self, Nick, sChan, sMessage) def OnServerCapAvailable(self, sCap: 'CString const &') -> "bool": return _znc_core.CIRCSock_OnServerCapAvailable(self, sCap) def ReadLine(self, sData: 'CString const &') -> "void": return _znc_core.CIRCSock_ReadLine(self, sData) def Connected(self) -> "void": return _znc_core.CIRCSock_Connected(self) def Disconnected(self) -> "void": return _znc_core.CIRCSock_Disconnected(self) def ConnectionRefused(self) -> "void": return _znc_core.CIRCSock_ConnectionRefused(self) def SockError(self, iErrno: 'int', sDescription: 'CString const &') -> "void": return _znc_core.CIRCSock_SockError(self, iErrno, sDescription) def Timeout(self) -> "void": return _znc_core.CIRCSock_Timeout(self) def ReachedMaxBuffer(self) -> "void": return _znc_core.CIRCSock_ReachedMaxBuffer(self) def PutIRC(self, sLine: 'CString const &') -> "void": return _znc_core.CIRCSock_PutIRC(self, sLine) def PutIRCQuick(self, sLine: 'CString const &') -> "void": return _znc_core.CIRCSock_PutIRCQuick(self, sLine) def ResetChans(self) -> "void": return _znc_core.CIRCSock_ResetChans(self) def Quit(self, *args) -> "void": return _znc_core.CIRCSock_Quit(self, *args) def PauseCap(self) -> "void": return _znc_core.CIRCSock_PauseCap(self) def ResumeCap(self) -> "void": return _znc_core.CIRCSock_ResumeCap(self) def SetPass(self, s: 'CString const &') -> "void": return _znc_core.CIRCSock_SetPass(self, s) def GetMaxNickLen(self) -> "unsigned int": return _znc_core.CIRCSock_GetMaxNickLen(self) def GetModeType(self, uMode: 'unsigned char') -> "CIRCSock::EChanModeArgs": return _znc_core.CIRCSock_GetModeType(self, uMode) def GetPermFromMode(self, uMode: 'unsigned char') -> "unsigned char": return _znc_core.CIRCSock_GetPermFromMode(self, uMode) def GetChanModes(self) -> "std::map< unsigned char,CIRCSock::EChanModeArgs,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CIRCSock::EChanModeArgs > > > const &": return _znc_core.CIRCSock_GetChanModes(self) def IsPermChar(self, c: 'char const') -> "bool": return _znc_core.CIRCSock_IsPermChar(self, c) def IsPermMode(self, c: 'char const') -> "bool": return _znc_core.CIRCSock_IsPermMode(self, c) def GetPerms(self) -> "CString const &": return _znc_core.CIRCSock_GetPerms(self) def GetPermModes(self) -> "CString const &": return _znc_core.CIRCSock_GetPermModes(self) def GetNickMask(self) -> "CString": return _znc_core.CIRCSock_GetNickMask(self) def GetNick(self) -> "CString const &": return _znc_core.CIRCSock_GetNick(self) def GetPass(self) -> "CString const &": return _znc_core.CIRCSock_GetPass(self) def GetNetwork(self) -> "CIRCNetwork *": return _znc_core.CIRCSock_GetNetwork(self) def HasNamesx(self) -> "bool": return _znc_core.CIRCSock_HasNamesx(self) def HasUHNames(self) -> "bool": return _znc_core.CIRCSock_HasUHNames(self) def GetUserModes(self) -> "std::set< unsigned char,std::less< unsigned char >,std::allocator< unsigned char > > const &": return _znc_core.CIRCSock_GetUserModes(self) def IsAuthed(self) -> "bool": return _znc_core.CIRCSock_IsAuthed(self) def IsCapAccepted(self, sCap: 'CString const &') -> "bool": return _znc_core.CIRCSock_IsCapAccepted(self, sCap) def GetISupport(self, *args) -> "CString": return _znc_core.CIRCSock_GetISupport(self, *args) def ForwardRaw353(self, *args) -> "void": return _znc_core.CIRCSock_ForwardRaw353(self, *args) __swig_getmethods__["IsFloodProtected"] = lambda x: _znc_core.CIRCSock_IsFloodProtected if _newclass: IsFloodProtected = staticmethod(_znc_core.CIRCSock_IsFloodProtected) CIRCSock_swigregister = _znc_core.CIRCSock_swigregister CIRCSock_swigregister(CIRCSock) def CIRCSock_IsFloodProtected(fRate: 'double') -> "bool": return _znc_core.CIRCSock_IsFloodProtected(fRate) CIRCSock_IsFloodProtected = _znc_core.CIRCSock_IsFloodProtected class CListener(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CListener, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CListener, name) __repr__ = _swig_repr ACCEPT_IRC = _znc_core.CListener_ACCEPT_IRC ACCEPT_HTTP = _znc_core.CListener_ACCEPT_HTTP ACCEPT_ALL = _znc_core.CListener_ACCEPT_ALL def __init__(self, uPort: 'unsigned short', sBindHost: 'CString const &', sURIPrefix: 'CString const &', bSSL: 'bool', eAddr: 'EAddrType', eAccept: 'CListener::EAcceptType'): this = _znc_core.new_CListener(uPort, sBindHost, sURIPrefix, bSSL, eAddr, eAccept) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CListener __del__ = lambda self: None def IsSSL(self) -> "bool": return _znc_core.CListener_IsSSL(self) def GetAddrType(self) -> "EAddrType": return _znc_core.CListener_GetAddrType(self) def GetPort(self) -> "unsigned short": return _znc_core.CListener_GetPort(self) def GetBindHost(self) -> "CString const &": return _znc_core.CListener_GetBindHost(self) def GetRealListener(self) -> "CRealListener *": return _znc_core.CListener_GetRealListener(self) def GetURIPrefix(self) -> "CString const &": return _znc_core.CListener_GetURIPrefix(self) def GetAcceptType(self) -> "CListener::EAcceptType": return _znc_core.CListener_GetAcceptType(self) def SetAcceptType(self, eType: 'CListener::EAcceptType') -> "void": return _znc_core.CListener_SetAcceptType(self, eType) def Listen(self) -> "bool": return _znc_core.CListener_Listen(self) def ResetRealListener(self) -> "void": return _znc_core.CListener_ResetRealListener(self) CListener_swigregister = _znc_core.CListener_swigregister CListener_swigregister(CListener) class CRealListener(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CRealListener, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CRealListener, name) __repr__ = _swig_repr def __init__(self, listener: 'CListener'): this = _znc_core.new_CRealListener(listener) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CRealListener __del__ = lambda self: None def ConnectionFrom(self, sHost: 'CString const &', uPort: 'unsigned short') -> "bool": return _znc_core.CRealListener_ConnectionFrom(self, sHost, uPort) def GetSockObj(self, sHost: 'CString const &', uPort: 'unsigned short') -> "Csock *": return _znc_core.CRealListener_GetSockObj(self, sHost, uPort) def SockError(self, iErrno: 'int', sDescription: 'CString const &') -> "void": return _znc_core.CRealListener_SockError(self, iErrno, sDescription) CRealListener_swigregister = _znc_core.CRealListener_swigregister CRealListener_swigregister(CRealListener) class CIncomingConnection(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CIncomingConnection, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CIncomingConnection, name) __repr__ = _swig_repr def __init__(self, sHostname: 'CString const &', uPort: 'unsigned short', eAcceptType: 'CListener::EAcceptType', sURIPrefix: 'CString const &'): this = _znc_core.new_CIncomingConnection(sHostname, uPort, eAcceptType, sURIPrefix) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CIncomingConnection __del__ = lambda self: None def ReadLine(self, sData: 'CString const &') -> "void": return _znc_core.CIncomingConnection_ReadLine(self, sData) def ReachedMaxBuffer(self) -> "void": return _znc_core.CIncomingConnection_ReachedMaxBuffer(self) CIncomingConnection_swigregister = _znc_core.CIncomingConnection_swigregister CIncomingConnection_swigregister(CIncomingConnection) class CHTTPSock(CSocket): __swig_setmethods__ = {} for _s in [CSocket]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CHTTPSock, name, value) __swig_getmethods__ = {} for _s in [CSocket]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CHTTPSock, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _znc_core.delete_CHTTPSock __del__ = lambda self: None def ReadData(self, data: 'char const *', len: 'size_t') -> "void": return _znc_core.CHTTPSock_ReadData(self, data, len) def ReadLine(self, sData: 'CString const &') -> "void": return _znc_core.CHTTPSock_ReadLine(self, sData) def Connected(self) -> "void": return _znc_core.CHTTPSock_Connected(self) def GetSockObj(self, sHost: 'CString const &', uPort: 'unsigned short') -> "Csock *": return _znc_core.CHTTPSock_GetSockObj(self, sHost, uPort) def ForceLogin(self) -> "bool": return _znc_core.CHTTPSock_ForceLogin(self) def OnLogin(self, sUser: 'CString const &', sPass: 'CString const &', bBasic: 'bool') -> "bool": return _znc_core.CHTTPSock_OnLogin(self, sUser, sPass, bBasic) def OnPageRequest(self, sURI: 'CString const &') -> "void": return _znc_core.CHTTPSock_OnPageRequest(self, sURI) def PrintFile(self, *args) -> "bool": return _znc_core.CHTTPSock_PrintFile(self, *args) def CheckPost(self) -> "void": return _znc_core.CHTTPSock_CheckPost(self) def SentHeader(self) -> "bool": return _znc_core.CHTTPSock_SentHeader(self) def PrintHeader(self, *args) -> "bool": return _znc_core.CHTTPSock_PrintHeader(self, *args) def AddHeader(self, sName: 'CString const &', sValue: 'CString const &') -> "void": return _znc_core.CHTTPSock_AddHeader(self, sName, sValue) def SetContentType(self, sContentType: 'CString const &') -> "void": return _znc_core.CHTTPSock_SetContentType(self, sContentType) def PrintNotFound(self) -> "bool": return _znc_core.CHTTPSock_PrintNotFound(self) def Redirect(self, sURL: 'CString const &') -> "bool": return _znc_core.CHTTPSock_Redirect(self, sURL) def PrintErrorPage(self, uStatusId: 'unsigned int', sStatusMsg: 'CString const &', sMessage: 'CString const &') -> "bool": return _znc_core.CHTTPSock_PrintErrorPage(self, uStatusId, sStatusMsg, sMessage) __swig_getmethods__["ParseParams"] = lambda x: _znc_core.CHTTPSock_ParseParams if _newclass: ParseParams = staticmethod(_znc_core.CHTTPSock_ParseParams) def ParseURI(self) -> "void": return _znc_core.CHTTPSock_ParseURI(self) def GetPage(self) -> "void": return _znc_core.CHTTPSock_GetPage(self) __swig_getmethods__["GetDate"] = lambda x: _znc_core.CHTTPSock_GetDate if _newclass: GetDate = staticmethod(_znc_core.CHTTPSock_GetDate) def GetRemoteIP(self) -> "CString": return _znc_core.CHTTPSock_GetRemoteIP(self) def GetRequestCookie(self, sKey: 'CString const &') -> "CString": return _znc_core.CHTTPSock_GetRequestCookie(self, sKey) def SendCookie(self, sKey: 'CString const &', sValue: 'CString const &') -> "bool": return _znc_core.CHTTPSock_SendCookie(self, sKey, sValue) def SetDocRoot(self, s: 'CString const &') -> "void": return _znc_core.CHTTPSock_SetDocRoot(self, s) def SetLoggedIn(self, b: 'bool') -> "void": return _znc_core.CHTTPSock_SetLoggedIn(self, b) def GetPath(self) -> "CString": return _znc_core.CHTTPSock_GetPath(self) def IsLoggedIn(self) -> "bool": return _znc_core.CHTTPSock_IsLoggedIn(self) def GetDocRoot(self) -> "CString const &": return _znc_core.CHTTPSock_GetDocRoot(self) def GetUser(self) -> "CString const &": return _znc_core.CHTTPSock_GetUser(self) def GetPass(self) -> "CString const &": return _znc_core.CHTTPSock_GetPass(self) def GetParamString(self) -> "CString const &": return _znc_core.CHTTPSock_GetParamString(self) def GetContentType(self) -> "CString const &": return _znc_core.CHTTPSock_GetContentType(self) def GetURIPrefix(self) -> "CString const &": return _znc_core.CHTTPSock_GetURIPrefix(self) def IsPost(self) -> "bool": return _znc_core.CHTTPSock_IsPost(self) def GetParam(self, *args) -> "CString": return _znc_core.CHTTPSock_GetParam(self, *args) def GetRawParam(self, sName: 'CString const &', bPost: 'bool'=True) -> "CString": return _znc_core.CHTTPSock_GetRawParam(self, sName, bPost) def HasParam(self, sName: 'CString const &', bPost: 'bool'=True) -> "bool": return _znc_core.CHTTPSock_HasParam(self, sName, bPost) def GetParams(self, bPost: 'bool'=True) -> "std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > const &": return _znc_core.CHTTPSock_GetParams(self, bPost) def GetParamValues(self, *args) -> "size_t": return _znc_core.CHTTPSock_GetParamValues(self, *args) CHTTPSock_swigregister = _znc_core.CHTTPSock_swigregister CHTTPSock_swigregister(CHTTPSock) def CHTTPSock_ParseParams(sParams: 'CString const &', msvsParams: 'PyMStringVString') -> "void": return _znc_core.CHTTPSock_ParseParams(sParams, msvsParams) CHTTPSock_ParseParams = _znc_core.CHTTPSock_ParseParams def CHTTPSock_GetDate(tm: 'time_t'=0) -> "CString": return _znc_core.CHTTPSock_GetDate(tm) CHTTPSock_GetDate = _znc_core.CHTTPSock_GetDate class CTemplateTagHandler(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CTemplateTagHandler, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CTemplateTagHandler, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CTemplateTagHandler() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTemplateTagHandler __del__ = lambda self: None def HandleVar(self, Tmpl: 'CTemplate', sName: 'CString const &', sArgs: 'CString const &', sOutput: 'CString &') -> "bool": return _znc_core.CTemplateTagHandler_HandleVar(self, Tmpl, sName, sArgs, sOutput) def HandleTag(self, Tmpl: 'CTemplate', sName: 'CString const &', sArgs: 'CString const &', sOutput: 'CString &') -> "bool": return _znc_core.CTemplateTagHandler_HandleTag(self, Tmpl, sName, sArgs, sOutput) def HandleIf(self, Tmpl: 'CTemplate', sName: 'CString const &', sArgs: 'CString const &', sOutput: 'CString &') -> "bool": return _znc_core.CTemplateTagHandler_HandleIf(self, Tmpl, sName, sArgs, sOutput) def HandleValue(self, Tmpl: 'CTemplate', sValue: 'CString &', msOptions: 'MCString') -> "bool": return _znc_core.CTemplateTagHandler_HandleValue(self, Tmpl, sValue, msOptions) CTemplateTagHandler_swigregister = _znc_core.CTemplateTagHandler_swigregister CTemplateTagHandler_swigregister(CTemplateTagHandler) class CTemplateOptions(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CTemplateOptions, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CTemplateOptions, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CTemplateOptions() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTemplateOptions __del__ = lambda self: None def Parse(self, sLine: 'CString const &') -> "void": return _znc_core.CTemplateOptions_Parse(self, sLine) def GetEscapeFrom(self) -> "CString::EEscape": return _znc_core.CTemplateOptions_GetEscapeFrom(self) def GetEscapeTo(self) -> "CString::EEscape": return _znc_core.CTemplateOptions_GetEscapeTo(self) CTemplateOptions_swigregister = _znc_core.CTemplateOptions_swigregister CTemplateOptions_swigregister(CTemplateOptions) class CTemplateLoopContext(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CTemplateLoopContext, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CTemplateLoopContext, name) __repr__ = _swig_repr def __init__(self, uFilePos: 'unsigned long', sLoopName: 'CString const &', bReverse: 'bool', pRows: 'std::vector< CTemplate *,std::allocator< CTemplate * > > *'): this = _znc_core.new_CTemplateLoopContext(uFilePos, sLoopName, bReverse, pRows) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTemplateLoopContext __del__ = lambda self: None def SetHasData(self, b: 'bool'=True) -> "void": return _znc_core.CTemplateLoopContext_SetHasData(self, b) def SetName(self, s: 'CString const &') -> "void": return _znc_core.CTemplateLoopContext_SetName(self, s) def SetRowIndex(self, u: 'unsigned int') -> "void": return _znc_core.CTemplateLoopContext_SetRowIndex(self, u) def IncRowIndex(self) -> "unsigned int": return _znc_core.CTemplateLoopContext_IncRowIndex(self) def DecRowIndex(self) -> "unsigned int": return _znc_core.CTemplateLoopContext_DecRowIndex(self) def SetFilePosition(self, u: 'unsigned int') -> "void": return _znc_core.CTemplateLoopContext_SetFilePosition(self, u) def HasData(self) -> "bool": return _znc_core.CTemplateLoopContext_HasData(self) def GetName(self) -> "CString const &": return _znc_core.CTemplateLoopContext_GetName(self) def GetFilePosition(self) -> "unsigned long": return _znc_core.CTemplateLoopContext_GetFilePosition(self) def GetRowIndex(self) -> "unsigned int": return _znc_core.CTemplateLoopContext_GetRowIndex(self) def GetRowCount(self) -> "size_t": return _znc_core.CTemplateLoopContext_GetRowCount(self) def GetRows(self) -> "std::vector< CTemplate *,std::allocator< CTemplate * > > *": return _znc_core.CTemplateLoopContext_GetRows(self) def GetNextRow(self) -> "CTemplate *": return _znc_core.CTemplateLoopContext_GetNextRow(self) def GetCurRow(self) -> "CTemplate *": return _znc_core.CTemplateLoopContext_GetCurRow(self) def GetRow(self, uIndex: 'unsigned int') -> "CTemplate *": return _znc_core.CTemplateLoopContext_GetRow(self, uIndex) def GetValue(self, sName: 'CString const &', bFromIf: 'bool'=False) -> "CString": return _znc_core.CTemplateLoopContext_GetValue(self, sName, bFromIf) CTemplateLoopContext_swigregister = _znc_core.CTemplateLoopContext_swigregister CTemplateLoopContext_swigregister(CTemplateLoopContext) class CTemplate(MCString): __swig_setmethods__ = {} for _s in [MCString]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CTemplate, name, value) __swig_getmethods__ = {} for _s in [MCString]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CTemplate, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CTemplate(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CTemplate __del__ = lambda self: None def AddTagHandler(self, spTagHandler: 'std::shared_ptr< CTemplateTagHandler >') -> "void": return _znc_core.CTemplate_AddTagHandler(self, spTagHandler) def GetTagHandlers(self) -> "std::vector< std::shared_ptr< CTemplateTagHandler >,std::allocator< std::shared_ptr< CTemplateTagHandler > > > &": return _znc_core.CTemplate_GetTagHandlers(self) def ResolveLiteral(self, sString: 'CString const &') -> "CString": return _znc_core.CTemplate_ResolveLiteral(self, sString) def Init(self) -> "void": return _znc_core.CTemplate_Init(self) def GetParent(self, bRoot: 'bool') -> "CTemplate *": return _znc_core.CTemplate_GetParent(self, bRoot) def ExpandFile(self, sFilename: 'CString const &', bFromInc: 'bool'=False) -> "CString": return _znc_core.CTemplate_ExpandFile(self, sFilename, bFromInc) def SetFile(self, sFileName: 'CString const &') -> "bool": return _znc_core.CTemplate_SetFile(self, sFileName) def SetPath(self, sPath: 'CString const &') -> "void": return _znc_core.CTemplate_SetPath(self, sPath) def MakePath(self, sPath: 'CString const &') -> "CString": return _znc_core.CTemplate_MakePath(self, sPath) def PrependPath(self, sPath: 'CString const &', bIncludesOnly: 'bool'=False) -> "void": return _znc_core.CTemplate_PrependPath(self, sPath, bIncludesOnly) def AppendPath(self, sPath: 'CString const &', bIncludesOnly: 'bool'=False) -> "void": return _znc_core.CTemplate_AppendPath(self, sPath, bIncludesOnly) def RemovePath(self, sPath: 'CString const &') -> "void": return _znc_core.CTemplate_RemovePath(self, sPath) def ClearPaths(self) -> "void": return _znc_core.CTemplate_ClearPaths(self) def PrintString(self, sRet: 'CString &') -> "bool": return _znc_core.CTemplate_PrintString(self, sRet) def Print(self, *args) -> "bool": return _znc_core.CTemplate_Print(self, *args) def ValidIf(self, sArgs: 'CString const &') -> "bool": return _znc_core.CTemplate_ValidIf(self, sArgs) def ValidExpr(self, sExpr: 'CString const &') -> "bool": return _znc_core.CTemplate_ValidExpr(self, sExpr) def IsTrue(self, sName: 'CString const &') -> "bool": return _znc_core.CTemplate_IsTrue(self, sName) def HasLoop(self, sName: 'CString const &') -> "bool": return _znc_core.CTemplate_HasLoop(self, sName) def GetValue(self, sName: 'CString const &', bFromIf: 'bool'=False) -> "CString": return _znc_core.CTemplate_GetValue(self, sName, bFromIf) def AddRow(self, sName: 'CString const &') -> "CTemplate &": return _znc_core.CTemplate_AddRow(self, sName) def GetRow(self, sName: 'CString const &', uIndex: 'unsigned int') -> "CTemplate *": return _znc_core.CTemplate_GetRow(self, sName, uIndex) def GetLoop(self, sName: 'CString const &') -> "std::vector< CTemplate *,std::allocator< CTemplate * > > *": return _znc_core.CTemplate_GetLoop(self, sName) def DelCurLoopContext(self) -> "void": return _znc_core.CTemplate_DelCurLoopContext(self) def GetCurLoopContext(self) -> "CTemplateLoopContext *": return _znc_core.CTemplate_GetCurLoopContext(self) def GetCurTemplate(self) -> "CTemplate *": return _znc_core.CTemplate_GetCurTemplate(self) def GetFileName(self) -> "CString const &": return _znc_core.CTemplate_GetFileName(self) def set(self, key: 'CString const &', value: 'CString const &') -> "void": return _znc_core.CTemplate_set(self, key, value) CTemplate_swigregister = _znc_core.CTemplate_swigregister CTemplate_swigregister(CTemplate) class CZNCTagHandler(CTemplateTagHandler): __swig_setmethods__ = {} for _s in [CTemplateTagHandler]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CZNCTagHandler, name, value) __swig_getmethods__ = {} for _s in [CTemplateTagHandler]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CZNCTagHandler, name) __repr__ = _swig_repr def __init__(self, pWebSock: 'CWebSock'): this = _znc_core.new_CZNCTagHandler(pWebSock) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CZNCTagHandler __del__ = lambda self: None def HandleTag(self, Tmpl: 'CTemplate', sName: 'CString const &', sArgs: 'CString const &', sOutput: 'CString &') -> "bool": return _znc_core.CZNCTagHandler_HandleTag(self, Tmpl, sName, sArgs, sOutput) CZNCTagHandler_swigregister = _znc_core.CZNCTagHandler_swigregister CZNCTagHandler_swigregister(CZNCTagHandler) class CWebSession(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CWebSession, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CWebSession, name) __repr__ = _swig_repr def __init__(self, sId: 'CString const &', sIP: 'CString const &'): this = _znc_core.new_CWebSession(sId, sIP) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CWebSession __del__ = lambda self: None def GetId(self) -> "CString const &": return _znc_core.CWebSession_GetId(self) def GetIP(self) -> "CString const &": return _znc_core.CWebSession_GetIP(self) def GetUser(self) -> "CUser *": return _znc_core.CWebSession_GetUser(self) def GetLastActive(self) -> "time_t": return _znc_core.CWebSession_GetLastActive(self) def IsLoggedIn(self) -> "bool": return _znc_core.CWebSession_IsLoggedIn(self) def IsAdmin(self) -> "bool": return _znc_core.CWebSession_IsAdmin(self) def UpdateLastActive(self) -> "void": return _znc_core.CWebSession_UpdateLastActive(self) def SetUser(self, p: 'CUser') -> "CUser *": return _znc_core.CWebSession_SetUser(self, p) def ClearMessageLoops(self) -> "void": return _znc_core.CWebSession_ClearMessageLoops(self) def FillMessageLoops(self, Tmpl: 'CTemplate') -> "void": return _znc_core.CWebSession_FillMessageLoops(self, Tmpl) def AddError(self, sMessage: 'CString const &') -> "size_t": return _znc_core.CWebSession_AddError(self, sMessage) def AddSuccess(self, sMessage: 'CString const &') -> "size_t": return _znc_core.CWebSession_AddSuccess(self, sMessage) CWebSession_swigregister = _znc_core.CWebSession_swigregister CWebSession_swigregister(CWebSession) class CWebSubPage(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CWebSubPage, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CWebSubPage, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CWebSubPage(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CWebSubPage __del__ = lambda self: None F_ADMIN = _znc_core.CWebSubPage_F_ADMIN def SetName(self, s: 'CString const &') -> "void": return _znc_core.CWebSubPage_SetName(self, s) def SetTitle(self, s: 'CString const &') -> "void": return _znc_core.CWebSubPage_SetTitle(self, s) def AddParam(self, sName: 'CString const &', sValue: 'CString const &') -> "void": return _znc_core.CWebSubPage_AddParam(self, sName, sValue) def RequiresAdmin(self) -> "bool": return _znc_core.CWebSubPage_RequiresAdmin(self) def GetName(self) -> "CString const &": return _znc_core.CWebSubPage_GetName(self) def GetTitle(self) -> "CString const &": return _znc_core.CWebSubPage_GetTitle(self) def GetParams(self) -> "VPair const &": return _znc_core.CWebSubPage_GetParams(self) CWebSubPage_swigregister = _znc_core.CWebSubPage_swigregister CWebSubPage_swigregister(CWebSubPage) class CWebSessionMap(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CWebSessionMap, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CWebSessionMap, name) __repr__ = _swig_repr def __init__(self, uTTL: 'unsigned int'=5000): this = _znc_core.new_CWebSessionMap(uTTL) try: self.this.append(this) except: self.this = this def FinishUserSessions(self, User: 'CUser') -> "void": return _znc_core.CWebSessionMap_FinishUserSessions(self, User) __swig_destroy__ = _znc_core.delete_CWebSessionMap __del__ = lambda self: None CWebSessionMap_swigregister = _znc_core.CWebSessionMap_swigregister CWebSessionMap_swigregister(CWebSessionMap) class CWebSock(CHTTPSock): __swig_setmethods__ = {} for _s in [CHTTPSock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CWebSock, name, value) __swig_getmethods__ = {} for _s in [CHTTPSock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CWebSock, name) __repr__ = _swig_repr PAGE_NOTFOUND = _znc_core.CWebSock_PAGE_NOTFOUND PAGE_PRINT = _znc_core.CWebSock_PAGE_PRINT PAGE_DEFERRED = _znc_core.CWebSock_PAGE_DEFERRED PAGE_DONE = _znc_core.CWebSock_PAGE_DONE def __init__(self, sURIPrefix: 'CString const &'): this = _znc_core.new_CWebSock(sURIPrefix) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CWebSock __del__ = lambda self: None def ForceLogin(self) -> "bool": return _znc_core.CWebSock_ForceLogin(self) def OnLogin(self, sUser: 'CString const &', sPass: 'CString const &', bBasic: 'bool') -> "bool": return _znc_core.CWebSock_OnLogin(self, sUser, sPass, bBasic) def OnPageRequest(self, sURI: 'CString const &') -> "void": return _znc_core.CWebSock_OnPageRequest(self, sURI) def PrintTemplate(self, sPageName: 'CString const &', sPageRet: 'CString &', pModule: 'CModule'=None) -> "CWebSock::EPageReqResult": return _znc_core.CWebSock_PrintTemplate(self, sPageName, sPageRet, pModule) def PrintStaticFile(self, sPath: 'CString const &', sPageRet: 'CString &', pModule: 'CModule'=None) -> "CWebSock::EPageReqResult": return _znc_core.CWebSock_PrintStaticFile(self, sPath, sPageRet, pModule) def FindTmpl(self, pModule: 'CModule', sName: 'CString const &') -> "CString": return _znc_core.CWebSock_FindTmpl(self, pModule, sName) def GetSession(self) -> "std::shared_ptr< CWebSession >": return _znc_core.CWebSock_GetSession(self) def GetSockObj(self, sHost: 'CString const &', uPort: 'unsigned short') -> "Csock *": return _znc_core.CWebSock_GetSockObj(self, sHost, uPort) __swig_getmethods__["GetSkinPath"] = lambda x: _znc_core.CWebSock_GetSkinPath if _newclass: GetSkinPath = staticmethod(_znc_core.CWebSock_GetSkinPath) def GetAvailSkins(self, vRet: 'VCString') -> "void": return _znc_core.CWebSock_GetAvailSkins(self, vRet) def GetSkinName(self) -> "CString": return _znc_core.CWebSock_GetSkinName(self) def GetRequestCookie(self, sKey: 'CString const &') -> "CString": return _znc_core.CWebSock_GetRequestCookie(self, sKey) def SendCookie(self, sKey: 'CString const &', sValue: 'CString const &') -> "bool": return _znc_core.CWebSock_SendCookie(self, sKey, sValue) __swig_getmethods__["FinishUserSessions"] = lambda x: _znc_core.CWebSock_FinishUserSessions if _newclass: FinishUserSessions = staticmethod(_znc_core.CWebSock_FinishUserSessions) CWebSock_swigregister = _znc_core.CWebSock_swigregister CWebSock_swigregister(CWebSock) def CWebSock_GetSkinPath(sSkinName: 'CString const &') -> "CString": return _znc_core.CWebSock_GetSkinPath(sSkinName) CWebSock_GetSkinPath = _znc_core.CWebSock_GetSkinPath def CWebSock_FinishUserSessions(User: 'CUser') -> "void": return _znc_core.CWebSock_FinishUserSessions(User) CWebSock_FinishUserSessions = _znc_core.CWebSock_FinishUserSessions class CZNC(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CZNC, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CZNC, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CZNC() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CZNC __del__ = lambda self: None ECONFIG_NOTHING = _znc_core.CZNC_ECONFIG_NOTHING ECONFIG_NEED_REHASH = _znc_core.CZNC_ECONFIG_NEED_REHASH ECONFIG_NEED_WRITE = _znc_core.CZNC_ECONFIG_NEED_WRITE ECONFIG_NEED_VERBOSE_WRITE = _znc_core.CZNC_ECONFIG_NEED_VERBOSE_WRITE def DeleteUsers(self) -> "void": return _znc_core.CZNC_DeleteUsers(self) def Loop(self) -> "void": return _znc_core.CZNC_Loop(self) def WritePidFile(self, iPid: 'int') -> "bool": return _znc_core.CZNC_WritePidFile(self, iPid) def DeletePidFile(self) -> "bool": return _znc_core.CZNC_DeletePidFile(self) def WaitForChildLock(self) -> "bool": return _znc_core.CZNC_WaitForChildLock(self) def IsHostAllowed(self, sHostMask: 'CString const &') -> "bool": return _znc_core.CZNC_IsHostAllowed(self, sHostMask) def AllowConnectionFrom(self, sIP: 'CString const &') -> "bool": return _znc_core.CZNC_AllowConnectionFrom(self, sIP) def InitDirs(self, sArgvPath: 'CString const &', sDataDir: 'CString const &') -> "void": return _znc_core.CZNC_InitDirs(self, sArgvPath, sDataDir) def OnBoot(self) -> "bool": return _znc_core.CZNC_OnBoot(self) def ExpandConfigPath(self, sConfigFile: 'CString const &', bAllowMkDir: 'bool'=True) -> "CString": return _znc_core.CZNC_ExpandConfigPath(self, sConfigFile, bAllowMkDir) def WriteNewConfig(self, sConfigFile: 'CString const &') -> "bool": return _znc_core.CZNC_WriteNewConfig(self, sConfigFile) def WriteConfig(self) -> "bool": return _znc_core.CZNC_WriteConfig(self) def ParseConfig(self, sConfig: 'CString const &', sError: 'CString &') -> "bool": return _znc_core.CZNC_ParseConfig(self, sConfig, sError) def RehashConfig(self, sError: 'CString &') -> "bool": return _znc_core.CZNC_RehashConfig(self, sError) def BackupConfigOnce(self, sSuffix: 'CString const &') -> "void": return _znc_core.CZNC_BackupConfigOnce(self, sSuffix) __swig_getmethods__["GetVersion"] = lambda x: _znc_core.CZNC_GetVersion if _newclass: GetVersion = staticmethod(_znc_core.CZNC_GetVersion) __swig_getmethods__["GetTag"] = lambda x: _znc_core.CZNC_GetTag if _newclass: GetTag = staticmethod(_znc_core.CZNC_GetTag) __swig_getmethods__["GetCompileOptionsString"] = lambda x: _znc_core.CZNC_GetCompileOptionsString if _newclass: GetCompileOptionsString = staticmethod(_znc_core.CZNC_GetCompileOptionsString) def GetUptime(self) -> "CString": return _znc_core.CZNC_GetUptime(self) def ClearBindHosts(self) -> "void": return _znc_core.CZNC_ClearBindHosts(self) def AddBindHost(self, sHost: 'CString const &') -> "bool": return _znc_core.CZNC_AddBindHost(self, sHost) def RemBindHost(self, sHost: 'CString const &') -> "bool": return _znc_core.CZNC_RemBindHost(self, sHost) def ClearTrustedProxies(self) -> "void": return _znc_core.CZNC_ClearTrustedProxies(self) def AddTrustedProxy(self, sHost: 'CString const &') -> "bool": return _znc_core.CZNC_AddTrustedProxy(self, sHost) def RemTrustedProxy(self, sHost: 'CString const &') -> "bool": return _znc_core.CZNC_RemTrustedProxy(self, sHost) def Broadcast(self, sMessage: 'CString const &', bAdminOnly: 'bool'=False, pSkipUser: 'CUser'=None, pSkipClient: 'CClient'=None) -> "void": return _znc_core.CZNC_Broadcast(self, sMessage, bAdminOnly, pSkipUser, pSkipClient) def AddBytesRead(self, u: 'unsigned long long') -> "void": return _znc_core.CZNC_AddBytesRead(self, u) def AddBytesWritten(self, u: 'unsigned long long') -> "void": return _znc_core.CZNC_AddBytesWritten(self, u) def BytesRead(self) -> "unsigned long long": return _znc_core.CZNC_BytesRead(self) def BytesWritten(self) -> "unsigned long long": return _znc_core.CZNC_BytesWritten(self) def GetTrafficStats(self, Users: 'CZNC::TrafficStatsPair &', ZNC: 'CZNC::TrafficStatsPair &', Total: 'CZNC::TrafficStatsPair &') -> "CZNC::TrafficStatsMap": return _znc_core.CZNC_GetTrafficStats(self, Users, ZNC, Total) def AuthUser(self, AuthClass: 'std::shared_ptr< CAuthBase >') -> "void": return _znc_core.CZNC_AuthUser(self, AuthClass) def SetConfigState(self, e: 'enum CZNC::ConfigState') -> "void": return _znc_core.CZNC_SetConfigState(self, e) def SetSkinName(self, s: 'CString const &') -> "void": return _znc_core.CZNC_SetSkinName(self, s) def SetStatusPrefix(self, s: 'CString const &') -> "void": return _znc_core.CZNC_SetStatusPrefix(self, s) def SetMaxBufferSize(self, i: 'unsigned int') -> "void": return _znc_core.CZNC_SetMaxBufferSize(self, i) def SetAnonIPLimit(self, i: 'unsigned int') -> "void": return _znc_core.CZNC_SetAnonIPLimit(self, i) def SetServerThrottle(self, i: 'unsigned int') -> "void": return _znc_core.CZNC_SetServerThrottle(self, i) def SetProtectWebSessions(self, b: 'bool') -> "void": return _znc_core.CZNC_SetProtectWebSessions(self, b) def SetHideVersion(self, b: 'bool') -> "void": return _znc_core.CZNC_SetHideVersion(self, b) def SetConnectDelay(self, i: 'unsigned int') -> "void": return _znc_core.CZNC_SetConnectDelay(self, i) def GetConfigState(self) -> "enum CZNC::ConfigState": return _znc_core.CZNC_GetConfigState(self) def GetManager(self, *args) -> "CSockManager const &": return _znc_core.CZNC_GetManager(self, *args) def GetModules(self) -> "CModules &": return _znc_core.CZNC_GetModules(self) def GetSkinName(self) -> "CString": return _znc_core.CZNC_GetSkinName(self) def GetStatusPrefix(self) -> "CString const &": return _znc_core.CZNC_GetStatusPrefix(self) def GetCurPath(self) -> "CString const &": return _znc_core.CZNC_GetCurPath(self) def GetHomePath(self) -> "CString const &": return _znc_core.CZNC_GetHomePath(self) def GetZNCPath(self) -> "CString const &": return _znc_core.CZNC_GetZNCPath(self) def GetConfPath(self, bAllowMkDir: 'bool'=True) -> "CString": return _znc_core.CZNC_GetConfPath(self, bAllowMkDir) def GetUserPath(self) -> "CString": return _znc_core.CZNC_GetUserPath(self) def GetModPath(self) -> "CString": return _znc_core.CZNC_GetModPath(self) def GetPemLocation(self) -> "CString": return _znc_core.CZNC_GetPemLocation(self) def GetConfigFile(self) -> "CString const &": return _znc_core.CZNC_GetConfigFile(self) def WritePemFile(self) -> "bool": return _znc_core.CZNC_WritePemFile(self) def GetBindHosts(self) -> "VCString const &": return _znc_core.CZNC_GetBindHosts(self) def GetTrustedProxies(self) -> "VCString const &": return _znc_core.CZNC_GetTrustedProxies(self) def GetListeners(self) -> "std::vector< CListener *,std::allocator< CListener * > > const &": return _znc_core.CZNC_GetListeners(self) def TimeStarted(self) -> "time_t": return _znc_core.CZNC_TimeStarted(self) def GetMaxBufferSize(self) -> "unsigned int": return _znc_core.CZNC_GetMaxBufferSize(self) def GetAnonIPLimit(self) -> "unsigned int": return _znc_core.CZNC_GetAnonIPLimit(self) def GetConnectDelay(self) -> "unsigned int": return _znc_core.CZNC_GetConnectDelay(self) def GetProtectWebSessions(self) -> "bool": return _znc_core.CZNC_GetProtectWebSessions(self) def GetHideVersion(self) -> "bool": return _znc_core.CZNC_GetHideVersion(self) def GetSSLCiphers(self) -> "CString": return _znc_core.CZNC_GetSSLCiphers(self) def GetDisabledSSLProtocols(self) -> "Csock::EDisableProtocol": return _znc_core.CZNC_GetDisabledSSLProtocols(self) __swig_getmethods__["CreateInstance"] = lambda x: _znc_core.CZNC_CreateInstance if _newclass: CreateInstance = staticmethod(_znc_core.CZNC_CreateInstance) __swig_getmethods__["Get"] = lambda x: _znc_core.CZNC_Get if _newclass: Get = staticmethod(_znc_core.CZNC_Get) __swig_getmethods__["DestroyInstance"] = lambda x: _znc_core.CZNC_DestroyInstance if _newclass: DestroyInstance = staticmethod(_znc_core.CZNC_DestroyInstance) def FindUser(self, sUsername: 'CString const &') -> "CUser *": return _znc_core.CZNC_FindUser(self, sUsername) def FindModule(self, *args) -> "CModule *": return _znc_core.CZNC_FindModule(self, *args) def UpdateModule(self, sModule: 'CString const &') -> "bool": return _znc_core.CZNC_UpdateModule(self, sModule) def DeleteUser(self, sUsername: 'CString const &') -> "bool": return _znc_core.CZNC_DeleteUser(self, sUsername) def AddUser(self, pUser: 'CUser', sErrorRet: 'CString &') -> "bool": return _znc_core.CZNC_AddUser(self, pUser, sErrorRet) def GetUserMap(self) -> "std::map< CString,CUser *,std::less< CString >,std::allocator< std::pair< CString const,CUser * > > > const &": return _znc_core.CZNC_GetUserMap(self) def FindListener(self, uPort: 'unsigned short', BindHost: 'CString const &', eAddr: 'EAddrType') -> "CListener *": return _znc_core.CZNC_FindListener(self, uPort, BindHost, eAddr) def AddListener(self, *args) -> "bool": return _znc_core.CZNC_AddListener(self, *args) def DelListener(self, arg2: 'CListener') -> "bool": return _znc_core.CZNC_DelListener(self, arg2) def SetMotd(self, sMessage: 'CString const &') -> "void": return _znc_core.CZNC_SetMotd(self, sMessage) def AddMotd(self, sMessage: 'CString const &') -> "void": return _znc_core.CZNC_AddMotd(self, sMessage) def ClearMotd(self) -> "void": return _znc_core.CZNC_ClearMotd(self) def GetMotd(self) -> "VCString const &": return _znc_core.CZNC_GetMotd(self) def AddServerThrottle(self, sName: 'CString') -> "void": return _znc_core.CZNC_AddServerThrottle(self, sName) def GetServerThrottle(self, *args) -> "bool": return _znc_core.CZNC_GetServerThrottle(self, *args) def AddNetworkToQueue(self, pNetwork: 'CIRCNetwork') -> "void": return _znc_core.CZNC_AddNetworkToQueue(self, pNetwork) def GetConnectionQueue(self) -> "std::list< CIRCNetwork *,std::allocator< CIRCNetwork * > > &": return _znc_core.CZNC_GetConnectionQueue(self) def EnableConnectQueue(self) -> "void": return _znc_core.CZNC_EnableConnectQueue(self) def DisableConnectQueue(self) -> "void": return _znc_core.CZNC_DisableConnectQueue(self) def PauseConnectQueue(self) -> "void": return _znc_core.CZNC_PauseConnectQueue(self) def ResumeConnectQueue(self) -> "void": return _znc_core.CZNC_ResumeConnectQueue(self) def LeakConnectQueueTimer(self, pTimer: 'CConnectQueueTimer *') -> "void": return _znc_core.CZNC_LeakConnectQueueTimer(self, pTimer) __swig_getmethods__["DumpConfig"] = lambda x: _znc_core.CZNC_DumpConfig if _newclass: DumpConfig = staticmethod(_znc_core.CZNC_DumpConfig) def GetUserMap_(self) -> "PyObject *": return _znc_core.CZNC_GetUserMap_(self) CZNC_swigregister = _znc_core.CZNC_swigregister CZNC_swigregister(CZNC) def CZNC_GetVersion() -> "CString": return _znc_core.CZNC_GetVersion() CZNC_GetVersion = _znc_core.CZNC_GetVersion def CZNC_GetTag(bIncludeVersion: 'bool'=True, bHTML: 'bool'=False) -> "CString": return _znc_core.CZNC_GetTag(bIncludeVersion, bHTML) CZNC_GetTag = _znc_core.CZNC_GetTag def CZNC_GetCompileOptionsString() -> "CString": return _znc_core.CZNC_GetCompileOptionsString() CZNC_GetCompileOptionsString = _znc_core.CZNC_GetCompileOptionsString def CZNC_CreateInstance() -> "void": return _znc_core.CZNC_CreateInstance() CZNC_CreateInstance = _znc_core.CZNC_CreateInstance def CZNC_Get() -> "CZNC &": return _znc_core.CZNC_Get() CZNC_Get = _znc_core.CZNC_Get def CZNC_DestroyInstance() -> "void": return _znc_core.CZNC_DestroyInstance() CZNC_DestroyInstance = _znc_core.CZNC_DestroyInstance def CZNC_DumpConfig(Config: 'CConfig') -> "void": return _znc_core.CZNC_DumpConfig(Config) CZNC_DumpConfig = _znc_core.CZNC_DumpConfig class CServer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CServer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CServer, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CServer(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CServer __del__ = lambda self: None def GetName(self) -> "CString const &": return _znc_core.CServer_GetName(self) def GetPort(self) -> "unsigned short": return _znc_core.CServer_GetPort(self) def GetPass(self) -> "CString const &": return _znc_core.CServer_GetPass(self) def IsSSL(self) -> "bool": return _znc_core.CServer_IsSSL(self) def GetString(self, bIncludePassword: 'bool'=True) -> "CString": return _znc_core.CServer_GetString(self, bIncludePassword) __swig_getmethods__["IsValidHostName"] = lambda x: _znc_core.CServer_IsValidHostName if _newclass: IsValidHostName = staticmethod(_znc_core.CServer_IsValidHostName) CServer_swigregister = _znc_core.CServer_swigregister CServer_swigregister(CServer) def CServer_IsValidHostName(sHostName: 'CString const &') -> "bool": return _znc_core.CServer_IsValidHostName(sHostName) CServer_IsValidHostName = _znc_core.CServer_IsValidHostName class CDebug(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CDebug, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CDebug, name) __repr__ = _swig_repr __swig_getmethods__["SetStdoutIsTTY"] = lambda x: _znc_core.CDebug_SetStdoutIsTTY if _newclass: SetStdoutIsTTY = staticmethod(_znc_core.CDebug_SetStdoutIsTTY) __swig_getmethods__["StdoutIsTTY"] = lambda x: _znc_core.CDebug_StdoutIsTTY if _newclass: StdoutIsTTY = staticmethod(_znc_core.CDebug_StdoutIsTTY) __swig_getmethods__["SetDebug"] = lambda x: _znc_core.CDebug_SetDebug if _newclass: SetDebug = staticmethod(_znc_core.CDebug_SetDebug) __swig_getmethods__["Debug"] = lambda x: _znc_core.CDebug_Debug if _newclass: Debug = staticmethod(_znc_core.CDebug_Debug) def __init__(self): this = _znc_core.new_CDebug() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CDebug __del__ = lambda self: None CDebug_swigregister = _znc_core.CDebug_swigregister CDebug_swigregister(CDebug) def CDebug_SetStdoutIsTTY(b: 'bool') -> "void": return _znc_core.CDebug_SetStdoutIsTTY(b) CDebug_SetStdoutIsTTY = _znc_core.CDebug_SetStdoutIsTTY def CDebug_StdoutIsTTY() -> "bool": return _znc_core.CDebug_StdoutIsTTY() CDebug_StdoutIsTTY = _znc_core.CDebug_StdoutIsTTY def CDebug_SetDebug(b: 'bool') -> "void": return _znc_core.CDebug_SetDebug(b) CDebug_SetDebug = _znc_core.CDebug_SetDebug def CDebug_Debug() -> "bool": return _znc_core.CDebug_Debug() CDebug_Debug = _znc_core.CDebug_Debug class CDebugStream(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CDebugStream, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CDebugStream, name) __repr__ = _swig_repr __swig_destroy__ = _znc_core.delete_CDebugStream __del__ = lambda self: None def __init__(self): this = _znc_core.new_CDebugStream() try: self.this.append(this) except: self.this = this CDebugStream_swigregister = _znc_core.CDebugStream_swigregister CDebugStream_swigregister(CDebugStream) class CExecSock(CZNCSock): __swig_setmethods__ = {} for _s in [CZNCSock]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CExecSock, name, value) __swig_getmethods__ = {} for _s in [CZNCSock]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CExecSock, name) __repr__ = _swig_repr def __init__(self): this = _znc_core.new_CExecSock() try: self.this.append(this) except: self.this = this def Execute(self, sExec: 'CString const &') -> "int": return _znc_core.CExecSock_Execute(self, sExec) def Kill(self, iSignal: 'int') -> "void": return _znc_core.CExecSock_Kill(self, iSignal) __swig_destroy__ = _znc_core.delete_CExecSock __del__ = lambda self: None def popen2(self, iReadFD: 'int &', iWriteFD: 'int &', sCommand: 'CString const &') -> "int": return _znc_core.CExecSock_popen2(self, iReadFD, iWriteFD, sCommand) def close2(self, iPid: 'int', iReadFD: 'int', iWriteFD: 'int') -> "void": return _znc_core.CExecSock_close2(self, iPid, iReadFD, iWriteFD) CExecSock_swigregister = _znc_core.CExecSock_swigregister CExecSock_swigregister(CExecSock) class CBufLine(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CBufLine, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CBufLine, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_CBufLine(*args) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CBufLine __del__ = lambda self: None def GetLine(self, Client: 'CClient', msParams: 'MCString') -> "CString": return _znc_core.CBufLine_GetLine(self, Client, msParams) def UpdateTime(self) -> "void": return _znc_core.CBufLine_UpdateTime(self) def SetFormat(self, sFormat: 'CString const &') -> "void": return _znc_core.CBufLine_SetFormat(self, sFormat) def SetText(self, sText: 'CString const &') -> "void": return _znc_core.CBufLine_SetText(self, sText) def SetTime(self, ts: 'timeval const &') -> "void": return _znc_core.CBufLine_SetTime(self, ts) def GetFormat(self) -> "CString const &": return _znc_core.CBufLine_GetFormat(self) def GetText(self) -> "CString const &": return _znc_core.CBufLine_GetText(self) def GetTime(self) -> "timeval": return _znc_core.CBufLine_GetTime(self) CBufLine_swigregister = _znc_core.CBufLine_swigregister CBufLine_swigregister(CBufLine) class CBuffer(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CBuffer, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CBuffer, name) __repr__ = _swig_repr def __init__(self, uLineCount: 'unsigned int'=100): this = _znc_core.new_CBuffer(uLineCount) try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_CBuffer __del__ = lambda self: None def AddLine(self, *args) -> "std::deque< CBufLine >::size_type": return _znc_core.CBuffer_AddLine(self, *args) def UpdateLine(self, *args) -> "std::deque< CBufLine >::size_type": return _znc_core.CBuffer_UpdateLine(self, *args) def UpdateExactLine(self, *args) -> "std::deque< CBufLine >::size_type": return _znc_core.CBuffer_UpdateExactLine(self, *args) def GetBufLine(self, uIdx: 'unsigned int') -> "CBufLine const &": return _znc_core.CBuffer_GetBufLine(self, uIdx) def GetLine(self, *args) -> "CString": return _znc_core.CBuffer_GetLine(self, *args) def Size(self) -> "std::deque< CBufLine >::size_type": return _znc_core.CBuffer_Size(self) def IsEmpty(self) -> "bool": return _znc_core.CBuffer_IsEmpty(self) def Clear(self) -> "void": return _znc_core.CBuffer_Clear(self) def SetLineCount(self, u: 'unsigned int', bForce: 'bool'=False) -> "bool": return _znc_core.CBuffer_SetLineCount(self, u, bForce) def GetLineCount(self) -> "unsigned int": return _znc_core.CBuffer_GetLineCount(self) CBuffer_swigregister = _znc_core.CBuffer_swigregister CBuffer_swigregister(CBuffer) class String(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, String, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, String, name) __repr__ = _swig_repr __swig_setmethods__["s"] = _znc_core.String_s_set __swig_getmethods__["s"] = _znc_core.String_s_get if _newclass: s = _swig_property(_znc_core.String_s_get, _znc_core.String_s_set) def __str__(self) -> "CString": return _znc_core.String___str__(self) def __init__(self): this = _znc_core.new_String() try: self.this.append(this) except: self.this = this __swig_destroy__ = _znc_core.delete_String __del__ = lambda self: None String_swigregister = _znc_core.String_swigregister String_swigregister(String) class CPyModule(CModule): __swig_setmethods__ = {} for _s in [CModule]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CPyModule, name, value) __swig_getmethods__ = {} for _s in [CModule]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CPyModule, name) __repr__ = _swig_repr def __init__(self, pUser: 'CUser', pNetwork: 'CIRCNetwork', sModName: 'CString const &', sDataPath: 'CString const &', pyObj: 'PyObject *', pModPython: 'CModPython'): this = _znc_core.new_CPyModule(pUser, pNetwork, sModName, sDataPath, pyObj, pModPython) try: self.this.append(this) except: self.this = this def GetPyObj(self) -> "PyObject *": return _znc_core.CPyModule_GetPyObj(self) def GetNewPyObj(self) -> "PyObject *": return _znc_core.CPyModule_GetNewPyObj(self) def DeletePyModule(self) -> "void": return _znc_core.CPyModule_DeletePyModule(self) def GetPyExceptionStr(self) -> "CString": return _znc_core.CPyModule_GetPyExceptionStr(self) def GetModPython(self) -> "CModPython *": return _znc_core.CPyModule_GetModPython(self) def OnBoot(self) -> "bool": return _znc_core.CPyModule_OnBoot(self) def WebRequiresLogin(self) -> "bool": return _znc_core.CPyModule_WebRequiresLogin(self) def WebRequiresAdmin(self) -> "bool": return _znc_core.CPyModule_WebRequiresAdmin(self) def GetWebMenuTitle(self) -> "CString": return _znc_core.CPyModule_GetWebMenuTitle(self) def OnWebPreRequest(self, WebSock: 'CWebSock', sPageName: 'CString const &') -> "bool": return _znc_core.CPyModule_OnWebPreRequest(self, WebSock, sPageName) def OnWebRequest(self, WebSock: 'CWebSock', sPageName: 'CString const &', Tmpl: 'CTemplate') -> "bool": return _znc_core.CPyModule_OnWebRequest(self, WebSock, sPageName, Tmpl) def GetSubPages(self) -> "VWebSubPages &": return _znc_core.CPyModule_GetSubPages(self) def OnPreRehash(self) -> "void": return _znc_core.CPyModule_OnPreRehash(self) def OnPostRehash(self) -> "void": return _znc_core.CPyModule_OnPostRehash(self) def OnIRCDisconnected(self) -> "void": return _znc_core.CPyModule_OnIRCDisconnected(self) def OnIRCConnected(self) -> "void": return _znc_core.CPyModule_OnIRCConnected(self) def OnIRCConnecting(self, pIRCSock: 'CIRCSock') -> "CModule::EModRet": return _znc_core.CPyModule_OnIRCConnecting(self, pIRCSock) def OnIRCConnectionError(self, pIRCSock: 'CIRCSock') -> "void": return _znc_core.CPyModule_OnIRCConnectionError(self, pIRCSock) def OnIRCRegistration(self, sPass: 'CString &', sNick: 'CString &', sIdent: 'CString &', sRealName: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnIRCRegistration(self, sPass, sNick, sIdent, sRealName) def OnBroadcast(self, sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnBroadcast(self, sMessage) def OnChanPermission2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', uMode: 'unsigned char', bAdded: 'bool', bNoChange: 'bool') -> "void": return _znc_core.CPyModule_OnChanPermission2(self, pOpNick, Nick, Channel, uMode, bAdded, bNoChange) def OnOp2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CPyModule_OnOp2(self, pOpNick, Nick, Channel, bNoChange) def OnDeop2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CPyModule_OnDeop2(self, pOpNick, Nick, Channel, bNoChange) def OnVoice2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CPyModule_OnVoice2(self, pOpNick, Nick, Channel, bNoChange) def OnDevoice2(self, pOpNick: 'CNick', Nick: 'CNick', Channel: 'CChan', bNoChange: 'bool') -> "void": return _znc_core.CPyModule_OnDevoice2(self, pOpNick, Nick, Channel, bNoChange) def OnMode2(self, pOpNick: 'CNick', Channel: 'CChan', uMode: 'char', sArg: 'CString const &', bAdded: 'bool', bNoChange: 'bool') -> "void": return _znc_core.CPyModule_OnMode2(self, pOpNick, Channel, uMode, sArg, bAdded, bNoChange) def OnRawMode2(self, pOpNick: 'CNick', Channel: 'CChan', sModes: 'CString const &', sArgs: 'CString const &') -> "void": return _znc_core.CPyModule_OnRawMode2(self, pOpNick, Channel, sModes, sArgs) def OnRaw(self, sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnRaw(self, sLine) def OnStatusCommand(self, sCommand: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnStatusCommand(self, sCommand) def OnModCommand(self, sCommand: 'CString const &') -> "void": return _znc_core.CPyModule_OnModCommand(self, sCommand) def OnModNotice(self, sMessage: 'CString const &') -> "void": return _znc_core.CPyModule_OnModNotice(self, sMessage) def OnModCTCP(self, sMessage: 'CString const &') -> "void": return _znc_core.CPyModule_OnModCTCP(self, sMessage) def OnQuit(self, Nick: 'CNick', sMessage: 'CString const &', vChans: 'VChannels') -> "void": return _znc_core.CPyModule_OnQuit(self, Nick, sMessage, vChans) def OnNick(self, Nick: 'CNick', sNewNick: 'CString const &', vChans: 'VChannels') -> "void": return _znc_core.CPyModule_OnNick(self, Nick, sNewNick, vChans) def OnKick(self, OpNick: 'CNick', sKickedNick: 'CString const &', Channel: 'CChan', sMessage: 'CString const &') -> "void": return _znc_core.CPyModule_OnKick(self, OpNick, sKickedNick, Channel, sMessage) def OnJoining(self, Channel: 'CChan') -> "CModule::EModRet": return _znc_core.CPyModule_OnJoining(self, Channel) def OnJoin(self, Nick: 'CNick', Channel: 'CChan') -> "void": return _znc_core.CPyModule_OnJoin(self, Nick, Channel) def OnPart(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString const &') -> "void": return _znc_core.CPyModule_OnPart(self, Nick, Channel, sMessage) def OnChanBufferStarting(self, Chan: 'CChan', Client: 'CClient') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanBufferStarting(self, Chan, Client) def OnChanBufferEnding(self, Chan: 'CChan', Client: 'CClient') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanBufferEnding(self, Chan, Client) def OnChanBufferPlayLine(self, Chan: 'CChan', Client: 'CClient', sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanBufferPlayLine(self, Chan, Client, sLine) def OnPrivBufferPlayLine(self, Client: 'CClient', sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnPrivBufferPlayLine(self, Client, sLine) def OnClientLogin(self) -> "void": return _znc_core.CPyModule_OnClientLogin(self) def OnClientDisconnect(self) -> "void": return _znc_core.CPyModule_OnClientDisconnect(self) def OnUserRaw(self, sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserRaw(self, sLine) def OnUserCTCPReply(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserCTCPReply(self, sTarget, sMessage) def OnUserCTCP(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserCTCP(self, sTarget, sMessage) def OnUserAction(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserAction(self, sTarget, sMessage) def OnUserMsg(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserMsg(self, sTarget, sMessage) def OnUserNotice(self, sTarget: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserNotice(self, sTarget, sMessage) def OnUserJoin(self, sChannel: 'CString &', sKey: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserJoin(self, sChannel, sKey) def OnUserPart(self, sChannel: 'CString &', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserPart(self, sChannel, sMessage) def OnUserTopic(self, sChannel: 'CString &', sTopic: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserTopic(self, sChannel, sTopic) def OnUserTopicRequest(self, sChannel: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUserTopicRequest(self, sChannel) def OnCTCPReply(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnCTCPReply(self, Nick, sMessage) def OnPrivCTCP(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnPrivCTCP(self, Nick, sMessage) def OnChanCTCP(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanCTCP(self, Nick, Channel, sMessage) def OnPrivAction(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnPrivAction(self, Nick, sMessage) def OnChanAction(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanAction(self, Nick, Channel, sMessage) def OnPrivMsg(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnPrivMsg(self, Nick, sMessage) def OnChanMsg(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanMsg(self, Nick, Channel, sMessage) def OnPrivNotice(self, Nick: 'CNick', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnPrivNotice(self, Nick, sMessage) def OnChanNotice(self, Nick: 'CNick', Channel: 'CChan', sMessage: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnChanNotice(self, Nick, Channel, sMessage) def OnTopic(self, Nick: 'CNick', Channel: 'CChan', sTopic: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnTopic(self, Nick, Channel, sTopic) def OnServerCapAvailable(self, sCap: 'CString const &') -> "bool": return _znc_core.CPyModule_OnServerCapAvailable(self, sCap) def OnServerCapResult(self, sCap: 'CString const &', bSuccess: 'bool') -> "void": return _znc_core.CPyModule_OnServerCapResult(self, sCap, bSuccess) def OnTimerAutoJoin(self, Channel: 'CChan') -> "CModule::EModRet": return _znc_core.CPyModule_OnTimerAutoJoin(self, Channel) def OnEmbeddedWebRequest(self, arg2: 'CWebSock', arg3: 'CString const &', arg4: 'CTemplate') -> "bool": return _znc_core.CPyModule_OnEmbeddedWebRequest(self, arg2, arg3, arg4) def OnAddNetwork(self, Network: 'CIRCNetwork', sErrorRet: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnAddNetwork(self, Network, sErrorRet) def OnDeleteNetwork(self, Network: 'CIRCNetwork') -> "CModule::EModRet": return _znc_core.CPyModule_OnDeleteNetwork(self, Network) def OnSendToClient(self, sLine: 'CString &', Client: 'CClient') -> "CModule::EModRet": return _znc_core.CPyModule_OnSendToClient(self, sLine, Client) def OnSendToIRC(self, sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnSendToIRC(self, sLine) def OnAddUser(self, User: 'CUser', sErrorRet: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnAddUser(self, User, sErrorRet) def OnDeleteUser(self, User: 'CUser') -> "CModule::EModRet": return _znc_core.CPyModule_OnDeleteUser(self, User) def OnClientConnect(self, pSock: 'CZNCSock', sHost: 'CString const &', uPort: 'unsigned short') -> "void": return _znc_core.CPyModule_OnClientConnect(self, pSock, sHost, uPort) def OnFailedLogin(self, sUsername: 'CString const &', sRemoteIP: 'CString const &') -> "void": return _znc_core.CPyModule_OnFailedLogin(self, sUsername, sRemoteIP) def OnUnknownUserRaw(self, pClient: 'CClient', sLine: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnUnknownUserRaw(self, pClient, sLine) def IsClientCapSupported(self, pClient: 'CClient', sCap: 'CString const &', bState: 'bool') -> "bool": return _znc_core.CPyModule_IsClientCapSupported(self, pClient, sCap, bState) def OnClientCapRequest(self, pClient: 'CClient', sCap: 'CString const &', bState: 'bool') -> "void": return _znc_core.CPyModule_OnClientCapRequest(self, pClient, sCap, bState) def OnModuleLoading(self, sModName: 'CString const &', sArgs: 'CString const &', eType: 'CModInfo::EModuleType', bSuccess: 'bool &', sRetMsg: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnModuleLoading(self, sModName, sArgs, eType, bSuccess, sRetMsg) def OnModuleUnloading(self, pModule: 'CModule', bSuccess: 'bool &', sRetMsg: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnModuleUnloading(self, pModule, bSuccess, sRetMsg) def OnGetModInfo(self, ModInfo: 'CModInfo', sModule: 'CString const &', bSuccess: 'bool &', sRetMsg: 'CString &') -> "CModule::EModRet": return _znc_core.CPyModule_OnGetModInfo(self, ModInfo, sModule, bSuccess, sRetMsg) def OnGetAvailableMods(self, ssMods: 'SModInfo', eType: 'CModInfo::EModuleType') -> "void": return _znc_core.CPyModule_OnGetAvailableMods(self, ssMods, eType) def OnClientCapLs(self, pClient: 'CClient', ssCaps: 'SCString') -> "void": return _znc_core.CPyModule_OnClientCapLs(self, pClient, ssCaps) def OnLoginAttempt(self, Auth: 'std::shared_ptr< CAuthBase >') -> "CModule::EModRet": return _znc_core.CPyModule_OnLoginAttempt(self, Auth) __swig_destroy__ = _znc_core.delete_CPyModule __del__ = lambda self: None CPyModule_swigregister = _znc_core.CPyModule_swigregister CPyModule_swigregister(CPyModule) def AsPyModule(p: 'CModule') -> "CPyModule *": return _znc_core.AsPyModule(p) AsPyModule = _znc_core.AsPyModule def CreatePyModule(pUser: 'CUser', pNetwork: 'CIRCNetwork', sModName: 'CString const &', sDataPath: 'CString const &', pyObj: 'PyObject *', pModPython: 'CModPython') -> "CPyModule *": return _znc_core.CreatePyModule(pUser, pNetwork, sModName, sDataPath, pyObj, pModPython) CreatePyModule = _znc_core.CreatePyModule class CPyTimer(CTimer): __swig_setmethods__ = {} for _s in [CTimer]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CPyTimer, name, value) __swig_getmethods__ = {} for _s in [CTimer]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CPyTimer, name) __repr__ = _swig_repr def __init__(self, pModule: 'CPyModule', uInterval: 'unsigned int', uCycles: 'unsigned int', sLabel: 'CString const &', sDescription: 'CString const &', pyObj: 'PyObject *'): this = _znc_core.new_CPyTimer(pModule, uInterval, uCycles, sLabel, sDescription, pyObj) try: self.this.append(this) except: self.this = this def RunJob(self) -> "void": return _znc_core.CPyTimer_RunJob(self) def GetPyObj(self) -> "PyObject *": return _znc_core.CPyTimer_GetPyObj(self) def GetNewPyObj(self) -> "PyObject *": return _znc_core.CPyTimer_GetNewPyObj(self) __swig_destroy__ = _znc_core.delete_CPyTimer __del__ = lambda self: None CPyTimer_swigregister = _znc_core.CPyTimer_swigregister CPyTimer_swigregister(CPyTimer) def CreatePyTimer(pModule: 'CPyModule', uInterval: 'unsigned int', uCycles: 'unsigned int', sLabel: 'CString const &', sDescription: 'CString const &', pyObj: 'PyObject *') -> "CPyTimer *": return _znc_core.CreatePyTimer(pModule, uInterval, uCycles, sLabel, sDescription, pyObj) CreatePyTimer = _znc_core.CreatePyTimer class CPySocket(CSocket): __swig_setmethods__ = {} for _s in [CSocket]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CPySocket, name, value) __swig_getmethods__ = {} for _s in [CSocket]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CPySocket, name) __repr__ = _swig_repr def __init__(self, pModule: 'CPyModule', pyObj: 'PyObject *'): this = _znc_core.new_CPySocket(pModule, pyObj) try: self.this.append(this) except: self.this = this def GetPyObj(self) -> "PyObject *": return _znc_core.CPySocket_GetPyObj(self) def GetNewPyObj(self) -> "PyObject *": return _znc_core.CPySocket_GetNewPyObj(self) __swig_destroy__ = _znc_core.delete_CPySocket __del__ = lambda self: None def Connected(self) -> "void": return _znc_core.CPySocket_Connected(self) def Disconnected(self) -> "void": return _znc_core.CPySocket_Disconnected(self) def Timeout(self) -> "void": return _znc_core.CPySocket_Timeout(self) def ConnectionRefused(self) -> "void": return _znc_core.CPySocket_ConnectionRefused(self) def ReadData(self, data: 'char const *', len: 'size_t') -> "void": return _znc_core.CPySocket_ReadData(self, data, len) def ReadLine(self, sLine: 'CString const &') -> "void": return _znc_core.CPySocket_ReadLine(self, sLine) def GetSockObj(self, sHost: 'CString const &', uPort: 'unsigned short') -> "Csock *": return _znc_core.CPySocket_GetSockObj(self, sHost, uPort) CPySocket_swigregister = _znc_core.CPySocket_swigregister CPySocket_swigregister(CPySocket) def CreatePySocket(pModule: 'CPyModule', pyObj: 'PyObject *') -> "CPySocket *": return _znc_core.CreatePySocket(pModule, pyObj) CreatePySocket = _znc_core.CreatePySocket def HaveIPv6_() -> "bool": return _znc_core.HaveIPv6_() HaveIPv6_ = _znc_core.HaveIPv6_ def HaveSSL_() -> "bool": return _znc_core.HaveSSL_() HaveSSL_ = _znc_core.HaveSSL_ def HaveCharset_() -> "bool": return _znc_core.HaveCharset_() HaveCharset_ = _znc_core.HaveCharset_ def GetSOMAXCONN() -> "int": return _znc_core.GetSOMAXCONN() GetSOMAXCONN = _znc_core.GetSOMAXCONN def GetVersionMajor() -> "int": return _znc_core.GetVersionMajor() GetVersionMajor = _znc_core.GetVersionMajor def GetVersionMinor() -> "int": return _znc_core.GetVersionMinor() GetVersionMinor = _znc_core.GetVersionMinor def GetVersion() -> "double": return _znc_core.GetVersion() GetVersion = _znc_core.GetVersion def GetVersionExtra() -> "CString": return _znc_core.GetVersionExtra() GetVersionExtra = _znc_core.GetVersionExtra class MCString_iter(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, MCString_iter, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, MCString_iter, name) __repr__ = _swig_repr __swig_setmethods__["x"] = _znc_core.MCString_iter_x_set __swig_getmethods__["x"] = _znc_core.MCString_iter_x_get if _newclass: x = _swig_property(_znc_core.MCString_iter_x_get, _znc_core.MCString_iter_x_set) def __init__(self, *args): this = _znc_core.new_MCString_iter(*args) try: self.this.append(this) except: self.this = this def plusplus(self) -> "void": return _znc_core.MCString_iter_plusplus(self) def get(self) -> "CString": return _znc_core.MCString_iter_get(self) def is_end(self, m: 'CModule') -> "bool": return _znc_core.MCString_iter_is_end(self, m) __swig_destroy__ = _znc_core.delete_MCString_iter __del__ = lambda self: None MCString_iter_swigregister = _znc_core.MCString_iter_swigregister MCString_iter_swigregister(MCString_iter) class CModulesIter(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CModulesIter, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CModulesIter, name) __repr__ = _swig_repr def __init__(self, pModules: 'CModules'): this = _znc_core.new_CModulesIter(pModules) try: self.this.append(this) except: self.this = this def plusplus(self) -> "void": return _znc_core.CModulesIter_plusplus(self) def get(self) -> "CModule const *": return _znc_core.CModulesIter_get(self) def is_end(self) -> "bool": return _znc_core.CModulesIter_is_end(self) __swig_setmethods__["m_pModules"] = _znc_core.CModulesIter_m_pModules_set __swig_getmethods__["m_pModules"] = _znc_core.CModulesIter_m_pModules_get if _newclass: m_pModules = _swig_property(_znc_core.CModulesIter_m_pModules_get, _znc_core.CModulesIter_m_pModules_set) __swig_setmethods__["m_it"] = _znc_core.CModulesIter_m_it_set __swig_getmethods__["m_it"] = _znc_core.CModulesIter_m_it_get if _newclass: m_it = _swig_property(_znc_core.CModulesIter_m_it_get, _znc_core.CModulesIter_m_it_set) __swig_destroy__ = _znc_core.delete_CModulesIter __del__ = lambda self: None CModulesIter_swigregister = _znc_core.CModulesIter_swigregister CModulesIter_swigregister(CModulesIter) class CPyRetString(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CPyRetString, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CPyRetString, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr __swig_setmethods__["s"] = _znc_core.CPyRetString_s_set __swig_getmethods__["s"] = _znc_core.CPyRetString_s_get if _newclass: s = _swig_property(_znc_core.CPyRetString_s_get, _znc_core.CPyRetString_s_set) def __str__(self) -> "CString": return _znc_core.CPyRetString___str__(self) __swig_destroy__ = _znc_core.delete_CPyRetString __del__ = lambda self: None CPyRetString_swigregister = _znc_core.CPyRetString_swigregister CPyRetString_swigregister(CPyRetString) class CPyRetBool(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, CPyRetBool, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, CPyRetBool, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr __swig_setmethods__["b"] = _znc_core.CPyRetBool_b_set __swig_getmethods__["b"] = _znc_core.CPyRetBool_b_get if _newclass: b = _swig_property(_znc_core.CPyRetBool_b_get, _znc_core.CPyRetBool_b_set) def __bool__(self) -> "bool": return _znc_core.CPyRetBool___bool__(self) __swig_destroy__ = _znc_core.delete_CPyRetBool __del__ = lambda self: None CPyRetBool_swigregister = _znc_core.CPyRetBool_swigregister CPyRetBool_swigregister(CPyRetBool) class CModPython(CModule): __swig_setmethods__ = {} for _s in [CModule]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, CModPython, name, value) __swig_getmethods__ = {} for _s in [CModule]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, CModPython, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") __repr__ = _swig_repr CModPython_swigregister = _znc_core.CModPython_swigregister CModPython_swigregister(CModPython) class StrPair(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, StrPair, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, StrPair, name) __repr__ = _swig_repr def __init__(self, *args): this = _znc_core.new_StrPair(*args) try: self.this.append(this) except: self.this = this __swig_setmethods__["first"] = _znc_core.StrPair_first_set __swig_getmethods__["first"] = _znc_core.StrPair_first_get if _newclass: first = _swig_property(_znc_core.StrPair_first_get, _znc_core.StrPair_first_set) __swig_setmethods__["second"] = _znc_core.StrPair_second_set __swig_getmethods__["second"] = _znc_core.StrPair_second_get if _newclass: second = _swig_property(_znc_core.StrPair_second_get, _znc_core.StrPair_second_set) def __len__(self): return 2 def __repr__(self): return str((self.first, self.second)) def __getitem__(self, index): if not (index % 2): return self.first else: return self.second def __setitem__(self, index, val): if not (index % 2): self.first = val else: self.second = val __swig_destroy__ = _znc_core.delete_StrPair __del__ = lambda self: None StrPair_swigregister = _znc_core.StrPair_swigregister StrPair_swigregister(StrPair) class VPair(collections.MutableSequence): __swig_setmethods__ = {} for _s in [collections.MutableSequence]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, VPair, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSequence]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, VPair, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VPair_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VPair___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VPair___bool__(self) def __len__(self) -> "std::vector< std::pair< CString,CString > >::size_type": return _znc_core.VPair___len__(self) def pop(self) -> "std::vector< std::pair< CString,CString > >::value_type": return _znc_core.VPair_pop(self) def __getslice__(self, i: 'std::vector< std::pair< CString,CString > >::difference_type', j: 'std::vector< std::pair< CString,CString > >::difference_type') -> "std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *": return _znc_core.VPair___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VPair___setslice__(self, *args) def __delslice__(self, i: 'std::vector< std::pair< CString,CString > >::difference_type', j: 'std::vector< std::pair< CString,CString > >::difference_type') -> "void": return _znc_core.VPair___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VPair___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::pair< CString,CString > >::value_type const &": return _znc_core.VPair___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VPair___setitem__(self, *args) def append(self, x: 'StrPair') -> "void": return _znc_core.VPair_append(self, x) def empty(self) -> "bool": return _znc_core.VPair_empty(self) def size(self) -> "std::vector< std::pair< CString,CString > >::size_type": return _znc_core.VPair_size(self) def clear(self) -> "void": return _znc_core.VPair_clear(self) def swap(self, v: 'VPair') -> "void": return _znc_core.VPair_swap(self, v) def get_allocator(self) -> "std::vector< std::pair< CString,CString > >::allocator_type": return _znc_core.VPair_get_allocator(self) def begin(self) -> "std::vector< std::pair< CString,CString > >::iterator": return _znc_core.VPair_begin(self) def end(self) -> "std::vector< std::pair< CString,CString > >::iterator": return _znc_core.VPair_end(self) def rbegin(self) -> "std::vector< std::pair< CString,CString > >::reverse_iterator": return _znc_core.VPair_rbegin(self) def rend(self) -> "std::vector< std::pair< CString,CString > >::reverse_iterator": return _znc_core.VPair_rend(self) def pop_back(self) -> "void": return _znc_core.VPair_pop_back(self) def erase(self, *args) -> "std::vector< std::pair< CString,CString > >::iterator": return _znc_core.VPair_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VPair(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'StrPair') -> "void": return _znc_core.VPair_push_back(self, x) def front(self) -> "std::vector< std::pair< CString,CString > >::value_type const &": return _znc_core.VPair_front(self) def back(self) -> "std::vector< std::pair< CString,CString > >::value_type const &": return _znc_core.VPair_back(self) def assign(self, n: 'std::vector< std::pair< CString,CString > >::size_type', x: 'StrPair') -> "void": return _znc_core.VPair_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VPair_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VPair_insert(self, *args) def reserve(self, n: 'std::vector< std::pair< CString,CString > >::size_type') -> "void": return _znc_core.VPair_reserve(self, n) def capacity(self) -> "std::vector< std::pair< CString,CString > >::size_type": return _znc_core.VPair_capacity(self) __swig_destroy__ = _znc_core.delete_VPair __del__ = lambda self: None VPair_swigregister = _znc_core.VPair_swigregister VPair_swigregister(VPair) class VWebSubPages(collections.MutableSequence): __swig_setmethods__ = {} for _s in [collections.MutableSequence]: __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {})) __setattr__ = lambda self, name, value: _swig_setattr(self, VWebSubPages, name, value) __swig_getmethods__ = {} for _s in [collections.MutableSequence]: __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {})) __getattr__ = lambda self, name: _swig_getattr(self, VWebSubPages, name) __repr__ = _swig_repr def iterator(self) -> "swig::SwigPyIterator *": return _znc_core.VWebSubPages_iterator(self) def __iter__(self): return self.iterator() def __nonzero__(self) -> "bool": return _znc_core.VWebSubPages___nonzero__(self) def __bool__(self) -> "bool": return _znc_core.VWebSubPages___bool__(self) def __len__(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::size_type": return _znc_core.VWebSubPages___len__(self) def pop(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::value_type": return _znc_core.VWebSubPages_pop(self) def __getslice__(self, i: 'std::vector< std::shared_ptr< CWebSubPage > >::difference_type', j: 'std::vector< std::shared_ptr< CWebSubPage > >::difference_type') -> "std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *": return _znc_core.VWebSubPages___getslice__(self, i, j) def __setslice__(self, *args) -> "void": return _znc_core.VWebSubPages___setslice__(self, *args) def __delslice__(self, i: 'std::vector< std::shared_ptr< CWebSubPage > >::difference_type', j: 'std::vector< std::shared_ptr< CWebSubPage > >::difference_type') -> "void": return _znc_core.VWebSubPages___delslice__(self, i, j) def __delitem__(self, *args) -> "void": return _znc_core.VWebSubPages___delitem__(self, *args) def __getitem__(self, *args) -> "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &": return _znc_core.VWebSubPages___getitem__(self, *args) def __setitem__(self, *args) -> "void": return _znc_core.VWebSubPages___setitem__(self, *args) def append(self, x: 'std::vector< std::shared_ptr< CWebSubPage > >::value_type const &') -> "void": return _znc_core.VWebSubPages_append(self, x) def empty(self) -> "bool": return _znc_core.VWebSubPages_empty(self) def size(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::size_type": return _znc_core.VWebSubPages_size(self) def clear(self) -> "void": return _znc_core.VWebSubPages_clear(self) def swap(self, v: 'VWebSubPages') -> "void": return _znc_core.VWebSubPages_swap(self, v) def get_allocator(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::allocator_type": return _znc_core.VWebSubPages_get_allocator(self) def begin(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::iterator": return _znc_core.VWebSubPages_begin(self) def end(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::iterator": return _znc_core.VWebSubPages_end(self) def rbegin(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::reverse_iterator": return _znc_core.VWebSubPages_rbegin(self) def rend(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::reverse_iterator": return _znc_core.VWebSubPages_rend(self) def pop_back(self) -> "void": return _znc_core.VWebSubPages_pop_back(self) def erase(self, *args) -> "std::vector< std::shared_ptr< CWebSubPage > >::iterator": return _znc_core.VWebSubPages_erase(self, *args) def __init__(self, *args): this = _znc_core.new_VWebSubPages(*args) try: self.this.append(this) except: self.this = this def push_back(self, x: 'std::vector< std::shared_ptr< CWebSubPage > >::value_type const &') -> "void": return _znc_core.VWebSubPages_push_back(self, x) def front(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &": return _znc_core.VWebSubPages_front(self) def back(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &": return _znc_core.VWebSubPages_back(self) def assign(self, n: 'std::vector< std::shared_ptr< CWebSubPage > >::size_type', x: 'std::vector< std::shared_ptr< CWebSubPage > >::value_type const &') -> "void": return _znc_core.VWebSubPages_assign(self, n, x) def resize(self, *args) -> "void": return _znc_core.VWebSubPages_resize(self, *args) def insert(self, *args) -> "void": return _znc_core.VWebSubPages_insert(self, *args) def reserve(self, n: 'std::vector< std::shared_ptr< CWebSubPage > >::size_type') -> "void": return _znc_core.VWebSubPages_reserve(self, n) def capacity(self) -> "std::vector< std::shared_ptr< CWebSubPage > >::size_type": return _znc_core.VWebSubPages_capacity(self) __swig_destroy__ = _znc_core.delete_VWebSubPages __del__ = lambda self: None VWebSubPages_swigregister = _znc_core.VWebSubPages_swigregister VWebSubPages_swigregister(VWebSubPages) def VPair_Add2Str_(arg1: 'VPair', a: 'CString const &', b: 'CString const &') -> "void": return _znc_core.VPair_Add2Str_(arg1, a, b) VPair_Add2Str_ = _znc_core.VPair_Add2Str_ def CreateWebSubPage_(sName: 'CString const &', sTitle: 'CString const &', vParams: 'VPair', uFlags: 'unsigned int') -> "TWebSubPage": return _znc_core.CreateWebSubPage_(sName, sTitle, vParams, uFlags) CreateWebSubPage_ = _znc_core.CreateWebSubPage_ # This file is compatible with both classic and new-style classes. znc-1.6.3/modules/modpython/modpython.i0000644000175000017500000002212212663147131020426 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ %module znc_core %{ #include #include "../include/znc/Utils.h" #include "../include/znc/Threads.h" #include "../include/znc/Config.h" #include "../include/znc/Socket.h" #include "../include/znc/Modules.h" #include "../include/znc/Nick.h" #include "../include/znc/Chan.h" #include "../include/znc/User.h" #include "../include/znc/IRCNetwork.h" #include "../include/znc/Client.h" #include "../include/znc/IRCSock.h" #include "../include/znc/Listener.h" #include "../include/znc/HTTPSock.h" #include "../include/znc/Template.h" #include "../include/znc/WebModules.h" #include "../include/znc/znc.h" #include "../include/znc/Server.h" #include "../include/znc/ZNCString.h" #include "../include/znc/FileUtils.h" #include "../include/znc/ZNCDebug.h" #include "../include/znc/ExecSock.h" #include "../include/znc/Buffer.h" #include "modpython/module.h" #include "modpython/ret.h" #define stat struct stat using std::allocator; %} %apply long { off_t }; %apply long { uint16_t }; %apply long { uint32_t }; %apply long { uint64_t }; // Just makes generated python code slightly more beautiful. %feature("python:defaultargs"); // Probably can be removed when swig is fixed to not produce bad code for some cases %feature("python:defaultargs", "0") CDir::MakeDir; // 0700 doesn't work in python3 %feature("python:defaultargs", "0") CUtils::GetNumInput; // SyntaxError: non-default argument follows default argument %feature("python:defaultargs", "0") CModules::GetAvailableMods; // NameError: name 'UserModule' is not defined %feature("python:defaultargs", "0") CModules::GetDefaultMods; // NameError: name 'UserModule' is not defined %begin %{ #include "znc/zncconfig.h" %} %include %include %include %include %include %include %include %shared_ptr(CAuthBase); %shared_ptr(CWebSession); %shared_ptr(CClientAuth); %include "modpython/cstring.i" %template(_stringlist) std::list; %typemap(out) CModules::ModDirList %{ $result = PyList_New($1.size()); if ($result) { for (size_t i = 0; !$1.empty(); $1.pop(), ++i) { PyList_SetItem($result, i, Py_BuildValue("ss", $1.front().first.c_str(), $1.front().second.c_str())); } } %} %template(VIRCNetworks) std::vector; %template(VChannels) std::vector; %template(MNicks) std::map; %template(SModInfo) std::set; %template(SCString) std::set; typedef std::set SCString; %template(VCString) std::vector; typedef std::vector VCString; %template(PyMCString) std::map; %template(PyMStringVString) std::map; class MCString : public std::map {}; %template(PyModulesVector) std::vector; %template(VListeners) std::vector; %template(BufLines) std::deque; %template(VVString) std::vector; %template(VClients) std::vector; %typemap(in) CString& { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr($input, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { $1 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument $argnum $1_name"); } } %typemap(out) CString&, CString* { if ($1) { $result = CPyRetString::wrap(*$1); } else { $result = Py_None; Py_INCREF(Py_None); } } %typemap(typecheck) CString&, CString* { String* p; $1 = SWIG_IsOK(SWIG_ConvertPtr($input, (void**)&p, SWIG_TypeQuery("String*"), 0)); } /*TODO %typemap(in) bool& to be able to call from python functions which get bool& */ %typemap(out) bool&, bool* { if ($1) { $result = CPyRetBool::wrap(*$1); } else { $result = Py_None; Py_INCREF(Py_None); } } #define u_short unsigned short #define u_int unsigned int #include "../include/znc/zncconfig.h" #include "../include/znc/ZNCString.h" %include "../include/znc/defines.h" %include "../include/znc/Utils.h" %include "../include/znc/Threads.h" %include "../include/znc/Config.h" %include "../include/znc/Csocket.h" %template(ZNCSocketManager) TSocketManager; %include "../include/znc/Socket.h" %include "../include/znc/FileUtils.h" %include "../include/znc/Modules.h" %include "../include/znc/Nick.h" %include "../include/znc/Chan.h" %include "../include/znc/User.h" %include "../include/znc/IRCNetwork.h" %include "../include/znc/Client.h" %include "../include/znc/IRCSock.h" %include "../include/znc/Listener.h" %include "../include/znc/HTTPSock.h" %include "../include/znc/Template.h" %include "../include/znc/WebModules.h" %include "../include/znc/znc.h" %include "../include/znc/Server.h" %include "../include/znc/ZNCDebug.h" %include "../include/znc/ExecSock.h" %include "../include/znc/Buffer.h" %include "modpython/module.h" /* Really it's CString& inside, but SWIG shouldn't know that :) */ class CPyRetString { CPyRetString(); public: CString s; }; %extend CPyRetString { CString __str__() { return $self->s; } }; %extend String { CString __str__() { return $self->s; } }; class CPyRetBool { CPyRetBool(); public: bool b; }; %extend CPyRetBool { bool __bool__() { return $self->b; } } %extend Csock { PyObject* WriteBytes(PyObject* data) { if (!PyBytes_Check(data)) { PyErr_SetString(PyExc_TypeError, "socket.WriteBytes needs bytes as argument"); return NULL; } char* buffer; Py_ssize_t length; if (-1 == PyBytes_AsStringAndSize(data, &buffer, &length)) { return NULL; } if ($self->Write(buffer, length)) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } } %extend CModule { CString __str__() { return $self->GetModName(); } MCString_iter BeginNV_() { return MCString_iter($self->BeginNV()); } bool ExistsNV(const CString& sName) { return $self->EndNV() != $self->FindNV(sName); } } %extend CModules { bool removeModule(CModule* p) { for (CModules::iterator i = $self->begin(); $self->end() != i; ++i) { if (*i == p) { $self->erase(i); return true; } } return false; } } %extend CUser { CString __str__() { return $self->GetUserName(); } CString __repr__() { return "GetUserName() + ">"; } std::vector GetNetworks_() { return $self->GetNetworks(); } }; %extend CIRCNetwork { CString __str__() { return $self->GetName(); } CString __repr__() { return "GetName() + ">"; } std::vector GetChans_() { return $self->GetChans(); } } %extend CChan { CString __str__() { return $self->GetName(); } CString __repr__() { return "GetName() + ">"; } std::map GetNicks_() { return $self->GetNicks(); } }; %extend CNick { CString __str__() { return $self->GetNick(); } CString __repr__() { return "GetHostMask() + ">"; } }; %extend CZNC { PyObject* GetUserMap_() { PyObject* result = PyDict_New(); auto user_type = SWIG_TypeQuery("CUser*"); for (const auto& p : $self->GetUserMap()) { PyObject* user = SWIG_NewInstanceObj(p.second, user_type, 0); PyDict_SetItemString(result, p.first.c_str(), user); Py_CLEAR(user); } return result; } }; /* To allow module-loaders to be written on python. * They can call CreatePyModule() to create CModule* object, but one of arguments to CreatePyModule() is "CModule* pModPython" * Pointer to modpython is already accessible to python modules as self.GetModPython(), but it's just a pointer to something, not to CModule*. * So make it known that CModPython is really a CModule. */ class CModPython : public CModule { private: CModPython(); CModPython(const CModPython&); ~CModPython(); }; /* Web */ %template(StrPair) std::pair; %template(VPair) std::vector >; typedef std::vector > VPair; %template(VWebSubPages) std::vector; %inline %{ void VPair_Add2Str_(VPair* self, const CString& a, const CString& b) { self->push_back(std::make_pair(a, b)); } %} %extend CTemplate { void set(const CString& key, const CString& value) { DEBUG("WARNING: modpython's CTemplate.set is deprecated and will be removed. Use normal dict's operations like Tmpl['foo'] = 'bar'"); (*$self)[key] = value; } } %inline %{ TWebSubPage CreateWebSubPage_(const CString& sName, const CString& sTitle, const VPair& vParams, unsigned int uFlags) { return std::make_shared(sName, sTitle, vParams, uFlags); } %} /* vim: set filetype=cpp: */ znc-1.6.3/modules/modpython/functions.cpp0000644000175000017500000051661112663147145020767 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Parts of SWIG are used here. */ /*************************************************************************** * This file is generated automatically using codegen.pl from functions.in * * Don't change it manually. * ***************************************************************************/ namespace { /* template struct pyobj_to_ptr { CString m_sType; SvToPtr(const CString& sType) { m_sType = sType; } bool operator()(PyObject* py, T** result) { T* x = nullptr; int res = SWIG_ConvertPtr(sv, (void**)&x, SWIG_TypeQuery(m_sType.c_str()), 0); if (SWIG_IsOK(res)) { *result = x; return true; } DEBUG("modpython: "); return false; } }; CModule::EModRet SvToEModRet(PyObject* py, CModule::EModRet* result) { long int x = PyLong_AsLong(); return static_cast(SvUV(sv)); }*/ inline swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } inline int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { #if PY_VERSION_HEX>=0x03000000 if (PyUnicode_Check(obj)) #else if (PyString_Check(obj)) #endif { char *cstr; Py_ssize_t len; #if PY_VERSION_HEX>=0x03000000 if (!alloc && cptr) { /* We can't allow converting without allocation, since the internal representation of string in Python 3 is UCS-2/UCS-4 but we require a UTF-8 representation. TODO(bhy) More detailed explanation */ return SWIG_RuntimeError; } obj = PyUnicode_AsUTF8String(obj); PyBytes_AsStringAndSize(obj, &cstr, &len); if(alloc) *alloc = SWIG_NEWOBJ; #else PyString_AsStringAndSize(obj, &cstr, &len); #endif if (cptr) { if (alloc) { /* In python the user should not be able to modify the inner string representation. To warranty that, if you define SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string buffer is always returned. The default behavior is just to return the pointer value, so, be careful. */ #if defined(SWIG_PYTHON_SAFE_CSTRINGS) if (*alloc != SWIG_OLDOBJ) #else if (*alloc == SWIG_NEWOBJ) #endif { *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); *alloc = SWIG_NEWOBJ; } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } else { #if PY_VERSION_HEX>=0x03000000 assert(0); /* Should never reach here in Python 3 */ #endif *cptr = SWIG_Python_str_AsChar(obj); } } if (psize) *psize = len + 1; #if PY_VERSION_HEX>=0x03000000 Py_XDECREF(obj); #endif return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *) vptr; if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } inline int SWIG_AsPtr_CString (PyObject * obj, CString **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new CString(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("CString" " *"); init = 1; } if (descriptor) { CString *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } } bool CPyModule::OnBoot() { PyObject* pyName = Py_BuildValue("s", "OnBoot"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBoot: can't convert string 'OnBoot' to PyObject: " << sPyErr); return true; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBoot failed: " << sPyErr); Py_CLEAR(pyName); return true; } Py_CLEAR(pyName); bool result; if (pyRes == Py_None) { result = true; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBoot was expected to return EModRet but: " << sPyErr); result = true; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } bool CPyModule::WebRequiresLogin() { PyObject* pyName = Py_BuildValue("s", "WebRequiresLogin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/WebRequiresLogin: can't convert string 'WebRequiresLogin' to PyObject: " << sPyErr); return true; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/WebRequiresLogin failed: " << sPyErr); Py_CLEAR(pyName); return true; } Py_CLEAR(pyName); bool result; if (pyRes == Py_None) { result = true; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/WebRequiresLogin was expected to return EModRet but: " << sPyErr); result = true; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } bool CPyModule::WebRequiresAdmin() { PyObject* pyName = Py_BuildValue("s", "WebRequiresAdmin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/WebRequiresAdmin: can't convert string 'WebRequiresAdmin' to PyObject: " << sPyErr); return false; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/WebRequiresAdmin failed: " << sPyErr); Py_CLEAR(pyName); return false; } Py_CLEAR(pyName); bool result; if (pyRes == Py_None) { result = false; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/WebRequiresAdmin was expected to return EModRet but: " << sPyErr); result = false; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } CString CPyModule::GetWebMenuTitle() { PyObject* pyName = Py_BuildValue("s", "GetWebMenuTitle"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/GetWebMenuTitle: can't convert string 'GetWebMenuTitle' to PyObject: " << sPyErr); return ""; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/GetWebMenuTitle failed: " << sPyErr); Py_CLEAR(pyName); return ""; } Py_CLEAR(pyName); CString result; if (pyRes == Py_None) { result = ""; } else { CString* p = nullptr; int res = SWIG_AsPtr_CString(pyRes, &p); if (!SWIG_IsOK(res)) { DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/GetWebMenuTitle was expected to return 'CString' but error=" << res); result = ""; } else if (!p) { DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/GetWebMenuTitle was expected to return 'CString' but returned nullptr"); result = ""; } else result = *p; if (SWIG_IsNewObj(res)) delete p; } Py_CLEAR(pyRes); return result; } bool CPyModule::OnWebPreRequest(CWebSock& WebSock, const CString& sPageName) { PyObject* pyName = Py_BuildValue("s", "OnWebPreRequest"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebPreRequest: can't convert string 'OnWebPreRequest' to PyObject: " << sPyErr); return false; } PyObject* pyArg_WebSock = SWIG_NewInstanceObj(const_cast(&WebSock), SWIG_TypeQuery("CWebSock*"), 0); if (!pyArg_WebSock) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebPreRequest: can't convert parameter 'WebSock' to PyObject: " << sPyErr); Py_CLEAR(pyName); return false; } PyObject* pyArg_sPageName = Py_BuildValue("s", sPageName.c_str()); if (!pyArg_sPageName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebPreRequest: can't convert parameter 'sPageName' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); return false; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_WebSock, pyArg_sPageName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebPreRequest failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); return false; } Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); bool result; if (pyRes == Py_None) { result = false; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebPreRequest was expected to return EModRet but: " << sPyErr); result = false; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } bool CPyModule::OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { PyObject* pyName = Py_BuildValue("s", "OnWebRequest"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebRequest: can't convert string 'OnWebRequest' to PyObject: " << sPyErr); return false; } PyObject* pyArg_WebSock = SWIG_NewInstanceObj(const_cast(&WebSock), SWIG_TypeQuery("CWebSock*"), 0); if (!pyArg_WebSock) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebRequest: can't convert parameter 'WebSock' to PyObject: " << sPyErr); Py_CLEAR(pyName); return false; } PyObject* pyArg_sPageName = Py_BuildValue("s", sPageName.c_str()); if (!pyArg_sPageName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebRequest: can't convert parameter 'sPageName' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); return false; } PyObject* pyArg_Tmpl = SWIG_NewInstanceObj(const_cast(&Tmpl), SWIG_TypeQuery("CTemplate*"), 0); if (!pyArg_Tmpl) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebRequest: can't convert parameter 'Tmpl' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); return false; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_WebSock, pyArg_sPageName, pyArg_Tmpl, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebRequest failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); Py_CLEAR(pyArg_Tmpl); return false; } Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); Py_CLEAR(pyArg_Tmpl); bool result; if (pyRes == Py_None) { result = false; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnWebRequest was expected to return EModRet but: " << sPyErr); result = false; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } VWebSubPages* CPyModule::_GetSubPages() { PyObject* pyName = Py_BuildValue("s", "_GetSubPages"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/_GetSubPages: can't convert string '_GetSubPages' to PyObject: " << sPyErr); return (VWebSubPages*)nullptr; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/_GetSubPages failed: " << sPyErr); Py_CLEAR(pyName); return (VWebSubPages*)nullptr; } Py_CLEAR(pyName); VWebSubPages* result; if (pyRes == Py_None) { result = (VWebSubPages*)nullptr; } else { int res = SWIG_ConvertPtr(pyRes, (void**)&result, SWIG_TypeQuery("VWebSubPages*"), 0); if (!SWIG_IsOK(res)) { DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/_GetSubPages was expected to return 'VWebSubPages*' but error=" << res); result = (VWebSubPages*)nullptr; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnPreRehash() { PyObject* pyName = Py_BuildValue("s", "OnPreRehash"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPreRehash: can't convert string 'OnPreRehash' to PyObject: " << sPyErr); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPreRehash failed: " << sPyErr); Py_CLEAR(pyName); return ; } Py_CLEAR(pyName); Py_CLEAR(pyRes); } void CPyModule::OnPostRehash() { PyObject* pyName = Py_BuildValue("s", "OnPostRehash"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPostRehash: can't convert string 'OnPostRehash' to PyObject: " << sPyErr); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPostRehash failed: " << sPyErr); Py_CLEAR(pyName); return ; } Py_CLEAR(pyName); Py_CLEAR(pyRes); } void CPyModule::OnIRCDisconnected() { PyObject* pyName = Py_BuildValue("s", "OnIRCDisconnected"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCDisconnected: can't convert string 'OnIRCDisconnected' to PyObject: " << sPyErr); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCDisconnected failed: " << sPyErr); Py_CLEAR(pyName); return ; } Py_CLEAR(pyName); Py_CLEAR(pyRes); } void CPyModule::OnIRCConnected() { PyObject* pyName = Py_BuildValue("s", "OnIRCConnected"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnected: can't convert string 'OnIRCConnected' to PyObject: " << sPyErr); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnected failed: " << sPyErr); Py_CLEAR(pyName); return ; } Py_CLEAR(pyName); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnIRCConnecting(CIRCSock *pIRCSock) { PyObject* pyName = Py_BuildValue("s", "OnIRCConnecting"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnecting: can't convert string 'OnIRCConnecting' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_pIRCSock = SWIG_NewInstanceObj(const_cast(pIRCSock), SWIG_TypeQuery("CIRCSock *"), 0); if (!pyArg_pIRCSock) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnecting: can't convert parameter 'pIRCSock' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pIRCSock, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnecting failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pIRCSock); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pIRCSock); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnecting was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnIRCConnectionError(CIRCSock *pIRCSock) { PyObject* pyName = Py_BuildValue("s", "OnIRCConnectionError"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnectionError: can't convert string 'OnIRCConnectionError' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pIRCSock = SWIG_NewInstanceObj(const_cast(pIRCSock), SWIG_TypeQuery("CIRCSock *"), 0); if (!pyArg_pIRCSock) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnectionError: can't convert parameter 'pIRCSock' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pIRCSock, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCConnectionError failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pIRCSock); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pIRCSock); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { PyObject* pyName = Py_BuildValue("s", "OnIRCRegistration"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration: can't convert string 'OnIRCRegistration' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sPass = CPyRetString::wrap(sPass); if (!pyArg_sPass) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration: can't convert parameter 'sPass' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sNick = CPyRetString::wrap(sNick); if (!pyArg_sNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration: can't convert parameter 'sNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sPass); return CONTINUE; } PyObject* pyArg_sIdent = CPyRetString::wrap(sIdent); if (!pyArg_sIdent) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration: can't convert parameter 'sIdent' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sPass); Py_CLEAR(pyArg_sNick); return CONTINUE; } PyObject* pyArg_sRealName = CPyRetString::wrap(sRealName); if (!pyArg_sRealName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration: can't convert parameter 'sRealName' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sPass); Py_CLEAR(pyArg_sNick); Py_CLEAR(pyArg_sIdent); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sPass, pyArg_sNick, pyArg_sIdent, pyArg_sRealName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sPass); Py_CLEAR(pyArg_sNick); Py_CLEAR(pyArg_sIdent); Py_CLEAR(pyArg_sRealName); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sPass); Py_CLEAR(pyArg_sNick); Py_CLEAR(pyArg_sIdent); Py_CLEAR(pyArg_sRealName); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnIRCRegistration was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnBroadcast(CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnBroadcast"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBroadcast: can't convert string 'OnBroadcast' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBroadcast: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBroadcast failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnBroadcast was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnChanPermission2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert string 'OnChanPermission2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_uMode = Py_BuildValue("B", uMode); if (!pyArg_uMode) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert parameter 'uMode' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyArg_bAdded = Py_BuildValue("l", (long int)bAdded); if (!pyArg_bAdded) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert parameter 'bAdded' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); return ; } PyObject* pyArg_bNoChange = Py_BuildValue("l", (long int)bNoChange); if (!pyArg_bNoChange) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_bAdded); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Nick, pyArg_Channel, pyArg_uMode, pyArg_bAdded, pyArg_bNoChange, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanPermission2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_bAdded); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_bAdded); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnOp2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp2: can't convert string 'OnOp2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp2: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_bNoChange = Py_BuildValue("l", (long int)bNoChange); if (!pyArg_bNoChange) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp2: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnOp2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnDeop2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop2: can't convert string 'OnDeop2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop2: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_bNoChange = Py_BuildValue("l", (long int)bNoChange); if (!pyArg_bNoChange) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop2: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeop2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnVoice2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice2: can't convert string 'OnVoice2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice2: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_bNoChange = Py_BuildValue("l", (long int)bNoChange); if (!pyArg_bNoChange) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice2: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnVoice2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnDevoice2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice2: can't convert string 'OnDevoice2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice2: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_bNoChange = Py_BuildValue("l", (long int)bNoChange); if (!pyArg_bNoChange) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice2: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Nick, pyArg_Channel, pyArg_bNoChange, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDevoice2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { PyObject* pyName = Py_BuildValue("s", "OnMode2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert string 'OnMode2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_uMode = Py_BuildValue("b", uMode); if (!pyArg_uMode) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert parameter 'uMode' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyArg_sArg = Py_BuildValue("s", sArg.c_str()); if (!pyArg_sArg) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert parameter 'sArg' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); return ; } PyObject* pyArg_bAdded = Py_BuildValue("l", (long int)bAdded); if (!pyArg_bAdded) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert parameter 'bAdded' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_sArg); return ; } PyObject* pyArg_bNoChange = Py_BuildValue("l", (long int)bNoChange); if (!pyArg_bNoChange) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2: can't convert parameter 'bNoChange' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_sArg); Py_CLEAR(pyArg_bAdded); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Channel, pyArg_uMode, pyArg_sArg, pyArg_bAdded, pyArg_bNoChange, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnMode2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_sArg); Py_CLEAR(pyArg_bAdded); Py_CLEAR(pyArg_bNoChange); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_uMode); Py_CLEAR(pyArg_sArg); Py_CLEAR(pyArg_bAdded); Py_CLEAR(pyArg_bNoChange); Py_CLEAR(pyRes); } void CPyModule::OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { PyObject* pyName = Py_BuildValue("s", "OnRawMode2"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode2: can't convert string 'OnRawMode2' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pOpNick = SWIG_NewInstanceObj(const_cast< CNick*>(pOpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_pOpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode2: can't convert parameter 'pOpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode2: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); return ; } PyObject* pyArg_sModes = Py_BuildValue("s", sModes.c_str()); if (!pyArg_sModes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode2: can't convert parameter 'sModes' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyArg_sArgs = Py_BuildValue("s", sArgs.c_str()); if (!pyArg_sArgs) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode2: can't convert parameter 'sArgs' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sModes); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pOpNick, pyArg_Channel, pyArg_sModes, pyArg_sArgs, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRawMode2 failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sModes); Py_CLEAR(pyArg_sArgs); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pOpNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sModes); Py_CLEAR(pyArg_sArgs); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnRaw(CString& sLine) { PyObject* pyName = Py_BuildValue("s", "OnRaw"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRaw: can't convert string 'OnRaw' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRaw: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sLine, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRaw failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnRaw was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnStatusCommand(CString& sCommand) { PyObject* pyName = Py_BuildValue("s", "OnStatusCommand"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnStatusCommand: can't convert string 'OnStatusCommand' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sCommand = CPyRetString::wrap(sCommand); if (!pyArg_sCommand) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnStatusCommand: can't convert parameter 'sCommand' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sCommand, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnStatusCommand failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sCommand); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sCommand); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnStatusCommand was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnModCommand(const CString& sCommand) { PyObject* pyName = Py_BuildValue("s", "OnModCommand"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModCommand: can't convert string 'OnModCommand' to PyObject: " << sPyErr); return ; } PyObject* pyArg_sCommand = Py_BuildValue("s", sCommand.c_str()); if (!pyArg_sCommand) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModCommand: can't convert parameter 'sCommand' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sCommand, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModCommand failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sCommand); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sCommand); Py_CLEAR(pyRes); } void CPyModule::OnModNotice(const CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnModNotice"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModNotice: can't convert string 'OnModNotice' to PyObject: " << sPyErr); return ; } PyObject* pyArg_sMessage = Py_BuildValue("s", sMessage.c_str()); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModNotice: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModNotice failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sMessage); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyRes); } void CPyModule::OnModCTCP(const CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnModCTCP"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModCTCP: can't convert string 'OnModCTCP' to PyObject: " << sPyErr); return ; } PyObject* pyArg_sMessage = Py_BuildValue("s", sMessage.c_str()); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModCTCP: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModCTCP failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sMessage); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyRes); } void CPyModule::OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { PyObject* pyName = Py_BuildValue("s", "OnQuit"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit: can't convert string 'OnQuit' to PyObject: " << sPyErr); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_sMessage = Py_BuildValue("s", sMessage.c_str()); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_vChans = PyList_New(0); if (!pyArg_vChans) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit: can't convert parameter 'vChans' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); return ; } for (vector::const_iterator i = vChans.begin(); i != vChans.end(); ++i) { PyObject* pyVecEl = SWIG_NewInstanceObj(*i, SWIG_TypeQuery("CChan*"), 0); if (!pyVecEl) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit: can't convert element of vector 'vChans' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyArg_vChans); return ; } if (PyList_Append(pyArg_vChans, pyVecEl)) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit: can't add element of vector 'vChans' to PyObject: " << sPyErr); Py_CLEAR(pyVecEl); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyArg_vChans); return ; } Py_CLEAR(pyVecEl); } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sMessage, pyArg_vChans, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnQuit failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyArg_vChans); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyArg_vChans); Py_CLEAR(pyRes); } void CPyModule::OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) { PyObject* pyName = Py_BuildValue("s", "OnNick"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick: can't convert string 'OnNick' to PyObject: " << sPyErr); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_sNewNick = Py_BuildValue("s", sNewNick.c_str()); if (!pyArg_sNewNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick: can't convert parameter 'sNewNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_vChans = PyList_New(0); if (!pyArg_vChans) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick: can't convert parameter 'vChans' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sNewNick); return ; } for (vector::const_iterator i = vChans.begin(); i != vChans.end(); ++i) { PyObject* pyVecEl = SWIG_NewInstanceObj(*i, SWIG_TypeQuery("CChan*"), 0); if (!pyVecEl) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick: can't convert element of vector 'vChans' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sNewNick); Py_CLEAR(pyArg_vChans); return ; } if (PyList_Append(pyArg_vChans, pyVecEl)) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick: can't add element of vector 'vChans' to PyObject: " << sPyErr); Py_CLEAR(pyVecEl); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sNewNick); Py_CLEAR(pyArg_vChans); return ; } Py_CLEAR(pyVecEl); } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sNewNick, pyArg_vChans, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnNick failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sNewNick); Py_CLEAR(pyArg_vChans); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sNewNick); Py_CLEAR(pyArg_vChans); Py_CLEAR(pyRes); } void CPyModule::OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnKick"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnKick: can't convert string 'OnKick' to PyObject: " << sPyErr); return ; } PyObject* pyArg_OpNick = SWIG_NewInstanceObj(const_cast< CNick*>(&OpNick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_OpNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnKick: can't convert parameter 'OpNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_sKickedNick = Py_BuildValue("s", sKickedNick.c_str()); if (!pyArg_sKickedNick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnKick: can't convert parameter 'sKickedNick' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnKick: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_sKickedNick); return ; } PyObject* pyArg_sMessage = Py_BuildValue("s", sMessage.c_str()); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnKick: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_sKickedNick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_OpNick, pyArg_sKickedNick, pyArg_Channel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnKick failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_sKickedNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_OpNick); Py_CLEAR(pyArg_sKickedNick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnJoining(CChan& Channel) { PyObject* pyName = Py_BuildValue("s", "OnJoining"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoining: can't convert string 'OnJoining' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoining: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Channel, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoining failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Channel); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Channel); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoining was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnJoin(const CNick& Nick, CChan& Channel) { PyObject* pyName = Py_BuildValue("s", "OnJoin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoin: can't convert string 'OnJoin' to PyObject: " << sPyErr); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoin: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoin: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnJoin failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyRes); } void CPyModule::OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnPart"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPart: can't convert string 'OnPart' to PyObject: " << sPyErr); return ; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast< CNick*>(&Nick), SWIG_TypeQuery(" CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPart: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPart: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return ; } PyObject* pyArg_sMessage = Py_BuildValue("s", sMessage.c_str()); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPart: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPart failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnChanBufferStarting(CChan& Chan, CClient& Client) { PyObject* pyName = Py_BuildValue("s", "OnChanBufferStarting"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferStarting: can't convert string 'OnChanBufferStarting' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Chan = SWIG_NewInstanceObj(const_cast(&Chan), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Chan) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferStarting: can't convert parameter 'Chan' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Client = SWIG_NewInstanceObj(const_cast(&Client), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_Client) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferStarting: can't convert parameter 'Client' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Chan, pyArg_Client, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferStarting failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferStarting was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnChanBufferEnding(CChan& Chan, CClient& Client) { PyObject* pyName = Py_BuildValue("s", "OnChanBufferEnding"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferEnding: can't convert string 'OnChanBufferEnding' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Chan = SWIG_NewInstanceObj(const_cast(&Chan), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Chan) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferEnding: can't convert parameter 'Chan' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Client = SWIG_NewInstanceObj(const_cast(&Client), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_Client) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferEnding: can't convert parameter 'Client' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Chan, pyArg_Client, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferEnding failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferEnding was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) { PyObject* pyName = Py_BuildValue("s", "OnChanBufferPlayLine"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferPlayLine: can't convert string 'OnChanBufferPlayLine' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Chan = SWIG_NewInstanceObj(const_cast(&Chan), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Chan) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferPlayLine: can't convert parameter 'Chan' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Client = SWIG_NewInstanceObj(const_cast(&Client), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_Client) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferPlayLine: can't convert parameter 'Client' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferPlayLine: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Chan, pyArg_Client, pyArg_sLine, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferPlayLine failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); Py_CLEAR(pyArg_sLine); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Chan); Py_CLEAR(pyArg_Client); Py_CLEAR(pyArg_sLine); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanBufferPlayLine was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnPrivBufferPlayLine(CClient& Client, CString& sLine) { PyObject* pyName = Py_BuildValue("s", "OnPrivBufferPlayLine"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivBufferPlayLine: can't convert string 'OnPrivBufferPlayLine' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Client = SWIG_NewInstanceObj(const_cast(&Client), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_Client) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivBufferPlayLine: can't convert parameter 'Client' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivBufferPlayLine: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Client); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Client, pyArg_sLine, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivBufferPlayLine failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Client); Py_CLEAR(pyArg_sLine); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Client); Py_CLEAR(pyArg_sLine); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivBufferPlayLine was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnClientLogin() { PyObject* pyName = Py_BuildValue("s", "OnClientLogin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientLogin: can't convert string 'OnClientLogin' to PyObject: " << sPyErr); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientLogin failed: " << sPyErr); Py_CLEAR(pyName); return ; } Py_CLEAR(pyName); Py_CLEAR(pyRes); } void CPyModule::OnClientDisconnect() { PyObject* pyName = Py_BuildValue("s", "OnClientDisconnect"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientDisconnect: can't convert string 'OnClientDisconnect' to PyObject: " << sPyErr); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientDisconnect failed: " << sPyErr); Py_CLEAR(pyName); return ; } Py_CLEAR(pyName); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnUserRaw(CString& sLine) { PyObject* pyName = Py_BuildValue("s", "OnUserRaw"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserRaw: can't convert string 'OnUserRaw' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserRaw: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sLine, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserRaw failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserRaw was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserCTCPReply(CString& sTarget, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnUserCTCPReply"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCPReply: can't convert string 'OnUserCTCPReply' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sTarget = CPyRetString::wrap(sTarget); if (!pyArg_sTarget) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCPReply: can't convert parameter 'sTarget' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCPReply: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sTarget, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCPReply failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCPReply was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserCTCP(CString& sTarget, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnUserCTCP"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCP: can't convert string 'OnUserCTCP' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sTarget = CPyRetString::wrap(sTarget); if (!pyArg_sTarget) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCP: can't convert parameter 'sTarget' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCP: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sTarget, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCP failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserCTCP was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserAction(CString& sTarget, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnUserAction"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserAction: can't convert string 'OnUserAction' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sTarget = CPyRetString::wrap(sTarget); if (!pyArg_sTarget) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserAction: can't convert parameter 'sTarget' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserAction: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sTarget, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserAction failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserAction was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserMsg(CString& sTarget, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnUserMsg"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserMsg: can't convert string 'OnUserMsg' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sTarget = CPyRetString::wrap(sTarget); if (!pyArg_sTarget) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserMsg: can't convert parameter 'sTarget' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserMsg: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sTarget, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserMsg failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserMsg was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserNotice(CString& sTarget, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnUserNotice"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserNotice: can't convert string 'OnUserNotice' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sTarget = CPyRetString::wrap(sTarget); if (!pyArg_sTarget) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserNotice: can't convert parameter 'sTarget' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserNotice: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sTarget, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserNotice failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sTarget); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserNotice was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserJoin(CString& sChannel, CString& sKey) { PyObject* pyName = Py_BuildValue("s", "OnUserJoin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserJoin: can't convert string 'OnUserJoin' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sChannel = CPyRetString::wrap(sChannel); if (!pyArg_sChannel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserJoin: can't convert parameter 'sChannel' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sKey = CPyRetString::wrap(sKey); if (!pyArg_sKey) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserJoin: can't convert parameter 'sKey' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sChannel, pyArg_sKey, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserJoin failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); Py_CLEAR(pyArg_sKey); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); Py_CLEAR(pyArg_sKey); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserJoin was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserPart(CString& sChannel, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnUserPart"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserPart: can't convert string 'OnUserPart' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sChannel = CPyRetString::wrap(sChannel); if (!pyArg_sChannel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserPart: can't convert parameter 'sChannel' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserPart: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sChannel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserPart failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserPart was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserTopic(CString& sChannel, CString& sTopic) { PyObject* pyName = Py_BuildValue("s", "OnUserTopic"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopic: can't convert string 'OnUserTopic' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sChannel = CPyRetString::wrap(sChannel); if (!pyArg_sChannel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopic: can't convert parameter 'sChannel' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sTopic = CPyRetString::wrap(sTopic); if (!pyArg_sTopic) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopic: can't convert parameter 'sTopic' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sChannel, pyArg_sTopic, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopic failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); Py_CLEAR(pyArg_sTopic); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); Py_CLEAR(pyArg_sTopic); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopic was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnUserTopicRequest(CString& sChannel) { PyObject* pyName = Py_BuildValue("s", "OnUserTopicRequest"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopicRequest: can't convert string 'OnUserTopicRequest' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sChannel = CPyRetString::wrap(sChannel); if (!pyArg_sChannel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopicRequest: can't convert parameter 'sChannel' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sChannel, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopicRequest failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sChannel); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUserTopicRequest was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnCTCPReply(CNick& Nick, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnCTCPReply"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnCTCPReply: can't convert string 'OnCTCPReply' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnCTCPReply: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnCTCPReply: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnCTCPReply failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnCTCPReply was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnPrivCTCP(CNick& Nick, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnPrivCTCP"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivCTCP: can't convert string 'OnPrivCTCP' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivCTCP: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivCTCP: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivCTCP failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivCTCP was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnChanCTCP"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanCTCP: can't convert string 'OnChanCTCP' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanCTCP: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanCTCP: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanCTCP: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanCTCP failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanCTCP was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnPrivAction(CNick& Nick, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnPrivAction"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivAction: can't convert string 'OnPrivAction' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivAction: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivAction: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivAction failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivAction was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnChanAction"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanAction: can't convert string 'OnChanAction' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanAction: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanAction: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanAction: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanAction failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanAction was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnPrivMsg(CNick& Nick, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnPrivMsg"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivMsg: can't convert string 'OnPrivMsg' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivMsg: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivMsg: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivMsg failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivMsg was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnChanMsg"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanMsg: can't convert string 'OnChanMsg' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanMsg: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanMsg: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanMsg: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanMsg failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanMsg was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnPrivNotice(CNick& Nick, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnPrivNotice"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivNotice: can't convert string 'OnPrivNotice' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivNotice: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivNotice: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivNotice failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnPrivNotice was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { PyObject* pyName = Py_BuildValue("s", "OnChanNotice"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanNotice: can't convert string 'OnChanNotice' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanNotice: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanNotice: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyArg_sMessage = CPyRetString::wrap(sMessage); if (!pyArg_sMessage) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanNotice: can't convert parameter 'sMessage' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, pyArg_sMessage, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanNotice failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sMessage); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnChanNotice was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { PyObject* pyName = Py_BuildValue("s", "OnTopic"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTopic: can't convert string 'OnTopic' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Nick = SWIG_NewInstanceObj(const_cast(&Nick), SWIG_TypeQuery("CNick*"), 0); if (!pyArg_Nick) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTopic: can't convert parameter 'Nick' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTopic: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); return CONTINUE; } PyObject* pyArg_sTopic = CPyRetString::wrap(sTopic); if (!pyArg_sTopic) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTopic: can't convert parameter 'sTopic' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Nick, pyArg_Channel, pyArg_sTopic, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTopic failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sTopic); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Nick); Py_CLEAR(pyArg_Channel); Py_CLEAR(pyArg_sTopic); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTopic was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } bool CPyModule::OnServerCapAvailable(const CString& sCap) { PyObject* pyName = Py_BuildValue("s", "OnServerCapAvailable"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapAvailable: can't convert string 'OnServerCapAvailable' to PyObject: " << sPyErr); return false; } PyObject* pyArg_sCap = Py_BuildValue("s", sCap.c_str()); if (!pyArg_sCap) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapAvailable: can't convert parameter 'sCap' to PyObject: " << sPyErr); Py_CLEAR(pyName); return false; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sCap, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapAvailable failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sCap); return false; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sCap); bool result; if (pyRes == Py_None) { result = false; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapAvailable was expected to return EModRet but: " << sPyErr); result = false; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } void CPyModule::OnServerCapResult(const CString& sCap, bool bSuccess) { PyObject* pyName = Py_BuildValue("s", "OnServerCapResult"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapResult: can't convert string 'OnServerCapResult' to PyObject: " << sPyErr); return ; } PyObject* pyArg_sCap = Py_BuildValue("s", sCap.c_str()); if (!pyArg_sCap) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapResult: can't convert parameter 'sCap' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_bSuccess = Py_BuildValue("l", (long int)bSuccess); if (!pyArg_bSuccess) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapResult: can't convert parameter 'bSuccess' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sCap); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sCap, pyArg_bSuccess, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnServerCapResult failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sCap); Py_CLEAR(pyArg_bSuccess); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sCap); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnTimerAutoJoin(CChan& Channel) { PyObject* pyName = Py_BuildValue("s", "OnTimerAutoJoin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTimerAutoJoin: can't convert string 'OnTimerAutoJoin' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Channel = SWIG_NewInstanceObj(const_cast(&Channel), SWIG_TypeQuery("CChan*"), 0); if (!pyArg_Channel) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTimerAutoJoin: can't convert parameter 'Channel' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Channel, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTimerAutoJoin failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Channel); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Channel); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnTimerAutoJoin was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } bool CPyModule::OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { PyObject* pyName = Py_BuildValue("s", "OnEmbeddedWebRequest"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnEmbeddedWebRequest: can't convert string 'OnEmbeddedWebRequest' to PyObject: " << sPyErr); return false; } PyObject* pyArg_WebSock = SWIG_NewInstanceObj(const_cast(&WebSock), SWIG_TypeQuery("CWebSock*"), 0); if (!pyArg_WebSock) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnEmbeddedWebRequest: can't convert parameter 'WebSock' to PyObject: " << sPyErr); Py_CLEAR(pyName); return false; } PyObject* pyArg_sPageName = Py_BuildValue("s", sPageName.c_str()); if (!pyArg_sPageName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnEmbeddedWebRequest: can't convert parameter 'sPageName' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); return false; } PyObject* pyArg_Tmpl = SWIG_NewInstanceObj(const_cast(&Tmpl), SWIG_TypeQuery("CTemplate*"), 0); if (!pyArg_Tmpl) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnEmbeddedWebRequest: can't convert parameter 'Tmpl' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); return false; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_WebSock, pyArg_sPageName, pyArg_Tmpl, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnEmbeddedWebRequest failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); Py_CLEAR(pyArg_Tmpl); return false; } Py_CLEAR(pyName); Py_CLEAR(pyArg_WebSock); Py_CLEAR(pyArg_sPageName); Py_CLEAR(pyArg_Tmpl); bool result; if (pyRes == Py_None) { result = false; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnEmbeddedWebRequest was expected to return EModRet but: " << sPyErr); result = false; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) { PyObject* pyName = Py_BuildValue("s", "OnAddNetwork"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddNetwork: can't convert string 'OnAddNetwork' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Network = SWIG_NewInstanceObj(const_cast(&Network), SWIG_TypeQuery("CIRCNetwork*"), 0); if (!pyArg_Network) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddNetwork: can't convert parameter 'Network' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sErrorRet = CPyRetString::wrap(sErrorRet); if (!pyArg_sErrorRet) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddNetwork: can't convert parameter 'sErrorRet' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Network); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Network, pyArg_sErrorRet, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddNetwork failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Network); Py_CLEAR(pyArg_sErrorRet); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Network); Py_CLEAR(pyArg_sErrorRet); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddNetwork was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnDeleteNetwork(CIRCNetwork& Network) { PyObject* pyName = Py_BuildValue("s", "OnDeleteNetwork"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteNetwork: can't convert string 'OnDeleteNetwork' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Network = SWIG_NewInstanceObj(const_cast(&Network), SWIG_TypeQuery("CIRCNetwork*"), 0); if (!pyArg_Network) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteNetwork: can't convert parameter 'Network' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Network, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteNetwork failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Network); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Network); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteNetwork was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnSendToClient(CString& sLine, CClient& Client) { PyObject* pyName = Py_BuildValue("s", "OnSendToClient"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToClient: can't convert string 'OnSendToClient' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToClient: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_Client = SWIG_NewInstanceObj(const_cast(&Client), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_Client) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToClient: can't convert parameter 'Client' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sLine, pyArg_Client, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToClient failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); Py_CLEAR(pyArg_Client); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); Py_CLEAR(pyArg_Client); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToClient was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnSendToIRC(CString& sLine) { PyObject* pyName = Py_BuildValue("s", "OnSendToIRC"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToIRC: can't convert string 'OnSendToIRC' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToIRC: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sLine, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToIRC failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sLine); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnSendToIRC was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnAddUser(CUser& User, CString& sErrorRet) { PyObject* pyName = Py_BuildValue("s", "OnAddUser"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddUser: can't convert string 'OnAddUser' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_User = SWIG_NewInstanceObj(const_cast(&User), SWIG_TypeQuery("CUser*"), 0); if (!pyArg_User) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddUser: can't convert parameter 'User' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sErrorRet = CPyRetString::wrap(sErrorRet); if (!pyArg_sErrorRet) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddUser: can't convert parameter 'sErrorRet' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_User); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_User, pyArg_sErrorRet, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddUser failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_User); Py_CLEAR(pyArg_sErrorRet); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_User); Py_CLEAR(pyArg_sErrorRet); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnAddUser was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnDeleteUser(CUser& User) { PyObject* pyName = Py_BuildValue("s", "OnDeleteUser"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteUser: can't convert string 'OnDeleteUser' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_User = SWIG_NewInstanceObj(const_cast(&User), SWIG_TypeQuery("CUser*"), 0); if (!pyArg_User) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteUser: can't convert parameter 'User' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_User, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteUser failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_User); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_User); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnDeleteUser was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnClientConnect(CZNCSock* pSock, const CString& sHost, unsigned short uPort) { PyObject* pyName = Py_BuildValue("s", "OnClientConnect"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientConnect: can't convert string 'OnClientConnect' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pSock = SWIG_NewInstanceObj(const_cast(pSock), SWIG_TypeQuery("CZNCSock*"), 0); if (!pyArg_pSock) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientConnect: can't convert parameter 'pSock' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_sHost = Py_BuildValue("s", sHost.c_str()); if (!pyArg_sHost) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientConnect: can't convert parameter 'sHost' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pSock); return ; } PyObject* pyArg_uPort = Py_BuildValue("H", uPort); if (!pyArg_uPort) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientConnect: can't convert parameter 'uPort' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pSock); Py_CLEAR(pyArg_sHost); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pSock, pyArg_sHost, pyArg_uPort, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientConnect failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pSock); Py_CLEAR(pyArg_sHost); Py_CLEAR(pyArg_uPort); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pSock); Py_CLEAR(pyArg_sHost); Py_CLEAR(pyArg_uPort); Py_CLEAR(pyRes); } void CPyModule::OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) { PyObject* pyName = Py_BuildValue("s", "OnFailedLogin"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnFailedLogin: can't convert string 'OnFailedLogin' to PyObject: " << sPyErr); return ; } PyObject* pyArg_sUsername = Py_BuildValue("s", sUsername.c_str()); if (!pyArg_sUsername) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnFailedLogin: can't convert parameter 'sUsername' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_sRemoteIP = Py_BuildValue("s", sRemoteIP.c_str()); if (!pyArg_sRemoteIP) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnFailedLogin: can't convert parameter 'sRemoteIP' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sUsername); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sUsername, pyArg_sRemoteIP, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnFailedLogin failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sUsername); Py_CLEAR(pyArg_sRemoteIP); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sUsername); Py_CLEAR(pyArg_sRemoteIP); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnUnknownUserRaw(CClient* pClient, CString& sLine) { PyObject* pyName = Py_BuildValue("s", "OnUnknownUserRaw"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUnknownUserRaw: can't convert string 'OnUnknownUserRaw' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_pClient = SWIG_NewInstanceObj(const_cast(pClient), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_pClient) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUnknownUserRaw: can't convert parameter 'pClient' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sLine = CPyRetString::wrap(sLine); if (!pyArg_sLine) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUnknownUserRaw: can't convert parameter 'sLine' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pClient, pyArg_sLine, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUnknownUserRaw failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sLine); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sLine); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnUnknownUserRaw was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } bool CPyModule::IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState) { PyObject* pyName = Py_BuildValue("s", "IsClientCapSupported"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/IsClientCapSupported: can't convert string 'IsClientCapSupported' to PyObject: " << sPyErr); return false; } PyObject* pyArg_pClient = SWIG_NewInstanceObj(const_cast(pClient), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_pClient) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/IsClientCapSupported: can't convert parameter 'pClient' to PyObject: " << sPyErr); Py_CLEAR(pyName); return false; } PyObject* pyArg_sCap = Py_BuildValue("s", sCap.c_str()); if (!pyArg_sCap) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/IsClientCapSupported: can't convert parameter 'sCap' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); return false; } PyObject* pyArg_bState = Py_BuildValue("l", (long int)bState); if (!pyArg_bState) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/IsClientCapSupported: can't convert parameter 'bState' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sCap); return false; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pClient, pyArg_sCap, pyArg_bState, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/IsClientCapSupported failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sCap); Py_CLEAR(pyArg_bState); return false; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sCap); Py_CLEAR(pyArg_bState); bool result; if (pyRes == Py_None) { result = false; } else { int x = PyObject_IsTrue(pyRes); if (-1 == x) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/IsClientCapSupported was expected to return EModRet but: " << sPyErr); result = false; } else result = x ? true : false; } Py_CLEAR(pyRes); return result; } void CPyModule::OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState) { PyObject* pyName = Py_BuildValue("s", "OnClientCapRequest"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapRequest: can't convert string 'OnClientCapRequest' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pClient = SWIG_NewInstanceObj(const_cast(pClient), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_pClient) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapRequest: can't convert parameter 'pClient' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_sCap = Py_BuildValue("s", sCap.c_str()); if (!pyArg_sCap) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapRequest: can't convert parameter 'sCap' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); return ; } PyObject* pyArg_bState = Py_BuildValue("l", (long int)bState); if (!pyArg_bState) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapRequest: can't convert parameter 'bState' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sCap); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pClient, pyArg_sCap, pyArg_bState, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapRequest failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sCap); Py_CLEAR(pyArg_bState); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_sCap); Py_CLEAR(pyArg_bState); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) { PyObject* pyName = Py_BuildValue("s", "OnModuleLoading"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading: can't convert string 'OnModuleLoading' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_sModName = Py_BuildValue("s", sModName.c_str()); if (!pyArg_sModName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading: can't convert parameter 'sModName' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sArgs = Py_BuildValue("s", sArgs.c_str()); if (!pyArg_sArgs) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading: can't convert parameter 'sArgs' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sModName); return CONTINUE; } PyObject* pyArg_eType = Py_BuildValue("i", (int)eType); if (!pyArg_eType) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading: can't convert parameter 'eType' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sModName); Py_CLEAR(pyArg_sArgs); return CONTINUE; } PyObject* pyArg_bSuccess = CPyRetBool::wrap(bSuccess); if (!pyArg_bSuccess) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading: can't convert parameter 'bSuccess' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sModName); Py_CLEAR(pyArg_sArgs); Py_CLEAR(pyArg_eType); return CONTINUE; } PyObject* pyArg_sRetMsg = CPyRetString::wrap(sRetMsg); if (!pyArg_sRetMsg) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading: can't convert parameter 'sRetMsg' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sModName); Py_CLEAR(pyArg_sArgs); Py_CLEAR(pyArg_eType); Py_CLEAR(pyArg_bSuccess); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_sModName, pyArg_sArgs, pyArg_eType, pyArg_bSuccess, pyArg_sRetMsg, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_sModName); Py_CLEAR(pyArg_sArgs); Py_CLEAR(pyArg_eType); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyArg_sRetMsg); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_sModName); Py_CLEAR(pyArg_sArgs); Py_CLEAR(pyArg_eType); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyArg_sRetMsg); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleLoading was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) { PyObject* pyName = Py_BuildValue("s", "OnModuleUnloading"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleUnloading: can't convert string 'OnModuleUnloading' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_pModule = SWIG_NewInstanceObj(const_cast(pModule), SWIG_TypeQuery("CModule*"), 0); if (!pyArg_pModule) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleUnloading: can't convert parameter 'pModule' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_bSuccess = CPyRetBool::wrap(bSuccess); if (!pyArg_bSuccess) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleUnloading: can't convert parameter 'bSuccess' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pModule); return CONTINUE; } PyObject* pyArg_sRetMsg = CPyRetString::wrap(sRetMsg); if (!pyArg_sRetMsg) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleUnloading: can't convert parameter 'sRetMsg' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pModule); Py_CLEAR(pyArg_bSuccess); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pModule, pyArg_bSuccess, pyArg_sRetMsg, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleUnloading failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pModule); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyArg_sRetMsg); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pModule); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyArg_sRetMsg); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnModuleUnloading was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } CModule::EModRet CPyModule::OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) { PyObject* pyName = Py_BuildValue("s", "OnGetModInfo"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo: can't convert string 'OnGetModInfo' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_ModInfo = SWIG_NewInstanceObj(const_cast(&ModInfo), SWIG_TypeQuery("CModInfo*"), 0); if (!pyArg_ModInfo) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo: can't convert parameter 'ModInfo' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyArg_sModule = Py_BuildValue("s", sModule.c_str()); if (!pyArg_sModule) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo: can't convert parameter 'sModule' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_ModInfo); return CONTINUE; } PyObject* pyArg_bSuccess = CPyRetBool::wrap(bSuccess); if (!pyArg_bSuccess) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo: can't convert parameter 'bSuccess' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_ModInfo); Py_CLEAR(pyArg_sModule); return CONTINUE; } PyObject* pyArg_sRetMsg = CPyRetString::wrap(sRetMsg); if (!pyArg_sRetMsg) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo: can't convert parameter 'sRetMsg' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_ModInfo); Py_CLEAR(pyArg_sModule); Py_CLEAR(pyArg_bSuccess); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_ModInfo, pyArg_sModule, pyArg_bSuccess, pyArg_sRetMsg, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_ModInfo); Py_CLEAR(pyArg_sModule); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyArg_sRetMsg); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_ModInfo); Py_CLEAR(pyArg_sModule); Py_CLEAR(pyArg_bSuccess); Py_CLEAR(pyArg_sRetMsg); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetModInfo was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } void CPyModule::OnGetAvailableMods(std::set& ssMods, CModInfo::EModuleType eType) { PyObject* pyName = Py_BuildValue("s", "OnGetAvailableMods"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetAvailableMods: can't convert string 'OnGetAvailableMods' to PyObject: " << sPyErr); return ; } PyObject* pyArg_ssMods = SWIG_NewInstanceObj(const_cast*>(&ssMods), SWIG_TypeQuery("std::set*"), 0); if (!pyArg_ssMods) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetAvailableMods: can't convert parameter 'ssMods' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_eType = Py_BuildValue("i", (int)eType); if (!pyArg_eType) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetAvailableMods: can't convert parameter 'eType' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_ssMods); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_ssMods, pyArg_eType, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnGetAvailableMods failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_ssMods); Py_CLEAR(pyArg_eType); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_ssMods); Py_CLEAR(pyArg_eType); Py_CLEAR(pyRes); } void CPyModule::OnClientCapLs(CClient* pClient, SCString& ssCaps) { PyObject* pyName = Py_BuildValue("s", "OnClientCapLs"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapLs: can't convert string 'OnClientCapLs' to PyObject: " << sPyErr); return ; } PyObject* pyArg_pClient = SWIG_NewInstanceObj(const_cast(pClient), SWIG_TypeQuery("CClient*"), 0); if (!pyArg_pClient) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapLs: can't convert parameter 'pClient' to PyObject: " << sPyErr); Py_CLEAR(pyName); return ; } PyObject* pyArg_ssCaps = SWIG_NewInstanceObj(const_cast(&ssCaps), SWIG_TypeQuery("SCString*"), 0); if (!pyArg_ssCaps) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapLs: can't convert parameter 'ssCaps' to PyObject: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); return ; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_pClient, pyArg_ssCaps, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnClientCapLs failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_ssCaps); return ; } Py_CLEAR(pyName); Py_CLEAR(pyArg_pClient); Py_CLEAR(pyArg_ssCaps); Py_CLEAR(pyRes); } CModule::EModRet CPyModule::OnLoginAttempt(std::shared_ptr Auth) { PyObject* pyName = Py_BuildValue("s", "OnLoginAttempt"); if (!pyName) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnLoginAttempt: can't convert string 'OnLoginAttempt' to PyObject: " << sPyErr); return CONTINUE; } PyObject* pyArg_Auth = SWIG_NewInstanceObj(new std::shared_ptr(Auth), SWIG_TypeQuery("std::shared_ptr*"), SWIG_POINTER_OWN); if (!pyArg_Auth) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnLoginAttempt: can't convert parameter 'Auth' to PyObject: " << sPyErr); Py_CLEAR(pyName); return CONTINUE; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg_Auth, nullptr); if (!pyRes) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnLoginAttempt failed: " << sPyErr); Py_CLEAR(pyName); Py_CLEAR(pyArg_Auth); return CONTINUE; } Py_CLEAR(pyName); Py_CLEAR(pyArg_Auth); CModule::EModRet result; if (pyRes == Py_None) { result = CONTINUE; } else { long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sPyErr = m_pModPython->GetPyExceptionStr(); DEBUG("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << "/OnLoginAttempt was expected to return EModRet but: " << sPyErr); result = CONTINUE; } else { result = (CModule::EModRet)x; } } Py_CLEAR(pyRes); return result; } znc-1.6.3/modules/modpython/functions.in0000644000175000017500000001121312663147131020572 0ustar somebodysomebodybool OnBoot()=true bool WebRequiresLogin()=true bool WebRequiresAdmin()=false CString GetWebMenuTitle() bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName)=false bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false VWebSubPages* _GetSubPages() void OnPreRehash() void OnPostRehash() void OnIRCDisconnected() void OnIRCConnected() EModRet OnIRCConnecting(CIRCSock *pIRCSock) void OnIRCConnectionError(CIRCSock *pIRCSock) EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) EModRet OnBroadcast(CString& sMessage) void OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) EModRet OnRaw(CString& sLine) EModRet OnStatusCommand(CString& sCommand) void OnModCommand(const CString& sCommand) void OnModNotice(const CString& sMessage) void OnModCTCP(const CString& sMessage) void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) void OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) EModRet OnJoining(CChan& Channel) void OnJoin(const CNick& Nick, CChan& Channel) void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) EModRet OnChanBufferStarting(CChan& Chan, CClient& Client) EModRet OnChanBufferEnding(CChan& Chan, CClient& Client) EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine) void OnClientLogin() void OnClientDisconnect() EModRet OnUserRaw(CString& sLine) EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) EModRet OnUserCTCP(CString& sTarget, CString& sMessage) EModRet OnUserAction(CString& sTarget, CString& sMessage) EModRet OnUserMsg(CString& sTarget, CString& sMessage) EModRet OnUserNotice(CString& sTarget, CString& sMessage) EModRet OnUserJoin(CString& sChannel, CString& sKey) EModRet OnUserPart(CString& sChannel, CString& sMessage) EModRet OnUserTopic(CString& sChannel, CString& sTopic) EModRet OnUserTopicRequest(CString& sChannel) EModRet OnCTCPReply(CNick& Nick, CString& sMessage) EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnPrivAction(CNick& Nick, CString& sMessage) EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnPrivMsg(CNick& Nick, CString& sMessage) EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnPrivNotice(CNick& Nick, CString& sMessage) EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) bool OnServerCapAvailable(const CString& sCap)=false void OnServerCapResult(const CString& sCap, bool bSuccess) EModRet OnTimerAutoJoin(CChan& Channel) bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false EModRet OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) EModRet OnDeleteNetwork(CIRCNetwork& Network) EModRet OnSendToClient(CString& sLine, CClient& Client) EModRet OnSendToIRC(CString& sLine) EModRet OnAddUser(CUser& User, CString& sErrorRet) EModRet OnDeleteUser(CUser& User) void OnClientConnect(CZNCSock* pSock, const CString& sHost, unsigned short uPort) void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) EModRet OnUnknownUserRaw(CClient* pClient, CString& sLine) bool IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState)=false void OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState) EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) void OnGetAvailableMods(std::set& ssMods, CModInfo::EModuleType eType) void OnClientCapLs(CClient* pClient, SCString& ssCaps) EModRet OnLoginAttempt(std::shared_ptr Auth) znc-1.6.3/modules/modpython/swigpyrun.h0000644000175000017500000024565012663147145020475 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.5 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Compatibility macros for Python 3 */ #if PY_VERSION_HEX >= 0x03000000 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) #define PyInt_Check(x) PyLong_Check(x) #define PyInt_AsLong(x) PyLong_AsLong(x) #define PyInt_FromLong(x) PyLong_FromLong(x) #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) #define PyString_Check(name) PyBytes_Check(name) #define PyString_FromString(x) PyUnicode_FromString(x) #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) #define PyString_AsString(str) PyBytes_AsString(str) #define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) #endif #ifndef Py_TYPE # define Py_TYPE(op) ((op)->ob_type) #endif /* SWIG APIs for compatibility of both Python 2 & 3 */ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat #else # define SWIG_Python_str_FromFormat PyString_FromFormat #endif /* Warning: This function will allocate a new string in Python 3, * so please call SWIG_Python_str_DelForPy3(x) to free the space. */ SWIGINTERN char* SWIG_Python_str_AsChar(PyObject *str) { #if PY_VERSION_HEX >= 0x03000000 char *cstr; char *newstr; Py_ssize_t len; str = PyUnicode_AsUTF8String(str); PyBytes_AsStringAndSize(str, &cstr, &len); newstr = (char *) malloc(len+1); memcpy(newstr, cstr, len+1); Py_XDECREF(str); return newstr; #else return PyString_AsString(str); #endif } #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) #else # define SWIG_Python_str_DelForPy3(x) #endif SWIGINTERN PyObject* SWIG_Python_str_FromChar(const char *c) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_FromString(c); #else return PyString_FromString(c); #endif } /* Add PyOS_snprintf for old Pythons */ #if PY_VERSION_HEX < 0x02020000 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) # define PyOS_snprintf _snprintf # else # define PyOS_snprintf snprintf # endif #endif /* A crude PyString_FromFormat implementation for old Pythons */ #if PY_VERSION_HEX < 0x02020000 #ifndef SWIG_PYBUFFER_SIZE # define SWIG_PYBUFFER_SIZE 1024 #endif static PyObject * PyString_FromFormat(const char *fmt, ...) { va_list ap; char buf[SWIG_PYBUFFER_SIZE * 2]; int res; va_start(ap, fmt); res = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); } #endif /* Add PyObject_Del for old Pythons */ #if PY_VERSION_HEX < 0x01060000 # define PyObject_Del(op) PyMem_DEL((op)) #endif #ifndef PyObject_DEL # define PyObject_DEL PyObject_Del #endif /* A crude PyExc_StopIteration exception for old Pythons */ #if PY_VERSION_HEX < 0x02020000 # ifndef PyExc_StopIteration # define PyExc_StopIteration PyExc_RuntimeError # endif # ifndef PyObject_GenericGetAttr # define PyObject_GenericGetAttr 0 # endif #endif /* Py_NotImplemented is defined in 2.1 and up. */ #if PY_VERSION_HEX < 0x02010000 # ifndef Py_NotImplemented # define Py_NotImplemented PyExc_RuntimeError # endif #endif /* A crude PyString_AsStringAndSize implementation for old Pythons */ #if PY_VERSION_HEX < 0x02010000 # ifndef PyString_AsStringAndSize # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} # endif #endif /* PySequence_Size for old Pythons */ #if PY_VERSION_HEX < 0x02000000 # ifndef PySequence_Size # define PySequence_Size PySequence_Length # endif #endif /* PyBool_FromLong for old Pythons */ #if PY_VERSION_HEX < 0x02030000 static PyObject *PyBool_FromLong(long ok) { PyObject *result = ok ? Py_True : Py_False; Py_INCREF(result); return result; } #endif /* Py_ssize_t for old Pythons */ /* This code is as recommended by: */ /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; # define PY_SSIZE_T_MAX INT_MAX # define PY_SSIZE_T_MIN INT_MIN typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; typedef intintargfunc ssizessizeargfunc; typedef intobjargproc ssizeobjargproc; typedef intintobjargproc ssizessizeobjargproc; typedef getreadbufferproc readbufferproc; typedef getwritebufferproc writebufferproc; typedef getsegcountproc segcountproc; typedef getcharbufferproc charbufferproc; static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) { long result = 0; PyObject *i = PyNumber_Int(x); if (i) { result = PyInt_AsLong(i); Py_DECREF(i); } return result; } #endif #if PY_VERSION_HEX < 0x02050000 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) #endif #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ if (op) { \ int vret = visit((op), arg); \ if (vret) \ return vret; \ } \ } while (0) #endif #if PY_VERSION_HEX < 0x02030000 typedef struct { PyTypeObject type; PyNumberMethods as_number; PyMappingMethods as_mapping; PySequenceMethods as_sequence; PyBufferProcs as_buffer; PyObject *name, *slots; } PyHeapTypeObject; #endif #if PY_VERSION_HEX < 0x02030000 typedef destructor freefunc; #endif #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ (PY_MAJOR_VERSION > 3)) # define SWIGPY_USE_CAPSULE # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) #endif #if PY_VERSION_HEX < 0x03020000 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIME PyObject* SWIG_Python_ErrorType(int code) { PyObject* type = 0; switch(code) { case SWIG_MemoryError: type = PyExc_MemoryError; break; case SWIG_IOError: type = PyExc_IOError; break; case SWIG_RuntimeError: type = PyExc_RuntimeError; break; case SWIG_IndexError: type = PyExc_IndexError; break; case SWIG_TypeError: type = PyExc_TypeError; break; case SWIG_DivisionByZero: type = PyExc_ZeroDivisionError; break; case SWIG_OverflowError: type = PyExc_OverflowError; break; case SWIG_SyntaxError: type = PyExc_SyntaxError; break; case SWIG_ValueError: type = PyExc_ValueError; break; case SWIG_SystemError: type = PyExc_SystemError; break; case SWIG_AttributeError: type = PyExc_AttributeError; break; default: type = PyExc_RuntimeError; } return type; } SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char* mesg) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); if (value) { char *tmp; PyObject *old_str = PyObject_Str(value); PyErr_Clear(); Py_XINCREF(type); PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); Py_DECREF(value); } else { PyErr_SetString(PyExc_RuntimeError, mesg); } } #if defined(SWIG_PYTHON_NO_THREADS) # if defined(SWIG_PYTHON_THREADS) # undef SWIG_PYTHON_THREADS # endif #endif #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ # define SWIG_PYTHON_USE_GIL # endif # endif # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ # ifndef SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() # endif # ifdef __cplusplus /* C++ code */ class SWIG_Python_Thread_Block { bool status; PyGILState_STATE state; public: void end() { if (status) { PyGILState_Release(state); status = false;} } SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} ~SWIG_Python_Thread_Block() { end(); } }; class SWIG_Python_Thread_Allow { bool status; PyThreadState *save; public: void end() { if (status) { PyEval_RestoreThread(save); status = false; }} SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} ~SWIG_Python_Thread_Allow() { end(); } }; # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() # else /* C code */ # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) # endif # else /* Old thread way, not implemented, user must provide it */ # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) # define SWIG_PYTHON_INITIALIZE_THREADS # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) # define SWIG_PYTHON_THREAD_END_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # endif # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) # define SWIG_PYTHON_THREAD_END_ALLOW # endif # endif #else /* No thread support */ # define SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # define SWIG_PYTHON_THREAD_END_BLOCK # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # define SWIG_PYTHON_THREAD_END_ALLOW #endif /* ----------------------------------------------------------------------------- * Python API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif /* ----------------------------------------------------------------------------- * Constant declarations * ----------------------------------------------------------------------------- */ /* Constant Types */ #define SWIG_PY_POINTER 4 #define SWIG_PY_BINARY 5 /* Constant information structure */ typedef struct swig_const_info { int type; char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_const_info; /* ----------------------------------------------------------------------------- * Wrapper of PyInstanceMethod_New() used in Python 3 * It is exported to the generated module, used for -fastproxy * ----------------------------------------------------------------------------- */ #if PY_VERSION_HEX >= 0x03000000 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { return PyInstanceMethod_New(func); } #else SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) { return NULL; } #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * pyrun.swg * * This file contains the runtime support for Python modules * and includes code for managing global variables and pointer * type checking. * * ----------------------------------------------------------------------------- */ /* Common SWIG API */ /* for raw pointers */ #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) #ifdef SWIGPYTHON_BUILTIN #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) #else #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #endif #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) #define swig_owntype int /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) #define SWIG_SetErrorObj SWIG_Python_SetErrorObj #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Runtime API implementation */ /* Error manipulation */ SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetObject(errtype, obj); Py_DECREF(obj); SWIG_PYTHON_THREAD_END_BLOCK; } SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetString(errtype, msg); SWIG_PYTHON_THREAD_END_BLOCK; } #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) /* Set a constant value */ #if defined(SWIGPYTHON_BUILTIN) SWIGINTERN void SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { PyObject *s = PyString_InternFromString(key); PyList_Append(seq, s); Py_DECREF(s); } SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { #if PY_VERSION_HEX < 0x02030000 PyDict_SetItemString(d, (char *)name, obj); #else PyDict_SetItemString(d, name, obj); #endif Py_DECREF(obj); if (public_interface) SwigPyBuiltin_AddPublicSymbol(public_interface, name); } #else SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { #if PY_VERSION_HEX < 0x02030000 PyDict_SetItemString(d, (char *)name, obj); #else PyDict_SetItemString(d, name, obj); #endif Py_DECREF(obj); } #endif /* Append a value to the result obj */ SWIGINTERN PyObject* SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyList_Check(result)) { PyObject *o2 = result; result = PyList_New(1); PyList_SetItem(result, 0, o2); } PyList_Append(result,obj); Py_DECREF(obj); } return result; #else PyObject* o2; PyObject* o3; if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyTuple_Check(result)) { o2 = result; result = PyTuple_New(1); PyTuple_SET_ITEM(result, 0, o2); } o3 = PyTuple_New(1); PyTuple_SET_ITEM(o3, 0, obj); o2 = result; result = PySequence_Concat(o2, o3); Py_DECREF(o2); Py_DECREF(o3); } return result; #endif } /* Unpack the argument tuple */ SWIGINTERN int SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { if (!min && !max) { return 1; } else { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", name, (min == max ? "" : "at least "), (int)min); return 0; } } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { int i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; } return 2; } PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); return 0; } else if (l > max) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { int i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } for (; l < max; ++l) { objs[l] = 0; } return i + 1; } } } /* A functor is a function object with one single object argument */ #if PY_VERSION_HEX >= 0x02020000 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); #else #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); #endif /* Helper for static pointer initialization for both C and C++ code, for example static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); */ #ifdef __cplusplus #define SWIG_STATIC_POINTER(var) var #else #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var #endif /* ----------------------------------------------------------------------------- * Pointer declarations * ----------------------------------------------------------------------------- */ /* Flags for new pointer objects */ #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) #ifdef __cplusplus extern "C" { #endif /* How to access Py_None */ #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # ifndef SWIG_PYTHON_NO_BUILD_NONE # ifndef SWIG_PYTHON_BUILD_NONE # define SWIG_PYTHON_BUILD_NONE # endif # endif #endif #ifdef SWIG_PYTHON_BUILD_NONE # ifdef Py_None # undef Py_None # define Py_None SWIG_Py_None() # endif SWIGRUNTIMEINLINE PyObject * _SWIG_Py_None(void) { PyObject *none = Py_BuildValue((char*)""); Py_DECREF(none); return none; } SWIGRUNTIME PyObject * SWIG_Py_None(void) { static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); return none; } #endif /* The python void return value */ SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void) { PyObject *none = Py_None; Py_INCREF(none); return none; } /* SwigPyClientData */ typedef struct { PyObject *klass; PyObject *newraw; PyObject *newargs; PyObject *destroy; int delargs; int implicitconv; PyTypeObject *pytype; } SwigPyClientData; SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty) { SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; return data ? data->implicitconv : 0; } SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc) { SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; PyObject *klass = data ? data->klass : 0; return (klass ? klass : PyExc_RuntimeError); } SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject* obj) { if (!obj) { return 0; } else { SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); /* the klass element */ data->klass = obj; Py_INCREF(data->klass); /* the newraw method and newargs arguments used to create a new raw instance */ if (PyClass_Check(obj)) { data->newraw = 0; data->newargs = obj; Py_INCREF(obj); } else { #if (PY_VERSION_HEX < 0x02020000) data->newraw = 0; #else data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); #endif if (data->newraw) { Py_INCREF(data->newraw); data->newargs = PyTuple_New(1); PyTuple_SetItem(data->newargs, 0, obj); } else { data->newargs = obj; } Py_INCREF(data->newargs); } /* the destroy method, aka as the C++ delete method */ data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); if (PyErr_Occurred()) { PyErr_Clear(); data->destroy = 0; } if (data->destroy) { int flags; Py_INCREF(data->destroy); flags = PyCFunction_GET_FLAGS(data->destroy); #ifdef METH_O data->delargs = !(flags & (METH_O)); #else data->delargs = 0; #endif } else { data->delargs = 0; } data->implicitconv = 0; data->pytype = 0; return data; } } SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data) { Py_XDECREF(data->newraw); Py_XDECREF(data->newargs); Py_XDECREF(data->destroy); } /* =============== SwigPyObject =====================*/ typedef struct { PyObject_HEAD void *ptr; swig_type_info *ty; int own; PyObject *next; #ifdef SWIGPYTHON_BUILTIN PyObject *dict; #endif } SwigPyObject; SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { return PyLong_FromVoidPtr(v->ptr); } SWIGRUNTIME PyObject * SwigPyObject_format(const char* fmt, SwigPyObject *v) { PyObject *res = NULL; PyObject *args = PyTuple_New(1); if (args) { if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { PyObject *ofmt = SWIG_Python_str_FromChar(fmt); if (ofmt) { #if PY_VERSION_HEX >= 0x03000000 res = PyUnicode_Format(ofmt,args); #else res = PyString_Format(ofmt,args); #endif Py_DECREF(ofmt); } Py_DECREF(args); } } return res; } SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v) { return SwigPyObject_format("%o",v); } SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v) { return SwigPyObject_format("%x",v); } SWIGRUNTIME PyObject * #ifdef METH_NOARGS SwigPyObject_repr(SwigPyObject *v) #else SwigPyObject_repr(SwigPyObject *v, PyObject *args) #endif { const char *name = SWIG_TypePrettyName(v->ty); PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); if (v->next) { # ifdef METH_NOARGS PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); # else PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); # endif # if PY_VERSION_HEX >= 0x03000000 PyObject *joined = PyUnicode_Concat(repr, nrep); Py_DecRef(repr); Py_DecRef(nrep); repr = joined; # else PyString_ConcatAndDel(&repr,nrep); # endif } return repr; } SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { void *i = v->ptr; void *j = w->ptr; return (i < j) ? -1 : ((i > j) ? 1 : 0); } /* Added for Python 3.x, would it also be useful for Python 2.x? */ SWIGRUNTIME PyObject* SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) { PyObject* res; if( op != Py_EQ && op != Py_NE ) { Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); return res; } SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); #ifdef SWIGPYTHON_BUILTIN static swig_type_info *SwigPyObject_stype = 0; SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { SwigPyClientData *cd; assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; assert(cd); assert(cd->pytype); return cd->pytype; } #else SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); return type; } #endif SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op) { #ifdef SWIGPYTHON_BUILTIN PyTypeObject *target_tp = SwigPyObject_type(); if (PyType_IsSubtype(op->ob_type, target_tp)) return 1; return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); #else return (Py_TYPE(op) == SwigPyObject_type()) || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); #endif } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own); SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v) { SwigPyObject *sobj = (SwigPyObject *) v; PyObject *next = sobj->next; if (sobj->own == SWIG_POINTER_OWN) { swig_type_info *ty = sobj->ty; SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; PyObject *destroy = data ? data->destroy : 0; if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; if (data->delargs) { /* we need to create a temporary object to carry the destroy operation */ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); res = SWIG_Python_CallFunctor(destroy, tmp); Py_DECREF(tmp); } else { PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); PyObject *mself = PyCFunction_GET_SELF(destroy); res = ((*meth)(mself, v)); } Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) else { const char *name = SWIG_TypePrettyName(ty); printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); } #endif } Py_XDECREF(next); PyObject_DEL(v); } SWIGRUNTIME PyObject* SwigPyObject_append(PyObject* v, PyObject* next) { SwigPyObject *sobj = (SwigPyObject *) v; #ifndef METH_O PyObject *tmp = 0; if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; next = tmp; #endif if (!SwigPyObject_Check(next)) { return NULL; } sobj->next = next; Py_INCREF(next); return SWIG_Py_Void(); } SWIGRUNTIME PyObject* #ifdef METH_NOARGS SwigPyObject_next(PyObject* v) #else SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *) v; if (sobj->next) { Py_INCREF(sobj->next); return sobj->next; } else { return SWIG_Py_Void(); } } SWIGINTERN PyObject* #ifdef METH_NOARGS SwigPyObject_disown(PyObject *v) #else SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = 0; return SWIG_Py_Void(); } SWIGINTERN PyObject* #ifdef METH_NOARGS SwigPyObject_acquire(PyObject *v) #else SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = SWIG_POINTER_OWN; return SWIG_Py_Void(); } SWIGINTERN PyObject* SwigPyObject_own(PyObject *v, PyObject *args) { PyObject *val = 0; #if (PY_VERSION_HEX < 0x02020000) if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) #elif (PY_VERSION_HEX < 0x02050000) if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) #else if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) #endif { return NULL; } else { SwigPyObject *sobj = (SwigPyObject *)v; PyObject *obj = PyBool_FromLong(sobj->own); if (val) { #ifdef METH_NOARGS if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v); } else { SwigPyObject_disown(v); } #else if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v,args); } else { SwigPyObject_disown(v,args); } #endif } return obj; } } #ifdef METH_O static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, {0, 0, 0, 0} }; #else static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, {0, 0, 0, 0} }; #endif #if PY_VERSION_HEX < 0x02020000 SWIGINTERN PyObject * SwigPyObject_getattr(SwigPyObject *sobj,char *name) { return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); } #endif SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void) { static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; static PyNumberMethods SwigPyObject_as_number = { (binaryfunc)0, /*nb_add*/ (binaryfunc)0, /*nb_subtract*/ (binaryfunc)0, /*nb_multiply*/ /* nb_divide removed in Python 3 */ #if PY_VERSION_HEX < 0x03000000 (binaryfunc)0, /*nb_divide*/ #endif (binaryfunc)0, /*nb_remainder*/ (binaryfunc)0, /*nb_divmod*/ (ternaryfunc)0,/*nb_power*/ (unaryfunc)0, /*nb_negative*/ (unaryfunc)0, /*nb_positive*/ (unaryfunc)0, /*nb_absolute*/ (inquiry)0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_VERSION_HEX < 0x03000000 0, /*nb_coerce*/ #endif (unaryfunc)SwigPyObject_long, /*nb_int*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_long, /*nb_long*/ #else 0, /*nb_reserved*/ #endif (unaryfunc)0, /*nb_float*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif #if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ #endif }; static PyTypeObject swigpyobject_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"SwigPyObject", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ 0, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else (getattrfunc)0, /* tp_getattr */ #endif (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX >= 0x03000000 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ #else (cmpfunc)SwigPyObject_compare, /* tp_compare */ #endif (reprfunc)SwigPyObject_repr, /* tp_repr */ &SwigPyObject_as_number, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigobject_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0, /* tp_iter */ 0, /* tp_iternext */ swigobject_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; swigpyobject_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 swigpyobject_type.ob_type = &PyType_Type; #else if (PyType_Ready(&swigpyobject_type) < 0) return NULL; #endif } return &swigpyobject_type; } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own) { SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); if (sobj) { sobj->ptr = ptr; sobj->ty = ty; sobj->own = own; sobj->next = 0; } return (PyObject *)sobj; } /* ----------------------------------------------------------------------------- * Implements a simple Swig Packed type, and use it instead of string * ----------------------------------------------------------------------------- */ typedef struct { PyObject_HEAD void *pack; swig_type_info *ty; size_t size; } SwigPyPacked; SWIGRUNTIME int SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char result[SWIG_BUFFER_SIZE]; fputs("pack, v->size, 0, sizeof(result))) { fputs("at ", fp); fputs(result, fp); } fputs(v->ty->name,fp); fputs(">", fp); return 0; } SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { return SWIG_Python_str_FromFormat("", result, v->ty->name); } else { return SWIG_Python_str_FromFormat("", v->ty->name); } } SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); } else { return SWIG_Python_str_FromChar(v->ty->name); } } SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) { size_t i = v->size; size_t j = w->size; int s = (i < j) ? -1 : ((i > j) ? 1 : 0); return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); SWIGRUNTIME PyTypeObject* SwigPyPacked_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); return type; } SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op) { return ((op)->ob_type == SwigPyPacked_TypeOnce()) || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); } SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v) { if (SwigPyPacked_Check(v)) { SwigPyPacked *sobj = (SwigPyPacked *) v; free(sobj->pack); } PyObject_DEL(v); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void) { static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; static PyTypeObject swigpypacked_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX>=0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"SwigPyPacked", /* tp_name */ sizeof(SwigPyPacked), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ (printfunc)SwigPyPacked_print, /* tp_print */ (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX>=0x03000000 0, /* tp_reserved in 3.0.1 */ #else (cmpfunc)SwigPyPacked_compare, /* tp_compare */ #endif (reprfunc)SwigPyPacked_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ (reprfunc)SwigPyPacked_str, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigpacked_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; swigpypacked_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 swigpypacked_type.ob_type = &PyType_Type; #else if (PyType_Ready(&swigpypacked_type) < 0) return NULL; #endif } return &swigpypacked_type; } SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) { SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); if (sobj) { void *pack = malloc(size); if (pack) { memcpy(pack, ptr, size); sobj->pack = pack; sobj->ty = ty; sobj->size = size; } else { PyObject_DEL((PyObject *) sobj); sobj = 0; } } return (PyObject *) sobj; } SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) { if (SwigPyPacked_Check(obj)) { SwigPyPacked *sobj = (SwigPyPacked *)obj; if (sobj->size != size) return 0; memcpy(ptr, sobj->pack, size); return sobj->ty; } else { return 0; } } /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIMEINLINE PyObject * _SWIG_This(void) { return SWIG_Python_str_FromChar("this"); } static PyObject *swig_this = NULL; SWIGRUNTIME PyObject * SWIG_This(void) { if (swig_this == NULL) swig_this = _SWIG_This(); return swig_this; } /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ /* TODO: I don't know how to implement the fast getset in Python 3 right now */ #if PY_VERSION_HEX>=0x03000000 #define SWIG_PYTHON_SLOW_GETSET_THIS #endif SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj) { PyObject *obj; if (SwigPyObject_Check(pyobj)) return (SwigPyObject *) pyobj; #ifdef SWIGPYTHON_BUILTIN (void)obj; # ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { pyobj = PyWeakref_GET_OBJECT(pyobj); if (pyobj && SwigPyObject_Check(pyobj)) return (SwigPyObject*) pyobj; } # endif return NULL; #else obj = 0; #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) if (PyInstance_Check(pyobj)) { obj = _PyInstance_Lookup(pyobj, SWIG_This()); } else { PyObject **dictptr = _PyObject_GetDictPtr(pyobj); if (dictptr != NULL) { PyObject *dict = *dictptr; obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; } else { #ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; } #endif obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } } } #else obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } #endif if (obj && !SwigPyObject_Check(obj)) { /* a PyObject is called 'this', try to get the 'real this' SwigPyObject from it */ return SWIG_Python_GetSwigThis(obj); } return (SwigPyObject *)obj; #endif } /* Acquire a pointer value */ SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own) { if (own == SWIG_POINTER_OWN) { SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); if (sobj) { int oldown = sobj->own; sobj->own = own; return oldown; } } return 0; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return SWIG_OK; } res = SWIG_ERROR; sobj = SWIG_Python_GetSwigThis(obj); if (own) *own = 0; while (sobj) { void *vptr = sobj->ptr; if (ty) { swig_type_info *to = sobj->ty; if (to == ty) { /* no type cast needed */ if (ptr) *ptr = vptr; break; } else { swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) { sobj = (SwigPyObject *)sobj->next; } else { if (ptr) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } break; } } } else { if (ptr) *ptr = vptr; break; } } if (sobj) { if (own) *own = *own | sobj->own; if (flags & SWIG_POINTER_DISOWN) { sobj->own = 0; } res = SWIG_OK; } else { if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; if (klass) { PyObject *impconv; data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ impconv = SWIG_Python_CallFunctor(klass, obj); data->implicitconv = 0; if (PyErr_Occurred()) { PyErr_Clear(); impconv = 0; } if (impconv) { SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); if (iobj) { void *vptr; res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); if (SWIG_IsOK(res)) { if (ptr) { *ptr = vptr; /* transfer the ownership to 'ptr' */ iobj->own = 0; res = SWIG_AddCast(res); res = SWIG_AddNewMask(res); } else { res = SWIG_AddCast(res); } } } Py_DECREF(impconv); } } } } if (!SWIG_IsOK(res) && obj == Py_None) { if (ptr) *ptr = 0; if (PyErr_Occurred()) PyErr_Clear(); res = SWIG_OK; } } return res; } /* Convert a function ptr value */ SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { if (!PyCFunction_Check(obj)) { return SWIG_ConvertPtr(obj, ptr, ty, 0); } else { void *vptr = 0; /* here we get the method pointer for callbacks */ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; if (!desc) return SWIG_ERROR; if (ty) { swig_cast_info *tc = SWIG_TypeCheck(desc,ty); if (tc) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } else { return SWIG_ERROR; } } else { *ptr = vptr; } return SWIG_OK; } } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); if (!to) return SWIG_ERROR; if (ty) { if (to != ty) { /* check type cast? */ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) return SWIG_ERROR; } } return SWIG_OK; } /* ----------------------------------------------------------------------------- * Create a new pointer object * ----------------------------------------------------------------------------- */ /* Create a new instance object, without calling __init__, and set the 'this' attribute. */ SWIGRUNTIME PyObject* SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) { #if (PY_VERSION_HEX >= 0x02020000) PyObject *inst = 0; PyObject *newraw = data->newraw; if (newraw) { inst = PyObject_Call(newraw, data->newargs, NULL); if (inst) { #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { PyObject *dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; PyDict_SetItem(dict, SWIG_This(), swig_this); } } #else PyObject *key = SWIG_This(); PyObject_SetAttr(inst, key, swig_this); #endif } } else { #if PY_VERSION_HEX >= 0x03000000 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); if (inst) { PyObject_SetAttr(inst, SWIG_This(), swig_this); Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; } #else PyObject *dict = PyDict_New(); if (dict) { PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); } #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) PyObject *inst = 0; PyObject *dict = PyDict_New(); if (dict) { PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); } return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); if (inst == NULL) { return NULL; } inst->in_class = (PyClassObject *)data->newargs; Py_INCREF(inst->in_class); inst->in_dict = PyDict_New(); if (inst->in_dict == NULL) { Py_DECREF(inst); return NULL; } #ifdef Py_TPFLAGS_HAVE_WEAKREFS inst->in_weakreflist = NULL; #endif #ifdef Py_TPFLAGS_GC PyObject_GC_Init(inst); #endif PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); return (PyObject *) inst; #endif #endif } SWIGRUNTIME void SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) { PyObject *dict; #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; } PyDict_SetItem(dict, SWIG_This(), swig_this); return; } #endif dict = PyObject_GetAttrString(inst, (char*)"__dict__"); PyDict_SetItem(dict, SWIG_This(), swig_this); Py_DECREF(dict); } SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args) { PyObject *obj[2]; if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { return NULL; } else { SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); if (sthis) { SwigPyObject_append((PyObject*) sthis, obj[1]); } else { SWIG_Python_SetSwigThis(obj[0], obj[1]); } return SWIG_Py_Void(); } } /* Create a new pointer object */ SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { SwigPyClientData *clientdata; PyObject * robj; int own; if (!ptr) return SWIG_Py_Void(); clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; if (clientdata && clientdata->pytype) { SwigPyObject *newobj; if (flags & SWIG_BUILTIN_TP_INIT) { newobj = (SwigPyObject*) self; if (newobj->ptr) { PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); while (newobj->next) newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif return (PyObject*) newobj; } return SWIG_Py_Void(); } assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); Py_DECREF(robj); robj = inst; } return robj; } /* Create a new packed object */ SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); } /* -----------------------------------------------------------------------------* * Get type list * -----------------------------------------------------------------------------*/ #ifdef SWIG_LINK_RUNTIME void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { #ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0); #else # ifdef SWIGPY_USE_CAPSULE type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); # else type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); # endif if (PyErr_Occurred()) { PyErr_Clear(); type_pointer = (void *)0; } #endif } return (swig_module_info *) type_pointer; } #if PY_MAJOR_VERSION < 2 /* PyModule_AddObject function was introduced in Python 2.0. The following function is copied out of Python/modsupport.c in python version 2.3.4 */ SWIGINTERN int PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } dict = PyModule_GetDict(m); if (dict == NULL) { /* Internal error -- modules must have a dict! */ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", PyModule_GetName(m)); return SWIG_ERROR; } if (PyDict_SetItemString(dict, name, o)) return SWIG_ERROR; Py_DECREF(o); return SWIG_OK; } #endif SWIGRUNTIME void #ifdef SWIGPY_USE_CAPSULE SWIG_Python_DestroyModule(PyObject *obj) #else SWIG_Python_DestroyModule(void *vptr) #endif { #ifdef SWIGPY_USE_CAPSULE swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); #else swig_module_info *swig_module = (swig_module_info *) vptr; #endif swig_type_info **types = swig_module->types; size_t i; for (i =0; i < swig_module->size; ++i) { swig_type_info *ty = types[i]; if (ty->owndata) { SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; if (data) SwigPyClientData_Del(data); } } Py_DECREF(SWIG_This()); swig_this = NULL; } SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module) { #if PY_VERSION_HEX >= 0x03000000 /* Add a dummy module object into sys.modules */ PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); #else static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); #endif #ifdef SWIGPY_USE_CAPSULE PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } #else PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } #endif } /* The python cached type query */ SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void) { static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); return cache; } SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type) { PyObject *cache = SWIG_Python_TypeCache(); PyObject *key = SWIG_Python_str_FromChar(type); PyObject *obj = PyDict_GetItem(cache, key); swig_type_info *descriptor; if (obj) { #ifdef SWIGPY_USE_CAPSULE descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); #else descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE obj = PyCapsule_New((void*) descriptor, NULL, NULL); #else obj = PyCObject_FromVoidPtr(descriptor, NULL); #endif PyDict_SetItem(cache, key, obj); Py_DECREF(obj); } } Py_DECREF(key); return descriptor; } /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIGRUNTIME int SWIG_Python_AddErrMesg(const char* mesg, int infront) { if (PyErr_Occurred()) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; PyErr_Fetch(&type, &value, &traceback); if (value) { char *tmp; PyObject *old_str = PyObject_Str(value); Py_XINCREF(type); PyErr_Clear(); if (infront) { PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); } else { PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); } SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); } return 1; } else { return 0; } } SWIGRUNTIME int SWIG_Python_ArgFail(int argnum) { if (PyErr_Occurred()) { /* add information about failing argument */ char mesg[256]; PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); return SWIG_Python_AddErrMesg(mesg, 1); } else { return 0; } } SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self) { SwigPyObject *v = (SwigPyObject *)self; swig_type_info *ty = v ? v->ty : 0; return ty ? ty->str : ""; } SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj) { if (type) { #if defined(SWIG_COBJECT_TYPES) if (obj && SwigPyObject_Check(obj)) { const char *otype = (const char *) SwigPyObject_GetDesc(obj); if (otype) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", type, otype); return; } } else #endif { const char *otype = (obj ? obj->ob_type->tp_name : 0); if (otype) { PyObject *str = PyObject_Str(obj); const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; if (cstr) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", type, otype, cstr); SWIG_Python_str_DelForPy3(cstr); } else { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", type, otype); } Py_XDECREF(str); return; } } PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); } else { PyErr_Format(PyExc_TypeError, "unexpected type is received"); } } /* Convert a pointer value, signal an exception on a type mismatch */ SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { void *result; if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { PyErr_Clear(); #if SWIG_POINTER_EXCEPTION if (flags) { SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); SWIG_Python_ArgFail(argnum); } #endif } return result; } #ifdef SWIGPYTHON_BUILTIN SWIGRUNTIME int SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyTypeObject *tp = obj->ob_type; PyObject *descr; PyObject *encoded_name; descrsetfunc f; int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); if (!name) return -1; } else if (!PyUnicode_Check(name)) # else if (!PyString_Check(name)) # endif { PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); return -1; } else { Py_INCREF(name); } if (!tp->tp_dict) { if (PyType_Ready(tp) < 0) goto done; } descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) f = descr->ob_type->tp_descr_set; if (!f) { if (PyString_Check(name)) { encoded_name = name; Py_INCREF(name); } else { encoded_name = PyUnicode_AsUTF8String(name); } PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); Py_DECREF(encoded_name); } else { res = f(descr, obj, value); } done: Py_DECREF(name); return res; } #endif #ifdef __cplusplus } #endif /* -----------------------------------------------------------------------------* Standard SWIG API for use inside user code. Don't include this file directly, run the command swig -python -external-runtime Also, read the Modules chapter of the SWIG Manual. * -----------------------------------------------------------------------------*/ #ifdef SWIG_MODULE_CLIENTDATA_TYPE SWIGRUNTIMEINLINE swig_type_info * SWIG_TypeQuery(SWIG_MODULE_CLIENTDATA_TYPE clientdata, const char *name) { swig_module_info *module = SWIG_GetModule(clientdata); return SWIG_TypeQueryModule(module, module, name); } SWIGRUNTIMEINLINE swig_type_info * SWIG_MangledTypeQuery(SWIG_MODULE_CLIENTDATA_TYPE clientdata, const char *name) { swig_module_info *module = SWIG_GetModule(clientdata); return SWIG_MangledTypeQueryModule(module, module, name); } #else SWIGRUNTIMEINLINE swig_type_info * SWIG_TypeQuery(const char *name) { swig_module_info *module = SWIG_GetModule(NULL); return SWIG_TypeQueryModule(module, module, name); } SWIGRUNTIMEINLINE swig_type_info * SWIG_MangledTypeQuery(const char *name) { swig_module_info *module = SWIG_GetModule(NULL); return SWIG_MangledTypeQueryModule(module, module, name); } #endif znc-1.6.3/modules/modpython/znc.py0000644000175000017500000004760512663147131017414 0ustar somebodysomebody# # Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from functools import wraps import imp import re import traceback import collections from znc_core import * class Socket: ADDR_MAP = { 'ipv4': ADDR_IPV4ONLY, 'ipv6': ADDR_IPV6ONLY, 'all': ADDR_ALL } def _Accepted(self, host, port): return getattr(self.OnAccepted(host, port), '_csock', None) def GetModule(self): return AsPyModule(self._csock.GetModule()).GetNewPyObj() def Listen(self, addrtype='all', port=None, bindhost='', ssl=False, maxconns=GetSOMAXCONN(), timeout=0): try: addr = self.ADDR_MAP[addrtype.lower()] except KeyError: raise ValueError( "Specified addrtype [{0}] isn't supported".format(addrtype)) args = ( "python socket for {0}".format(self.GetModule()), bindhost, ssl, maxconns, self._csock, timeout, addr ) if port is None: return self.GetModule().GetManager().ListenRand(*args) if self.GetModule().GetManager().ListenHost(port, *args): return port return 0 def Connect(self, host, port, timeout=60, ssl=False, bindhost=''): return self.GetModule().GetManager().Connect( host, port, 'python conn socket for {0}'.format(self.GetModule()), timeout, ssl, bindhost, self._csock ) def Write(self, data): if (isinstance(data, str)): return self._csock.Write(data) raise TypeError( 'socket.Write needs str. If you want binary data, use WriteBytes') def Init(self, *a, **b): pass def OnConnected(self): pass def OnDisconnected(self): pass def OnTimeout(self): pass def OnConnectionRefused(self): pass def OnReadData(self, bytess): pass def OnReadLine(self, line): pass def OnAccepted(self, host, port): pass def OnShutdown(self): pass class Timer: def GetModule(self): return AsPyModule(self._ctimer.GetModule()).GetNewPyObj() def RunJob(self): pass def OnShutdown(self): pass class ModuleNVIter(collections.Iterator): def __init__(self, cmod): self._cmod = cmod self.it = cmod.BeginNV_() def __next__(self): if self.it.is_end(self._cmod): raise StopIteration res = self.it.get() self.it.plusplus() return res class ModuleNV(collections.MutableMapping): def __init__(self, cmod): self._cmod = cmod def __setitem__(self, key, value): self._cmod.SetNV(key, value) def __getitem__(self, key): if not self._cmod.ExistsNV(key): raise KeyError return self._cmod.GetNV(key) def __contains__(self, key): return self._cmod.ExistsNV(key) def __delitem__(self, key): self._cmod.DelNV(key) def keys(self): return ModuleNVIter(self._cmod) __iter__ = keys def __len__(self): raise NotImplemented class Module: description = '< Placeholder for a description >' module_types = [CModInfo.NetworkModule] wiki_page = '' has_args = False args_help_text = '' def __str__(self): return self.GetModName() def OnLoad(self, sArgs, sMessage): return True def _GetSubPages(self): return self.GetSubPages() def CreateSocket(self, socketclass=Socket, *the, **rest): socket = socketclass() socket._csock = CreatePySocket(self._cmod, socket) socket.Init(*the, **rest) return socket def CreateTimer(self, timer, interval=10, cycles=1, label='pytimer', description='Some python timer'): t = timer() t._ctimer = CreatePyTimer(self._cmod, interval, cycles, label, description, t) return t def GetSubPages(self): pass def OnShutdown(self): pass def OnBoot(self): pass def WebRequiresLogin(self): pass def WebRequiresAdmin(self): pass def GetWebMenuTitle(self): pass def OnWebPreRequest(self, WebSock, sPageName): pass def OnWebRequest(self, WebSock, sPageName, Tmpl): pass def OnPreRehash(self): pass def OnPostRehash(self): pass def OnIRCDisconnected(self): pass def OnIRCConnected(self): pass def OnIRCConnecting(self, IRCSock): pass def OnIRCConnectionError(self, IRCSock): pass def OnIRCRegistration(self, sPass, sNick, sIdent, sRealName): pass def OnBroadcast(self, sMessage): pass def OnChanPermission(self, OpNick, Nick, Channel, uMode, bAdded, bNoChange): pass def OnOp(self, OpNick, Nick, Channel, bNoChange): pass def OnDeop(self, OpNick, Nick, Channel, bNoChange): pass def OnVoice(self, OpNick, Nick, Channel, bNoChange): pass def OnDevoice(self, OpNick, Nick, Channel, bNoChange): pass def OnMode(self, OpNick, Channel, uMode, sArg, bAdded, bNoChange): pass def OnRawMode(self, OpNick, Channel, sModes, sArgs): pass def OnRaw(self, sLine): pass def OnStatusCommand(self, sCommand): pass def OnModCommand(self, sCommand): pass def OnModNotice(self, sMessage): pass def OnModCTCP(self, sMessage): pass def OnQuit(self, Nick, sMessage, vChans): pass def OnNick(self, Nick, sNewNick, vChans): pass def OnKick(self, OpNick, sKickedNick, Channel, sMessage): pass def OnJoining(self, Channel): pass def OnJoin(self, Nick, Channel): pass def OnPart(self, Nick, Channel, sMessage=None): pass def OnChanBufferStarting(self, Chan, Client): pass def OnChanBufferEnding(self, Chan, Client): pass def OnChanBufferPlayLine(self, Chan, Client, sLine): pass def OnPrivBufferPlayLine(self, Client, sLine): pass def OnClientLogin(self): pass def OnClientDisconnect(self): pass def OnUserRaw(self, sLine): pass def OnUserCTCPReply(self, sTarget, sMessage): pass def OnUserCTCP(self, sTarget, sMessage): pass def OnUserAction(self, sTarget, sMessage): pass def OnUserMsg(self, sTarget, sMessage): pass def OnUserNotice(self, sTarget, sMessage): pass def OnUserJoin(self, sChannel, sKey): pass def OnUserPart(self, sChannel, sMessage): pass def OnUserTopic(self, sChannel, sTopic): pass def OnUserTopicRequest(self, sChannel): pass def OnCTCPReply(self, Nick, sMessage): pass def OnPrivCTCP(self, Nick, sMessage): pass def OnChanCTCP(self, Nick, Channel, sMessage): pass def OnPrivAction(self, Nick, sMessage): pass def OnChanAction(self, Nick, Channel, sMessage): pass def OnPrivMsg(self, Nick, sMessage): pass def OnChanMsg(self, Nick, Channel, sMessage): pass def OnPrivNotice(self, Nick, sMessage): pass def OnChanNotice(self, Nick, Channel, sMessage): pass def OnTopic(self, Nick, Channel, sTopic): pass def OnServerCapAvailable(self, sCap): pass def OnServerCapResult(self, sCap, bSuccess): pass def OnTimerAutoJoin(self, Channel): pass def OnEmbeddedWebRequest(self, WebSock, sPageName, Tmpl): pass def OnAddNetwork(self, Network, sErrorRet): pass def OnDeleteNetwork(self, Network): pass def OnSendToClient(self, sLine, Client): pass def OnSendToIRC(self, sLine): pass # Global modules def OnAddUser(self, User, sErrorRet): pass def OnDeleteUser(self, User): pass def OnClientConnect(self, pSock, sHost, uPort): pass def OnLoginAttempt(self, Auth): pass def OnFailedLogin(self, sUsername, sRemoteIP): pass def OnUnknownUserRaw(self, pClient, sLine): pass def OnClientCapLs(self, pClient, ssCaps): pass def IsClientCapSupported(self, pClient, sCap, bState): pass def OnClientCapRequest(self, pClient, sCap, bState): pass def OnModuleLoading(self, sModName, sArgs, eType, bSuccess, sRetMsg): pass def OnModuleUnloading(self, pModule, bSuccess, sRetMsg): pass def OnGetModInfo(self, ModInfo, sModule, bSuccess, sRetMsg): pass def OnGetAvailableMods(self, ssMods, eType): pass # In python None is allowed value, so python modules may continue using OnMode and not OnMode2 def OnChanPermission2(self, OpNick, Nick, Channel, uMode, bAdded, bNoChange): return self.OnChanPermission(OpNick, Nick, Channel, uMode, bAdded, bNoChange) def OnOp2(self, OpNick, Nick, Channel, bNoChange): return self.OnOp(OpNick, Nick, Channel, bNoChange) def OnDeop2(self, OpNick, Nick, Channel, bNoChange): return self.OnDeop(OpNick, Nick, Channel, bNoChange) def OnVoice2(self, OpNick, Nick, Channel, bNoChange): return self.OnVoice(OpNick, Nick, Channel, bNoChange) def OnDevoice2(self, OpNick, Nick, Channel, bNoChange): return self.OnDevoice(OpNick, Nick, Channel, bNoChange) def OnMode2(self, OpNick, Channel, uMode, sArg, bAdded, bNoChange): return self.OnMode(OpNick, Channel, uMode, sArg, bAdded, bNoChange) def OnRawMode2(self, OpNick, Channel, sModes, sArgs): return self.OnRawMode(OpNick, Channel, sModes, sArgs) def make_inherit(cl, parent, attr): def make_caller(parent, name, attr): return lambda self, *a: parent.__dict__[name](self.__dict__[attr], *a) while True: for x in parent.__dict__: if not x.startswith('_') and x not in cl.__dict__: setattr(cl, x, make_caller(parent, x, attr)) if '_s' in parent.__dict__: parent = parent._s else: break make_inherit(Socket, CPySocket, '_csock') make_inherit(Module, CPyModule, '_cmod') make_inherit(Timer, CPyTimer, '_ctimer') def find_open(modname): '''Returns (pymodule, datapath)''' for d in CModules.GetModDirs(): # d == (libdir, datadir) try: x = imp.find_module(modname, [d[0]]) except ImportError: # no such file in dir d continue # x == (, # './modules/admin.so', ('.so', 'rb', 3)) # x == (, './modules/pythontest.py', ('.py', 'U', 1)) if x[0] is None and x[2][2] != imp.PKG_DIRECTORY: # the same continue if x[2][0] == '.so': try: pymodule = imp.load_module(modname, *x) except ImportError: # found needed .so but can't load it... # maybe it's normal (non-python) znc module? # another option here could be to "continue" # search of python module in other moddirs. # but... we respect C++ modules ;) return (None, None) finally: x[0].close() else: # this is not .so, so it can be only python module .py or .pyc try: pymodule = imp.load_module(modname, *x) finally: if x[0]: x[0].close() return (pymodule, d[1]+modname) else: # nothing found return (None, None) _py_modules = set() def load_module(modname, args, module_type, user, network, retmsg, modpython): '''Returns 0 if not found, 1 on loading error, 2 on success''' if re.search(r'[^a-zA-Z0-9_]', modname) is not None: retmsg.s = 'Module names can only contain letters, numbers and ' \ 'underscores, [{0}] is invalid.'.format(modname) return 1 pymodule, datapath = find_open(modname) if pymodule is None: return 0 if modname not in pymodule.__dict__: retmsg.s = "Python module [{0}] doesn't have class named [{1}]".format( pymodule.__file__, modname) return 1 cl = pymodule.__dict__[modname] if module_type not in cl.module_types: retmsg.s = "Module [{}] doesn't support type.".format(modname) return 1 module = cl() module._cmod = CreatePyModule(user, network, modname, datapath, module, modpython) module.nv = ModuleNV(module._cmod) module.SetDescription(cl.description) module.SetArgs(args) module.SetModPath(pymodule.__file__) module.SetType(module_type) _py_modules.add(module) if module_type == CModInfo.UserModule: if not user: retmsg.s = "Module [{}] is UserModule and needs user.".format(modname) unload_module(module) return 1 cont = user elif module_type == CModInfo.NetworkModule: if not network: retmsg.s = "Module [{}] is Network module and needs a network.".format(modname) unload_module(module) return 1 cont = network elif module_type == CModInfo.GlobalModule: cont = CZNC.Get() else: retmsg.s = "Module [{}] doesn't support that module type.".format(modname) unload_module(module) return 1 cont.GetModules().append(module._cmod) try: loaded = True if not module.OnLoad(args, retmsg): if retmsg.s == '': retmsg.s = 'Module [{0}] aborted.'.format(modname) else: retmsg.s = 'Module [{0}] aborted: {1}'.format(modname, retmsg.s) loaded = False except BaseException: if retmsg.s == '': retmsg.s = 'Got exception: {0}'.format(traceback.format_exc()) else: retmsg.s = '{0}; Got exception: {1}'.format(retmsg.s, traceback.format_exc()) loaded = False except: if retmsg.s == '': retmsg.s = 'Got exception.' else: retmsg.s = '{0}; Got exception.'.format(retmsg.s) loaded = False if loaded: if retmsg.s == '': retmsg.s = "[{0}]".format(pymodule.__file__) else: retmsg.s = "[{1}] [{0}]".format(pymodule.__file__, retmsg.s) return 2 print(retmsg.s) unload_module(module) return 1 def unload_module(module): if (module not in _py_modules): return False module.OnShutdown() _py_modules.discard(module) cmod = module._cmod if module.GetType() == CModInfo.UserModule: cont = cmod.GetUser() elif module.GetType() == CModInfo.NetworkModule: cont = cmod.GetNetwork() elif module.GetType() == CModInfo.GlobalModule: cont = CZNC.Get() cont.GetModules().removeModule(cmod) del module._cmod cmod.DeletePyModule() del cmod return True def unload_all(): while len(_py_modules) > 0: mod = _py_modules.pop() # add it back to set, otherwise unload_module will be sad _py_modules.add(mod) unload_module(mod) def gather_mod_info(cl, modinfo): modinfo.SetDescription(cl.description) modinfo.SetWikiPage(cl.wiki_page) modinfo.SetDefaultType(cl.module_types[0]) modinfo.SetArgsHelpText(cl.args_help_text); modinfo.SetHasArgs(cl.has_args); for module_type in cl.module_types: modinfo.AddType(module_type) def get_mod_info(modname, retmsg, modinfo): '''0-not found, 1-error, 2-success''' pymodule, datadir = find_open(modname) if pymodule is None: return 0 if modname not in pymodule.__dict__: retmsg.s = "Python module [{0}] doesn't have class named [{1}]".format( pymodule.__file__, modname) return 1 cl = pymodule.__dict__[modname] modinfo.SetName(modname) modinfo.SetPath(pymodule.__file__) gather_mod_info(cl, modinfo) return 2 def get_mod_info_path(path, modname, modinfo): try: x = imp.find_module(modname, [path]) except ImportError: return 0 # x == (, # './modules/admin.so', ('.so', 'rb', 3)) # x == (, # './modules/pythontest.py', ('.py', 'U', 1)) if x[0] is None and x[2][2] != imp.PKG_DIRECTORY: return 0 try: pymodule = imp.load_module(modname, *x) except ImportError: return 0 finally: if x[0]: x[0].close() if modname not in pymodule.__dict__: return 0 cl = pymodule.__dict__[modname] modinfo.SetName(modname) modinfo.SetPath(pymodule.__file__) gather_mod_info(cl, modinfo) return 1 CONTINUE = CModule.CONTINUE HALT = CModule.HALT HALTMODS = CModule.HALTMODS HALTCORE = CModule.HALTCORE UNLOAD = CModule.UNLOAD HaveSSL = HaveSSL_() HaveIPv6 = HaveIPv6_() HaveCharset = HaveCharset_() Version = GetVersion() VersionMajor = GetVersionMajor() VersionMinor = GetVersionMinor() VersionExtra = GetVersionExtra() def CreateWebSubPage(name, title='', params=dict(), admin=False): vpair = VPair() for k, v in params.items(): VPair_Add2Str_(vpair, k, v) flags = 0 if admin: flags |= CWebSubPage.F_ADMIN return CreateWebSubPage_(name, title, vpair, flags) CUser.GetNetworks = CUser.GetNetworks_ CIRCNetwork.GetChans = CIRCNetwork.GetChans_ CChan.GetNicks = CChan.GetNicks_ CZNC.GetUserMap = CZNC.GetUserMap_ def FreeOwnership(func): """ Force release of python ownership of user object when adding it to znc This solves #462 """ @wraps(func) def _wrap(self, obj, *args): # Bypass if first argument is not an SWIG object (like base type str) if not hasattr(obj, 'thisown'): return func(self, obj, *args) # Change ownership of C++ object from SWIG/python to ZNC core if function was successful if func(self, obj, *args): # .thisown is magic SWIG's attribute which makes it call C++ "delete" when python's garbage collector deletes python wrapper obj.thisown = 0 return True else: return False return _wrap CZNC.AddListener = FreeOwnership(func=CZNC.AddListener) CZNC.AddUser = FreeOwnership(func=CZNC.AddUser) CZNC.AddNetworkToQueue = FreeOwnership(func=CZNC.AddNetworkToQueue) CUser.AddNetwork = FreeOwnership(func=CUser.AddNetwork) CIRCNetwork.AddChan = FreeOwnership(func=CIRCNetwork.AddChan) CModule.AddSocket = FreeOwnership(func=CModule.AddSocket) CModule.AddSubPage = FreeOwnership(func=CModule.AddSubPage) class ModulesIter(collections.Iterator): def __init__(self, cmod): self._cmod = cmod def __next__(self): if self._cmod.is_end(): raise StopIteration module = self._cmod.get() self._cmod.plusplus() return module CModules.__iter__ = lambda cmod: ModulesIter(CModulesIter(cmod)) def str_eq(self, other): if str(other) == str(self): return True return id(self) == id(other) CChan.__eq__ = str_eq CNick.__eq__ = str_eq CUser.__eq__ = str_eq CIRCNetwork.__eq__ = str_eq CPyRetString.__eq__ = str_eq znc-1.6.3/modules/modpython/ret.h0000644000175000017500000000213712663147131017202 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once class CPyRetString { public: CString& s; CPyRetString(CString& S) : s(S) {} static PyObject* wrap(CString& S) { CPyRetString* x = new CPyRetString(S); return SWIG_NewInstanceObj(x, SWIG_TypeQuery("CPyRetString*"), SWIG_POINTER_OWN); } }; class CPyRetBool { public: bool& b; CPyRetBool(bool& B) : b(B) {} static PyObject* wrap(bool& B) { CPyRetBool* x = new CPyRetBool(B); return SWIG_NewInstanceObj(x, SWIG_TypeQuery("CPyRetBool*"), SWIG_POINTER_OWN); } }; znc-1.6.3/modules/modpython/module.h0000644000175000017500000002511512663147131017676 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once class String { public: CString s; }; class CModPython; #if HAVE_VISIBILITY #pragma GCC visibility push(default) #endif class CPyModule : public CModule { PyObject* m_pyObj; CModPython* m_pModPython; VWebSubPages* _GetSubPages(); public: CPyModule(CUser* pUser, CIRCNetwork* pNetwork, const CString& sModName, const CString& sDataPath, PyObject* pyObj, CModPython* pModPython) : CModule(NULL, pUser, pNetwork, sModName, sDataPath) { m_pyObj = pyObj; Py_INCREF(pyObj); m_pModPython = pModPython; } PyObject* GetPyObj() { // borrows return m_pyObj; } PyObject* GetNewPyObj() { Py_INCREF(m_pyObj); return m_pyObj; } void DeletePyModule() { Py_CLEAR(m_pyObj); delete this; } CString GetPyExceptionStr(); CModPython* GetModPython() { return m_pModPython; } virtual bool OnBoot() override; virtual bool WebRequiresLogin() override; virtual bool WebRequiresAdmin() override; virtual CString GetWebMenuTitle() override; virtual bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName) override; virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override; virtual VWebSubPages& GetSubPages() override; virtual void OnPreRehash() override; virtual void OnPostRehash() override; virtual void OnIRCDisconnected() override; virtual void OnIRCConnected() override; virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) override; virtual void OnIRCConnectionError(CIRCSock *pIRCSock) override; virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) override; virtual EModRet OnBroadcast(CString& sMessage) override; virtual void OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) override; virtual void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) override; virtual void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) override; virtual EModRet OnRaw(CString& sLine) override; virtual EModRet OnStatusCommand(CString& sCommand) override; virtual void OnModCommand(const CString& sCommand) override; virtual void OnModNotice(const CString& sMessage) override; virtual void OnModCTCP(const CString& sMessage) override; virtual void OnQuit(const CNick& Nick, const CString& sMessage, const std::vector& vChans) override; virtual void OnNick(const CNick& Nick, const CString& sNewNick, const std::vector& vChans) override; virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override; virtual EModRet OnJoining(CChan& Channel) override; virtual void OnJoin(const CNick& Nick, CChan& Channel) override; virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override; virtual EModRet OnChanBufferStarting(CChan& Chan, CClient& Client) override; virtual EModRet OnChanBufferEnding(CChan& Chan, CClient& Client) override; virtual EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) override; virtual EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine) override; virtual void OnClientLogin() override; virtual void OnClientDisconnect() override; virtual EModRet OnUserRaw(CString& sLine) override; virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserJoin(CString& sChannel, CString& sKey) override; virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) override; virtual EModRet OnUserTopic(CString& sChannel, CString& sTopic) override; virtual EModRet OnUserTopicRequest(CString& sChannel) override; virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) override; virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) override; virtual bool OnServerCapAvailable(const CString& sCap) override; virtual void OnServerCapResult(const CString& sCap, bool bSuccess) override; virtual EModRet OnTimerAutoJoin(CChan& Channel) override; virtual bool OnEmbeddedWebRequest(CWebSock&, const CString&, CTemplate&) override; virtual EModRet OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) override; virtual EModRet OnDeleteNetwork(CIRCNetwork& Network) override; virtual EModRet OnSendToClient(CString& sLine, CClient& Client) override; virtual EModRet OnSendToIRC(CString& sLine) override; // Global Modules virtual EModRet OnAddUser(CUser& User, CString& sErrorRet) override; virtual EModRet OnDeleteUser(CUser& User) override; virtual void OnClientConnect(CZNCSock* pSock, const CString& sHost, unsigned short uPort) override; virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) override; virtual EModRet OnUnknownUserRaw(CClient* pClient, CString& sLine) override; virtual bool IsClientCapSupported(CClient* pClient, const CString& sCap, bool bState) override; virtual void OnClientCapRequest(CClient* pClient, const CString& sCap, bool bState) override; virtual EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) override; virtual EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) override; virtual EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) override; virtual void OnGetAvailableMods(std::set& ssMods, CModInfo::EModuleType eType) override; virtual void OnClientCapLs(CClient* pClient, SCString& ssCaps) override; virtual EModRet OnLoginAttempt(std::shared_ptr Auth) override; }; static inline CPyModule* AsPyModule(CModule* p) { return dynamic_cast(p); } inline CPyModule* CreatePyModule(CUser* pUser, CIRCNetwork* pNetwork, const CString& sModName, const CString& sDataPath, PyObject* pyObj, CModPython* pModPython) { return new CPyModule(pUser, pNetwork, sModName, sDataPath, pyObj, pModPython); } class CPyTimer : public CTimer { PyObject* m_pyObj; CModPython* m_pModPython; public: CPyTimer(CPyModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription, PyObject* pyObj) : CTimer (pModule, uInterval, uCycles, sLabel, sDescription), m_pyObj(pyObj) { Py_INCREF(pyObj); pModule->AddTimer(this); m_pModPython = pModule->GetModPython(); } virtual void RunJob() override; PyObject* GetPyObj() { return m_pyObj; } PyObject* GetNewPyObj() { Py_INCREF(m_pyObj); return m_pyObj; } ~CPyTimer(); }; inline CPyTimer* CreatePyTimer(CPyModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription, PyObject* pyObj) { return new CPyTimer(pModule, uInterval, uCycles, sLabel, sDescription, pyObj); } class CPySocket : public CSocket { PyObject* m_pyObj; CModPython* m_pModPython; public: CPySocket(CPyModule* pModule, PyObject* pyObj) : CSocket(pModule), m_pyObj(pyObj) { Py_INCREF(pyObj); m_pModPython = pModule->GetModPython(); } PyObject* GetPyObj() { return m_pyObj; } PyObject* GetNewPyObj() { Py_INCREF(m_pyObj); return m_pyObj; } ~CPySocket(); virtual void Connected() override; virtual void Disconnected() override; virtual void Timeout() override; virtual void ConnectionRefused() override; virtual void ReadData(const char *data, size_t len) override; virtual void ReadLine(const CString& sLine) override; virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) override; }; inline CPySocket* CreatePySocket(CPyModule* pModule, PyObject* pyObj) { return new CPySocket(pModule, pyObj); } inline bool HaveIPv6_() { #ifdef HAVE_IPV6 return true; #endif return false; } inline bool HaveSSL_() { #ifdef HAVE_LIBSSL return true; #endif return false; } inline bool HaveCharset_() { #ifdef HAVE_ICU return true; #endif return false; } inline int GetSOMAXCONN() { return SOMAXCONN; } inline int GetVersionMajor() { return VERSION_MAJOR; } inline int GetVersionMinor() { return VERSION_MINOR; } inline double GetVersion() { return VERSION; } inline CString GetVersionExtra() { return ZNC_VERSION_EXTRA; } class MCString_iter { public: MCString_iter() {} MCString::iterator x; MCString_iter(MCString::iterator z) : x(z) {} void plusplus() { ++x; } CString get() { return x->first; } bool is_end(CModule* m) { return m->EndNV() == x; } }; class CModulesIter { public: CModulesIter(CModules *pModules) { m_pModules = pModules; m_it = pModules->begin(); } void plusplus() { ++m_it; } const CModule* get() const { return *m_it; } bool is_end() const { return m_pModules->end() == m_it; } CModules *m_pModules; CModules::const_iterator m_it; }; #if HAVE_VISIBILITY #pragma GCC visibility pop #endif znc-1.6.3/modules/modpython/cstring.i0000644000175000017500000003110712663147131020061 0ustar somebodysomebody/* SWIG-generated sources are used here. This file is generated using: echo '%include ' > foo.i swig -python -py3 -c++ -shadow -E foo.i > string.i Remove unrelated stuff from top of file which is included by default s/std::string/CString/g s/std_string/CString/g */ // // String // %fragment(""); %feature("naturalvar") CString; class CString; /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,70,%typemaps_CString@*/ /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,4,%CString_asptr@*/ %fragment("SWIG_" "AsPtr" "_" {CString},"header",fragment="SWIG_AsCharPtrAndSize") { SWIGINTERN int SWIG_AsPtr_CString (PyObject * obj, CString **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new CString(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("CString" " *"); init = 1; } if (descriptor) { CString *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,48,%CString_asval@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header", fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERN int SWIG_AsVal_CString (PyObject * obj, CString *val) { CString* v = (CString *) 0; int res = SWIG_AsPtr_CString (obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { delete v; res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,38,%CString_from@*/ %fragment("SWIG_" "From" "_" {CString},"header",fragment="SWIG_FromCharPtrAndSize") { SWIGINTERNINLINE PyObject * SWIG_From_CString (const CString& s) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } } /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,201,%typemaps_asptrfromn@*/ /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,190,%typemaps_asptrfrom@*/ /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,160,%typemaps_asptr@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header",fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERNINLINE int SWIG_AsVal_CString (PyObject * obj, CString *val) { CString *v = (CString *)0; int res = SWIG_AsPtr_CString (obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { delete v; res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,28,%ptr_in_typemap@*/ %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString($input, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } $1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } %typemap(freearg) CString ""; %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) const CString & (int res = SWIG_OLDOBJ) { CString *ptr = (CString *)0; res = SWIG_AsPtr_CString($input, &ptr); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } $1 = ptr; } %typemap(freearg,noblock=1) const CString & { if (SWIG_IsNewObj(res$argnum)) delete $1; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,53,%ptr_varin_typemap@*/ %typemap(varin,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString($input, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in variable '""$name""' of type '""$type""'"); } $1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,68,%ptr_directorout_typemap@*/ %typemap(directorargout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *DIRECTOROUT ($*ltype temp, int swig_ores) { CString *swig_optr = 0; swig_ores = $result ? SWIG_AsPtr_CString($result, &swig_optr) : 0; if (!SWIG_IsOK(swig_ores) || !swig_optr) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""$type""'"); } temp = *swig_optr; $1 = &temp; if (SWIG_IsNewObj(swig_ores)) delete swig_optr; } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_CString($input, &swig_optr); if (!SWIG_IsOK(swig_ores) || !swig_optr) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""$type""'"); } $result = *swig_optr; if (SWIG_IsNewObj(swig_ores)) delete swig_optr; } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString},warning= "473:Returning a pointer or reference in a director method is not recommended." ) CString* { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_CString($input, &swig_optr); if (!SWIG_IsOK(swig_ores)) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_ores)), "in output value of type '""$type""'"); } $result = swig_optr; if (SWIG_IsNewObj(swig_ores)) { swig_acquire_ownership(swig_optr); } } %typemap(directorfree,noblock=1) CString* { if (director) { director->swig_release_ownership(SWIG_as_voidptr($input)); } } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString},warning= "473:Returning a pointer or reference in a director method is not recommended." ) CString& { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_CString($input, &swig_optr); if (!SWIG_IsOK(swig_ores)) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_ores)), "in output value of type '""$type""'"); } else { if (!swig_optr) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ValueError), "invalid null reference " "in output value of type '""$type""'"); } } $result = swig_optr; if (SWIG_IsNewObj(swig_ores)) { swig_acquire_ownership(swig_optr); } } %typemap(directorfree,noblock=1) CString& { if (director) { director->swig_release_ownership(SWIG_as_voidptr($input)); } } %typemap(directorout,fragment="SWIG_" "AsPtr" "_" {CString}) CString &DIRECTOROUT = CString /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,143,%ptr_typecheck_typemap@*/ %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString * { int res = SWIG_AsPtr_CString($input, (CString**)(0)); $1 = SWIG_CheckState(res); } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString, const CString& { int res = SWIG_AsPtr_CString($input, (CString**)(0)); $1 = SWIG_CheckState(res); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,254,%ptr_input_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,117,%_ptr_input_typemap@*/ %typemap(in,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT(int res = 0) { res = SWIG_AsPtr_CString($input, &$1); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } res = SWIG_AddTmpMask(res); } %typemap(in,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString &INPUT(int res = 0) { res = SWIG_AsPtr_CString($input, &$1); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } if (!$1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } res = SWIG_AddTmpMask(res); } %typemap(freearg,noblock=1,match="in") CString *INPUT, CString &INPUT { if (SWIG_IsNewObj(res$argnum)) delete $1; } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT, CString &INPUT { int res = SWIG_AsPtr_CString($input, (CString**)0); $1 = SWIG_CheckState(res); } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,183,%typemaps_from@*/ /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,55,%value_out_typemap@*/ %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString { $result = SWIG_From_CString(static_cast< CString >($1)); } %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) const CString& { $result = SWIG_From_CString(static_cast< CString >(*$1)); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,79,%value_varout_typemap@*/ %typemap(varout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { $result = SWIG_From_CString(static_cast< CString >($1)); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,87,%value_constcode_typemap@*/ %typemap(constcode,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { SWIG_Python_SetConstant(d, "$symname",SWIG_From_CString(static_cast< CString >($value))); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,98,%value_directorin_typemap@*/ %typemap(directorin,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *DIRECTORIN { $input = SWIG_From_CString(static_cast< CString >(*$1)); } %typemap(directorin,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { $input = SWIG_From_CString(static_cast< CString >($1)); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,153,%value_throws_typemap@*/ %typemap(throws,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { SWIG_Python_Raise(SWIG_From_CString(static_cast< CString >($1)), "$type", 0); SWIG_fail; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,175,%_value_output_typemap@*/ %typemap(in,numinputs=0,noblock=1) CString *OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ), CString &OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ) { $1 = &temp; } %typemap(argout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *OUTPUT, CString &OUTPUT { if (SWIG_IsTmpObj(res$argnum)) { $result = SWIG_Python_AppendOutput($result, SWIG_From_CString((*$1))); } else { int new_flags = SWIG_IsNewObj(res$argnum) ? (SWIG_POINTER_OWN | 0 ) : 0 ; $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj((void*)($1), $1_descriptor, new_flags)); } } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,175,%_value_output_typemap@*/ %typemap(in,numinputs=0,noblock=1) CString *OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ), CString &OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ) { $1 = &temp; } %typemap(argout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *OUTPUT, CString &OUTPUT { if (SWIG_IsTmpObj(res$argnum)) { $result = SWIG_Python_AppendOutput($result, SWIG_From_CString((*$1))); } else { int new_flags = SWIG_IsNewObj(res$argnum) ? (SWIG_POINTER_OWN | 0 ) : 0 ; $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj((void*)($1), $1_descriptor, new_flags)); } } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,240,%_ptr_inout_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,230,%_value_inout_typemap@*/ %typemap(in) CString *INOUT = CString *INPUT; %typemap(in) CString &INOUT = CString &INPUT; %typemap(typecheck) CString *INOUT = CString *INPUT; %typemap(typecheck) CString &INOUT = CString &INPUT; %typemap(argout) CString *INOUT = CString *OUTPUT; %typemap(argout) CString &INOUT = CString &OUTPUT; /*@SWIG@*/ %typemap(typecheck) CString *INOUT = CString *INPUT; %typemap(typecheck) CString &INOUT = CString &INPUT; %typemap(freearg) CString *INOUT = CString *INPUT; %typemap(freearg) CString &INOUT = CString &INPUT; /*@SWIG@*/; /*@SWIG@*/ znc-1.6.3/modules/modpython/_znc_core.cpp0000644000175000017500002112551312663147145020720 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.5 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #include "znc/zncconfig.h" #define SWIGPYTHON #define SWIG_PYTHON_DIRECTOR_NO_VTABLE #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template class SwigValueWrapper { struct SwigMovePointer { T *ptr; SwigMovePointer(T *p) : ptr(p) { } ~SwigMovePointer() { delete ptr; } SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } } pointer; SwigValueWrapper& operator=(const SwigValueWrapper& rhs); SwigValueWrapper(const SwigValueWrapper& rhs); public: SwigValueWrapper() : pointer(0) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } operator T&() const { return *pointer.ptr; } T *operator&() { return pointer.ptr; } }; template T SwigValueInit() { return T(); } #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) /* Use debug wrappers with the Python release dll */ # undef _DEBUG # include # define _DEBUG #else # include #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 /* Compatibility macros for Python 3 */ #if PY_VERSION_HEX >= 0x03000000 #define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) #define PyInt_Check(x) PyLong_Check(x) #define PyInt_AsLong(x) PyLong_AsLong(x) #define PyInt_FromLong(x) PyLong_FromLong(x) #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) #define PyString_Check(name) PyBytes_Check(name) #define PyString_FromString(x) PyUnicode_FromString(x) #define PyString_Format(fmt, args) PyUnicode_Format(fmt, args) #define PyString_AsString(str) PyBytes_AsString(str) #define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE #define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) #endif #ifndef Py_TYPE # define Py_TYPE(op) ((op)->ob_type) #endif /* SWIG APIs for compatibility of both Python 2 & 3 */ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_FromFormat PyUnicode_FromFormat #else # define SWIG_Python_str_FromFormat PyString_FromFormat #endif /* Warning: This function will allocate a new string in Python 3, * so please call SWIG_Python_str_DelForPy3(x) to free the space. */ SWIGINTERN char* SWIG_Python_str_AsChar(PyObject *str) { #if PY_VERSION_HEX >= 0x03000000 char *cstr; char *newstr; Py_ssize_t len; str = PyUnicode_AsUTF8String(str); PyBytes_AsStringAndSize(str, &cstr, &len); newstr = (char *) malloc(len+1); memcpy(newstr, cstr, len+1); Py_XDECREF(str); return newstr; #else return PyString_AsString(str); #endif } #if PY_VERSION_HEX >= 0x03000000 # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) #else # define SWIG_Python_str_DelForPy3(x) #endif SWIGINTERN PyObject* SWIG_Python_str_FromChar(const char *c) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_FromString(c); #else return PyString_FromString(c); #endif } /* Add PyOS_snprintf for old Pythons */ #if PY_VERSION_HEX < 0x02020000 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) # define PyOS_snprintf _snprintf # else # define PyOS_snprintf snprintf # endif #endif /* A crude PyString_FromFormat implementation for old Pythons */ #if PY_VERSION_HEX < 0x02020000 #ifndef SWIG_PYBUFFER_SIZE # define SWIG_PYBUFFER_SIZE 1024 #endif static PyObject * PyString_FromFormat(const char *fmt, ...) { va_list ap; char buf[SWIG_PYBUFFER_SIZE * 2]; int res; va_start(ap, fmt); res = vsnprintf(buf, sizeof(buf), fmt, ap); va_end(ap); return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); } #endif /* Add PyObject_Del for old Pythons */ #if PY_VERSION_HEX < 0x01060000 # define PyObject_Del(op) PyMem_DEL((op)) #endif #ifndef PyObject_DEL # define PyObject_DEL PyObject_Del #endif /* A crude PyExc_StopIteration exception for old Pythons */ #if PY_VERSION_HEX < 0x02020000 # ifndef PyExc_StopIteration # define PyExc_StopIteration PyExc_RuntimeError # endif # ifndef PyObject_GenericGetAttr # define PyObject_GenericGetAttr 0 # endif #endif /* Py_NotImplemented is defined in 2.1 and up. */ #if PY_VERSION_HEX < 0x02010000 # ifndef Py_NotImplemented # define Py_NotImplemented PyExc_RuntimeError # endif #endif /* A crude PyString_AsStringAndSize implementation for old Pythons */ #if PY_VERSION_HEX < 0x02010000 # ifndef PyString_AsStringAndSize # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} # endif #endif /* PySequence_Size for old Pythons */ #if PY_VERSION_HEX < 0x02000000 # ifndef PySequence_Size # define PySequence_Size PySequence_Length # endif #endif /* PyBool_FromLong for old Pythons */ #if PY_VERSION_HEX < 0x02030000 static PyObject *PyBool_FromLong(long ok) { PyObject *result = ok ? Py_True : Py_False; Py_INCREF(result); return result; } #endif /* Py_ssize_t for old Pythons */ /* This code is as recommended by: */ /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ #if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN) typedef int Py_ssize_t; # define PY_SSIZE_T_MAX INT_MAX # define PY_SSIZE_T_MIN INT_MIN typedef inquiry lenfunc; typedef intargfunc ssizeargfunc; typedef intintargfunc ssizessizeargfunc; typedef intobjargproc ssizeobjargproc; typedef intintobjargproc ssizessizeobjargproc; typedef getreadbufferproc readbufferproc; typedef getwritebufferproc writebufferproc; typedef getsegcountproc segcountproc; typedef getcharbufferproc charbufferproc; static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) { long result = 0; PyObject *i = PyNumber_Int(x); if (i) { result = PyInt_AsLong(i); Py_DECREF(i); } return result; } #endif #if PY_VERSION_HEX < 0x02050000 #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) #endif #if PY_VERSION_HEX < 0x02040000 #define Py_VISIT(op) \ do { \ if (op) { \ int vret = visit((op), arg); \ if (vret) \ return vret; \ } \ } while (0) #endif #if PY_VERSION_HEX < 0x02030000 typedef struct { PyTypeObject type; PyNumberMethods as_number; PyMappingMethods as_mapping; PySequenceMethods as_sequence; PyBufferProcs as_buffer; PyObject *name, *slots; } PyHeapTypeObject; #endif #if PY_VERSION_HEX < 0x02030000 typedef destructor freefunc; #endif #if ((PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION > 6) || \ (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION > 0) || \ (PY_MAJOR_VERSION > 3)) # define SWIGPY_USE_CAPSULE # define SWIGPY_CAPSULE_NAME ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) #endif #if PY_VERSION_HEX < 0x03020000 #define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type) #define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name) #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIME PyObject* SWIG_Python_ErrorType(int code) { PyObject* type = 0; switch(code) { case SWIG_MemoryError: type = PyExc_MemoryError; break; case SWIG_IOError: type = PyExc_IOError; break; case SWIG_RuntimeError: type = PyExc_RuntimeError; break; case SWIG_IndexError: type = PyExc_IndexError; break; case SWIG_TypeError: type = PyExc_TypeError; break; case SWIG_DivisionByZero: type = PyExc_ZeroDivisionError; break; case SWIG_OverflowError: type = PyExc_OverflowError; break; case SWIG_SyntaxError: type = PyExc_SyntaxError; break; case SWIG_ValueError: type = PyExc_ValueError; break; case SWIG_SystemError: type = PyExc_SystemError; break; case SWIG_AttributeError: type = PyExc_AttributeError; break; default: type = PyExc_RuntimeError; } return type; } SWIGRUNTIME void SWIG_Python_AddErrorMsg(const char* mesg) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); if (value) { char *tmp; PyObject *old_str = PyObject_Str(value); PyErr_Clear(); Py_XINCREF(type); PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); Py_DECREF(value); } else { PyErr_SetString(PyExc_RuntimeError, mesg); } } #if defined(SWIG_PYTHON_NO_THREADS) # if defined(SWIG_PYTHON_THREADS) # undef SWIG_PYTHON_THREADS # endif #endif #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ # define SWIG_PYTHON_USE_GIL # endif # endif # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ # ifndef SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() # endif # ifdef __cplusplus /* C++ code */ class SWIG_Python_Thread_Block { bool status; PyGILState_STATE state; public: void end() { if (status) { PyGILState_Release(state); status = false;} } SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} ~SWIG_Python_Thread_Block() { end(); } }; class SWIG_Python_Thread_Allow { bool status; PyThreadState *save; public: void end() { if (status) { PyEval_RestoreThread(save); status = false; }} SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} ~SWIG_Python_Thread_Allow() { end(); } }; # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() # else /* C code */ # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) # endif # else /* Old thread way, not implemented, user must provide it */ # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) # define SWIG_PYTHON_INITIALIZE_THREADS # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) # define SWIG_PYTHON_THREAD_END_BLOCK # endif # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # endif # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) # define SWIG_PYTHON_THREAD_END_ALLOW # endif # endif #else /* No thread support */ # define SWIG_PYTHON_INITIALIZE_THREADS # define SWIG_PYTHON_THREAD_BEGIN_BLOCK # define SWIG_PYTHON_THREAD_END_BLOCK # define SWIG_PYTHON_THREAD_BEGIN_ALLOW # define SWIG_PYTHON_THREAD_END_ALLOW #endif /* ----------------------------------------------------------------------------- * Python API portion that goes into the runtime * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #endif /* ----------------------------------------------------------------------------- * Constant declarations * ----------------------------------------------------------------------------- */ /* Constant Types */ #define SWIG_PY_POINTER 4 #define SWIG_PY_BINARY 5 /* Constant information structure */ typedef struct swig_const_info { int type; char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_const_info; /* ----------------------------------------------------------------------------- * Wrapper of PyInstanceMethod_New() used in Python 3 * It is exported to the generated module, used for -fastproxy * ----------------------------------------------------------------------------- */ #if PY_VERSION_HEX >= 0x03000000 SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) { return PyInstanceMethod_New(func); } #else SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) { return NULL; } #endif #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * pyrun.swg * * This file contains the runtime support for Python modules * and includes code for managing global variables and pointer * type checking. * * ----------------------------------------------------------------------------- */ /* Common SWIG API */ /* for raw pointers */ #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) #ifdef SWIGPYTHON_BUILTIN #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) #else #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #endif #define SWIG_InternalNewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(NULL, ptr, type, flags) #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) #define swig_owntype int /* for raw packed data */ #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(NULL, ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Python_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) #define SWIG_NewClientData(obj) SwigPyClientData_New(obj) #define SWIG_SetErrorObj SWIG_Python_SetErrorObj #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Runtime API implementation */ /* Error manipulation */ SWIGINTERN void SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetObject(errtype, obj); Py_DECREF(obj); SWIG_PYTHON_THREAD_END_BLOCK; } SWIGINTERN void SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyErr_SetString(errtype, msg); SWIG_PYTHON_THREAD_END_BLOCK; } #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) /* Set a constant value */ #if defined(SWIGPYTHON_BUILTIN) SWIGINTERN void SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { PyObject *s = PyString_InternFromString(key); PyList_Append(seq, s); Py_DECREF(s); } SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { #if PY_VERSION_HEX < 0x02030000 PyDict_SetItemString(d, (char *)name, obj); #else PyDict_SetItemString(d, name, obj); #endif Py_DECREF(obj); if (public_interface) SwigPyBuiltin_AddPublicSymbol(public_interface, name); } #else SWIGINTERN void SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { #if PY_VERSION_HEX < 0x02030000 PyDict_SetItemString(d, (char *)name, obj); #else PyDict_SetItemString(d, name, obj); #endif Py_DECREF(obj); } #endif /* Append a value to the result obj */ SWIGINTERN PyObject* SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyList_Check(result)) { PyObject *o2 = result; result = PyList_New(1); PyList_SetItem(result, 0, o2); } PyList_Append(result,obj); Py_DECREF(obj); } return result; #else PyObject* o2; PyObject* o3; if (!result) { result = obj; } else if (result == Py_None) { Py_DECREF(result); result = obj; } else { if (!PyTuple_Check(result)) { o2 = result; result = PyTuple_New(1); PyTuple_SET_ITEM(result, 0, o2); } o3 = PyTuple_New(1); PyTuple_SET_ITEM(o3, 0, obj); o2 = result; result = PySequence_Concat(o2, o3); Py_DECREF(o2); Py_DECREF(o3); } return result; #endif } /* Unpack the argument tuple */ SWIGINTERN int SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) { if (!args) { if (!min && !max) { return 1; } else { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", name, (min == max ? "" : "at least "), (int)min); return 0; } } if (!PyTuple_Check(args)) { if (min <= 1 && max >= 1) { int i; objs[0] = args; for (i = 1; i < max; ++i) { objs[i] = 0; } return 2; } PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); return 0; } else { Py_ssize_t l = PyTuple_GET_SIZE(args); if (l < min) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at least "), (int)min, (int)l); return 0; } else if (l > max) { PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", name, (min == max ? "" : "at most "), (int)max, (int)l); return 0; } else { int i; for (i = 0; i < l; ++i) { objs[i] = PyTuple_GET_ITEM(args, i); } for (; l < max; ++l) { objs[l] = 0; } return i + 1; } } } /* A functor is a function object with one single object argument */ #if PY_VERSION_HEX >= 0x02020000 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); #else #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); #endif /* Helper for static pointer initialization for both C and C++ code, for example static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); */ #ifdef __cplusplus #define SWIG_STATIC_POINTER(var) var #else #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var #endif /* ----------------------------------------------------------------------------- * Pointer declarations * ----------------------------------------------------------------------------- */ /* Flags for new pointer objects */ #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) #define SWIG_BUILTIN_TP_INIT (SWIG_POINTER_OWN << 2) #define SWIG_BUILTIN_INIT (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN) #ifdef __cplusplus extern "C" { #endif /* How to access Py_None */ #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # ifndef SWIG_PYTHON_NO_BUILD_NONE # ifndef SWIG_PYTHON_BUILD_NONE # define SWIG_PYTHON_BUILD_NONE # endif # endif #endif #ifdef SWIG_PYTHON_BUILD_NONE # ifdef Py_None # undef Py_None # define Py_None SWIG_Py_None() # endif SWIGRUNTIMEINLINE PyObject * _SWIG_Py_None(void) { PyObject *none = Py_BuildValue((char*)""); Py_DECREF(none); return none; } SWIGRUNTIME PyObject * SWIG_Py_None(void) { static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); return none; } #endif /* The python void return value */ SWIGRUNTIMEINLINE PyObject * SWIG_Py_Void(void) { PyObject *none = Py_None; Py_INCREF(none); return none; } /* SwigPyClientData */ typedef struct { PyObject *klass; PyObject *newraw; PyObject *newargs; PyObject *destroy; int delargs; int implicitconv; PyTypeObject *pytype; } SwigPyClientData; SWIGRUNTIMEINLINE int SWIG_Python_CheckImplicit(swig_type_info *ty) { SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; return data ? data->implicitconv : 0; } SWIGRUNTIMEINLINE PyObject * SWIG_Python_ExceptionType(swig_type_info *desc) { SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; PyObject *klass = data ? data->klass : 0; return (klass ? klass : PyExc_RuntimeError); } SWIGRUNTIME SwigPyClientData * SwigPyClientData_New(PyObject* obj) { if (!obj) { return 0; } else { SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); /* the klass element */ data->klass = obj; Py_INCREF(data->klass); /* the newraw method and newargs arguments used to create a new raw instance */ if (PyClass_Check(obj)) { data->newraw = 0; data->newargs = obj; Py_INCREF(obj); } else { #if (PY_VERSION_HEX < 0x02020000) data->newraw = 0; #else data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); #endif if (data->newraw) { Py_INCREF(data->newraw); data->newargs = PyTuple_New(1); PyTuple_SetItem(data->newargs, 0, obj); } else { data->newargs = obj; } Py_INCREF(data->newargs); } /* the destroy method, aka as the C++ delete method */ data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); if (PyErr_Occurred()) { PyErr_Clear(); data->destroy = 0; } if (data->destroy) { int flags; Py_INCREF(data->destroy); flags = PyCFunction_GET_FLAGS(data->destroy); #ifdef METH_O data->delargs = !(flags & (METH_O)); #else data->delargs = 0; #endif } else { data->delargs = 0; } data->implicitconv = 0; data->pytype = 0; return data; } } SWIGRUNTIME void SwigPyClientData_Del(SwigPyClientData *data) { Py_XDECREF(data->newraw); Py_XDECREF(data->newargs); Py_XDECREF(data->destroy); } /* =============== SwigPyObject =====================*/ typedef struct { PyObject_HEAD void *ptr; swig_type_info *ty; int own; PyObject *next; #ifdef SWIGPYTHON_BUILTIN PyObject *dict; #endif } SwigPyObject; SWIGRUNTIME PyObject * SwigPyObject_long(SwigPyObject *v) { return PyLong_FromVoidPtr(v->ptr); } SWIGRUNTIME PyObject * SwigPyObject_format(const char* fmt, SwigPyObject *v) { PyObject *res = NULL; PyObject *args = PyTuple_New(1); if (args) { if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { PyObject *ofmt = SWIG_Python_str_FromChar(fmt); if (ofmt) { #if PY_VERSION_HEX >= 0x03000000 res = PyUnicode_Format(ofmt,args); #else res = PyString_Format(ofmt,args); #endif Py_DECREF(ofmt); } Py_DECREF(args); } } return res; } SWIGRUNTIME PyObject * SwigPyObject_oct(SwigPyObject *v) { return SwigPyObject_format("%o",v); } SWIGRUNTIME PyObject * SwigPyObject_hex(SwigPyObject *v) { return SwigPyObject_format("%x",v); } SWIGRUNTIME PyObject * #ifdef METH_NOARGS SwigPyObject_repr(SwigPyObject *v) #else SwigPyObject_repr(SwigPyObject *v, PyObject *args) #endif { const char *name = SWIG_TypePrettyName(v->ty); PyObject *repr = SWIG_Python_str_FromFormat("", (name ? name : "unknown"), (void *)v); if (v->next) { # ifdef METH_NOARGS PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); # else PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); # endif # if PY_VERSION_HEX >= 0x03000000 PyObject *joined = PyUnicode_Concat(repr, nrep); Py_DecRef(repr); Py_DecRef(nrep); repr = joined; # else PyString_ConcatAndDel(&repr,nrep); # endif } return repr; } SWIGRUNTIME int SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) { void *i = v->ptr; void *j = w->ptr; return (i < j) ? -1 : ((i > j) ? 1 : 0); } /* Added for Python 3.x, would it also be useful for Python 2.x? */ SWIGRUNTIME PyObject* SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) { PyObject* res; if( op != Py_EQ && op != Py_NE ) { Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0); return res; } SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void); #ifdef SWIGPYTHON_BUILTIN static swig_type_info *SwigPyObject_stype = 0; SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { SwigPyClientData *cd; assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; assert(cd); assert(cd->pytype); return cd->pytype; } #else SWIGRUNTIME PyTypeObject* SwigPyObject_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce(); return type; } #endif SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *op) { #ifdef SWIGPYTHON_BUILTIN PyTypeObject *target_tp = SwigPyObject_type(); if (PyType_IsSubtype(op->ob_type, target_tp)) return 1; return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); #else return (Py_TYPE(op) == SwigPyObject_type()) || (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0); #endif } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own); SWIGRUNTIME void SwigPyObject_dealloc(PyObject *v) { SwigPyObject *sobj = (SwigPyObject *) v; PyObject *next = sobj->next; if (sobj->own == SWIG_POINTER_OWN) { swig_type_info *ty = sobj->ty; SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; PyObject *destroy = data ? data->destroy : 0; if (destroy) { /* destroy is always a VARARGS method */ PyObject *res; if (data->delargs) { /* we need to create a temporary object to carry the destroy operation */ PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); res = SWIG_Python_CallFunctor(destroy, tmp); Py_DECREF(tmp); } else { PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); PyObject *mself = PyCFunction_GET_SELF(destroy); res = ((*meth)(mself, v)); } Py_XDECREF(res); } #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) else { const char *name = SWIG_TypePrettyName(ty); printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); } #endif } Py_XDECREF(next); PyObject_DEL(v); } SWIGRUNTIME PyObject* SwigPyObject_append(PyObject* v, PyObject* next) { SwigPyObject *sobj = (SwigPyObject *) v; #ifndef METH_O PyObject *tmp = 0; if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; next = tmp; #endif if (!SwigPyObject_Check(next)) { return NULL; } sobj->next = next; Py_INCREF(next); return SWIG_Py_Void(); } SWIGRUNTIME PyObject* #ifdef METH_NOARGS SwigPyObject_next(PyObject* v) #else SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *) v; if (sobj->next) { Py_INCREF(sobj->next); return sobj->next; } else { return SWIG_Py_Void(); } } SWIGINTERN PyObject* #ifdef METH_NOARGS SwigPyObject_disown(PyObject *v) #else SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = 0; return SWIG_Py_Void(); } SWIGINTERN PyObject* #ifdef METH_NOARGS SwigPyObject_acquire(PyObject *v) #else SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) #endif { SwigPyObject *sobj = (SwigPyObject *)v; sobj->own = SWIG_POINTER_OWN; return SWIG_Py_Void(); } SWIGINTERN PyObject* SwigPyObject_own(PyObject *v, PyObject *args) { PyObject *val = 0; #if (PY_VERSION_HEX < 0x02020000) if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) #elif (PY_VERSION_HEX < 0x02050000) if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) #else if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) #endif { return NULL; } else { SwigPyObject *sobj = (SwigPyObject *)v; PyObject *obj = PyBool_FromLong(sobj->own); if (val) { #ifdef METH_NOARGS if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v); } else { SwigPyObject_disown(v); } #else if (PyObject_IsTrue(val)) { SwigPyObject_acquire(v,args); } else { SwigPyObject_disown(v,args); } #endif } return obj; } } #ifdef METH_O static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"acquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"}, {0, 0, 0, 0} }; #else static PyMethodDef swigobject_methods[] = { {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"}, {0, 0, 0, 0} }; #endif #if PY_VERSION_HEX < 0x02020000 SWIGINTERN PyObject * SwigPyObject_getattr(SwigPyObject *sobj,char *name) { return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); } #endif SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void) { static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; static PyNumberMethods SwigPyObject_as_number = { (binaryfunc)0, /*nb_add*/ (binaryfunc)0, /*nb_subtract*/ (binaryfunc)0, /*nb_multiply*/ /* nb_divide removed in Python 3 */ #if PY_VERSION_HEX < 0x03000000 (binaryfunc)0, /*nb_divide*/ #endif (binaryfunc)0, /*nb_remainder*/ (binaryfunc)0, /*nb_divmod*/ (ternaryfunc)0,/*nb_power*/ (unaryfunc)0, /*nb_negative*/ (unaryfunc)0, /*nb_positive*/ (unaryfunc)0, /*nb_absolute*/ (inquiry)0, /*nb_nonzero*/ 0, /*nb_invert*/ 0, /*nb_lshift*/ 0, /*nb_rshift*/ 0, /*nb_and*/ 0, /*nb_xor*/ 0, /*nb_or*/ #if PY_VERSION_HEX < 0x03000000 0, /*nb_coerce*/ #endif (unaryfunc)SwigPyObject_long, /*nb_int*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_long, /*nb_long*/ #else 0, /*nb_reserved*/ #endif (unaryfunc)0, /*nb_float*/ #if PY_VERSION_HEX < 0x03000000 (unaryfunc)SwigPyObject_oct, /*nb_oct*/ (unaryfunc)SwigPyObject_hex, /*nb_hex*/ #endif #if PY_VERSION_HEX >= 0x03000000 /* 3.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ #elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ #elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ #elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */ 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ #endif }; static PyTypeObject swigpyobject_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"SwigPyObject", /* tp_name */ sizeof(SwigPyObject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyObject_dealloc, /* tp_dealloc */ 0, /* tp_print */ #if PY_VERSION_HEX < 0x02020000 (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ #else (getattrfunc)0, /* tp_getattr */ #endif (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX >= 0x03000000 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ #else (cmpfunc)SwigPyObject_compare, /* tp_compare */ #endif (reprfunc)SwigPyObject_repr, /* tp_repr */ &SwigPyObject_as_number, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ 0, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigobject_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0, /* tp_iter */ 0, /* tp_iternext */ swigobject_methods, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; swigpyobject_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 swigpyobject_type.ob_type = &PyType_Type; #else if (PyType_Ready(&swigpyobject_type) < 0) return NULL; #endif } return &swigpyobject_type; } SWIGRUNTIME PyObject * SwigPyObject_New(void *ptr, swig_type_info *ty, int own) { SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type()); if (sobj) { sobj->ptr = ptr; sobj->ty = ty; sobj->own = own; sobj->next = 0; } return (PyObject *)sobj; } /* ----------------------------------------------------------------------------- * Implements a simple Swig Packed type, and use it instead of string * ----------------------------------------------------------------------------- */ typedef struct { PyObject_HEAD void *pack; swig_type_info *ty; size_t size; } SwigPyPacked; SWIGRUNTIME int SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char result[SWIG_BUFFER_SIZE]; fputs("pack, v->size, 0, sizeof(result))) { fputs("at ", fp); fputs(result, fp); } fputs(v->ty->name,fp); fputs(">", fp); return 0; } SWIGRUNTIME PyObject * SwigPyPacked_repr(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { return SWIG_Python_str_FromFormat("", result, v->ty->name); } else { return SWIG_Python_str_FromFormat("", v->ty->name); } } SWIGRUNTIME PyObject * SwigPyPacked_str(SwigPyPacked *v) { char result[SWIG_BUFFER_SIZE]; if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name); } else { return SWIG_Python_str_FromChar(v->ty->name); } } SWIGRUNTIME int SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) { size_t i = v->size; size_t j = w->size; int s = (i < j) ? -1 : ((i > j) ? 1 : 0); return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void); SWIGRUNTIME PyTypeObject* SwigPyPacked_type(void) { static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce(); return type; } SWIGRUNTIMEINLINE int SwigPyPacked_Check(PyObject *op) { return ((op)->ob_type == SwigPyPacked_TypeOnce()) || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); } SWIGRUNTIME void SwigPyPacked_dealloc(PyObject *v) { if (SwigPyPacked_Check(v)) { SwigPyPacked *sobj = (SwigPyPacked *) v; free(sobj->pack); } PyObject_DEL(v); } SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void) { static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; static PyTypeObject swigpypacked_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX>=0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"SwigPyPacked", /* tp_name */ sizeof(SwigPyPacked), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ (printfunc)SwigPyPacked_print, /* tp_print */ (getattrfunc)0, /* tp_getattr */ (setattrfunc)0, /* tp_setattr */ #if PY_VERSION_HEX>=0x03000000 0, /* tp_reserved in 3.0.1 */ #else (cmpfunc)SwigPyPacked_compare, /* tp_compare */ #endif (reprfunc)SwigPyPacked_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ (hashfunc)0, /* tp_hash */ (ternaryfunc)0, /* tp_call */ (reprfunc)SwigPyPacked_str, /* tp_str */ PyObject_GenericGetAttr, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ Py_TPFLAGS_DEFAULT, /* tp_flags */ swigpacked_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0, /* tp_iter */ 0, /* tp_iternext */ 0, /* tp_methods */ 0, /* tp_members */ 0, /* tp_getset */ 0, /* tp_base */ 0, /* tp_dict */ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ 0, /* tp_init */ 0, /* tp_alloc */ 0, /* tp_new */ 0, /* tp_free */ 0, /* tp_is_gc */ 0, /* tp_bases */ 0, /* tp_mro */ 0, /* tp_cache */ 0, /* tp_subclasses */ 0, /* tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; swigpypacked_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 swigpypacked_type.ob_type = &PyType_Type; #else if (PyType_Ready(&swigpypacked_type) < 0) return NULL; #endif } return &swigpypacked_type; } SWIGRUNTIME PyObject * SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) { SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type()); if (sobj) { void *pack = malloc(size); if (pack) { memcpy(pack, ptr, size); sobj->pack = pack; sobj->ty = ty; sobj->size = size; } else { PyObject_DEL((PyObject *) sobj); sobj = 0; } } return (PyObject *) sobj; } SWIGRUNTIME swig_type_info * SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) { if (SwigPyPacked_Check(obj)) { SwigPyPacked *sobj = (SwigPyPacked *)obj; if (sobj->size != size) return 0; memcpy(ptr, sobj->pack, size); return sobj->ty; } else { return 0; } } /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ SWIGRUNTIMEINLINE PyObject * _SWIG_This(void) { return SWIG_Python_str_FromChar("this"); } static PyObject *swig_this = NULL; SWIGRUNTIME PyObject * SWIG_This(void) { if (swig_this == NULL) swig_this = _SWIG_This(); return swig_this; } /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ /* TODO: I don't know how to implement the fast getset in Python 3 right now */ #if PY_VERSION_HEX>=0x03000000 #define SWIG_PYTHON_SLOW_GETSET_THIS #endif SWIGRUNTIME SwigPyObject * SWIG_Python_GetSwigThis(PyObject *pyobj) { PyObject *obj; if (SwigPyObject_Check(pyobj)) return (SwigPyObject *) pyobj; #ifdef SWIGPYTHON_BUILTIN (void)obj; # ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { pyobj = PyWeakref_GET_OBJECT(pyobj); if (pyobj && SwigPyObject_Check(pyobj)) return (SwigPyObject*) pyobj; } # endif return NULL; #else obj = 0; #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) if (PyInstance_Check(pyobj)) { obj = _PyInstance_Lookup(pyobj, SWIG_This()); } else { PyObject **dictptr = _PyObject_GetDictPtr(pyobj); if (dictptr != NULL) { PyObject *dict = *dictptr; obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; } else { #ifdef PyWeakref_CheckProxy if (PyWeakref_CheckProxy(pyobj)) { PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; } #endif obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } } } #else obj = PyObject_GetAttr(pyobj,SWIG_This()); if (obj) { Py_DECREF(obj); } else { if (PyErr_Occurred()) PyErr_Clear(); return 0; } #endif if (obj && !SwigPyObject_Check(obj)) { /* a PyObject is called 'this', try to get the 'real this' SwigPyObject from it */ return SWIG_Python_GetSwigThis(obj); } return (SwigPyObject *)obj; #endif } /* Acquire a pointer value */ SWIGRUNTIME int SWIG_Python_AcquirePtr(PyObject *obj, int own) { if (own == SWIG_POINTER_OWN) { SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); if (sobj) { int oldown = sobj->own; sobj->own = own; return oldown; } } return 0; } /* Convert a pointer value */ SWIGRUNTIME int SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { int res; SwigPyObject *sobj; int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0; if (!obj) return SWIG_ERROR; if (obj == Py_None && !implicit_conv) { if (ptr) *ptr = 0; return SWIG_OK; } res = SWIG_ERROR; sobj = SWIG_Python_GetSwigThis(obj); if (own) *own = 0; while (sobj) { void *vptr = sobj->ptr; if (ty) { swig_type_info *to = sobj->ty; if (to == ty) { /* no type cast needed */ if (ptr) *ptr = vptr; break; } else { swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) { sobj = (SwigPyObject *)sobj->next; } else { if (ptr) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } break; } } } else { if (ptr) *ptr = vptr; break; } } if (sobj) { if (own) *own = *own | sobj->own; if (flags & SWIG_POINTER_DISOWN) { sobj->own = 0; } res = SWIG_OK; } else { if (implicit_conv) { SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; if (data && !data->implicitconv) { PyObject *klass = data->klass; if (klass) { PyObject *impconv; data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ impconv = SWIG_Python_CallFunctor(klass, obj); data->implicitconv = 0; if (PyErr_Occurred()) { PyErr_Clear(); impconv = 0; } if (impconv) { SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); if (iobj) { void *vptr; res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); if (SWIG_IsOK(res)) { if (ptr) { *ptr = vptr; /* transfer the ownership to 'ptr' */ iobj->own = 0; res = SWIG_AddCast(res); res = SWIG_AddNewMask(res); } else { res = SWIG_AddCast(res); } } } Py_DECREF(impconv); } } } } if (!SWIG_IsOK(res) && obj == Py_None) { if (ptr) *ptr = 0; if (PyErr_Occurred()) PyErr_Clear(); res = SWIG_OK; } } return res; } /* Convert a function ptr value */ SWIGRUNTIME int SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { if (!PyCFunction_Check(obj)) { return SWIG_ConvertPtr(obj, ptr, ty, 0); } else { void *vptr = 0; /* here we get the method pointer for callbacks */ const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; if (desc) desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; if (!desc) return SWIG_ERROR; if (ty) { swig_cast_info *tc = SWIG_TypeCheck(desc,ty); if (tc) { int newmemory = 0; *ptr = SWIG_TypeCast(tc,vptr,&newmemory); assert(!newmemory); /* newmemory handling not yet implemented */ } else { return SWIG_ERROR; } } else { *ptr = vptr; } return SWIG_OK; } } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); if (!to) return SWIG_ERROR; if (ty) { if (to != ty) { /* check type cast? */ swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); if (!tc) return SWIG_ERROR; } } return SWIG_OK; } /* ----------------------------------------------------------------------------- * Create a new pointer object * ----------------------------------------------------------------------------- */ /* Create a new instance object, without calling __init__, and set the 'this' attribute. */ SWIGRUNTIME PyObject* SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) { #if (PY_VERSION_HEX >= 0x02020000) PyObject *inst = 0; PyObject *newraw = data->newraw; if (newraw) { inst = PyObject_Call(newraw, data->newargs, NULL); if (inst) { #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { PyObject *dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; PyDict_SetItem(dict, SWIG_This(), swig_this); } } #else PyObject *key = SWIG_This(); PyObject_SetAttr(inst, key, swig_this); #endif } } else { #if PY_VERSION_HEX >= 0x03000000 inst = ((PyTypeObject*) data->newargs)->tp_new((PyTypeObject*) data->newargs, Py_None, Py_None); if (inst) { PyObject_SetAttr(inst, SWIG_This(), swig_this); Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG; } #else PyObject *dict = PyDict_New(); if (dict) { PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); } #endif } return inst; #else #if (PY_VERSION_HEX >= 0x02010000) PyObject *inst = 0; PyObject *dict = PyDict_New(); if (dict) { PyDict_SetItem(dict, SWIG_This(), swig_this); inst = PyInstance_NewRaw(data->newargs, dict); Py_DECREF(dict); } return (PyObject *) inst; #else PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); if (inst == NULL) { return NULL; } inst->in_class = (PyClassObject *)data->newargs; Py_INCREF(inst->in_class); inst->in_dict = PyDict_New(); if (inst->in_dict == NULL) { Py_DECREF(inst); return NULL; } #ifdef Py_TPFLAGS_HAVE_WEAKREFS inst->in_weakreflist = NULL; #endif #ifdef Py_TPFLAGS_GC PyObject_GC_Init(inst); #endif PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); return (PyObject *) inst; #endif #endif } SWIGRUNTIME void SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) { PyObject *dict; #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) PyObject **dictptr = _PyObject_GetDictPtr(inst); if (dictptr != NULL) { dict = *dictptr; if (dict == NULL) { dict = PyDict_New(); *dictptr = dict; } PyDict_SetItem(dict, SWIG_This(), swig_this); return; } #endif dict = PyObject_GetAttrString(inst, (char*)"__dict__"); PyDict_SetItem(dict, SWIG_This(), swig_this); Py_DECREF(dict); } SWIGINTERN PyObject * SWIG_Python_InitShadowInstance(PyObject *args) { PyObject *obj[2]; if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { return NULL; } else { SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); if (sthis) { SwigPyObject_append((PyObject*) sthis, obj[1]); } else { SWIG_Python_SetSwigThis(obj[0], obj[1]); } return SWIG_Py_Void(); } } /* Create a new pointer object */ SWIGRUNTIME PyObject * SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { SwigPyClientData *clientdata; PyObject * robj; int own; if (!ptr) return SWIG_Py_Void(); clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; if (clientdata && clientdata->pytype) { SwigPyObject *newobj; if (flags & SWIG_BUILTIN_TP_INIT) { newobj = (SwigPyObject*) self; if (newobj->ptr) { PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); while (newobj->next) newobj = (SwigPyObject *) newobj->next; newobj->next = next_self; newobj = (SwigPyObject *)next_self; } } else { newobj = PyObject_New(SwigPyObject, clientdata->pytype); } if (newobj) { newobj->ptr = ptr; newobj->ty = type; newobj->own = own; newobj->next = 0; #ifdef SWIGPYTHON_BUILTIN newobj->dict = 0; #endif return (PyObject*) newobj; } return SWIG_Py_Void(); } assert(!(flags & SWIG_BUILTIN_TP_INIT)); robj = SwigPyObject_New(ptr, type, own); if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); Py_DECREF(robj); robj = inst; } return robj; } /* Create a new packed object */ SWIGRUNTIMEINLINE PyObject * SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); } /* -----------------------------------------------------------------------------* * Get type list * -----------------------------------------------------------------------------*/ #ifdef SWIG_LINK_RUNTIME void *SWIG_ReturnGlobalTypeList(void *); #endif SWIGRUNTIME swig_module_info * SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; /* first check if module already created */ if (!type_pointer) { #ifdef SWIG_LINK_RUNTIME type_pointer = SWIG_ReturnGlobalTypeList((void *)0); #else # ifdef SWIGPY_USE_CAPSULE type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0); # else type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); # endif if (PyErr_Occurred()) { PyErr_Clear(); type_pointer = (void *)0; } #endif } return (swig_module_info *) type_pointer; } #if PY_MAJOR_VERSION < 2 /* PyModule_AddObject function was introduced in Python 2.0. The following function is copied out of Python/modsupport.c in python version 2.3.4 */ SWIGINTERN int PyModule_AddObject(PyObject *m, char *name, PyObject *o) { PyObject *dict; if (!PyModule_Check(m)) { PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs module as first arg"); return SWIG_ERROR; } if (!o) { PyErr_SetString(PyExc_TypeError, "PyModule_AddObject() needs non-NULL value"); return SWIG_ERROR; } dict = PyModule_GetDict(m); if (dict == NULL) { /* Internal error -- modules must have a dict! */ PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", PyModule_GetName(m)); return SWIG_ERROR; } if (PyDict_SetItemString(dict, name, o)) return SWIG_ERROR; Py_DECREF(o); return SWIG_OK; } #endif SWIGRUNTIME void #ifdef SWIGPY_USE_CAPSULE SWIG_Python_DestroyModule(PyObject *obj) #else SWIG_Python_DestroyModule(void *vptr) #endif { #ifdef SWIGPY_USE_CAPSULE swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME); #else swig_module_info *swig_module = (swig_module_info *) vptr; #endif swig_type_info **types = swig_module->types; size_t i; for (i =0; i < swig_module->size; ++i) { swig_type_info *ty = types[i]; if (ty->owndata) { SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; if (data) SwigPyClientData_Del(data); } } Py_DECREF(SWIG_This()); swig_this = NULL; } SWIGRUNTIME void SWIG_Python_SetModule(swig_module_info *swig_module) { #if PY_VERSION_HEX >= 0x03000000 /* Add a dummy module object into sys.modules */ PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION); #else static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */ PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table); #endif #ifdef SWIGPY_USE_CAPSULE PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } #else PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); if (pointer && module) { PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); } else { Py_XDECREF(pointer); } #endif } /* The python cached type query */ SWIGRUNTIME PyObject * SWIG_Python_TypeCache(void) { static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); return cache; } SWIGRUNTIME swig_type_info * SWIG_Python_TypeQuery(const char *type) { PyObject *cache = SWIG_Python_TypeCache(); PyObject *key = SWIG_Python_str_FromChar(type); PyObject *obj = PyDict_GetItem(cache, key); swig_type_info *descriptor; if (obj) { #ifdef SWIGPY_USE_CAPSULE descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL); #else descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); #endif } else { swig_module_info *swig_module = SWIG_GetModule(0); descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); if (descriptor) { #ifdef SWIGPY_USE_CAPSULE obj = PyCapsule_New((void*) descriptor, NULL, NULL); #else obj = PyCObject_FromVoidPtr(descriptor, NULL); #endif PyDict_SetItem(cache, key, obj); Py_DECREF(obj); } } Py_DECREF(key); return descriptor; } /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIGRUNTIME int SWIG_Python_AddErrMesg(const char* mesg, int infront) { if (PyErr_Occurred()) { PyObject *type = 0; PyObject *value = 0; PyObject *traceback = 0; PyErr_Fetch(&type, &value, &traceback); if (value) { char *tmp; PyObject *old_str = PyObject_Str(value); Py_XINCREF(type); PyErr_Clear(); if (infront) { PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); } else { PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); } SWIG_Python_str_DelForPy3(tmp); Py_DECREF(old_str); } return 1; } else { return 0; } } SWIGRUNTIME int SWIG_Python_ArgFail(int argnum) { if (PyErr_Occurred()) { /* add information about failing argument */ char mesg[256]; PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); return SWIG_Python_AddErrMesg(mesg, 1); } else { return 0; } } SWIGRUNTIMEINLINE const char * SwigPyObject_GetDesc(PyObject *self) { SwigPyObject *v = (SwigPyObject *)self; swig_type_info *ty = v ? v->ty : 0; return ty ? ty->str : ""; } SWIGRUNTIME void SWIG_Python_TypeError(const char *type, PyObject *obj) { if (type) { #if defined(SWIG_COBJECT_TYPES) if (obj && SwigPyObject_Check(obj)) { const char *otype = (const char *) SwigPyObject_GetDesc(obj); if (otype) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", type, otype); return; } } else #endif { const char *otype = (obj ? obj->ob_type->tp_name : 0); if (otype) { PyObject *str = PyObject_Str(obj); const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; if (cstr) { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", type, otype, cstr); SWIG_Python_str_DelForPy3(cstr); } else { PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", type, otype); } Py_XDECREF(str); return; } } PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); } else { PyErr_Format(PyExc_TypeError, "unexpected type is received"); } } /* Convert a pointer value, signal an exception on a type mismatch */ SWIGRUNTIME void * SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { void *result; if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { PyErr_Clear(); #if SWIG_POINTER_EXCEPTION if (flags) { SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); SWIG_Python_ArgFail(argnum); } #endif } return result; } #ifdef SWIGPYTHON_BUILTIN SWIGRUNTIME int SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { PyTypeObject *tp = obj->ob_type; PyObject *descr; PyObject *encoded_name; descrsetfunc f; int res = -1; # ifdef Py_USING_UNICODE if (PyString_Check(name)) { name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL); if (!name) return -1; } else if (!PyUnicode_Check(name)) # else if (!PyString_Check(name)) # endif { PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); return -1; } else { Py_INCREF(name); } if (!tp->tp_dict) { if (PyType_Ready(tp) < 0) goto done; } descr = _PyType_Lookup(tp, name); f = NULL; if (descr != NULL) f = descr->ob_type->tp_descr_set; if (!f) { if (PyString_Check(name)) { encoded_name = name; Py_INCREF(name); } else { encoded_name = PyUnicode_AsUTF8String(name); } PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); Py_DECREF(encoded_name); } else { res = f(descr, obj, value); } done: Py_DECREF(name); return res; } #endif #ifdef __cplusplus } #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_m_CModule__f_r_q_const__CString__void swig_types[0] #define SWIGTYPE_p_CAuthBase swig_types[1] #define SWIGTYPE_p_CBufLine swig_types[2] #define SWIGTYPE_p_CBuffer swig_types[3] #define SWIGTYPE_p_CChan swig_types[4] #define SWIGTYPE_p_CClient swig_types[5] #define SWIGTYPE_p_CClientAuth swig_types[6] #define SWIGTYPE_p_CConfig swig_types[7] #define SWIGTYPE_p_CConfigEntry swig_types[8] #define SWIGTYPE_p_CConnectQueueTimer swig_types[9] #define SWIGTYPE_p_CCron swig_types[10] #define SWIGTYPE_p_CDebug swig_types[11] #define SWIGTYPE_p_CDebugStream swig_types[12] #define SWIGTYPE_p_CDir swig_types[13] #define SWIGTYPE_p_CException swig_types[14] #define SWIGTYPE_p_CExecSock swig_types[15] #define SWIGTYPE_p_CFPTimer swig_types[16] #define SWIGTYPE_p_CFile swig_types[17] #define SWIGTYPE_p_CGetAddrInfo swig_types[18] #define SWIGTYPE_p_CHTTPSock swig_types[19] #define SWIGTYPE_p_CIRCNetwork swig_types[20] #define SWIGTYPE_p_CIRCSock swig_types[21] #define SWIGTYPE_p_CIRCSocket swig_types[22] #define SWIGTYPE_p_CIncomingConnection swig_types[23] #define SWIGTYPE_p_CListener swig_types[24] #define SWIGTYPE_p_CModCommand swig_types[25] #define SWIGTYPE_p_CModInfo swig_types[26] #define SWIGTYPE_p_CModPython swig_types[27] #define SWIGTYPE_p_CModule swig_types[28] #define SWIGTYPE_p_CModules swig_types[29] #define SWIGTYPE_p_CModulesIter swig_types[30] #define SWIGTYPE_p_CNick swig_types[31] #define SWIGTYPE_p_CPyModule swig_types[32] #define SWIGTYPE_p_CPyRetBool swig_types[33] #define SWIGTYPE_p_CPyRetString swig_types[34] #define SWIGTYPE_p_CPySocket swig_types[35] #define SWIGTYPE_p_CPyTimer swig_types[36] #define SWIGTYPE_p_CQuery swig_types[37] #define SWIGTYPE_p_CRealListener swig_types[38] #define SWIGTYPE_p_CSCharBuffer swig_types[39] #define SWIGTYPE_p_CSConnection swig_types[40] #define SWIGTYPE_p_CSListener swig_types[41] #define SWIGTYPE_p_CSMonitorFD swig_types[42] #define SWIGTYPE_p_CSSSLConnection swig_types[43] #define SWIGTYPE_p_CSSockAddr swig_types[44] #define SWIGTYPE_p_CServer swig_types[45] #define SWIGTYPE_p_CSockCommon swig_types[46] #define SWIGTYPE_p_CSockManager swig_types[47] #define SWIGTYPE_p_CSocket swig_types[48] #define SWIGTYPE_p_CSocketManager swig_types[49] #define SWIGTYPE_p_CString__EEscape swig_types[50] #define SWIGTYPE_p_CString__size_type swig_types[51] #define SWIGTYPE_p_CTable swig_types[52] #define SWIGTYPE_p_CTemplate swig_types[53] #define SWIGTYPE_p_CTemplateLoopContext swig_types[54] #define SWIGTYPE_p_CTemplateOptions swig_types[55] #define SWIGTYPE_p_CTemplateTagHandler swig_types[56] #define SWIGTYPE_p_CTimer swig_types[57] #define SWIGTYPE_p_CUser swig_types[58] #define SWIGTYPE_p_CUtils swig_types[59] #define SWIGTYPE_p_CWebSession swig_types[60] #define SWIGTYPE_p_CWebSessionMap swig_types[61] #define SWIGTYPE_p_CWebSock swig_types[62] #define SWIGTYPE_p_CWebSubPage swig_types[63] #define SWIGTYPE_p_CZNC swig_types[64] #define SWIGTYPE_p_CZNCSock swig_types[65] #define SWIGTYPE_p_CZNCTagHandler swig_types[66] #define SWIGTYPE_p_CmdFunc swig_types[67] #define SWIGTYPE_p_Csock swig_types[68] #define SWIGTYPE_p_EAcceptType swig_types[69] #define SWIGTYPE_p_EChanModeArgs swig_types[70] #define SWIGTYPE_p_EModException swig_types[71] #define SWIGTYPE_p_EModRet swig_types[72] #define SWIGTYPE_p_EModes swig_types[73] #define SWIGTYPE_p_EModuleType swig_types[74] #define SWIGTYPE_p_EType swig_types[75] #define SWIGTYPE_p_EUserPerms swig_types[76] #define SWIGTYPE_p_EntryMap swig_types[77] #define SWIGTYPE_p_EntryMapIterator swig_types[78] #define SWIGTYPE_p_MCString swig_types[79] #define SWIGTYPE_p_MCString_iter swig_types[80] #define SWIGTYPE_p_ModCmdFunc swig_types[81] #define SWIGTYPE_p_ModDirList swig_types[82] #define SWIGTYPE_p_String swig_types[83] #define SWIGTYPE_p_SubConfig swig_types[84] #define SWIGTYPE_p_SubConfigMap swig_types[85] #define SWIGTYPE_p_SubConfigMapIterator swig_types[86] #define SWIGTYPE_p_TSocketManagerT_CZNCSock_t swig_types[87] #define SWIGTYPE_p_TrafficStatsMap swig_types[88] #define SWIGTYPE_p_TrafficStatsPair swig_types[89] #define SWIGTYPE_p_allocator_type swig_types[90] #define SWIGTYPE_p_bool swig_types[91] #define SWIGTYPE_p_char swig_types[92] #define SWIGTYPE_p_const_reference swig_types[93] #define SWIGTYPE_p_difference_type swig_types[94] #define SWIGTYPE_p_double swig_types[95] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython swig_types[96] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule swig_types[97] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule swig_types[98] #define SWIGTYPE_p_f_p_CModule_p_CFPTimer__void swig_types[99] #define SWIGTYPE_p_f_r_std__ostream__r_std__ostream swig_types[100] #define SWIGTYPE_p_fd_set swig_types[101] #define SWIGTYPE_p_first_type swig_types[102] #define SWIGTYPE_p_gid_t swig_types[103] #define SWIGTYPE_p_in_addr swig_types[104] #define SWIGTYPE_p_int swig_types[105] #define SWIGTYPE_p_int32_t swig_types[106] #define SWIGTYPE_p_int64_t swig_types[107] #define SWIGTYPE_p_key_type swig_types[108] #define SWIGTYPE_p_long swig_types[109] #define SWIGTYPE_p_mapped_type swig_types[110] #define SWIGTYPE_p_mode_t swig_types[111] #define SWIGTYPE_p_p_PyObject swig_types[112] #define SWIGTYPE_p_reference swig_types[113] #define SWIGTYPE_p_second_type swig_types[114] #define SWIGTYPE_p_size_type swig_types[115] #define SWIGTYPE_p_sockaddr_in swig_types[116] #define SWIGTYPE_p_sockaddr_storage swig_types[117] #define SWIGTYPE_p_socklen_t swig_types[118] #define SWIGTYPE_p_ssize_t swig_types[119] #define SWIGTYPE_p_stat swig_types[120] #define SWIGTYPE_p_std__allocatorT_CBufLine_t swig_types[121] #define SWIGTYPE_p_std__allocatorT_CChan_p_t swig_types[122] #define SWIGTYPE_p_std__allocatorT_CClient_p_t swig_types[123] #define SWIGTYPE_p_std__allocatorT_CIRCNetwork_p_t swig_types[124] #define SWIGTYPE_p_std__allocatorT_CListener_p_t swig_types[125] #define SWIGTYPE_p_std__allocatorT_CModule_p_t swig_types[126] #define SWIGTYPE_p_std__allocatorT_CString_t swig_types[127] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_CString_t_t swig_types[128] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_CNick_t_t swig_types[129] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_CString_t_t swig_types[130] #define SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t swig_types[131] #define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t swig_types[132] #define SWIGTYPE_p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t swig_types[133] #define SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t swig_types[134] #define SWIGTYPE_p_std__functionT_void_fCString_const_RF_t swig_types[135] #define SWIGTYPE_p_std__invalid_argument swig_types[136] #define SWIGTYPE_p_std__lessT_CModInfo_t swig_types[137] #define SWIGTYPE_p_std__lessT_CString_t swig_types[138] #define SWIGTYPE_p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t swig_types[139] #define SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t swig_types[140] #define SWIGTYPE_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t swig_types[141] #define SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t swig_types[142] #define SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t swig_types[143] #define SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator swig_types[144] #define SWIGTYPE_p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t swig_types[145] #define SWIGTYPE_p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator swig_types[146] #define SWIGTYPE_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t swig_types[147] #define SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t swig_types[148] #define SWIGTYPE_p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t swig_types[149] #define SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t swig_types[150] #define SWIGTYPE_p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t swig_types[151] #define SWIGTYPE_p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t swig_types[152] #define SWIGTYPE_p_std__ostream swig_types[153] #define SWIGTYPE_p_std__pairT_CString_CString_t swig_types[154] #define SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t swig_types[155] #define SWIGTYPE_p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t swig_types[156] #define SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t swig_types[157] #define SWIGTYPE_p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator swig_types[158] #define SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t swig_types[159] #define SWIGTYPE_p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator swig_types[160] #define SWIGTYPE_p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t swig_types[161] #define SWIGTYPE_p_std__shared_ptrT_CAuthBase_t swig_types[162] #define SWIGTYPE_p_std__shared_ptrT_CClientAuth_t swig_types[163] #define SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t swig_types[164] #define SWIGTYPE_p_std__shared_ptrT_CTemplateTagHandler_t swig_types[165] #define SWIGTYPE_p_std__shared_ptrT_CWebSession_t swig_types[166] #define SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t swig_types[167] #define SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t swig_types[168] #define SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t swig_types[169] #define SWIGTYPE_p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t swig_types[170] #define SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t swig_types[171] #define SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t swig_types[172] #define SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t swig_types[173] #define SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator swig_types[174] #define SWIGTYPE_p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t swig_types[175] #define SWIGTYPE_p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t swig_types[176] #define SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t swig_types[177] #define SWIGTYPE_p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t swig_types[178] #define SWIGTYPE_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t swig_types[179] #define SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t swig_types[180] #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t swig_types[181] #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t swig_types[182] #define SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t swig_types[183] #define SWIGTYPE_p_swig__SwigPyIterator swig_types[184] #define SWIGTYPE_p_time_t swig_types[185] #define SWIGTYPE_p_timeval swig_types[186] #define SWIGTYPE_p_uid_t swig_types[187] #define SWIGTYPE_p_uint16_t swig_types[188] #define SWIGTYPE_p_uint64_t swig_types[189] #define SWIGTYPE_p_unsigned_int swig_types[190] #define SWIGTYPE_p_unsigned_short swig_types[191] #define SWIGTYPE_p_value_type swig_types[192] #define SWIGTYPE_p_void swig_types[193] static swig_type_info *swig_types[195]; static swig_module_info swig_module = {swig_types, 194, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #if (PY_VERSION_HEX <= 0x02000000) # if !defined(SWIG_PYTHON_CLASSIC) # error "This python version requires swig to be run with the '-classic' option" # endif #endif /*----------------------------------------------- @(target):= _znc_core.so ------------------------------------------------*/ #if PY_VERSION_HEX >= 0x03000000 # define SWIG_init PyInit__znc_core #else # define SWIG_init init_znc_core #endif #define SWIG_name "_znc_core" #define SWIGVERSION 0x030005 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) #include namespace swig { class SwigPtr_PyObject { protected: PyObject *_obj; public: SwigPtr_PyObject() :_obj(0) { } SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) { if (initial_ref) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } } SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XINCREF(item._obj); Py_XDECREF(_obj); _obj = item._obj; SWIG_PYTHON_THREAD_END_BLOCK; return *this; } ~SwigPtr_PyObject() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; Py_XDECREF(_obj); SWIG_PYTHON_THREAD_END_BLOCK; } operator PyObject *() const { return _obj; } PyObject *operator->() const { return _obj; } }; } namespace swig { struct SwigVar_PyObject : SwigPtr_PyObject { SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } SwigVar_PyObject & operator = (PyObject* obj) { Py_XDECREF(_obj); _obj = obj; return *this; } }; } #include #include "../include/znc/Utils.h" #include "../include/znc/Threads.h" #include "../include/znc/Config.h" #include "../include/znc/Socket.h" #include "../include/znc/Modules.h" #include "../include/znc/Nick.h" #include "../include/znc/Chan.h" #include "../include/znc/User.h" #include "../include/znc/IRCNetwork.h" #include "../include/znc/Client.h" #include "../include/znc/IRCSock.h" #include "../include/znc/Listener.h" #include "../include/znc/HTTPSock.h" #include "../include/znc/Template.h" #include "../include/znc/WebModules.h" #include "../include/znc/znc.h" #include "../include/znc/Server.h" #include "../include/znc/ZNCString.h" #include "../include/znc/FileUtils.h" #include "../include/znc/ZNCDebug.h" #include "../include/znc/ExecSock.h" #include "../include/znc/Buffer.h" #include "modpython/module.h" #include "modpython/ret.h" #define stat struct stat using std::allocator; #include #if defined(__GNUC__) # if __GNUC__ == 2 && __GNUC_MINOR <= 96 # define SWIG_STD_NOMODERN_STL # endif #endif #include #include #include #if PY_VERSION_HEX >= 0x03020000 # define SWIGPY_SLICE_ARG(obj) ((PyObject*) (obj)) #else # define SWIGPY_SLICE_ARG(obj) ((PySliceObject*) (obj)) #endif namespace swig { struct stop_iteration { }; struct SwigPyIterator { private: SwigPtr_PyObject _seq; protected: SwigPyIterator(PyObject *seq) : _seq(seq) { } public: virtual ~SwigPyIterator() {} // Access iterator method, required by Python virtual PyObject *value() const = 0; // Forward iterator method, required by Python virtual SwigPyIterator *incr(size_t n = 1) = 0; // Backward iterator method, very common in C++, but not required in Python virtual SwigPyIterator *decr(size_t /*n*/ = 1) { throw stop_iteration(); } // Random access iterator methods, but not required in Python virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const { throw std::invalid_argument("operation not supported"); } virtual bool equal (const SwigPyIterator &/*x*/) const { throw std::invalid_argument("operation not supported"); } // C++ common/needed methods virtual SwigPyIterator *copy() const = 0; PyObject *next() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads PyObject *obj = value(); incr(); SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads return obj; } /* Make an alias for Python 3.x */ PyObject *__next__() { return next(); } PyObject *previous() { SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads decr(); PyObject *obj = value(); SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads return obj; } SwigPyIterator *advance(ptrdiff_t n) { return (n > 0) ? incr(n) : decr(-n); } bool operator == (const SwigPyIterator& x) const { return equal(x); } bool operator != (const SwigPyIterator& x) const { return ! operator==(x); } SwigPyIterator& operator += (ptrdiff_t n) { return *advance(n); } SwigPyIterator& operator -= (ptrdiff_t n) { return *advance(-n); } SwigPyIterator* operator + (ptrdiff_t n) const { return copy()->advance(n); } SwigPyIterator* operator - (ptrdiff_t n) const { return copy()->advance(-n); } ptrdiff_t operator - (const SwigPyIterator& x) const { return x.distance(*this); } static swig_type_info* descriptor() { static int init = 0; static swig_type_info* desc = 0; if (!init) { desc = SWIG_TypeQuery("swig::SwigPyIterator *"); init = 1; } return desc; } }; #if defined(SWIGPYTHON_BUILTIN) inline PyObject* make_output_iterator_builtin (PyObject *pyself) { Py_INCREF(pyself); return pyself; } #endif } SWIGINTERN int SWIG_AsVal_double (PyObject *obj, double *val) { int res = SWIG_TypeError; if (PyFloat_Check(obj)) { if (val) *val = PyFloat_AsDouble(obj); return SWIG_OK; } else if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; } else if (PyLong_Check(obj)) { double v = PyLong_AsDouble(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; double d = PyFloat_AsDouble(obj); if (!PyErr_Occurred()) { if (val) *val = d; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_AddCast(SWIG_OK)); } else { PyErr_Clear(); } } } #endif return res; } #include #include SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max) { double x = *d; if ((min <= x && x <= max)) { double fx = floor(x); double cx = ceil(x); double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ if ((errno == EDOM) || (errno == ERANGE)) { errno = 0; } else { double summ, reps, diff; if (rd < x) { diff = x - rd; } else if (rd > x) { diff = rd - x; } else { return 1; } summ = rd + x; reps = diff/summ; if (reps < 8*DBL_EPSILON) { *d = rd; return 1; } } } return 0; } SWIGINTERN int SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) { #if PY_VERSION_HEX < 0x03000000 if (PyInt_Check(obj)) { long v = PyInt_AsLong(obj); if (v >= 0) { if (val) *val = v; return SWIG_OK; } else { return SWIG_OverflowError; } } else #endif if (PyLong_Check(obj)) { unsigned long v = PyLong_AsUnsignedLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); #if PY_VERSION_HEX >= 0x03000000 { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (v < 0) { return SWIG_OverflowError; } } else { PyErr_Clear(); } } #endif } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; unsigned long v = PyLong_AsUnsignedLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { if (val) *val = (unsigned long)(d); return res; } } } #endif return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_size_t (PyObject * obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); return res; } #define SWIG_From_long PyLong_FromLong SWIGINTERNINLINE PyObject * SWIG_From_ptrdiff_t (ptrdiff_t value) { return SWIG_From_long (static_cast< long >(value)); } SWIGINTERNINLINE PyObject* SWIG_From_bool (bool value) { return PyBool_FromLong(value ? 1 : 0); } SWIGINTERN int SWIG_AsVal_long (PyObject *obj, long* val) { if (PyInt_Check(obj)) { if (val) *val = PyInt_AsLong(obj); return SWIG_OK; } else if (PyLong_Check(obj)) { long v = PyLong_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } #ifdef SWIG_PYTHON_CAST_MODE { int dispatch = 0; long v = PyInt_AsLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_AddCast(SWIG_OK); } else { PyErr_Clear(); } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { if (val) *val = (long)(d); return res; } } } #endif return SWIG_TypeError; } SWIGINTERNINLINE int SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) { long v; int res = SWIG_AsVal_long (obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v); return res; } #include #include #include #include #include #include #include #include SWIGINTERNINLINE PyObject* SWIG_From_int (int value) { return PyInt_FromLong((long) value); } namespace swig { template struct noconst_traits { typedef Type noconst_type; }; template struct noconst_traits { typedef Type noconst_type; }; /* type categories */ struct pointer_category { }; struct value_category { }; /* General traits that provides type_name and type_info */ template struct traits { }; template inline const char* type_name() { return traits::noconst_type >::type_name(); } template struct traits_info { static swig_type_info *type_query(std::string name) { name += " *"; return SWIG_TypeQuery(name.c_str()); } static swig_type_info *type_info() { static swig_type_info *info = type_query(type_name()); return info; } }; template inline swig_type_info *type_info() { return traits_info::type_info(); } /* Partial specialization for pointers */ template struct traits { typedef pointer_category category; static std::string make_ptr_name(const char* name) { std::string ptrname = name; ptrname += " *"; return ptrname; } static const char* type_name() { static std::string name = make_ptr_name(swig::type_name()); return name.c_str(); } }; template struct traits_as { }; template struct traits_check { }; } namespace swig { /* Traits that provides the from method */ template struct traits_from_ptr { static PyObject *from(Type *val, int owner = 0) { return SWIG_InternalNewPointerObj(val, type_info(), owner); } }; template struct traits_from { static PyObject *from(const Type& val) { return traits_from_ptr::from(new Type(val), 1); } }; template struct traits_from { static PyObject *from(Type* val) { return traits_from_ptr::from(val, 0); } }; template struct traits_from { static PyObject *from(const Type* val) { return traits_from_ptr::from(const_cast(val), 0); } }; template inline PyObject *from(const Type& val) { return traits_from::from(val); } template inline PyObject *from_ptr(Type* val, int owner) { return traits_from_ptr::from(val, owner); } /* Traits that provides the asval/as/check method */ template struct traits_asptr { static int asptr(PyObject *obj, Type **val) { Type *p; int res = SWIG_ConvertPtr(obj, (void**)&p, type_info(), 0); if (SWIG_IsOK(res)) { if (val) *val = p; } return res; } }; template inline int asptr(PyObject *obj, Type **vptr) { return traits_asptr::asptr(obj, vptr); } template struct traits_asval { static int asval(PyObject *obj, Type *val) { if (val) { Type *p = 0; int res = traits_asptr::asptr(obj, &p); if (!SWIG_IsOK(res)) return res; if (p) { typedef typename noconst_traits::noconst_type noconst_type; *(const_cast(val)) = *p; if (SWIG_IsNewObj(res)){ delete p; res = SWIG_DelNewMask(res); } return res; } else { return SWIG_ERROR; } } else { return traits_asptr::asptr(obj, (Type **)(0)); } } }; template struct traits_asval { static int asval(PyObject *obj, Type **val) { if (val) { typedef typename noconst_traits::noconst_type noconst_type; noconst_type *p = 0; int res = traits_asptr::asptr(obj, &p); if (SWIG_IsOK(res)) { *(const_cast(val)) = p; } return res; } else { return traits_asptr::asptr(obj, (Type **)(0)); } } }; template inline int asval(PyObject *obj, Type *val) { return traits_asval::asval(obj, val); } template struct traits_as { static Type as(PyObject *obj, bool throw_error) { Type v; int res = asval(obj, &v); if (!obj || !SWIG_IsOK(res)) { if (!PyErr_Occurred()) { ::SWIG_Error(SWIG_TypeError, swig::type_name()); } if (throw_error) throw std::invalid_argument("bad type"); } return v; } }; template struct traits_as { static Type as(PyObject *obj, bool throw_error) { Type *v = 0; int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); if (SWIG_IsOK(res) && v) { if (SWIG_IsNewObj(res)) { Type r(*v); delete v; return r; } else { return *v; } } else { // Uninitialized return value, no Type() constructor required. static Type *v_def = (Type*) malloc(sizeof(Type)); if (!PyErr_Occurred()) { SWIG_Error(SWIG_TypeError, swig::type_name()); } if (throw_error) throw std::invalid_argument("bad type"); memset(v_def,0,sizeof(Type)); return *v_def; } } }; template struct traits_as { static Type* as(PyObject *obj, bool throw_error) { Type *v = 0; int res = (obj ? traits_asptr::asptr(obj, &v) : SWIG_ERROR); if (SWIG_IsOK(res)) { return v; } else { if (!PyErr_Occurred()) { SWIG_Error(SWIG_TypeError, swig::type_name()); } if (throw_error) throw std::invalid_argument("bad type"); return 0; } } }; template inline Type as(PyObject *obj, bool te = false) { return traits_as::category>::as(obj, te); } template struct traits_check { static bool check(PyObject *obj) { int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR; return SWIG_IsOK(res) ? true : false; } }; template struct traits_check { static bool check(PyObject *obj) { int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR; return SWIG_IsOK(res) ? true : false; } }; template inline bool check(PyObject *obj) { return traits_check::category>::check(obj); } } #include namespace std { template <> struct less : public binary_function { bool operator()(PyObject * v, PyObject *w) const { bool res; SWIG_PYTHON_THREAD_BEGIN_BLOCK; res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false; /* This may fall into a case of inconsistent eg. ObjA > ObjX > ObjB but ObjA < ObjB */ if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) ) { /* Objects can't be compared, this mostly occurred in Python 3.0 */ /* Compare their ptr directly for a workaround */ res = (v < w); PyErr_Clear(); } SWIG_PYTHON_THREAD_END_BLOCK; return res; } }; template <> struct less : public binary_function { bool operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const { return std::less()(v, w); } }; template <> struct less : public binary_function { bool operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const { return std::less()(v, w); } }; } namespace swig { template <> struct traits { typedef value_category category; static const char* type_name() { return "PyObject *"; } }; template <> struct traits_asval { typedef PyObject * value_type; static int asval(PyObject *obj, value_type *val) { if (val) *val = obj; return SWIG_OK; } }; template <> struct traits_check { static bool check(PyObject *) { return true; } }; template <> struct traits_from { typedef PyObject * value_type; static PyObject *from(const value_type& val) { Py_XINCREF(val); return val; } }; } namespace swig { template inline size_t check_index(Difference i, size_t size, bool insert = false) { if ( i < 0 ) { if ((size_t) (-i) <= size) return (size_t) (i + size); } else if ( (size_t) i < size ) { return (size_t) i; } else if (insert && ((size_t) i == size)) { return size; } throw std::out_of_range("index out of range"); } template void slice_adjust(Difference i, Difference j, Py_ssize_t step, size_t size, Difference &ii, Difference &jj, bool insert = false) { if (step == 0) { throw std::invalid_argument("slice step cannot be zero"); } else if (step > 0) { // Required range: 0 <= i < size, 0 <= j < size if (i < 0) { ii = 0; } else if (i < (Difference)size) { ii = i; } else if (insert && (i >= (Difference)size)) { ii = (Difference)size; } if ( j < 0 ) { jj = 0; } else { jj = (j < (Difference)size) ? j : (Difference)size; } } else { // Required range: -1 <= i < size-1, -1 <= j < size-1 if (i < -1) { ii = -1; } else if (i < (Difference) size) { ii = i; } else if (i >= (Difference)(size-1)) { ii = (Difference)(size-1); } if (j < -1) { jj = -1; } else { jj = (j < (Difference)size ) ? j : (Difference)(size-1); } } } template inline typename Sequence::iterator getpos(Sequence* self, Difference i) { typename Sequence::iterator pos = self->begin(); std::advance(pos, check_index(i,self->size())); return pos; } template inline typename Sequence::const_iterator cgetpos(const Sequence* self, Difference i) { typename Sequence::const_iterator pos = self->begin(); std::advance(pos, check_index(i,self->size())); return pos; } template inline Sequence* getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) { typename Sequence::size_type size = self->size(); Difference ii = 0; Difference jj = 0; swig::slice_adjust(i, j, step, size, ii, jj); if (step > 0) { typename Sequence::const_iterator sb = self->begin(); typename Sequence::const_iterator se = self->begin(); std::advance(sb,ii); std::advance(se,jj); if (step == 1) { return new Sequence(sb, se); } else { Sequence *sequence = new Sequence(); typename Sequence::const_iterator it = sb; while (it!=se) { sequence->push_back(*it); for (Py_ssize_t c=0; c jj) { typename Sequence::const_reverse_iterator sb = self->rbegin(); typename Sequence::const_reverse_iterator se = self->rbegin(); std::advance(sb,size-ii-1); std::advance(se,size-jj-1); typename Sequence::const_reverse_iterator it = sb; while (it!=se) { sequence->push_back(*it); for (Py_ssize_t c=0; c<-step && it!=se; ++c) it++; } } return sequence; } } template inline void setslice(Sequence* self, Difference i, Difference j, Py_ssize_t step, const InputSeq& is = InputSeq()) { typename Sequence::size_type size = self->size(); Difference ii = 0; Difference jj = 0; swig::slice_adjust(i, j, step, size, ii, jj, true); if (step > 0) { if (jj < ii) jj = ii; if (step == 1) { size_t ssize = jj - ii; if (ssize <= is.size()) { // expanding/staying the same size typename Sequence::iterator sb = self->begin(); typename InputSeq::const_iterator isit = is.begin(); std::advance(sb,ii); std::advance(isit, jj - ii); self->insert(std::copy(is.begin(), isit, sb), isit, is.end()); } else { // shrinking typename Sequence::iterator sb = self->begin(); typename Sequence::iterator se = self->begin(); std::advance(sb,ii); std::advance(se,jj); self->erase(sb,se); sb = self->begin(); std::advance(sb,ii); self->insert(sb, is.begin(), is.end()); } } else { size_t replacecount = (jj - ii + step - 1) / step; if (is.size() != replacecount) { char msg[1024]; sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); throw std::invalid_argument(msg); } typename Sequence::const_iterator isit = is.begin(); typename Sequence::iterator it = self->begin(); std::advance(it,ii); for (size_t rc=0; rcend(); ++c) it++; } } } else { if (jj > ii) jj = ii; size_t replacecount = (ii - jj - step - 1) / -step; if (is.size() != replacecount) { char msg[1024]; sprintf(msg, "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount); throw std::invalid_argument(msg); } typename Sequence::const_iterator isit = is.begin(); typename Sequence::reverse_iterator it = self->rbegin(); std::advance(it,size-ii-1); for (size_t rc=0; rcrend(); ++c) it++; } } } template inline void delslice(Sequence* self, Difference i, Difference j, Py_ssize_t step) { typename Sequence::size_type size = self->size(); Difference ii = 0; Difference jj = 0; swig::slice_adjust(i, j, step, size, ii, jj, true); if (step > 0) { if (jj > ii) { typename Sequence::iterator sb = self->begin(); std::advance(sb,ii); if (step == 1) { typename Sequence::iterator se = self->begin(); std::advance(se,jj); self->erase(sb,se); } else { typename Sequence::iterator it = sb; size_t delcount = (jj - ii + step - 1) / step; while (delcount) { it = self->erase(it); for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c) it++; delcount--; } } } } else { if (ii > jj) { typename Sequence::reverse_iterator sb = self->rbegin(); std::advance(sb,size-ii-1); typename Sequence::reverse_iterator it = sb; size_t delcount = (ii - jj - step - 1) / -step; while (delcount) { it = typename Sequence::reverse_iterator(self->erase((++it).base())); for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c) it++; delcount--; } } } } } #if defined(__SUNPRO_CC) && defined(_RWSTD_VER) # if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL) # define SWIG_STD_NOITERATOR_TRAITS_STL # endif #endif #if !defined(SWIG_STD_NOITERATOR_TRAITS_STL) #include #else namespace std { template struct iterator_traits { typedef ptrdiff_t difference_type; typedef typename Iterator::value_type value_type; }; template struct iterator_traits<__reverse_bi_iterator > { typedef Distance difference_type; typedef T value_type; }; template struct iterator_traits { typedef T value_type; typedef ptrdiff_t difference_type; }; template inline typename iterator_traits<_InputIterator>::difference_type distance(_InputIterator __first, _InputIterator __last) { typename iterator_traits<_InputIterator>::difference_type __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } } #endif namespace swig { template class SwigPyIterator_T : public SwigPyIterator { public: typedef OutIterator out_iterator; typedef typename std::iterator_traits::value_type value_type; typedef SwigPyIterator_T self_type; SwigPyIterator_T(out_iterator curr, PyObject *seq) : SwigPyIterator(seq), current(curr) { } const out_iterator& get_current() const { return current; } bool equal (const SwigPyIterator &iter) const { const self_type *iters = dynamic_cast(&iter); if (iters) { return (current == iters->get_current()); } else { throw std::invalid_argument("bad iterator type"); } } ptrdiff_t distance(const SwigPyIterator &iter) const { const self_type *iters = dynamic_cast(&iter); if (iters) { return std::distance(current, iters->get_current()); } else { throw std::invalid_argument("bad iterator type"); } } protected: out_iterator current; }; template struct from_oper { typedef const ValueType& argument_type; typedef PyObject *result_type; result_type operator()(argument_type v) const { return swig::from(v); } }; template::value_type, typename FromOper = from_oper > class SwigPyIteratorOpen_T : public SwigPyIterator_T { public: FromOper from; typedef OutIterator out_iterator; typedef ValueType value_type; typedef SwigPyIterator_T base; typedef SwigPyIteratorOpen_T self_type; SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq) : SwigPyIterator_T(curr, seq) { } PyObject *value() const { return from(static_cast(*(base::current))); } SwigPyIterator *copy() const { return new self_type(*this); } SwigPyIterator *incr(size_t n = 1) { while (n--) { ++base::current; } return this; } SwigPyIterator *decr(size_t n = 1) { while (n--) { --base::current; } return this; } }; template::value_type, typename FromOper = from_oper > class SwigPyIteratorClosed_T : public SwigPyIterator_T { public: FromOper from; typedef OutIterator out_iterator; typedef ValueType value_type; typedef SwigPyIterator_T base; typedef SwigPyIteratorClosed_T self_type; SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq) : SwigPyIterator_T(curr, seq), begin(first), end(last) { } PyObject *value() const { if (base::current == end) { throw stop_iteration(); } else { return from(static_cast(*(base::current))); } } SwigPyIterator *copy() const { return new self_type(*this); } SwigPyIterator *incr(size_t n = 1) { while (n--) { if (base::current == end) { throw stop_iteration(); } else { ++base::current; } } return this; } SwigPyIterator *decr(size_t n = 1) { while (n--) { if (base::current == begin) { throw stop_iteration(); } else { --base::current; } } return this; } private: out_iterator begin; out_iterator end; }; template inline SwigPyIterator* make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0) { return new SwigPyIteratorClosed_T(current, begin, end, seq); } template inline SwigPyIterator* make_output_iterator(const OutIter& current, PyObject *seq = 0) { return new SwigPyIteratorOpen_T(current, seq); } } namespace swig { template struct SwigPySequence_Ref { SwigPySequence_Ref(PyObject* seq, int index) : _seq(seq), _index(index) { } operator T () const { swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index); try { return swig::as(item, true); } catch (std::exception& e) { char msg[1024]; sprintf(msg, "in sequence element %d ", _index); if (!PyErr_Occurred()) { ::SWIG_Error(SWIG_TypeError, swig::type_name()); } SWIG_Python_AddErrorMsg(msg); SWIG_Python_AddErrorMsg(e.what()); throw; } } SwigPySequence_Ref& operator=(const T& v) { PySequence_SetItem(_seq, _index, swig::from(v)); return *this; } private: PyObject* _seq; int _index; }; template struct SwigPySequence_ArrowProxy { SwigPySequence_ArrowProxy(const T& x): m_value(x) {} const T* operator->() const { return &m_value; } operator const T*() const { return &m_value; } T m_value; }; template struct SwigPySequence_InputIterator { typedef SwigPySequence_InputIterator self; typedef std::random_access_iterator_tag iterator_category; typedef Reference reference; typedef T value_type; typedef T* pointer; typedef int difference_type; SwigPySequence_InputIterator() { } SwigPySequence_InputIterator(PyObject* seq, int index) : _seq(seq), _index(index) { } reference operator*() const { return reference(_seq, _index); } SwigPySequence_ArrowProxy operator->() const { return SwigPySequence_ArrowProxy(operator*()); } bool operator==(const self& ri) const { return (_index == ri._index) && (_seq == ri._seq); } bool operator!=(const self& ri) const { return !(operator==(ri)); } self& operator ++ () { ++_index; return *this; } self& operator -- () { --_index; return *this; } self& operator += (difference_type n) { _index += n; return *this; } self operator +(difference_type n) const { return self(_seq, _index + n); } self& operator -= (difference_type n) { _index -= n; return *this; } self operator -(difference_type n) const { return self(_seq, _index - n); } difference_type operator - (const self& ri) const { return _index - ri._index; } bool operator < (const self& ri) const { return _index < ri._index; } reference operator[](difference_type n) const { return reference(_seq, _index + n); } private: PyObject* _seq; difference_type _index; }; template struct SwigPySequence_Cont { typedef SwigPySequence_Ref reference; typedef const SwigPySequence_Ref const_reference; typedef T value_type; typedef T* pointer; typedef int difference_type; typedef int size_type; typedef const pointer const_pointer; typedef SwigPySequence_InputIterator iterator; typedef SwigPySequence_InputIterator const_iterator; SwigPySequence_Cont(PyObject* seq) : _seq(0) { if (!PySequence_Check(seq)) { throw std::invalid_argument("a sequence is expected"); } _seq = seq; Py_INCREF(_seq); } ~SwigPySequence_Cont() { Py_XDECREF(_seq); } size_type size() const { return static_cast(PySequence_Size(_seq)); } bool empty() const { return size() == 0; } iterator begin() { return iterator(_seq, 0); } const_iterator begin() const { return const_iterator(_seq, 0); } iterator end() { return iterator(_seq, size()); } const_iterator end() const { return const_iterator(_seq, size()); } reference operator[](difference_type n) { return reference(_seq, n); } const_reference operator[](difference_type n) const { return const_reference(_seq, n); } bool check(bool set_err = true) const { int s = size(); for (int i = 0; i < s; ++i) { swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i); if (!swig::check(item)) { if (set_err) { char msg[1024]; sprintf(msg, "in sequence element %d", i); SWIG_Error(SWIG_RuntimeError, msg); } return false; } } return true; } private: PyObject* _seq; }; } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CString"; } }; } namespace swig { template inline void assign(const SwigPySeq& swigpyseq, Seq* seq) { // seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented typedef typename SwigPySeq::value_type value_type; typename SwigPySeq::const_iterator it = swigpyseq.begin(); for (;it != swigpyseq.end(); ++it) { seq->insert(seq->end(),(value_type)(*it)); } } template struct traits_asptr_stdseq { typedef Seq sequence; typedef T value_type; static int asptr(PyObject *obj, sequence **seq) { if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) { sequence *p; if (::SWIG_ConvertPtr(obj,(void**)&p, swig::type_info(),0) == SWIG_OK) { if (seq) *seq = p; return SWIG_OLDOBJ; } } else if (PySequence_Check(obj)) { try { SwigPySequence_Cont swigpyseq(obj); if (seq) { sequence *pseq = new sequence(); assign(swigpyseq, pseq); *seq = pseq; return SWIG_NEWOBJ; } else { return swigpyseq.check() ? SWIG_OK : SWIG_ERROR; } } catch (std::exception& e) { if (seq) { if (!PyErr_Occurred()) { PyErr_SetString(PyExc_TypeError, e.what()); } } return SWIG_ERROR; } } return SWIG_ERROR; } }; template struct traits_from_stdseq { typedef Seq sequence; typedef T value_type; typedef typename Seq::size_type size_type; typedef typename sequence::const_iterator const_iterator; static PyObject *from(const sequence& seq) { #ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS swig_type_info *desc = swig::type_info(); if (desc && desc->clientdata) { return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN); } #endif size_type size = seq.size(); if (size <= (size_type)INT_MAX) { PyObject *obj = PyTuple_New((int)size); int i = 0; for (const_iterator it = seq.begin(); it != seq.end(); ++it, ++i) { PyTuple_SetItem(obj,i,swig::from(*it)); } return obj; } else { PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python"); return NULL; } } }; } namespace swig { template struct traits_asptr > { static int asptr(PyObject *obj, std::list **lis) { return traits_asptr_stdseq >::asptr(obj, lis); } }; template struct traits_from > { static PyObject *from(const std::list & vec) { return traits_from_stdseq >::from(vec); } }; } namespace swig { template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::list<" "CString" ", " "std::allocator< CString >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_list_Sl_CString_Sg__iterator(std::list< CString > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_list_Sl_CString_Sg____nonzero__(std::list< CString > const *self){ return !(self->empty()); } SWIGINTERN bool std_list_Sl_CString_Sg____bool__(std::list< CString > const *self){ return !(self->empty()); } SWIGINTERN std::list< CString >::size_type std_list_Sl_CString_Sg____len__(std::list< CString > const *self){ return self->size(); } SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_long (unsigned long value) { return (value > LONG_MAX) ? PyLong_FromUnsignedLong(value) : PyLong_FromLong(static_cast< long >(value)); } SWIGINTERNINLINE PyObject * SWIG_From_size_t (size_t value) { return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); } SWIGINTERN std::list< CString >::value_type std_list_Sl_CString_Sg__pop(std::list< CString > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::list >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERNINLINE PyObject * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { if (carray) { if (size > INT_MAX) { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); return pchar_descriptor ? SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void(); } else { #if PY_VERSION_HEX >= 0x03000000 #if PY_VERSION_HEX >= 0x03010000 return PyUnicode_DecodeUTF8(carray, static_cast< int >(size), "surrogateescape"); #else return PyUnicode_FromStringAndSize(carray, static_cast< int >(size)); #endif #else return PyString_FromStringAndSize(carray, static_cast< int >(size)); #endif } } else { return SWIG_Py_Void(); } } SWIGINTERNINLINE PyObject * SWIG_From_CString (const CString& s) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } SWIGINTERN std::list< CString,std::allocator< CString > > *std_list_Sl_CString_Sg____getslice__(std::list< CString > *self,std::list< CString >::difference_type i,std::list< CString >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_list_Sl_CString_Sg____setslice____SWIG_0(std::list< CString > *self,std::list< CString >::difference_type i,std::list< CString >::difference_type j,std::list< CString,std::allocator< CString > > const &v=std::list< CString,std::allocator< CString > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_list_Sl_CString_Sg____delslice__(std::list< CString > *self,std::list< CString >::difference_type i,std::list< CString >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_list_Sl_CString_Sg____delitem____SWIG_0(std::list< CString > *self,std::list< CString >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::list< CString,std::allocator< CString > > *std_list_Sl_CString_Sg____getitem____SWIG_0(std::list< CString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::list >::difference_type id = i; std::list >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_list_Sl_CString_Sg____setitem____SWIG_0(std::list< CString > *self,PySliceObject *slice,std::list< CString,std::allocator< CString > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::list >::difference_type id = i; std::list >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_list_Sl_CString_Sg____setitem____SWIG_1(std::list< CString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::list >::difference_type id = i; std::list >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_list_Sl_CString_Sg____delitem____SWIG_1(std::list< CString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::list >::difference_type id = i; std::list >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::list< CString >::value_type const &std_list_Sl_CString_Sg____getitem____SWIG_1(std::list< CString > const *self,std::list< CString >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { #if PY_VERSION_HEX>=0x03000000 if (PyUnicode_Check(obj)) #else if (PyString_Check(obj)) #endif { char *cstr; Py_ssize_t len; #if PY_VERSION_HEX>=0x03000000 if (!alloc && cptr) { /* We can't allow converting without allocation, since the internal representation of string in Python 3 is UCS-2/UCS-4 but we require a UTF-8 representation. TODO(bhy) More detailed explanation */ return SWIG_RuntimeError; } obj = PyUnicode_AsUTF8String(obj); PyBytes_AsStringAndSize(obj, &cstr, &len); if(alloc) *alloc = SWIG_NEWOBJ; #else PyString_AsStringAndSize(obj, &cstr, &len); #endif if (cptr) { if (alloc) { /* In python the user should not be able to modify the inner string representation. To warranty that, if you define SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string buffer is always returned. The default behavior is just to return the pointer value, so, be careful. */ #if defined(SWIG_PYTHON_SAFE_CSTRINGS) if (*alloc != SWIG_OLDOBJ) #else if (*alloc == SWIG_NEWOBJ) #endif { *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); *alloc = SWIG_NEWOBJ; } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } else { #if PY_VERSION_HEX>=0x03000000 assert(0); /* Should never reach here in Python 3 */ #endif *cptr = SWIG_Python_str_AsChar(obj); } } if (psize) *psize = len + 1; #if PY_VERSION_HEX>=0x03000000 Py_XDECREF(obj); #endif return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *) vptr; if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsPtr_CString (PyObject * obj, CString **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new CString(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("CString" " *"); init = 1; } if (descriptor) { CString *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } SWIGINTERN void std_list_Sl_CString_Sg____setitem____SWIG_2(std::list< CString > *self,std::list< CString >::difference_type i,std::list< CString >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_list_Sl_CString_Sg__append(std::list< CString > *self,std::list< CString >::value_type const &x){ self->push_back(x); } SWIGINTERN std::list< CString >::iterator std_list_Sl_CString_Sg__erase__SWIG_0(std::list< CString > *self,std::list< CString >::iterator pos){ return self->erase(pos); } SWIGINTERN std::list< CString >::iterator std_list_Sl_CString_Sg__erase__SWIG_1(std::list< CString > *self,std::list< CString >::iterator first,std::list< CString >::iterator last){ return self->erase(first, last); } SWIGINTERN std::list< CString >::iterator std_list_Sl_CString_Sg__insert__SWIG_0(std::list< CString > *self,std::list< CString >::iterator pos,std::list< CString >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_list_Sl_CString_Sg__insert__SWIG_1(std::list< CString > *self,std::list< CString >::iterator pos,std::list< CString >::size_type n,std::list< CString >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CIRCNetwork"; } }; } namespace swig { template struct traits_asptr > { static int asptr(PyObject *obj, std::vector **vec) { return traits_asptr_stdseq >::asptr(obj, vec); } }; template struct traits_from > { static PyObject *from(const std::vector& vec) { return traits_from_stdseq >::from(vec); } }; } namespace swig { template <> struct traits > > { typedef value_category category; static const char* type_name() { return "std::vector<" "CIRCNetwork" " *," "std::allocator< CIRCNetwork * >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CIRCNetwork_Sm__Sg__iterator(std::vector< CIRCNetwork * > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_CIRCNetwork_Sm__Sg____nonzero__(std::vector< CIRCNetwork * > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_CIRCNetwork_Sm__Sg____bool__(std::vector< CIRCNetwork * > const *self){ return !(self->empty()); } SWIGINTERN std::vector< CIRCNetwork * >::size_type std_vector_Sl_CIRCNetwork_Sm__Sg____len__(std::vector< CIRCNetwork * > const *self){ return self->size(); } SWIGINTERN std::vector< CIRCNetwork * >::value_type std_vector_Sl_CIRCNetwork_Sm__Sg__pop(std::vector< CIRCNetwork * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *std_vector_Sl_CIRCNetwork_Sm__Sg____getslice__(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::difference_type i,std::vector< CIRCNetwork * >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____setslice____SWIG_0(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::difference_type i,std::vector< CIRCNetwork * >::difference_type j,std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &v=std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____delslice__(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::difference_type i,std::vector< CIRCNetwork * >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____delitem____SWIG_0(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *std_vector_Sl_CIRCNetwork_Sm__Sg____getitem____SWIG_0(std::vector< CIRCNetwork * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____setitem____SWIG_0(std::vector< CIRCNetwork * > *self,PySliceObject *slice,std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____setitem____SWIG_1(std::vector< CIRCNetwork * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____delitem____SWIG_1(std::vector< CIRCNetwork * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CIRCNetwork * >::value_type std_vector_Sl_CIRCNetwork_Sm__Sg____getitem____SWIG_1(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg____setitem____SWIG_2(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::difference_type i,std::vector< CIRCNetwork * >::value_type x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg__append(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::value_type x){ self->push_back(x); } SWIGINTERN std::vector< CIRCNetwork * >::iterator std_vector_Sl_CIRCNetwork_Sm__Sg__erase__SWIG_0(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< CIRCNetwork * >::iterator std_vector_Sl_CIRCNetwork_Sm__Sg__erase__SWIG_1(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::iterator first,std::vector< CIRCNetwork * >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< CIRCNetwork * >::iterator std_vector_Sl_CIRCNetwork_Sm__Sg__insert__SWIG_0(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::iterator pos,std::vector< CIRCNetwork * >::value_type x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_CIRCNetwork_Sm__Sg__insert__SWIG_1(std::vector< CIRCNetwork * > *self,std::vector< CIRCNetwork * >::iterator pos,std::vector< CIRCNetwork * >::size_type n,std::vector< CIRCNetwork * >::value_type x){ self->insert(pos, n, x); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CChan"; } }; } namespace swig { template <> struct traits > > { typedef value_category category; static const char* type_name() { return "std::vector<" "CChan" " *," "std::allocator< CChan * >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CChan_Sm__Sg__iterator(std::vector< CChan * > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_CChan_Sm__Sg____nonzero__(std::vector< CChan * > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_CChan_Sm__Sg____bool__(std::vector< CChan * > const *self){ return !(self->empty()); } SWIGINTERN std::vector< CChan * >::size_type std_vector_Sl_CChan_Sm__Sg____len__(std::vector< CChan * > const *self){ return self->size(); } SWIGINTERN std::vector< CChan * >::value_type std_vector_Sl_CChan_Sm__Sg__pop(std::vector< CChan * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CChan *,std::allocator< CChan * > > *std_vector_Sl_CChan_Sm__Sg____getslice__(std::vector< CChan * > *self,std::vector< CChan * >::difference_type i,std::vector< CChan * >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____setslice____SWIG_0(std::vector< CChan * > *self,std::vector< CChan * >::difference_type i,std::vector< CChan * >::difference_type j,std::vector< CChan *,std::allocator< CChan * > > const &v=std::vector< CChan *,std::allocator< CChan * > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____delslice__(std::vector< CChan * > *self,std::vector< CChan * >::difference_type i,std::vector< CChan * >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____delitem____SWIG_0(std::vector< CChan * > *self,std::vector< CChan * >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CChan *,std::allocator< CChan * > > *std_vector_Sl_CChan_Sm__Sg____getitem____SWIG_0(std::vector< CChan * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____setitem____SWIG_0(std::vector< CChan * > *self,PySliceObject *slice,std::vector< CChan *,std::allocator< CChan * > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____setitem____SWIG_1(std::vector< CChan * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____delitem____SWIG_1(std::vector< CChan * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CChan * >::value_type std_vector_Sl_CChan_Sm__Sg____getitem____SWIG_1(std::vector< CChan * > *self,std::vector< CChan * >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg____setitem____SWIG_2(std::vector< CChan * > *self,std::vector< CChan * >::difference_type i,std::vector< CChan * >::value_type x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg__append(std::vector< CChan * > *self,std::vector< CChan * >::value_type x){ self->push_back(x); } SWIGINTERN std::vector< CChan * >::iterator std_vector_Sl_CChan_Sm__Sg__erase__SWIG_0(std::vector< CChan * > *self,std::vector< CChan * >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< CChan * >::iterator std_vector_Sl_CChan_Sm__Sg__erase__SWIG_1(std::vector< CChan * > *self,std::vector< CChan * >::iterator first,std::vector< CChan * >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< CChan * >::iterator std_vector_Sl_CChan_Sm__Sg__insert__SWIG_0(std::vector< CChan * > *self,std::vector< CChan * >::iterator pos,std::vector< CChan * >::value_type x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_CChan_Sm__Sg__insert__SWIG_1(std::vector< CChan * > *self,std::vector< CChan * >::iterator pos,std::vector< CChan * >::size_type n,std::vector< CChan * >::value_type x){ self->insert(pos, n, x); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CNick"; } }; } namespace swig { template struct traits_asptr > { typedef std::pair value_type; static int get_pair(PyObject* first, PyObject* second, std::pair **val) { if (val) { value_type *vp = (new std::pair); T *pfirst = &(vp->first); int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) return res1; U *psecond = &(vp->second); int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; *val = vp; return SWIG_AddNewMask(res1 > res2 ? res1 : res2); } else { T *pfirst = 0; int res1 = swig::asval((PyObject*)first, pfirst); if (!SWIG_IsOK(res1)) return res1; U *psecond = 0; int res2 = swig::asval((PyObject*)second, psecond); if (!SWIG_IsOK(res2)) return res2; return res1 > res2 ? res1 : res2; } } static int asptr(PyObject *obj, std::pair **val) { int res = SWIG_ERROR; if (PyTuple_Check(obj)) { if (PyTuple_GET_SIZE(obj) == 2) { res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val); } } else if (PySequence_Check(obj)) { if (PySequence_Size(obj) == 2) { swig::SwigVar_PyObject first = PySequence_GetItem(obj,0); swig::SwigVar_PyObject second = PySequence_GetItem(obj,1); res = get_pair(first, second, val); } } else { value_type *p; res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info(),0); if (SWIG_IsOK(res) && val) *val = p; } return res; } }; template struct traits_from > { static PyObject *from(const std::pair& val) { PyObject* obj = PyTuple_New(2); PyTuple_SetItem(obj,0,swig::from(val.first)); PyTuple_SetItem(obj,1,swig::from(val.second)); return obj; } }; } namespace swig { template <> struct traits > { typedef pointer_category category; static const char* type_name() { return "std::pair<" "CString" "," "CNick" " >"; } }; } namespace swig { template struct from_key_oper { typedef const ValueType& argument_type; typedef PyObject *result_type; result_type operator()(argument_type v) const { return swig::from(v.first); } }; template struct from_value_oper { typedef const ValueType& argument_type; typedef PyObject *result_type; result_type operator()(argument_type v) const { return swig::from(v.second); } }; template struct SwigPyMapIterator_T : SwigPyIteratorClosed_T { SwigPyMapIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq) : SwigPyIteratorClosed_T(curr, first, last, seq) { } }; template > struct SwigPyMapKeyIterator_T : SwigPyMapIterator_T { SwigPyMapKeyIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq) : SwigPyMapIterator_T(curr, first, last, seq) { } }; template inline SwigPyIterator* make_output_key_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0) { return new SwigPyMapKeyIterator_T(current, begin, end, seq); } template > struct SwigPyMapValueITerator_T : SwigPyMapIterator_T { SwigPyMapValueITerator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq) : SwigPyMapIterator_T(curr, first, last, seq) { } }; template inline SwigPyIterator* make_output_value_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0) { return new SwigPyMapValueITerator_T(current, begin, end, seq); } } namespace swig { template inline void assign(const SwigPySeq& swigpyseq, std::map *map) { typedef typename std::map::value_type value_type; typename SwigPySeq::const_iterator it = swigpyseq.begin(); for (;it != swigpyseq.end(); ++it) { map->insert(value_type(it->first, it->second)); } } template struct traits_asptr > { typedef std::map map_type; static int asptr(PyObject *obj, map_type **val) { int res = SWIG_ERROR; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (PyDict_Check(obj)) { SwigVar_PyObject items = PyObject_CallMethod(obj,(char *)"items",NULL); #if PY_VERSION_HEX >= 0x03000000 /* In Python 3.x the ".items()" method returns a dict_items object */ items = PySequence_Fast(items, ".items() didn't return a sequence!"); #endif res = traits_asptr_stdseq >::asptr(items, val); } else { map_type *p; res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info(),0); if (SWIG_IsOK(res) && val) *val = p; } SWIG_PYTHON_THREAD_END_BLOCK; return res; } }; template struct traits_from > { typedef std::map map_type; typedef typename map_type::const_iterator const_iterator; typedef typename map_type::size_type size_type; static PyObject *asdict(const map_type& map) { SWIG_PYTHON_THREAD_BEGIN_BLOCK; size_type size = map.size(); int pysize = (size <= (size_type) INT_MAX) ? (int) size : -1; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject *obj = PyDict_New(); for (const_iterator i= map.begin(); i!= map.end(); ++i) { swig::SwigVar_PyObject key = swig::from(i->first); swig::SwigVar_PyObject val = swig::from(i->second); PyDict_SetItem(obj, key, val); } SWIG_PYTHON_THREAD_END_BLOCK; return obj; } static PyObject *from(const map_type& map) { swig_type_info *desc = swig::type_info(); if (desc && desc->clientdata) { return SWIG_InternalNewPointerObj(new map_type(map), desc, SWIG_POINTER_OWN); } else { return asdict(map); } } }; } namespace swig { template <> struct traits, std::allocator< std::pair< CString const,CNick > > > > { typedef pointer_category category; static const char* type_name() { return "std::map<" "CString" "," "CNick" "," "std::less< CString >" "," "std::allocator< std::pair< CString const,CNick > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_CNick_Sg__iterator(std::map< CString,CNick > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_map_Sl_CString_Sc_CNick_Sg____nonzero__(std::map< CString,CNick > const *self){ return !(self->empty()); } SWIGINTERN bool std_map_Sl_CString_Sc_CNick_Sg____bool__(std::map< CString,CNick > const *self){ return !(self->empty()); } SWIGINTERN std::map< CString,CNick >::size_type std_map_Sl_CString_Sc_CNick_Sg____len__(std::map< CString,CNick > const *self){ return self->size(); } SWIGINTERN std::map< CString,CNick >::mapped_type const &std_map_Sl_CString_Sc_CNick_Sg____getitem__(std::map< CString,CNick > *self,std::map< CString,CNick >::key_type const &key){ std::map,std::allocator< std::pair< CString const,CNick > > >::const_iterator i = self->find(key); if (i != self->end()) return i->second; else throw std::out_of_range("key not found"); } SWIGINTERN void std_map_Sl_CString_Sc_CNick_Sg____delitem__(std::map< CString,CNick > *self,std::map< CString,CNick >::key_type const &key){ std::map,std::allocator< std::pair< CString const,CNick > > >::iterator i = self->find(key); if (i != self->end()) self->erase(i); else throw std::out_of_range("key not found"); } SWIGINTERN bool std_map_Sl_CString_Sc_CNick_Sg__has_key(std::map< CString,CNick > const *self,std::map< CString,CNick >::key_type const &key){ std::map,std::allocator< std::pair< CString const,CNick > > >::const_iterator i = self->find(key); return i != self->end(); } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CNick_Sg__keys(std::map< CString,CNick > *self){ std::map,std::allocator< std::pair< CString const,CNick > > >::size_type size = self->size(); int pysize = (size <= (std::map,std::allocator< std::pair< CString const,CNick > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* keyList = PyList_New(pysize); std::map,std::allocator< std::pair< CString const,CNick > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(keyList, j, swig::from(i->first)); } SWIG_PYTHON_THREAD_END_BLOCK; return keyList; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CNick_Sg__values(std::map< CString,CNick > *self){ std::map,std::allocator< std::pair< CString const,CNick > > >::size_type size = self->size(); int pysize = (size <= (std::map,std::allocator< std::pair< CString const,CNick > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* valList = PyList_New(pysize); std::map,std::allocator< std::pair< CString const,CNick > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(valList, j, swig::from(i->second)); } SWIG_PYTHON_THREAD_END_BLOCK; return valList; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CNick_Sg__items(std::map< CString,CNick > *self){ std::map,std::allocator< std::pair< CString const,CNick > > >::size_type size = self->size(); int pysize = (size <= (std::map,std::allocator< std::pair< CString const,CNick > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* itemList = PyList_New(pysize); std::map,std::allocator< std::pair< CString const,CNick > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(itemList, j, swig::from(*i)); } SWIG_PYTHON_THREAD_END_BLOCK; return itemList; } SWIGINTERN bool std_map_Sl_CString_Sc_CNick_Sg____contains__(std::map< CString,CNick > *self,std::map< CString,CNick >::key_type const &key){ return self->find(key) != self->end(); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_CNick_Sg__key_iterator(std::map< CString,CNick > *self,PyObject **PYTHON_SELF){ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_CNick_Sg__value_iterator(std::map< CString,CNick > *self,PyObject **PYTHON_SELF){ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN void std_map_Sl_CString_Sc_CNick_Sg____setitem____SWIG_0(std::map< CString,CNick > *self,std::map< CString,CNick >::key_type const &key){ self->erase(key); } SWIGINTERN void std_map_Sl_CString_Sc_CNick_Sg____setitem____SWIG_1(std::map< CString,CNick > *self,std::map< CString,CNick >::key_type const &key,std::map< CString,CNick >::mapped_type const &x){ (*self)[key] = x; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CNick_Sg__asdict(std::map< CString,CNick > *self){ return swig::traits_from< std::map,std::allocator< std::pair< CString const,CNick > > > >::asdict(*self); } SWIGINTERN void std_map_Sl_CString_Sc_CNick_Sg__erase__SWIG_1(std::map< CString,CNick > *self,std::map< CString,CNick >::iterator position){ self->erase(position); } SWIGINTERN void std_map_Sl_CString_Sc_CNick_Sg__erase__SWIG_2(std::map< CString,CNick > *self,std::map< CString,CNick >::iterator first,std::map< CString,CNick >::iterator last){ self->erase(first, last); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CModInfo"; } }; } namespace swig { template inline void assign(const SwigPySeq& swigpyseq, std::set* seq) { // seq->insert(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented typedef typename SwigPySeq::value_type value_type; typename SwigPySeq::const_iterator it = swigpyseq.begin(); for (;it != swigpyseq.end(); ++it) { seq->insert(seq->end(),(value_type)(*it)); } } template struct traits_asptr > { static int asptr(PyObject *obj, std::set **s) { return traits_asptr_stdseq >::asptr(obj, s); } }; template struct traits_from > { static PyObject *from(const std::set& vec) { return traits_from_stdseq >::from(vec); } }; } namespace swig { template <> struct traits, std::allocator< CModInfo > > > { typedef pointer_category category; static const char* type_name() { return "std::set<" "CModInfo" "," "std::less< CModInfo >" "," "std::allocator< CModInfo >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_set_Sl_CModInfo_Sg__iterator(std::set< CModInfo > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_set_Sl_CModInfo_Sg____nonzero__(std::set< CModInfo > const *self){ return !(self->empty()); } SWIGINTERN bool std_set_Sl_CModInfo_Sg____bool__(std::set< CModInfo > const *self){ return !(self->empty()); } SWIGINTERN std::set< CModInfo >::size_type std_set_Sl_CModInfo_Sg____len__(std::set< CModInfo > const *self){ return self->size(); } SWIGINTERN void std_set_Sl_CModInfo_Sg__append(std::set< CModInfo > *self,std::set< CModInfo >::value_type x){ self->insert(x); } SWIGINTERN bool std_set_Sl_CModInfo_Sg____contains__(std::set< CModInfo > *self,std::set< CModInfo >::value_type x){ return self->find(x) != self->end(); } SWIGINTERN std::set< CModInfo >::value_type std_set_Sl_CModInfo_Sg____getitem__(std::set< CModInfo > const *self,std::set< CModInfo >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_set_Sl_CModInfo_Sg__add(std::set< CModInfo > *self,std::set< CModInfo >::value_type x){ self->insert(x); } SWIGINTERN void std_set_Sl_CModInfo_Sg__discard(std::set< CModInfo > *self,std::set< CModInfo >::value_type x){ self->erase(x); } SWIGINTERN void std_set_Sl_CModInfo_Sg__erase__SWIG_1(std::set< CModInfo > *self,std::set< CModInfo >::iterator pos){ self->erase(pos); } SWIGINTERN void std_set_Sl_CModInfo_Sg__erase__SWIG_2(std::set< CModInfo > *self,std::set< CModInfo >::iterator first,std::set< CModInfo >::iterator last){ self->erase(first, last); } namespace swig { template <> struct traits, std::allocator< CString > > > { typedef pointer_category category; static const char* type_name() { return "std::set<" "CString" "," "std::less< CString >" "," "std::allocator< CString >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_set_Sl_CString_Sg__iterator(std::set< CString > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_set_Sl_CString_Sg____nonzero__(std::set< CString > const *self){ return !(self->empty()); } SWIGINTERN bool std_set_Sl_CString_Sg____bool__(std::set< CString > const *self){ return !(self->empty()); } SWIGINTERN std::set< CString >::size_type std_set_Sl_CString_Sg____len__(std::set< CString > const *self){ return self->size(); } SWIGINTERN void std_set_Sl_CString_Sg__append(std::set< CString > *self,std::set< CString >::value_type x){ self->insert(x); } SWIGINTERN bool std_set_Sl_CString_Sg____contains__(std::set< CString > *self,std::set< CString >::value_type x){ return self->find(x) != self->end(); } SWIGINTERN std::set< CString >::value_type std_set_Sl_CString_Sg____getitem__(std::set< CString > const *self,std::set< CString >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_set_Sl_CString_Sg__add(std::set< CString > *self,std::set< CString >::value_type x){ self->insert(x); } SWIGINTERN void std_set_Sl_CString_Sg__discard(std::set< CString > *self,std::set< CString >::value_type x){ self->erase(x); } SWIGINTERN void std_set_Sl_CString_Sg__erase__SWIG_1(std::set< CString > *self,std::set< CString >::iterator pos){ self->erase(pos); } SWIGINTERN void std_set_Sl_CString_Sg__erase__SWIG_2(std::set< CString > *self,std::set< CString >::iterator first,std::set< CString >::iterator last){ self->erase(first, last); } namespace swig { template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "CString" "," "std::allocator< CString >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CString_Sg__iterator(std::vector< CString > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_CString_Sg____nonzero__(std::vector< CString > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_CString_Sg____bool__(std::vector< CString > const *self){ return !(self->empty()); } SWIGINTERN std::vector< CString >::size_type std_vector_Sl_CString_Sg____len__(std::vector< CString > const *self){ return self->size(); } SWIGINTERN std::vector< CString >::value_type std_vector_Sl_CString_Sg__pop(std::vector< CString > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CString,std::allocator< CString > > *std_vector_Sl_CString_Sg____getslice__(std::vector< CString > *self,std::vector< CString >::difference_type i,std::vector< CString >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CString_Sg____setslice____SWIG_0(std::vector< CString > *self,std::vector< CString >::difference_type i,std::vector< CString >::difference_type j,std::vector< CString,std::allocator< CString > > const &v=std::vector< CString,std::allocator< CString > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_CString_Sg____delslice__(std::vector< CString > *self,std::vector< CString >::difference_type i,std::vector< CString >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CString_Sg____delitem____SWIG_0(std::vector< CString > *self,std::vector< CString >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CString,std::allocator< CString > > *std_vector_Sl_CString_Sg____getitem____SWIG_0(std::vector< CString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CString_Sg____setitem____SWIG_0(std::vector< CString > *self,PySliceObject *slice,std::vector< CString,std::allocator< CString > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_CString_Sg____setitem____SWIG_1(std::vector< CString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CString_Sg____delitem____SWIG_1(std::vector< CString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CString >::value_type const &std_vector_Sl_CString_Sg____getitem____SWIG_1(std::vector< CString > const *self,std::vector< CString >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_CString_Sg____setitem____SWIG_2(std::vector< CString > *self,std::vector< CString >::difference_type i,std::vector< CString >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_CString_Sg__append(std::vector< CString > *self,std::vector< CString >::value_type const &x){ self->push_back(x); } SWIGINTERN std::vector< CString >::iterator std_vector_Sl_CString_Sg__erase__SWIG_0(std::vector< CString > *self,std::vector< CString >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< CString >::iterator std_vector_Sl_CString_Sg__erase__SWIG_1(std::vector< CString > *self,std::vector< CString >::iterator first,std::vector< CString >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< CString >::iterator std_vector_Sl_CString_Sg__insert__SWIG_0(std::vector< CString > *self,std::vector< CString >::iterator pos,std::vector< CString >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_CString_Sg__insert__SWIG_1(std::vector< CString > *self,std::vector< CString >::iterator pos,std::vector< CString >::size_type n,std::vector< CString >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template <> struct traits > { typedef pointer_category category; static const char* type_name() { return "std::pair<" "CString" "," "CString" " >"; } }; } namespace swig { template <> struct traits, std::allocator< std::pair< CString const,CString > > > > { typedef pointer_category category; static const char* type_name() { return "std::map<" "CString" "," "CString" "," "std::less< CString >" "," "std::allocator< std::pair< CString const,CString > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_CString_Sg__iterator(std::map< CString,CString > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_map_Sl_CString_Sc_CString_Sg____nonzero__(std::map< CString,CString > const *self){ return !(self->empty()); } SWIGINTERN bool std_map_Sl_CString_Sc_CString_Sg____bool__(std::map< CString,CString > const *self){ return !(self->empty()); } SWIGINTERN std::map< CString,CString >::size_type std_map_Sl_CString_Sc_CString_Sg____len__(std::map< CString,CString > const *self){ return self->size(); } SWIGINTERN std::map< CString,CString >::mapped_type const &std_map_Sl_CString_Sc_CString_Sg____getitem__(std::map< CString,CString > *self,std::map< CString,CString >::key_type const &key){ std::map,std::allocator< std::pair< CString const,CString > > >::const_iterator i = self->find(key); if (i != self->end()) return i->second; else throw std::out_of_range("key not found"); } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg____delitem__(std::map< CString,CString > *self,std::map< CString,CString >::key_type const &key){ std::map,std::allocator< std::pair< CString const,CString > > >::iterator i = self->find(key); if (i != self->end()) self->erase(i); else throw std::out_of_range("key not found"); } SWIGINTERN bool std_map_Sl_CString_Sc_CString_Sg__has_key(std::map< CString,CString > const *self,std::map< CString,CString >::key_type const &key){ std::map,std::allocator< std::pair< CString const,CString > > >::const_iterator i = self->find(key); return i != self->end(); } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CString_Sg__keys(std::map< CString,CString > *self){ std::map,std::allocator< std::pair< CString const,CString > > >::size_type size = self->size(); int pysize = (size <= (std::map,std::allocator< std::pair< CString const,CString > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* keyList = PyList_New(pysize); std::map,std::allocator< std::pair< CString const,CString > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(keyList, j, swig::from(i->first)); } SWIG_PYTHON_THREAD_END_BLOCK; return keyList; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CString_Sg__values(std::map< CString,CString > *self){ std::map,std::allocator< std::pair< CString const,CString > > >::size_type size = self->size(); int pysize = (size <= (std::map,std::allocator< std::pair< CString const,CString > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* valList = PyList_New(pysize); std::map,std::allocator< std::pair< CString const,CString > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(valList, j, swig::from(i->second)); } SWIG_PYTHON_THREAD_END_BLOCK; return valList; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CString_Sg__items(std::map< CString,CString > *self){ std::map,std::allocator< std::pair< CString const,CString > > >::size_type size = self->size(); int pysize = (size <= (std::map,std::allocator< std::pair< CString const,CString > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* itemList = PyList_New(pysize); std::map,std::allocator< std::pair< CString const,CString > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(itemList, j, swig::from(*i)); } SWIG_PYTHON_THREAD_END_BLOCK; return itemList; } SWIGINTERN bool std_map_Sl_CString_Sc_CString_Sg____contains__(std::map< CString,CString > *self,std::map< CString,CString >::key_type const &key){ return self->find(key) != self->end(); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_CString_Sg__key_iterator(std::map< CString,CString > *self,PyObject **PYTHON_SELF){ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_CString_Sg__value_iterator(std::map< CString,CString > *self,PyObject **PYTHON_SELF){ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg____setitem____SWIG_0(std::map< CString,CString > *self,std::map< CString,CString >::key_type const &key){ self->erase(key); } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg____setitem____SWIG_1(std::map< CString,CString > *self,std::map< CString,CString >::key_type const &key,std::map< CString,CString >::mapped_type const &x){ (*self)[key] = x; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_CString_Sg__asdict(std::map< CString,CString > *self){ return swig::traits_from< std::map,std::allocator< std::pair< CString const,CString > > > >::asdict(*self); } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg__erase__SWIG_1(std::map< CString,CString > *self,std::map< CString,CString >::iterator position){ self->erase(position); } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg__erase__SWIG_2(std::map< CString,CString > *self,std::map< CString,CString >::iterator first,std::map< CString,CString >::iterator last){ self->erase(first, last); } namespace swig { template <> struct traits > > > { typedef pointer_category category; static const char* type_name() { return "std::pair<" "CString" "," "std::vector< CString,std::allocator< CString > >" " >"; } }; } namespace swig { template <> struct traits >, std::less< CString >, std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > > { typedef pointer_category category; static const char* type_name() { return "std::map<" "CString" "," "std::vector< CString,std::allocator< CString > >" "," "std::less< CString >" "," "std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_VCString_Sg__iterator(std::map< CString,VCString > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_map_Sl_CString_Sc_VCString_Sg____nonzero__(std::map< CString,VCString > const *self){ return !(self->empty()); } SWIGINTERN bool std_map_Sl_CString_Sc_VCString_Sg____bool__(std::map< CString,VCString > const *self){ return !(self->empty()); } SWIGINTERN std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type std_map_Sl_CString_Sc_VCString_Sg____len__(std::map< CString,VCString > const *self){ return self->size(); } SWIGINTERN std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &std_map_Sl_CString_Sc_VCString_Sg____getitem__(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &key){ std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::const_iterator i = self->find(key); if (i != self->end()) return i->second; else throw std::out_of_range("key not found"); } SWIGINTERN void std_map_Sl_CString_Sc_VCString_Sg____delitem__(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &key){ std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::iterator i = self->find(key); if (i != self->end()) self->erase(i); else throw std::out_of_range("key not found"); } SWIGINTERN bool std_map_Sl_CString_Sc_VCString_Sg__has_key(std::map< CString,VCString > const *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &key){ std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::const_iterator i = self->find(key); return i != self->end(); } SWIGINTERN PyObject *std_map_Sl_CString_Sc_VCString_Sg__keys(std::map< CString,VCString > *self){ std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::size_type size = self->size(); int pysize = (size <= (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* keyList = PyList_New(pysize); std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(keyList, j, swig::from(i->first)); } SWIG_PYTHON_THREAD_END_BLOCK; return keyList; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_VCString_Sg__values(std::map< CString,VCString > *self){ std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::size_type size = self->size(); int pysize = (size <= (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* valList = PyList_New(pysize); std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(valList, j, swig::from(i->second)); } SWIG_PYTHON_THREAD_END_BLOCK; return valList; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_VCString_Sg__items(std::map< CString,VCString > *self){ std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::size_type size = self->size(); int pysize = (size <= (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::size_type) INT_MAX) ? (int) size : -1; SWIG_PYTHON_THREAD_BEGIN_BLOCK; if (pysize < 0) { PyErr_SetString(PyExc_OverflowError, "map size not valid in python"); SWIG_PYTHON_THREAD_END_BLOCK; return NULL; } PyObject* itemList = PyList_New(pysize); std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >::const_iterator i = self->begin(); for (int j = 0; j < pysize; ++i, ++j) { PyList_SET_ITEM(itemList, j, swig::from(*i)); } SWIG_PYTHON_THREAD_END_BLOCK; return itemList; } SWIGINTERN bool std_map_Sl_CString_Sc_VCString_Sg____contains__(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &key){ return self->find(key) != self->end(); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_VCString_Sg__key_iterator(std::map< CString,VCString > *self,PyObject **PYTHON_SELF){ return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN swig::SwigPyIterator *std_map_Sl_CString_Sc_VCString_Sg__value_iterator(std::map< CString,VCString > *self,PyObject **PYTHON_SELF){ return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN void std_map_Sl_CString_Sc_VCString_Sg____setitem____SWIG_0(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &key){ self->erase(key); } SWIGINTERN void std_map_Sl_CString_Sc_VCString_Sg____setitem____SWIG_1(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &key,std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &x){ (*self)[key] = x; } SWIGINTERN PyObject *std_map_Sl_CString_Sc_VCString_Sg__asdict(std::map< CString,VCString > *self){ return swig::traits_from< std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > >::asdict(*self); } SWIGINTERN void std_map_Sl_CString_Sc_VCString_Sg__erase__SWIG_1(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator position){ self->erase(position); } SWIGINTERN void std_map_Sl_CString_Sc_VCString_Sg__erase__SWIG_2(std::map< CString,VCString > *self,std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator first,std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator last){ self->erase(first, last); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CModule"; } }; } namespace swig { template <> struct traits > > { typedef value_category category; static const char* type_name() { return "std::vector<" "CModule" " *," "std::allocator< CModule * >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CModule_Sm__Sg__iterator(std::vector< CModule * > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_CModule_Sm__Sg____nonzero__(std::vector< CModule * > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_CModule_Sm__Sg____bool__(std::vector< CModule * > const *self){ return !(self->empty()); } SWIGINTERN std::vector< CModule * >::size_type std_vector_Sl_CModule_Sm__Sg____len__(std::vector< CModule * > const *self){ return self->size(); } SWIGINTERN std::vector< CModule * >::value_type std_vector_Sl_CModule_Sm__Sg__pop(std::vector< CModule * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CModule *,std::allocator< CModule * > > *std_vector_Sl_CModule_Sm__Sg____getslice__(std::vector< CModule * > *self,std::vector< CModule * >::difference_type i,std::vector< CModule * >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____setslice____SWIG_0(std::vector< CModule * > *self,std::vector< CModule * >::difference_type i,std::vector< CModule * >::difference_type j,std::vector< CModule *,std::allocator< CModule * > > const &v=std::vector< CModule *,std::allocator< CModule * > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____delslice__(std::vector< CModule * > *self,std::vector< CModule * >::difference_type i,std::vector< CModule * >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____delitem____SWIG_0(std::vector< CModule * > *self,std::vector< CModule * >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CModule *,std::allocator< CModule * > > *std_vector_Sl_CModule_Sm__Sg____getitem____SWIG_0(std::vector< CModule * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____setitem____SWIG_0(std::vector< CModule * > *self,PySliceObject *slice,std::vector< CModule *,std::allocator< CModule * > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____setitem____SWIG_1(std::vector< CModule * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____delitem____SWIG_1(std::vector< CModule * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CModule * >::value_type std_vector_Sl_CModule_Sm__Sg____getitem____SWIG_1(std::vector< CModule * > *self,std::vector< CModule * >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg____setitem____SWIG_2(std::vector< CModule * > *self,std::vector< CModule * >::difference_type i,std::vector< CModule * >::value_type x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg__append(std::vector< CModule * > *self,std::vector< CModule * >::value_type x){ self->push_back(x); } SWIGINTERN std::vector< CModule * >::iterator std_vector_Sl_CModule_Sm__Sg__erase__SWIG_0(std::vector< CModule * > *self,std::vector< CModule * >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< CModule * >::iterator std_vector_Sl_CModule_Sm__Sg__erase__SWIG_1(std::vector< CModule * > *self,std::vector< CModule * >::iterator first,std::vector< CModule * >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< CModule * >::iterator std_vector_Sl_CModule_Sm__Sg__insert__SWIG_0(std::vector< CModule * > *self,std::vector< CModule * >::iterator pos,std::vector< CModule * >::value_type x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_CModule_Sm__Sg__insert__SWIG_1(std::vector< CModule * > *self,std::vector< CModule * >::iterator pos,std::vector< CModule * >::size_type n,std::vector< CModule * >::value_type x){ self->insert(pos, n, x); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CListener"; } }; } namespace swig { template <> struct traits > > { typedef value_category category; static const char* type_name() { return "std::vector<" "CListener" " *," "std::allocator< CListener * >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CListener_Sm__Sg__iterator(std::vector< CListener * > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_CListener_Sm__Sg____nonzero__(std::vector< CListener * > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_CListener_Sm__Sg____bool__(std::vector< CListener * > const *self){ return !(self->empty()); } SWIGINTERN std::vector< CListener * >::size_type std_vector_Sl_CListener_Sm__Sg____len__(std::vector< CListener * > const *self){ return self->size(); } SWIGINTERN std::vector< CListener * >::value_type std_vector_Sl_CListener_Sm__Sg__pop(std::vector< CListener * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CListener *,std::allocator< CListener * > > *std_vector_Sl_CListener_Sm__Sg____getslice__(std::vector< CListener * > *self,std::vector< CListener * >::difference_type i,std::vector< CListener * >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____setslice____SWIG_0(std::vector< CListener * > *self,std::vector< CListener * >::difference_type i,std::vector< CListener * >::difference_type j,std::vector< CListener *,std::allocator< CListener * > > const &v=std::vector< CListener *,std::allocator< CListener * > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____delslice__(std::vector< CListener * > *self,std::vector< CListener * >::difference_type i,std::vector< CListener * >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____delitem____SWIG_0(std::vector< CListener * > *self,std::vector< CListener * >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CListener *,std::allocator< CListener * > > *std_vector_Sl_CListener_Sm__Sg____getitem____SWIG_0(std::vector< CListener * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____setitem____SWIG_0(std::vector< CListener * > *self,PySliceObject *slice,std::vector< CListener *,std::allocator< CListener * > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____setitem____SWIG_1(std::vector< CListener * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____delitem____SWIG_1(std::vector< CListener * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CListener * >::value_type std_vector_Sl_CListener_Sm__Sg____getitem____SWIG_1(std::vector< CListener * > *self,std::vector< CListener * >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg____setitem____SWIG_2(std::vector< CListener * > *self,std::vector< CListener * >::difference_type i,std::vector< CListener * >::value_type x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg__append(std::vector< CListener * > *self,std::vector< CListener * >::value_type x){ self->push_back(x); } SWIGINTERN std::vector< CListener * >::iterator std_vector_Sl_CListener_Sm__Sg__erase__SWIG_0(std::vector< CListener * > *self,std::vector< CListener * >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< CListener * >::iterator std_vector_Sl_CListener_Sm__Sg__erase__SWIG_1(std::vector< CListener * > *self,std::vector< CListener * >::iterator first,std::vector< CListener * >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< CListener * >::iterator std_vector_Sl_CListener_Sm__Sg__insert__SWIG_0(std::vector< CListener * > *self,std::vector< CListener * >::iterator pos,std::vector< CListener * >::value_type x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_CListener_Sm__Sg__insert__SWIG_1(std::vector< CListener * > *self,std::vector< CListener * >::iterator pos,std::vector< CListener * >::size_type n,std::vector< CListener * >::value_type x){ self->insert(pos, n, x); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CBufLine"; } }; } namespace swig { template struct traits_asptr > { static int asptr(PyObject *obj, std::deque **vec) { return traits_asptr_stdseq >::asptr(obj, vec); } }; template struct traits_from > { static PyObject *from(const std::deque & vec) { return traits_from_stdseq >::from(vec); } }; } namespace swig { template <> struct traits > > { typedef pointer_category category; static const char* type_name() { return "std::deque<" "CBufLine" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_deque_Sl_CBufLine_Sg__iterator(std::deque< CBufLine > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_deque_Sl_CBufLine_Sg____nonzero__(std::deque< CBufLine > const *self){ return !(self->empty()); } SWIGINTERN bool std_deque_Sl_CBufLine_Sg____bool__(std::deque< CBufLine > const *self){ return !(self->empty()); } SWIGINTERN std::deque< CBufLine >::size_type std_deque_Sl_CBufLine_Sg____len__(std::deque< CBufLine > const *self){ return self->size(); } SWIGINTERN std::deque< CBufLine >::value_type std_deque_Sl_CBufLine_Sg__pop(std::deque< CBufLine > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::deque >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::deque< CBufLine,std::allocator< CBufLine > > *std_deque_Sl_CBufLine_Sg____getslice__(std::deque< CBufLine > *self,std::deque< CBufLine >::difference_type i,std::deque< CBufLine >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____setslice____SWIG_0(std::deque< CBufLine > *self,std::deque< CBufLine >::difference_type i,std::deque< CBufLine >::difference_type j,std::deque< CBufLine,std::allocator< CBufLine > > const &v=std::deque< CBufLine,std::allocator< CBufLine > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____delslice__(std::deque< CBufLine > *self,std::deque< CBufLine >::difference_type i,std::deque< CBufLine >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____delitem____SWIG_0(std::deque< CBufLine > *self,std::deque< CBufLine >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::deque< CBufLine,std::allocator< CBufLine > > *std_deque_Sl_CBufLine_Sg____getitem____SWIG_0(std::deque< CBufLine > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::deque >::difference_type id = i; std::deque >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____setitem____SWIG_0(std::deque< CBufLine > *self,PySliceObject *slice,std::deque< CBufLine,std::allocator< CBufLine > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::deque >::difference_type id = i; std::deque >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____setitem____SWIG_1(std::deque< CBufLine > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::deque >::difference_type id = i; std::deque >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____delitem____SWIG_1(std::deque< CBufLine > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::deque >::difference_type id = i; std::deque >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::deque< CBufLine >::value_type const &std_deque_Sl_CBufLine_Sg____getitem____SWIG_1(std::deque< CBufLine > const *self,std::deque< CBufLine >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_deque_Sl_CBufLine_Sg____setitem____SWIG_2(std::deque< CBufLine > *self,std::deque< CBufLine >::difference_type i,std::deque< CBufLine >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_deque_Sl_CBufLine_Sg__append(std::deque< CBufLine > *self,std::deque< CBufLine >::value_type const &x){ self->push_back(x); } SWIGINTERN std::deque< CBufLine >::iterator std_deque_Sl_CBufLine_Sg__erase__SWIG_0(std::deque< CBufLine > *self,std::deque< CBufLine >::iterator pos){ return self->erase(pos); } SWIGINTERN std::deque< CBufLine >::iterator std_deque_Sl_CBufLine_Sg__erase__SWIG_1(std::deque< CBufLine > *self,std::deque< CBufLine >::iterator first,std::deque< CBufLine >::iterator last){ return self->erase(first, last); } SWIGINTERN std::deque< CBufLine >::iterator std_deque_Sl_CBufLine_Sg__insert__SWIG_0(std::deque< CBufLine > *self,std::deque< CBufLine >::iterator pos,std::deque< CBufLine >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_deque_Sl_CBufLine_Sg__insert__SWIG_1(std::deque< CBufLine > *self,std::deque< CBufLine >::iterator pos,std::deque< CBufLine >::size_type n,std::deque< CBufLine >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template <> struct traits >, std::allocator< std::vector< CString,std::allocator< CString > > > > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "std::vector< CString,std::allocator< CString > >" "," "std::allocator< std::vector< CString,std::allocator< CString > > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_VCString_Sg__iterator(std::vector< VCString > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_VCString_Sg____nonzero__(std::vector< VCString > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_VCString_Sg____bool__(std::vector< VCString > const *self){ return !(self->empty()); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > > >::size_type std_vector_Sl_VCString_Sg____len__(std::vector< VCString > const *self){ return self->size(); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > > >::value_type std_vector_Sl_VCString_Sg__pop(std::vector< VCString > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *std_vector_Sl_VCString_Sg____getslice__(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type i,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_VCString_Sg____setslice____SWIG_0(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type i,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type j,std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &v=std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_VCString_Sg____delslice__(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type i,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_VCString_Sg____delitem____SWIG_0(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *std_vector_Sl_VCString_Sg____getitem____SWIG_0(std::vector< VCString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type id = i; std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_VCString_Sg____setitem____SWIG_0(std::vector< VCString > *self,PySliceObject *slice,std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type id = i; std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_VCString_Sg____setitem____SWIG_1(std::vector< VCString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type id = i; std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_VCString_Sg____delitem____SWIG_1(std::vector< VCString > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type id = i; std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &std_vector_Sl_VCString_Sg____getitem____SWIG_1(std::vector< VCString > const *self,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_VCString_Sg____setitem____SWIG_2(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type i,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_VCString_Sg__append(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &x){ self->push_back(x); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > > >::iterator std_vector_Sl_VCString_Sg__erase__SWIG_0(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > > >::iterator std_vector_Sl_VCString_Sg__erase__SWIG_1(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::iterator first,std::vector< std::vector< CString,std::allocator< CString > > >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< std::vector< CString,std::allocator< CString > > >::iterator std_vector_Sl_VCString_Sg__insert__SWIG_0(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::iterator pos,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_VCString_Sg__insert__SWIG_1(std::vector< VCString > *self,std::vector< std::vector< CString,std::allocator< CString > > >::iterator pos,std::vector< std::vector< CString,std::allocator< CString > > >::size_type n,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template <> struct traits { typedef pointer_category category; static const char* type_name() { return"CClient"; } }; } namespace swig { template <> struct traits > > { typedef value_category category; static const char* type_name() { return "std::vector<" "CClient" " *," "std::allocator< CClient * >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CClient_Sm__Sg__iterator(std::vector< CClient * > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_CClient_Sm__Sg____nonzero__(std::vector< CClient * > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_CClient_Sm__Sg____bool__(std::vector< CClient * > const *self){ return !(self->empty()); } SWIGINTERN std::vector< CClient * >::size_type std_vector_Sl_CClient_Sm__Sg____len__(std::vector< CClient * > const *self){ return self->size(); } SWIGINTERN std::vector< CClient * >::value_type std_vector_Sl_CClient_Sm__Sg__pop(std::vector< CClient * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CClient *,std::allocator< CClient * > > *std_vector_Sl_CClient_Sm__Sg____getslice__(std::vector< CClient * > *self,std::vector< CClient * >::difference_type i,std::vector< CClient * >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____setslice____SWIG_0(std::vector< CClient * > *self,std::vector< CClient * >::difference_type i,std::vector< CClient * >::difference_type j,std::vector< CClient *,std::allocator< CClient * > > const &v=std::vector< CClient *,std::allocator< CClient * > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____delslice__(std::vector< CClient * > *self,std::vector< CClient * >::difference_type i,std::vector< CClient * >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____delitem____SWIG_0(std::vector< CClient * > *self,std::vector< CClient * >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< CClient *,std::allocator< CClient * > > *std_vector_Sl_CClient_Sm__Sg____getitem____SWIG_0(std::vector< CClient * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____setitem____SWIG_0(std::vector< CClient * > *self,PySliceObject *slice,std::vector< CClient *,std::allocator< CClient * > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____setitem____SWIG_1(std::vector< CClient * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____delitem____SWIG_1(std::vector< CClient * > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector >::difference_type id = i; std::vector >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< CClient * >::value_type std_vector_Sl_CClient_Sm__Sg____getitem____SWIG_1(std::vector< CClient * > *self,std::vector< CClient * >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg____setitem____SWIG_2(std::vector< CClient * > *self,std::vector< CClient * >::difference_type i,std::vector< CClient * >::value_type x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg__append(std::vector< CClient * > *self,std::vector< CClient * >::value_type x){ self->push_back(x); } SWIGINTERN std::vector< CClient * >::iterator std_vector_Sl_CClient_Sm__Sg__erase__SWIG_0(std::vector< CClient * > *self,std::vector< CClient * >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< CClient * >::iterator std_vector_Sl_CClient_Sm__Sg__erase__SWIG_1(std::vector< CClient * > *self,std::vector< CClient * >::iterator first,std::vector< CClient * >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< CClient * >::iterator std_vector_Sl_CClient_Sm__Sg__insert__SWIG_0(std::vector< CClient * > *self,std::vector< CClient * >::iterator pos,std::vector< CClient * >::value_type x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_CClient_Sm__Sg__insert__SWIG_1(std::vector< CClient * > *self,std::vector< CClient * >::iterator pos,std::vector< CClient * >::size_type n,std::vector< CClient * >::value_type x){ self->insert(pos, n, x); } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif SWIGINTERN int SWIG_AsVal_int (PyObject * obj, int *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< int >(v); } } return res; } SWIGINTERNINLINE PyObject * SWIG_FromCharPtr(const char *cptr) { return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); } SWIGINTERN int SWIG_AsVal_bool (PyObject *obj, bool *val) { int r; if (!PyBool_Check(obj)) return SWIG_ERROR; r = PyObject_IsTrue(obj); if (r == -1) return SWIG_ERROR; if (val) *val = r ? true : false; return SWIG_OK; } SWIGINTERN int SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UINT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned int >(v); } } return res; } SWIGINTERNINLINE PyObject* SWIG_From_long_SS_long (long long value) { return ((value < LONG_MIN) || (value > LONG_MAX)) ? PyLong_FromLongLong(value) : PyLong_FromLong(static_cast< long >(value)); } SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_long_SS_long (unsigned long long value) { return (value > LONG_MAX) ? PyLong_FromUnsignedLongLong(value) : PyLong_FromLong(static_cast< long >(value)); } SWIGINTERN int SWIG_AsVal_unsigned_SS_short (PyObject * obj, unsigned short *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > USHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned short >(v); } } return res; } SWIGINTERN int SWIG_AsVal_short (PyObject * obj, short *val) { long v; int res = SWIG_AsVal_long (obj, &v); if (SWIG_IsOK(res)) { if ((v < SHRT_MIN || v > SHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< short >(v); } } return res; } /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined(_MSC_VER) # define SWIG_isfinite(X) (_finite(X)) # elif defined(__sun) && defined(__SVR4) # include # define SWIG_isfinite(X) (finite(X)) # endif #endif /* Accept infinite as a valid float value unless we are unable to check if a value is finite */ #ifdef SWIG_isfinite # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) #else # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) #endif SWIGINTERN int SWIG_AsVal_float (PyObject * obj, float *val) { double v; int res = SWIG_AsVal_double (obj, &v); if (SWIG_IsOK(res)) { if (SWIG_Float_Overflow_Check(v)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< float >(v); } } return res; } #define SWIG_From_double PyFloat_FromDouble SWIGINTERN PyObject *Csock_WriteBytes(Csock *self,PyObject *data){ if (!PyBytes_Check(data)) { PyErr_SetString(PyExc_TypeError, "socket.WriteBytes needs bytes as argument"); return NULL; } char* buffer; Py_ssize_t length; if (-1 == PyBytes_AsStringAndSize(data, &buffer, &length)) { return NULL; } if (self->Write(buffer, length)) { Py_RETURN_TRUE; } else { Py_RETURN_FALSE; } } SWIGINTERNINLINE PyObject * SWIG_From_unsigned_SS_short (unsigned short value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERNINLINE PyObject* SWIG_From_unsigned_SS_int (unsigned int value) { return PyInt_FromSize_t((size_t) value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UCHAR_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned char >(v); } } return res; } SWIGINTERN int SWIG_AsCharArray(PyObject * obj, char *val, size_t size) { char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); if (SWIG_IsOK(res)) { /* special case of single char conversion when we don't need space for NUL */ if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize; if (csize <= size) { if (val) { if (csize) memcpy(val, cptr, csize*sizeof(char)); if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); } if (alloc == SWIG_NEWOBJ) { delete[] cptr; res = SWIG_DelNewMask(res); } return res; } if (alloc == SWIG_NEWOBJ) delete[] cptr; } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_char (PyObject * obj, char *val) { int res = SWIG_AsCharArray(obj, val, 1); if (!SWIG_IsOK(res)) { long v; res = SWIG_AddCast(SWIG_AsVal_long (obj, &v)); if (SWIG_IsOK(res)) { if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { if (val) *val = static_cast< char >(v); } else { res = SWIG_OverflowError; } } } return res; } SWIGINTERN CString CModule___str__(CModule *self){ return self->GetModName(); } SWIGINTERN MCString_iter CModule_BeginNV_(CModule *self){ return MCString_iter(self->BeginNV()); } SWIGINTERN bool CModule_ExistsNV(CModule *self,CString const &sName){ return self->EndNV() != self->FindNV(sName); } SWIGINTERN bool CModules_removeModule(CModules *self,CModule *p){ for (CModules::iterator i = self->begin(); self->end() != i; ++i) { if (*i == p) { self->erase(i); return true; } } return false; } SWIGINTERNINLINE PyObject * SWIG_From_unsigned_SS_char (unsigned char value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN CString CNick___str__(CNick *self){ return self->GetNick(); } SWIGINTERN CString CNick___repr__(CNick *self){ return "GetHostMask() + ">"; } SWIGINTERNINLINE PyObject * SWIG_From_char (char c) { return SWIG_FromCharPtrAndSize(&c,1); } SWIGINTERN CString CChan___str__(CChan *self){ return self->GetName(); } SWIGINTERN CString CChan___repr__(CChan *self){ return "GetName() + ">"; } SWIGINTERN std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > > CChan_GetNicks_(CChan *self){ return self->GetNicks(); } SWIGINTERN int SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val) { int res = SWIG_TypeError; if (PyLong_Check(obj)) { unsigned long long v = PyLong_AsUnsignedLongLong(obj); if (!PyErr_Occurred()) { if (val) *val = v; return SWIG_OK; } else { PyErr_Clear(); } } else { unsigned long v; res = SWIG_AsVal_unsigned_SS_long (obj,&v); if (SWIG_IsOK(res)) { if (val) *val = v; return res; } } #ifdef SWIG_PYTHON_CAST_MODE { const double mant_max = 1LL << DBL_MANT_DIG; double d; res = SWIG_AsVal_double (obj,&d); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { if (val) *val = (unsigned long long)(d); return SWIG_AddCast(res); } res = SWIG_TypeError; } #endif return res; } SWIGINTERN CString CUser___str__(CUser *self){ return self->GetUserName(); } SWIGINTERN CString CUser___repr__(CUser *self){ return "GetUserName() + ">"; } SWIGINTERN std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > CUser_GetNetworks_(CUser *self){ return self->GetNetworks(); } SWIGINTERN CString CIRCNetwork___str__(CIRCNetwork *self){ return self->GetName(); } SWIGINTERN CString CIRCNetwork___repr__(CIRCNetwork *self){ return "GetName() + ">"; } SWIGINTERN std::vector< CChan *,std::allocator< CChan * > > CIRCNetwork_GetChans_(CIRCNetwork *self){ return self->GetChans(); } struct SWIG_null_deleter { void operator() (void const *) const { } }; #define SWIG_NO_NULL_DELETER_0 , SWIG_null_deleter() #define SWIG_NO_NULL_DELETER_1 #define SWIG_NO_NULL_DELETER_SWIG_POINTER_NEW #define SWIG_NO_NULL_DELETER_SWIG_POINTER_OWN #define SWIG_NO_NULL_DELETER_SWIG_BUILTIN_INIT SWIGINTERN void CTemplate_set(CTemplate *self,CString const &key,CString const &value){ do { if (CDebug::Debug()) { CDebugStream sDebug; sDebug << "WARNING: modpython's CTemplate.set is deprecated and will be removed. Use normal dict's operations like Tmpl['foo'] = 'bar'"; } } while (0); (*self)[key] = value; } SWIGINTERN PyObject *CZNC_GetUserMap_(CZNC *self){ PyObject* result = PyDict_New(); auto user_type = SWIG_TypeQuery("CUser*"); for (const auto& p : self->GetUserMap()) { PyObject* user = SWIG_NewInstanceObj(p.second, user_type, 0); PyDict_SetItemString(result, p.first.c_str(), user); Py_CLEAR(user); } return result; } SWIGINTERN CString String___str__(String *self){ return self->s; } SWIGINTERN CString CPyRetString___str__(CPyRetString *self){ return self->s; } SWIGINTERN bool CPyRetBool___bool__(CPyRetBool *self){ return self->b; } namespace swig { template <> struct traits, std::allocator< std::pair< CString,CString > > > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "std::pair< CString,CString >" "," "std::allocator< std::pair< CString,CString > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__iterator(std::vector< std::pair< CString,CString > > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____nonzero__(std::vector< std::pair< CString,CString > > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____bool__(std::vector< std::pair< CString,CString > > const *self){ return !(self->empty()); } SWIGINTERN std::vector< std::pair< CString,CString > >::size_type std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____len__(std::vector< std::pair< CString,CString > > const *self){ return self->size(); } SWIGINTERN std::vector< std::pair< CString,CString > >::value_type std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__pop(std::vector< std::pair< CString,CString > > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector,std::allocator< std::pair< CString,CString > > >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____getslice__(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::difference_type i,std::vector< std::pair< CString,CString > >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setslice____SWIG_0(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::difference_type i,std::vector< std::pair< CString,CString > >::difference_type j,std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &v=std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____delslice__(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::difference_type i,std::vector< std::pair< CString,CString > >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____delitem____SWIG_0(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____getitem____SWIG_0(std::vector< std::pair< CString,CString > > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::pair< CString,CString > > >::difference_type id = i; std::vector,std::allocator< std::pair< CString,CString > > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setitem____SWIG_0(std::vector< std::pair< CString,CString > > *self,PySliceObject *slice,std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::pair< CString,CString > > >::difference_type id = i; std::vector,std::allocator< std::pair< CString,CString > > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setitem____SWIG_1(std::vector< std::pair< CString,CString > > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::pair< CString,CString > > >::difference_type id = i; std::vector,std::allocator< std::pair< CString,CString > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____delitem____SWIG_1(std::vector< std::pair< CString,CString > > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::pair< CString,CString > > >::difference_type id = i; std::vector,std::allocator< std::pair< CString,CString > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< std::pair< CString,CString > >::value_type const &std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____getitem____SWIG_1(std::vector< std::pair< CString,CString > > const *self,std::vector< std::pair< CString,CString > >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setitem____SWIG_2(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::difference_type i,std::vector< std::pair< CString,CString > >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__append(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::value_type const &x){ self->push_back(x); } SWIGINTERN std::vector< std::pair< CString,CString > >::iterator std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__erase__SWIG_0(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< std::pair< CString,CString > >::iterator std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__erase__SWIG_1(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::iterator first,std::vector< std::pair< CString,CString > >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< std::pair< CString,CString > >::iterator std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__insert__SWIG_0(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::iterator pos,std::vector< std::pair< CString,CString > >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__insert__SWIG_1(std::vector< std::pair< CString,CString > > *self,std::vector< std::pair< CString,CString > >::iterator pos,std::vector< std::pair< CString,CString > >::size_type n,std::vector< std::pair< CString,CString > >::value_type const &x){ self->insert(pos, n, x); } namespace swig { template <> struct traits > { typedef pointer_category category; static const char* type_name() { return"std::shared_ptr< CWebSubPage >"; } }; } namespace swig { template <> struct traits, std::allocator< std::shared_ptr< CWebSubPage > > > > { typedef pointer_category category; static const char* type_name() { return "std::vector<" "std::shared_ptr< CWebSubPage >" "," "std::allocator< std::shared_ptr< CWebSubPage > >" " >"; } }; } SWIGINTERN swig::SwigPyIterator *std_vector_Sl_TWebSubPage_Sg__iterator(std::vector< TWebSubPage > *self,PyObject **PYTHON_SELF){ return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF); } SWIGINTERN bool std_vector_Sl_TWebSubPage_Sg____nonzero__(std::vector< TWebSubPage > const *self){ return !(self->empty()); } SWIGINTERN bool std_vector_Sl_TWebSubPage_Sg____bool__(std::vector< TWebSubPage > const *self){ return !(self->empty()); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage > >::size_type std_vector_Sl_TWebSubPage_Sg____len__(std::vector< TWebSubPage > const *self){ return self->size(); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage > >::value_type std_vector_Sl_TWebSubPage_Sg__pop(std::vector< TWebSubPage > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty container"); std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::value_type x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *std_vector_Sl_TWebSubPage_Sg____getslice__(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::difference_type i,std::vector< std::shared_ptr< CWebSubPage > >::difference_type j){ return swig::getslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____setslice____SWIG_0(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::difference_type i,std::vector< std::shared_ptr< CWebSubPage > >::difference_type j,std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &v=std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > >()){ swig::setslice(self, i, j, 1, v); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____delslice__(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::difference_type i,std::vector< std::shared_ptr< CWebSubPage > >::difference_type j){ swig::delslice(self, i, j, 1); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____delitem____SWIG_0(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::difference_type i){ self->erase(swig::getpos(self,i)); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *std_vector_Sl_TWebSubPage_Sg____getitem____SWIG_0(std::vector< TWebSubPage > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return NULL; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type jd = j; return swig::getslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_0(std::vector< TWebSubPage > *self,PySliceObject *slice,std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &v){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type jd = j; swig::setslice(self, id, jd, step, v); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_1(std::vector< TWebSubPage > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____delitem____SWIG_1(std::vector< TWebSubPage > *self,PySliceObject *slice){ Py_ssize_t i, j, step; if( !PySlice_Check(slice) ) { SWIG_Error(SWIG_TypeError, "Slice object expected."); return; } PySlice_GetIndices(SWIGPY_SLICE_ARG(slice), (Py_ssize_t)self->size(), &i, &j, &step); std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type id = i; std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >::difference_type jd = j; swig::delslice(self, id, jd, step); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage > >::value_type const &std_vector_Sl_TWebSubPage_Sg____getitem____SWIG_1(std::vector< TWebSubPage > const *self,std::vector< std::shared_ptr< CWebSubPage > >::difference_type i){ return *(swig::cgetpos(self, i)); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_2(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::difference_type i,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &x){ *(swig::getpos(self,i)) = x; } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg__append(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &x){ self->push_back(x); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage > >::iterator std_vector_Sl_TWebSubPage_Sg__erase__SWIG_0(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::iterator pos){ return self->erase(pos); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage > >::iterator std_vector_Sl_TWebSubPage_Sg__erase__SWIG_1(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::iterator first,std::vector< std::shared_ptr< CWebSubPage > >::iterator last){ return self->erase(first, last); } SWIGINTERN std::vector< std::shared_ptr< CWebSubPage > >::iterator std_vector_Sl_TWebSubPage_Sg__insert__SWIG_0(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::iterator pos,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &x){ return self->insert(pos, x); } SWIGINTERN void std_vector_Sl_TWebSubPage_Sg__insert__SWIG_1(std::vector< TWebSubPage > *self,std::vector< std::shared_ptr< CWebSubPage > >::iterator pos,std::vector< std::shared_ptr< CWebSubPage > >::size_type n,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &x){ self->insert(pos, n, x); } void VPair_Add2Str_(VPair* self, const CString& a, const CString& b) { self->push_back(std::make_pair(a, b)); } TWebSubPage CreateWebSubPage_(const CString& sName, const CString& sTitle, const VPair& vParams, unsigned int uFlags) { return std::make_shared(sName, sTitle, vParams, uFlags); } #ifdef __cplusplus extern "C" { #endif SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); try { result = (swig::SwigPyIterator *)(arg1)->incr(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (swig::SwigPyIterator *)(arg1)->incr(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator_incr__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_SwigPyIterator_incr__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" " Possible C/C++ prototypes are:\n" " swig::SwigPyIterator::incr(size_t)\n" " swig::SwigPyIterator::incr()\n"); return 0; } SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); try { result = (swig::SwigPyIterator *)(arg1)->decr(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (swig::SwigPyIterator *)(arg1)->decr(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator_decr__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_SwigPyIterator_decr__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" " Possible C/C++ prototypes are:\n" " swig::SwigPyIterator::decr(size_t)\n" " swig::SwigPyIterator::decr()\n"); return 0; } SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ptrdiff_t result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); try { result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); } catch(std::invalid_argument &_e) { SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; } resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); try { result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); } catch(std::invalid_argument &_e) { SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail; } resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)(arg1)->next(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)(arg1)->__next__(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); try { result = (PyObject *)(arg1)->previous(); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *)(arg1)->advance(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; ptrdiff_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; swig::SwigPyIterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); } arg2 = static_cast< ptrdiff_t >(val2); try { result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); } catch(swig::stop_iteration &_e) { { (void)_e; SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); SWIG_fail; } } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; swig::SwigPyIterator *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ptrdiff_t result; if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); } arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); } arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SwigPyIterator___sub____SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_SwigPyIterator___sub____SWIG_0(self, args); } } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *SHARED_PTR_DISOWN_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *module; PyObject *d; if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; d = PyModule_GetDict(module); if (!d) return NULL; SWIG_Python_SetConstant(d, "SHARED_PTR_DISOWN",SWIG_From_int(static_cast< int >(0))); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap__stringlist_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_iterator" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (swig::SwigPyIterator *)std_list_Sl_CString_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___nonzero__" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (bool)std_list_Sl_CString_Sg____nonzero__((std::list< CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___bool__" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (bool)std_list_Sl_CString_Sg____bool__((std::list< CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___len__" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = std_list_Sl_CString_Sg____len__((std::list< CString > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_pop" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); try { result = std_list_Sl_CString_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; std::list< CString >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::list< CString,std::allocator< CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___getslice__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___getslice__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_stringlist___getslice__" "', argument " "3"" of type '" "std::list< CString >::difference_type""'"); } arg3 = static_cast< std::list< CString >::difference_type >(val3); try { result = (std::list< CString,std::allocator< CString > > *)std_list_Sl_CString_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; std::list< CString >::difference_type arg3 ; std::list< CString,std::allocator< CString > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:_stringlist___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___setslice__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___setslice__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_stringlist___setslice__" "', argument " "3"" of type '" "std::list< CString >::difference_type""'"); } arg3 = static_cast< std::list< CString >::difference_type >(val3); { std::list > *ptr = (std::list > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "_stringlist___setslice__" "', argument " "4"" of type '" "std::list< CString,std::allocator< CString > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist___setslice__" "', argument " "4"" of type '" "std::list< CString,std::allocator< CString > > const &""'"); } arg4 = ptr; } try { std_list_Sl_CString_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::list< CString,std::allocator< CString > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap__stringlist___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; std::list< CString >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___setslice__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___setslice__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_stringlist___setslice__" "', argument " "3"" of type '" "std::list< CString >::difference_type""'"); } arg3 = static_cast< std::list< CString >::difference_type >(val3); try { std_list_Sl_CString_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap__stringlist___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap__stringlist___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::__setslice__(std::list< CString >::difference_type,std::list< CString >::difference_type,std::list< CString,std::allocator< CString > > const &)\n" " std::list< CString >::__setslice__(std::list< CString >::difference_type,std::list< CString >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; std::list< CString >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___delslice__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___delslice__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_stringlist___delslice__" "', argument " "3"" of type '" "std::list< CString >::difference_type""'"); } arg3 = static_cast< std::list< CString >::difference_type >(val3); try { std_list_Sl_CString_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___delitem__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___delitem__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); try { std_list_Sl_CString_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::list< CString,std::allocator< CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___getitem__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::list< CString,std::allocator< CString > > *)std_list_Sl_CString_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::list< CString,std::allocator< CString > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___setitem__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::list > *ptr = (std::list > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_stringlist___setitem__" "', argument " "3"" of type '" "std::list< CString,std::allocator< CString > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist___setitem__" "', argument " "3"" of type '" "std::list< CString,std::allocator< CString > > const &""'"); } arg3 = ptr; } try { std_list_Sl_CString_Sg____setitem____SWIG_0(arg1,arg2,(std::list< CString,std::allocator< CString > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap__stringlist___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___setitem__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_list_Sl_CString_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___delitem__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_list_Sl_CString_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap__stringlist___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap__stringlist___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::__delitem__(std::list< CString >::difference_type)\n" " std::list< CString >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::list< CString >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___getitem__" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___getitem__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); try { result = (std::list< CString >::value_type *) &std_list_Sl_CString_Sg____getitem____SWIG_1((std::list< CString > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap__stringlist___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap__stringlist___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::__getitem__(PySliceObject *)\n" " std::list< CString >::__getitem__(std::list< CString >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::difference_type arg2 ; std::list< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist___setitem__" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist___setitem__" "', argument " "2"" of type '" "std::list< CString >::difference_type""'"); } arg2 = static_cast< std::list< CString >::difference_type >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_stringlist___setitem__" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist___setitem__" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } arg3 = ptr; } try { std_list_Sl_CString_Sg____setitem____SWIG_2(arg1,arg2,(CString const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap__stringlist___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap__stringlist___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap__stringlist___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap__stringlist___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::__setitem__(PySliceObject *,std::list< CString,std::allocator< CString > > const &)\n" " std::list< CString >::__setitem__(PySliceObject *)\n" " std::list< CString >::__setitem__(std::list< CString >::difference_type,std::list< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_append" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_stringlist_append" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_append" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } arg2 = ptr; } std_list_Sl_CString_Sg__append(arg1,(CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new__stringlist__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new__stringlist")) SWIG_fail; result = (std::list< CString > *)new std::list< CString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new__stringlist__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::list< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new__stringlist",&obj0)) SWIG_fail; { std::list > *ptr = (std::list > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new__stringlist" "', argument " "1"" of type '" "std::list< CString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new__stringlist" "', argument " "1"" of type '" "std::list< CString > const &""'"); } arg1 = ptr; } result = (std::list< CString > *)new std::list< CString >((std::list< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_empty" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (bool)((std::list< CString > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_size" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = ((std::list< CString > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_clear" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_swap" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_stringlist_swap" "', argument " "2"" of type '" "std::list< CString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_swap" "', argument " "2"" of type '" "std::list< CString > &""'"); } arg2 = reinterpret_cast< std::list< CString > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CString > > result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_get_allocator" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = ((std::list< CString > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::list< CString >::allocator_type(static_cast< const std::list< CString >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CString_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_begin" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_end" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_rbegin" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_rend" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new__stringlist__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::list< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new__stringlist",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new__stringlist" "', argument " "1"" of type '" "std::list< CString >::size_type""'"); } arg1 = static_cast< std::list< CString >::size_type >(val1); result = (std::list< CString > *)new std::list< CString >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_pop_back" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_resize" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist_resize" "', argument " "2"" of type '" "std::list< CString >::size_type""'"); } arg2 = static_cast< std::list< CString >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::list< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_erase" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_erase" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_erase" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } } result = std_list_Sl_CString_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::iterator arg2 ; std::list< CString >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::list< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_erase" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_erase" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_erase" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_erase" "', argument " "3"" of type '" "std::list< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_erase" "', argument " "3"" of type '" "std::list< CString >::iterator""'"); } } result = std_list_Sl_CString_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap__stringlist_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap__stringlist_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist_erase'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::erase(std::list< CString >::iterator)\n" " std::list< CString >::erase(std::list< CString >::iterator,std::list< CString >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new__stringlist__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString >::size_type arg1 ; std::list< CString >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::list< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new__stringlist",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new__stringlist" "', argument " "1"" of type '" "std::list< CString >::size_type""'"); } arg1 = static_cast< std::list< CString >::size_type >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new__stringlist" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new__stringlist" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } arg2 = ptr; } result = (std::list< CString > *)new std::list< CString >(arg1,(std::list< CString >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new__stringlist(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new__stringlist__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new__stringlist__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new__stringlist__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new__stringlist__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new__stringlist'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::list()\n" " std::list< CString >::list(std::list< CString > const &)\n" " std::list< CString >::list(std::list< CString >::size_type)\n" " std::list< CString >::list(std::list< CString >::size_type,std::list< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_push_back" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_stringlist_push_back" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_push_back" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } arg2 = ptr; } (arg1)->push_back((std::list< CString >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_front" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (std::list< CString >::value_type *) &((std::list< CString > const *)arg1)->front(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CString >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_back" "', argument " "1"" of type '" "std::list< CString > const *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); result = (std::list< CString >::value_type *) &((std::list< CString > const *)arg1)->back(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::size_type arg2 ; std::list< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_assign" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist_assign" "', argument " "2"" of type '" "std::list< CString >::size_type""'"); } arg2 = static_cast< std::list< CString >::size_type >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_stringlist_assign" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_assign" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } arg3 = ptr; } (arg1)->assign(arg2,(std::list< CString >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::size_type arg2 ; std::list< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_resize" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_stringlist_resize" "', argument " "2"" of type '" "std::list< CString >::size_type""'"); } arg2 = static_cast< std::list< CString >::size_type >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_stringlist_resize" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_resize" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } arg3 = ptr; } (arg1)->resize(arg2,(std::list< CString >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap__stringlist_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap__stringlist_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist_resize'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::resize(std::list< CString >::size_type)\n" " std::list< CString >::resize(std::list< CString >::size_type,std::list< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::iterator arg2 ; std::list< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::list< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:_stringlist_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_insert" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_insert" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_insert" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_stringlist_insert" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_insert" "', argument " "3"" of type '" "std::list< CString >::value_type const &""'"); } arg3 = ptr; } result = std_list_Sl_CString_Sg__insert__SWIG_0(arg1,arg2,(CString const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::list< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::iterator arg2 ; std::list< CString >::size_type arg3 ; std::list< CString >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:_stringlist_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_insert" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_insert" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "_stringlist_insert" "', argument " "2"" of type '" "std::list< CString >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "_stringlist_insert" "', argument " "3"" of type '" "std::list< CString >::size_type""'"); } arg3 = static_cast< std::list< CString >::size_type >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "_stringlist_insert" "', argument " "4"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_insert" "', argument " "4"" of type '" "std::list< CString >::value_type const &""'"); } arg4 = ptr; } std_list_Sl_CString_Sg__insert__SWIG_1(arg1,arg2,arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap__stringlist_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::list >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap__stringlist_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function '_stringlist_insert'.\n" " Possible C/C++ prototypes are:\n" " std::list< CString >::insert(std::list< CString >::iterator,std::list< CString >::value_type const &)\n" " std::list< CString >::insert(std::list< CString >::iterator,std::list< CString >::size_type,std::list< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap__stringlist_pop_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_pop_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_pop_front" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); (arg1)->pop_front(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap__stringlist_push_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:_stringlist_push_front",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_push_front" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_stringlist_push_front" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_push_front" "', argument " "2"" of type '" "std::list< CString >::value_type const &""'"); } arg2 = ptr; } (arg1)->push_front((std::list< CString >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap__stringlist_reverse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:_stringlist_reverse",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_reverse" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); (arg1)->reverse(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete__stringlist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete__stringlist",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__stringlist" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_stringlist_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__listT_CString_std__allocatorT_CString_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VIRCNetworks_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_iterator" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_CIRCNetwork_Sm__Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___nonzero__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (bool)std_vector_Sl_CIRCNetwork_Sm__Sg____nonzero__((std::vector< CIRCNetwork * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___bool__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (bool)std_vector_Sl_CIRCNetwork_Sm__Sg____bool__((std::vector< CIRCNetwork * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___len__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = std_vector_Sl_CIRCNetwork_Sm__Sg____len__((std::vector< CIRCNetwork * > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_pop" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); try { result = (std::vector< CIRCNetwork * >::value_type)std_vector_Sl_CIRCNetwork_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; std::vector< CIRCNetwork * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___getslice__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___getslice__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VIRCNetworks___getslice__" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg3 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val3); try { result = (std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *)std_vector_Sl_CIRCNetwork_Sm__Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; std::vector< CIRCNetwork * >::difference_type arg3 ; std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VIRCNetworks___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___setslice__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___setslice__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VIRCNetworks___setslice__" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg3 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VIRCNetworks___setslice__" "', argument " "4"" of type '" "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VIRCNetworks___setslice__" "', argument " "4"" of type '" "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_CIRCNetwork_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; std::vector< CIRCNetwork * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___setslice__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___setslice__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VIRCNetworks___setslice__" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg3 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val3); try { std_vector_Sl_CIRCNetwork_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VIRCNetworks___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VIRCNetworks___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::__setslice__(std::vector< CIRCNetwork * >::difference_type,std::vector< CIRCNetwork * >::difference_type,std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &)\n" " std::vector< CIRCNetwork * >::__setslice__(std::vector< CIRCNetwork * >::difference_type,std::vector< CIRCNetwork * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; std::vector< CIRCNetwork * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___delslice__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___delslice__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VIRCNetworks___delslice__" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg3 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val3); try { std_vector_Sl_CIRCNetwork_Sm__Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___delitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___delitem__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); try { std_vector_Sl_CIRCNetwork_Sm__Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___getitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *)std_vector_Sl_CIRCNetwork_Sm__Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___setitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VIRCNetworks___setitem__" "', argument " "3"" of type '" "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VIRCNetworks___setitem__" "', argument " "3"" of type '" "std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_CIRCNetwork_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___setitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CIRCNetwork_Sm__Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___delitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CIRCNetwork_Sm__Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VIRCNetworks___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VIRCNetworks___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::__delitem__(std::vector< CIRCNetwork * >::difference_type)\n" " std::vector< CIRCNetwork * >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CIRCNetwork * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___getitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___getitem__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); try { result = (std::vector< CIRCNetwork * >::value_type)std_vector_Sl_CIRCNetwork_Sm__Sg____getitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VIRCNetworks___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VIRCNetworks___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::__getitem__(PySliceObject *)\n" " std::vector< CIRCNetwork * >::__getitem__(std::vector< CIRCNetwork * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::difference_type arg2 ; std::vector< CIRCNetwork * >::value_type arg3 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks___setitem__" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks___setitem__" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::difference_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VIRCNetworks___setitem__" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp3); try { std_vector_Sl_CIRCNetwork_Sm__Sg____setitem____SWIG_2(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VIRCNetworks___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VIRCNetworks___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VIRCNetworks___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::__setitem__(PySliceObject *,std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > const &)\n" " std::vector< CIRCNetwork * >::__setitem__(PySliceObject *)\n" " std::vector< CIRCNetwork * >::__setitem__(std::vector< CIRCNetwork * >::difference_type,std::vector< CIRCNetwork * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::value_type arg2 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_append" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VIRCNetworks_append" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp2); std_vector_Sl_CIRCNetwork_Sm__Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VIRCNetworks__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VIRCNetworks")) SWIG_fail; result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VIRCNetworks__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VIRCNetworks",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VIRCNetworks" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VIRCNetworks" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const &""'"); } arg1 = ptr; } result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >((std::vector< CIRCNetwork * > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_empty" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (bool)((std::vector< CIRCNetwork * > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_size" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = ((std::vector< CIRCNetwork * > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_clear" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_swap" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VIRCNetworks_swap" "', argument " "2"" of type '" "std::vector< CIRCNetwork * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VIRCNetworks_swap" "', argument " "2"" of type '" "std::vector< CIRCNetwork * > &""'"); } arg2 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CIRCNetwork * > > result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_get_allocator" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = ((std::vector< CIRCNetwork * > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< CIRCNetwork * >::allocator_type(static_cast< const std::vector< CIRCNetwork * >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CIRCNetwork_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_begin" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_end" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_rbegin" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_rend" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VIRCNetworks__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VIRCNetworks",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VIRCNetworks" "', argument " "1"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg1 = static_cast< std::vector< CIRCNetwork * >::size_type >(val1); result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_pop_back" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_resize" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks_resize" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CIRCNetwork * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_erase" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_erase" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_erase" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } } result = std_vector_Sl_CIRCNetwork_Sm__Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::iterator arg2 ; std::vector< CIRCNetwork * >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CIRCNetwork * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_erase" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_erase" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_erase" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_erase" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_erase" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } } result = std_vector_Sl_CIRCNetwork_Sm__Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VIRCNetworks_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VIRCNetworks_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::erase(std::vector< CIRCNetwork * >::iterator)\n" " std::vector< CIRCNetwork * >::erase(std::vector< CIRCNetwork * >::iterator,std::vector< CIRCNetwork * >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VIRCNetworks__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * >::size_type arg1 ; std::vector< CIRCNetwork * >::value_type arg2 = (std::vector< CIRCNetwork * >::value_type) 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CIRCNetwork * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VIRCNetworks",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VIRCNetworks" "', argument " "1"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg1 = static_cast< std::vector< CIRCNetwork * >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VIRCNetworks" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp2); result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VIRCNetworks(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VIRCNetworks__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VIRCNetworks__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VIRCNetworks__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VIRCNetworks__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VIRCNetworks'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::vector()\n" " std::vector< CIRCNetwork * >::vector(std::vector< CIRCNetwork * > const &)\n" " std::vector< CIRCNetwork * >::vector(std::vector< CIRCNetwork * >::size_type)\n" " std::vector< CIRCNetwork * >::vector(std::vector< CIRCNetwork * >::size_type,std::vector< CIRCNetwork * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::value_type arg2 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_push_back" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VIRCNetworks_push_back" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp2); (arg1)->push_back(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_front" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (std::vector< CIRCNetwork * >::value_type)((std::vector< CIRCNetwork * > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_back" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = (std::vector< CIRCNetwork * >::value_type)((std::vector< CIRCNetwork * > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::size_type arg2 ; std::vector< CIRCNetwork * >::value_type arg3 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_assign" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks_assign" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VIRCNetworks_assign" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp3); (arg1)->assign(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::size_type arg2 ; std::vector< CIRCNetwork * >::value_type arg3 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_resize" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks_resize" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VIRCNetworks_resize" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VIRCNetworks_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VIRCNetworks_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::resize(std::vector< CIRCNetwork * >::size_type)\n" " std::vector< CIRCNetwork * >::resize(std::vector< CIRCNetwork * >::size_type,std::vector< CIRCNetwork * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::iterator arg2 ; std::vector< CIRCNetwork * >::value_type arg3 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CIRCNetwork * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VIRCNetworks_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_insert" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_insert" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_insert" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VIRCNetworks_insert" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp3); result = std_vector_Sl_CIRCNetwork_Sm__Sg__insert__SWIG_0(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CIRCNetwork * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::iterator arg2 ; std::vector< CIRCNetwork * >::size_type arg3 ; std::vector< CIRCNetwork * >::value_type arg4 = (std::vector< CIRCNetwork * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VIRCNetworks_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_insert" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_insert" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VIRCNetworks_insert" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VIRCNetworks_insert" "', argument " "3"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg3 = static_cast< std::vector< CIRCNetwork * >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VIRCNetworks_insert" "', argument " "4"" of type '" "std::vector< CIRCNetwork * >::value_type""'"); } arg4 = reinterpret_cast< std::vector< CIRCNetwork * >::value_type >(argp4); std_vector_Sl_CIRCNetwork_Sm__Sg__insert__SWIG_1(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VIRCNetworks_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VIRCNetworks_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VIRCNetworks_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CIRCNetwork * >::insert(std::vector< CIRCNetwork * >::iterator,std::vector< CIRCNetwork * >::value_type)\n" " std::vector< CIRCNetwork * >::insert(std::vector< CIRCNetwork * >::iterator,std::vector< CIRCNetwork * >::size_type,std::vector< CIRCNetwork * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VIRCNetworks_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VIRCNetworks_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_reserve" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks_reserve" "', argument " "2"" of type '" "std::vector< CIRCNetwork * >::size_type""'"); } arg2 = static_cast< std::vector< CIRCNetwork * >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VIRCNetworks_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VIRCNetworks_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_capacity" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > const *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); result = ((std::vector< CIRCNetwork * > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VIRCNetworks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VIRCNetworks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VIRCNetworks" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VIRCNetworks_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VChannels_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_iterator" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_CChan_Sm__Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___nonzero__" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (bool)std_vector_Sl_CChan_Sm__Sg____nonzero__((std::vector< CChan * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___bool__" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (bool)std_vector_Sl_CChan_Sm__Sg____bool__((std::vector< CChan * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___len__" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = std_vector_Sl_CChan_Sm__Sg____len__((std::vector< CChan * > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_pop" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); try { result = (std::vector< CChan * >::value_type)std_vector_Sl_CChan_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; std::vector< CChan * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___getslice__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___getslice__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VChannels___getslice__" "', argument " "3"" of type '" "std::vector< CChan * >::difference_type""'"); } arg3 = static_cast< std::vector< CChan * >::difference_type >(val3); try { result = (std::vector< CChan *,std::allocator< CChan * > > *)std_vector_Sl_CChan_Sm__Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; std::vector< CChan * >::difference_type arg3 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VChannels___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___setslice__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___setslice__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VChannels___setslice__" "', argument " "3"" of type '" "std::vector< CChan * >::difference_type""'"); } arg3 = static_cast< std::vector< CChan * >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VChannels___setslice__" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VChannels___setslice__" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_CChan_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VChannels___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; std::vector< CChan * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___setslice__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___setslice__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VChannels___setslice__" "', argument " "3"" of type '" "std::vector< CChan * >::difference_type""'"); } arg3 = static_cast< std::vector< CChan * >::difference_type >(val3); try { std_vector_Sl_CChan_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VChannels___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VChannels___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::__setslice__(std::vector< CChan * >::difference_type,std::vector< CChan * >::difference_type,std::vector< CChan *,std::allocator< CChan * > > const &)\n" " std::vector< CChan * >::__setslice__(std::vector< CChan * >::difference_type,std::vector< CChan * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; std::vector< CChan * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___delslice__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___delslice__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VChannels___delslice__" "', argument " "3"" of type '" "std::vector< CChan * >::difference_type""'"); } arg3 = static_cast< std::vector< CChan * >::difference_type >(val3); try { std_vector_Sl_CChan_Sm__Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___delitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___delitem__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); try { std_vector_Sl_CChan_Sm__Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___getitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< CChan *,std::allocator< CChan * > > *)std_vector_Sl_CChan_Sm__Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___setitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VChannels___setitem__" "', argument " "3"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VChannels___setitem__" "', argument " "3"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_CChan_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VChannels___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___setitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CChan_Sm__Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___delitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CChan_Sm__Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VChannels___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VChannels___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::__delitem__(std::vector< CChan * >::difference_type)\n" " std::vector< CChan * >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CChan * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___getitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___getitem__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); try { result = (std::vector< CChan * >::value_type)std_vector_Sl_CChan_Sm__Sg____getitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VChannels___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VChannels___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::__getitem__(PySliceObject *)\n" " std::vector< CChan * >::__getitem__(std::vector< CChan * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::difference_type arg2 ; std::vector< CChan * >::value_type arg3 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels___setitem__" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels___setitem__" "', argument " "2"" of type '" "std::vector< CChan * >::difference_type""'"); } arg2 = static_cast< std::vector< CChan * >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VChannels___setitem__" "', argument " "3"" of type '" "std::vector< CChan * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CChan * >::value_type >(argp3); try { std_vector_Sl_CChan_Sm__Sg____setitem____SWIG_2(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VChannels___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VChannels___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VChannels___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::__setitem__(PySliceObject *,std::vector< CChan *,std::allocator< CChan * > > const &)\n" " std::vector< CChan * >::__setitem__(PySliceObject *)\n" " std::vector< CChan * >::__setitem__(std::vector< CChan * >::difference_type,std::vector< CChan * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::value_type arg2 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_append" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VChannels_append" "', argument " "2"" of type '" "std::vector< CChan * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CChan * >::value_type >(argp2); std_vector_Sl_CChan_Sm__Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VChannels__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VChannels")) SWIG_fail; result = (std::vector< CChan * > *)new std::vector< CChan * >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VChannels__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< CChan * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VChannels",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VChannels" "', argument " "1"" of type '" "std::vector< CChan * > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VChannels" "', argument " "1"" of type '" "std::vector< CChan * > const &""'"); } arg1 = ptr; } result = (std::vector< CChan * > *)new std::vector< CChan * >((std::vector< CChan * > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VChannels_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_empty" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (bool)((std::vector< CChan * > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_size" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = ((std::vector< CChan * > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_clear" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_swap" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VChannels_swap" "', argument " "2"" of type '" "std::vector< CChan * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VChannels_swap" "', argument " "2"" of type '" "std::vector< CChan * > &""'"); } arg2 = reinterpret_cast< std::vector< CChan * > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CChan * > > result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_get_allocator" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = ((std::vector< CChan * > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< CChan * >::allocator_type(static_cast< const std::vector< CChan * >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CChan_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_begin" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_end" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_rbegin" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_rend" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VChannels__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VChannels",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VChannels" "', argument " "1"" of type '" "std::vector< CChan * >::size_type""'"); } arg1 = static_cast< std::vector< CChan * >::size_type >(val1); result = (std::vector< CChan * > *)new std::vector< CChan * >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_pop_back" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_resize" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels_resize" "', argument " "2"" of type '" "std::vector< CChan * >::size_type""'"); } arg2 = static_cast< std::vector< CChan * >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CChan * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_erase" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_erase" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_erase" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } } result = std_vector_Sl_CChan_Sm__Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::iterator arg2 ; std::vector< CChan * >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CChan * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_erase" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_erase" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_erase" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_erase" "', argument " "3"" of type '" "std::vector< CChan * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_erase" "', argument " "3"" of type '" "std::vector< CChan * >::iterator""'"); } } result = std_vector_Sl_CChan_Sm__Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VChannels_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VChannels_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::erase(std::vector< CChan * >::iterator)\n" " std::vector< CChan * >::erase(std::vector< CChan * >::iterator,std::vector< CChan * >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VChannels__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * >::size_type arg1 ; std::vector< CChan * >::value_type arg2 = (std::vector< CChan * >::value_type) 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CChan * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VChannels",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VChannels" "', argument " "1"" of type '" "std::vector< CChan * >::size_type""'"); } arg1 = static_cast< std::vector< CChan * >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VChannels" "', argument " "2"" of type '" "std::vector< CChan * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CChan * >::value_type >(argp2); result = (std::vector< CChan * > *)new std::vector< CChan * >(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VChannels(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VChannels__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VChannels__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VChannels__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VChannels__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VChannels'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::vector()\n" " std::vector< CChan * >::vector(std::vector< CChan * > const &)\n" " std::vector< CChan * >::vector(std::vector< CChan * >::size_type)\n" " std::vector< CChan * >::vector(std::vector< CChan * >::size_type,std::vector< CChan * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::value_type arg2 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_push_back" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VChannels_push_back" "', argument " "2"" of type '" "std::vector< CChan * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CChan * >::value_type >(argp2); (arg1)->push_back(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_front" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (std::vector< CChan * >::value_type)((std::vector< CChan * > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_back" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = (std::vector< CChan * >::value_type)((std::vector< CChan * > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::size_type arg2 ; std::vector< CChan * >::value_type arg3 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_assign" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels_assign" "', argument " "2"" of type '" "std::vector< CChan * >::size_type""'"); } arg2 = static_cast< std::vector< CChan * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VChannels_assign" "', argument " "3"" of type '" "std::vector< CChan * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CChan * >::value_type >(argp3); (arg1)->assign(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::size_type arg2 ; std::vector< CChan * >::value_type arg3 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_resize" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels_resize" "', argument " "2"" of type '" "std::vector< CChan * >::size_type""'"); } arg2 = static_cast< std::vector< CChan * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VChannels_resize" "', argument " "3"" of type '" "std::vector< CChan * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CChan * >::value_type >(argp3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VChannels_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VChannels_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::resize(std::vector< CChan * >::size_type)\n" " std::vector< CChan * >::resize(std::vector< CChan * >::size_type,std::vector< CChan * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::iterator arg2 ; std::vector< CChan * >::value_type arg3 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CChan * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VChannels_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_insert" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_insert" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_insert" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VChannels_insert" "', argument " "3"" of type '" "std::vector< CChan * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CChan * >::value_type >(argp3); result = std_vector_Sl_CChan_Sm__Sg__insert__SWIG_0(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CChan * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::iterator arg2 ; std::vector< CChan * >::size_type arg3 ; std::vector< CChan * >::value_type arg4 = (std::vector< CChan * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VChannels_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_insert" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_insert" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VChannels_insert" "', argument " "2"" of type '" "std::vector< CChan * >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VChannels_insert" "', argument " "3"" of type '" "std::vector< CChan * >::size_type""'"); } arg3 = static_cast< std::vector< CChan * >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VChannels_insert" "', argument " "4"" of type '" "std::vector< CChan * >::value_type""'"); } arg4 = reinterpret_cast< std::vector< CChan * >::value_type >(argp4); std_vector_Sl_CChan_Sm__Sg__insert__SWIG_1(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VChannels_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VChannels_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VChannels_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CChan * >::insert(std::vector< CChan * >::iterator,std::vector< CChan * >::value_type)\n" " std::vector< CChan * >::insert(std::vector< CChan * >::iterator,std::vector< CChan * >::size_type,std::vector< CChan * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VChannels_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VChannels_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_reserve" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels_reserve" "', argument " "2"" of type '" "std::vector< CChan * >::size_type""'"); } arg2 = static_cast< std::vector< CChan * >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VChannels_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VChannels_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_capacity" "', argument " "1"" of type '" "std::vector< CChan * > const *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); result = ((std::vector< CChan * > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VChannels",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VChannels" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VChannels_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_MNicks__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::less< CString > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_MNicks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_CString_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MNicks" "', argument " "1"" of type '" "std::less< CString > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MNicks" "', argument " "1"" of type '" "std::less< CString > const &""'"); } arg1 = reinterpret_cast< std::less< CString > * >(argp1); result = (std::map< CString,CNick > *)new std::map< CString,CNick >((std::less< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_iterator" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_CNick_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___nonzero__" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (bool)std_map_Sl_CString_Sc_CNick_Sg____nonzero__((std::map< CString,CNick > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___bool__" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (bool)std_map_Sl_CString_Sc_CNick_Sg____bool__((std::map< CString,CNick > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___len__" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = std_map_Sl_CString_Sc_CNick_Sg____len__((std::map< CString,CNick > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CNick >::mapped_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___getitem__" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks___getitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks___getitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } try { result = (std::map< CString,CNick >::mapped_type *) &std_map_Sl_CString_Sc_CNick_Sg____getitem__(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___delitem__" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks___delitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks___delitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } try { std_map_Sl_CString_Sc_CNick_Sg____delitem__(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_has_key",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_has_key" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_has_key" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_has_key" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_CNick_Sg__has_key((std::map< CString,CNick > const *)arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_keys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_keys" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CNick_Sg__keys(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_values",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_values" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CNick_Sg__values(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_items",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_items" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CNick_Sg__items(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks___contains__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___contains__" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks___contains__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks___contains__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_CNick_Sg____contains__(arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_key_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_key_iterator" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_CNick_Sg__key_iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_value_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_value_iterator" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_CNick_Sg__value_iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___setitem__" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks___setitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks___setitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } std_map_Sl_CString_Sc_CNick_Sg____setitem____SWIG_0(arg1,(CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; std::map< CString,CNick >::mapped_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:MNicks___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks___setitem__" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks___setitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks___setitem__" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MNicks___setitem__" "', argument " "3"" of type '" "std::map< CString,CNick >::mapped_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks___setitem__" "', argument " "3"" of type '" "std::map< CString,CNick >::mapped_type const &""'"); } arg3 = reinterpret_cast< std::map< CString,CNick >::mapped_type * >(argp3); try { std_map_Sl_CString_Sc_CNick_Sg____setitem____SWIG_1(arg1,(CString const &)*arg2,(CNick const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CNick > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_MNicks___setitem____SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CNick > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CNick, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_MNicks___setitem____SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MNicks___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,CNick >::__setitem__(std::map< CString,CNick >::key_type const &)\n" " std::map< CString,CNick >::__setitem__(std::map< CString,CNick >::key_type const &,std::map< CString,CNick >::mapped_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_MNicks_asdict(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_asdict",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_asdict" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CNick_Sg__asdict(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_MNicks__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_MNicks")) SWIG_fail; result = (std::map< CString,CNick > *)new std::map< CString,CNick >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_MNicks__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::map< CString,CNick > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_MNicks",&obj0)) SWIG_fail; { std::map,std::allocator< std::pair< CString const,CNick > > > *ptr = (std::map,std::allocator< std::pair< CString const,CNick > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MNicks" "', argument " "1"" of type '" "std::map< CString,CNick > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MNicks" "', argument " "1"" of type '" "std::map< CString,CNick > const &""'"); } arg1 = ptr; } result = (std::map< CString,CNick > *)new std::map< CString,CNick >((std::map< CString,CNick > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_MNicks(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_MNicks__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_CString_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_MNicks__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CNick > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_MNicks__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MNicks'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,CNick >::map(std::less< CString > const &)\n" " std::map< CString,CNick >::map()\n" " std::map< CString,CNick >::map(std::map< CString,CNick > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_MNicks_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_empty" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (bool)((std::map< CString,CNick > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_size" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = ((std::map< CString,CNick > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_clear" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_swap" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_swap" "', argument " "2"" of type '" "std::map< CString,CNick > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_swap" "', argument " "2"" of type '" "std::map< CString,CNick > &""'"); } arg2 = reinterpret_cast< std::map< CString,CNick > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::pair< CString const,CNick > > > result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_get_allocator" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = ((std::map< CString,CNick > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::map< CString,CNick >::allocator_type(static_cast< const std::map< CString,CNick >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_CNick_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_begin" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_end" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_rbegin" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:MNicks_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_rend" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CNick >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_erase" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_erase" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_erase" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->erase((std::map< CString,CNick >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CNick >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_count",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_count" "', argument " "1"" of type '" "std::map< CString,CNick > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_count" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_count" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = ((std::map< CString,CNick > const *)arg1)->count((std::map< CString,CNick >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_erase" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MNicks_erase" "', argument " "2"" of type '" "std::map< CString,CNick >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MNicks_erase" "', argument " "2"" of type '" "std::map< CString,CNick >::iterator""'"); } } std_map_Sl_CString_Sc_CNick_Sg__erase__SWIG_1(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::iterator arg2 ; std::map< CString,CNick >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:MNicks_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_erase" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MNicks_erase" "', argument " "2"" of type '" "std::map< CString,CNick >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MNicks_erase" "', argument " "2"" of type '" "std::map< CString,CNick >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MNicks_erase" "', argument " "3"" of type '" "std::map< CString,CNick >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "MNicks_erase" "', argument " "3"" of type '" "std::map< CString,CNick >::iterator""'"); } } std_map_Sl_CString_Sc_CNick_Sg__erase__SWIG_2(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MNicks_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CNick > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_MNicks_erase__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CNick > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_MNicks_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CNick > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_MNicks_erase__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'MNicks_erase'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,CNick >::erase(std::map< CString,CNick >::key_type const &)\n" " std::map< CString,CNick >::erase(std::map< CString,CNick >::iterator)\n" " std::map< CString,CNick >::erase(std::map< CString,CNick >::iterator,std::map< CString,CNick >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_MNicks_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CNick >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_find",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_find" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_find" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_find" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->find((std::map< CString,CNick >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CNick >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_lower_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_lower_bound" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_lower_bound" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_lower_bound" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->lower_bound((std::map< CString,CNick >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_MNicks_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; std::map< CString,CNick >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CNick >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:MNicks_upper_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MNicks_upper_bound" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MNicks_upper_bound" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MNicks_upper_bound" "', argument " "2"" of type '" "std::map< CString,CNick >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->upper_bound((std::map< CString,CNick >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CNick >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_MNicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CNick > *arg1 = (std::map< CString,CNick > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_MNicks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MNicks" "', argument " "1"" of type '" "std::map< CString,CNick > *""'"); } arg1 = reinterpret_cast< std::map< CString,CNick > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *MNicks_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_SModInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::less< CModInfo > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_SModInfo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_CModInfo_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SModInfo" "', argument " "1"" of type '" "std::less< CModInfo > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SModInfo" "', argument " "1"" of type '" "std::less< CModInfo > const &""'"); } arg1 = reinterpret_cast< std::less< CModInfo > * >(argp1); result = (std::set< CModInfo > *)new std::set< CModInfo >((std::less< CModInfo > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_iterator" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (swig::SwigPyIterator *)std_set_Sl_CModInfo_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo___nonzero__" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (bool)std_set_Sl_CModInfo_Sg____nonzero__((std::set< CModInfo > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo___bool__" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (bool)std_set_Sl_CModInfo_Sg____bool__((std::set< CModInfo > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo___len__" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = std_set_Sl_CModInfo_Sg____len__((std::set< CModInfo > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_append" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_append" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_append" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } else { std::set< CModInfo >::value_type * temp = reinterpret_cast< std::set< CModInfo >::value_type * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } std_set_Sl_CModInfo_Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo___contains__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo___contains__" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo___contains__" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo___contains__" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } else { std::set< CModInfo >::value_type * temp = reinterpret_cast< std::set< CModInfo >::value_type * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (bool)std_set_Sl_CModInfo_Sg____contains__(arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CModInfo >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo___getitem__" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SModInfo___getitem__" "', argument " "2"" of type '" "std::set< CModInfo >::difference_type""'"); } arg2 = static_cast< std::set< CModInfo >::difference_type >(val2); try { result = std_set_Sl_CModInfo_Sg____getitem__((std::set< CModInfo > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj((new std::set< CModInfo >::value_type(static_cast< const std::set< CModInfo >::value_type& >(result))), SWIGTYPE_p_CModInfo, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_add",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_add" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_add" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_add" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } else { std::set< CModInfo >::value_type * temp = reinterpret_cast< std::set< CModInfo >::value_type * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } std_set_Sl_CModInfo_Sg__add(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_discard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_discard",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_discard" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_discard" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_discard" "', argument " "2"" of type '" "std::set< CModInfo >::value_type""'"); } else { std::set< CModInfo >::value_type * temp = reinterpret_cast< std::set< CModInfo >::value_type * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } std_set_Sl_CModInfo_Sg__discard(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_SModInfo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_SModInfo")) SWIG_fail; result = (std::set< CModInfo > *)new std::set< CModInfo >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_SModInfo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::set< CModInfo > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_SModInfo",&obj0)) SWIG_fail; { std::set,std::allocator< CModInfo > > *ptr = (std::set,std::allocator< CModInfo > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SModInfo" "', argument " "1"" of type '" "std::set< CModInfo > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SModInfo" "', argument " "1"" of type '" "std::set< CModInfo > const &""'"); } arg1 = ptr; } result = (std::set< CModInfo > *)new std::set< CModInfo >((std::set< CModInfo > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_SModInfo(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_SModInfo__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_CModInfo_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_SModInfo__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CModInfo > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_SModInfo__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SModInfo'.\n" " Possible C/C++ prototypes are:\n" " std::set< CModInfo >::set(std::less< CModInfo > const &)\n" " std::set< CModInfo >::set()\n" " std::set< CModInfo >::set(std::set< CModInfo > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_SModInfo_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_empty" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (bool)((std::set< CModInfo > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_size" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = ((std::set< CModInfo > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_clear" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_swap" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_swap" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_swap" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CModInfo >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_erase" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_erase" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_erase" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::key_type * >(argp2); result = (arg1)->erase((std::set< CModInfo >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CModInfo >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_count",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_count" "', argument " "1"" of type '" "std::set< CModInfo > const *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_count" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_count" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::key_type * >(argp2); result = ((std::set< CModInfo > const *)arg1)->count((std::set< CModInfo >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_begin" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_end" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_rbegin" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CModInfo >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SModInfo_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_rend" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_erase" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SModInfo_erase" "', argument " "2"" of type '" "std::set< CModInfo >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SModInfo_erase" "', argument " "2"" of type '" "std::set< CModInfo >::iterator""'"); } } std_set_Sl_CModInfo_Sg__erase__SWIG_1(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::iterator arg2 ; std::set< CModInfo >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:SModInfo_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_erase" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SModInfo_erase" "', argument " "2"" of type '" "std::set< CModInfo >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SModInfo_erase" "', argument " "2"" of type '" "std::set< CModInfo >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SModInfo_erase" "', argument " "3"" of type '" "std::set< CModInfo >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SModInfo_erase" "', argument " "3"" of type '" "std::set< CModInfo >::iterator""'"); } } std_set_Sl_CModInfo_Sg__erase__SWIG_2(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CModInfo > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CModInfo, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_SModInfo_erase__SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CModInfo > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_SModInfo_erase__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CModInfo > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_SModInfo_erase__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SModInfo_erase'.\n" " Possible C/C++ prototypes are:\n" " std::set< CModInfo >::erase(std::set< CModInfo >::key_type const &)\n" " std::set< CModInfo >::erase(std::set< CModInfo >::iterator)\n" " std::set< CModInfo >::erase(std::set< CModInfo >::iterator,std::set< CModInfo >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_SModInfo_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CModInfo >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_find",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_find" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_find" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_find" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::key_type * >(argp2); result = (arg1)->find((std::set< CModInfo >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CModInfo >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_lower_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_lower_bound" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_lower_bound" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_lower_bound" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::key_type * >(argp2); result = (arg1)->lower_bound((std::set< CModInfo >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CModInfo >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_upper_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_upper_bound" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_upper_bound" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_upper_bound" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::key_type * >(argp2); result = (arg1)->upper_bound((std::set< CModInfo >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CModInfo >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_equal_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::pair< std::set< CModInfo >::iterator,std::set< CModInfo >::iterator > > result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_equal_range",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_equal_range" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_equal_range" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_equal_range" "', argument " "2"" of type '" "std::set< CModInfo >::key_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::key_type * >(argp2); result = (arg1)->equal_range((std::set< CModInfo >::key_type const &)*arg2); resultobj = PyTuple_New(2); PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< CModInfo >::iterator,std::set< CModInfo >::iterator > & >(result).first), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN)); PyTuple_SetItem(resultobj,1,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< CModInfo >::iterator,std::set< CModInfo >::iterator > & >(result).second), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SModInfo_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; std::set< CModInfo >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::pair< std::set< CModInfo >::iterator,bool > > result; if (!PyArg_ParseTuple(args,(char *)"OO:SModInfo_insert",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SModInfo_insert" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SModInfo_insert" "', argument " "2"" of type '" "std::set< CModInfo >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SModInfo_insert" "', argument " "2"" of type '" "std::set< CModInfo >::value_type const &""'"); } arg2 = reinterpret_cast< std::set< CModInfo >::value_type * >(argp2); result = (arg1)->insert((std::set< CModInfo >::value_type const &)*arg2); resultobj = PyTuple_New(2); PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< CModInfo >::iterator,bool > & >(result).first), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN)); PyTuple_SetItem(resultobj,1,SWIG_From_bool (static_cast< const std::pair< std::set< CModInfo >::iterator,bool > & >(result).second)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_SModInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo > *arg1 = (std::set< CModInfo > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_SModInfo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SModInfo" "', argument " "1"" of type '" "std::set< CModInfo > *""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *SModInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_SCString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::less< CString > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_SCString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_CString_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SCString" "', argument " "1"" of type '" "std::less< CString > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SCString" "', argument " "1"" of type '" "std::less< CString > const &""'"); } arg1 = reinterpret_cast< std::less< CString > * >(argp1); result = (std::set< CString > *)new std::set< CString >((std::less< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:SCString_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_iterator" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (swig::SwigPyIterator *)std_set_Sl_CString_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SCString___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString___nonzero__" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (bool)std_set_Sl_CString_Sg____nonzero__((std::set< CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SCString___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString___bool__" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (bool)std_set_Sl_CString_Sg____bool__((std::set< CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:SCString___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString___len__" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = std_set_Sl_CString_Sg____len__((std::set< CString > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_append" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "SCString_append" "', argument " "2"" of type '" "std::set< CString >::value_type""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } std_set_Sl_CString_Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString___contains__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString___contains__" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "SCString___contains__" "', argument " "2"" of type '" "std::set< CString >::value_type""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)std_set_Sl_CString_Sg____contains__(arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CString >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString___getitem__" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SCString___getitem__" "', argument " "2"" of type '" "std::set< CString >::difference_type""'"); } arg2 = static_cast< std::set< CString >::difference_type >(val2); try { result = std_set_Sl_CString_Sg____getitem__((std::set< CString > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_add",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_add" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "SCString_add" "', argument " "2"" of type '" "std::set< CString >::value_type""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } std_set_Sl_CString_Sg__add(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_discard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::value_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_discard",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_discard" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "SCString_discard" "', argument " "2"" of type '" "std::set< CString >::value_type""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } std_set_Sl_CString_Sg__discard(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_SCString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_SCString")) SWIG_fail; result = (std::set< CString > *)new std::set< CString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_SCString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::set< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_SCString",&obj0)) SWIG_fail; { std::set,std::allocator< CString > > *ptr = (std::set,std::allocator< CString > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SCString" "', argument " "1"" of type '" "std::set< CString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_SCString" "', argument " "1"" of type '" "std::set< CString > const &""'"); } arg1 = ptr; } result = (std::set< CString > *)new std::set< CString >((std::set< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_SCString(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_SCString__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_CString_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_SCString__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CString > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_SCString__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_SCString'.\n" " Possible C/C++ prototypes are:\n" " std::set< CString >::set(std::less< CString > const &)\n" " std::set< CString >::set()\n" " std::set< CString >::set(std::set< CString > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_SCString_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:SCString_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_empty" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (bool)((std::set< CString > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:SCString_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_size" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = ((std::set< CString > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SCString_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_clear" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_swap" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_swap" "', argument " "2"" of type '" "std::set< CString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_swap" "', argument " "2"" of type '" "std::set< CString > &""'"); } arg2 = reinterpret_cast< std::set< CString > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_erase" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_erase" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_erase" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->erase((std::set< CString >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SCString_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_count",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_count" "', argument " "1"" of type '" "std::set< CString > const *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_count" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_count" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } arg2 = ptr; } result = ((std::set< CString > const *)arg1)->count((std::set< CString >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SCString_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SCString_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_begin" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SCString_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_end" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SCString_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_rbegin" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:SCString_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_rend" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_erase" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SCString_erase" "', argument " "2"" of type '" "std::set< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SCString_erase" "', argument " "2"" of type '" "std::set< CString >::iterator""'"); } } std_set_Sl_CString_Sg__erase__SWIG_1(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::iterator arg2 ; std::set< CString >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:SCString_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_erase" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SCString_erase" "', argument " "2"" of type '" "std::set< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SCString_erase" "', argument " "2"" of type '" "std::set< CString >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SCString_erase" "', argument " "3"" of type '" "std::set< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "SCString_erase" "', argument " "3"" of type '" "std::set< CString >::iterator""'"); } } std_set_Sl_CString_Sg__erase__SWIG_2(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_SCString_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CString > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_SCString_erase__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CString > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_SCString_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::set,std::allocator< CString > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_SCString_erase__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SCString_erase'.\n" " Possible C/C++ prototypes are:\n" " std::set< CString >::erase(std::set< CString >::key_type const &)\n" " std::set< CString >::erase(std::set< CString >::iterator)\n" " std::set< CString >::erase(std::set< CString >::iterator,std::set< CString >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_SCString_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_find",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_find" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_find" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_find" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->find((std::set< CString >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SCString_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_lower_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_lower_bound" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_lower_bound" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_lower_bound" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->lower_bound((std::set< CString >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SCString_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::set< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_upper_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_upper_bound" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_upper_bound" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_upper_bound" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->upper_bound((std::set< CString >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SCString_equal_range(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::pair< std::set< CString >::iterator,std::set< CString >::iterator > > result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_equal_range",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_equal_range" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_equal_range" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_equal_range" "', argument " "2"" of type '" "std::set< CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->equal_range((std::set< CString >::key_type const &)*arg2); resultobj = PyTuple_New(2); PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< CString >::iterator,std::set< CString >::iterator > & >(result).first), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN)); PyTuple_SetItem(resultobj,1,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< CString >::iterator,std::set< CString >::iterator > & >(result).second), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_SCString_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; std::set< CString >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::pair< std::set< CString >::iterator,bool > > result; if (!PyArg_ParseTuple(args,(char *)"OO:SCString_insert",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SCString_insert" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SCString_insert" "', argument " "2"" of type '" "std::set< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SCString_insert" "', argument " "2"" of type '" "std::set< CString >::value_type const &""'"); } arg2 = ptr; } result = (arg1)->insert((std::set< CString >::value_type const &)*arg2); resultobj = PyTuple_New(2); PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< CString >::iterator,bool > & >(result).first), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN)); PyTuple_SetItem(resultobj,1,SWIG_From_bool (static_cast< const std::pair< std::set< CString >::iterator,bool > & >(result).second)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_SCString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CString > *arg1 = (std::set< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_SCString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SCString" "', argument " "1"" of type '" "std::set< CString > *""'"); } arg1 = reinterpret_cast< std::set< CString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *SCString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VCString_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VCString_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_iterator" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_CString_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VCString___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___nonzero__" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (bool)std_vector_Sl_CString_Sg____nonzero__((std::vector< CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VCString___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___bool__" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (bool)std_vector_Sl_CString_Sg____bool__((std::vector< CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VCString___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___len__" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = std_vector_Sl_CString_Sg____len__((std::vector< CString > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_pop" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); try { result = std_vector_Sl_CString_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; std::vector< CString >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CString,std::allocator< CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___getslice__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___getslice__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VCString___getslice__" "', argument " "3"" of type '" "std::vector< CString >::difference_type""'"); } arg3 = static_cast< std::vector< CString >::difference_type >(val3); try { result = (std::vector< CString,std::allocator< CString > > *)std_vector_Sl_CString_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; std::vector< CString >::difference_type arg3 ; std::vector< CString,std::allocator< CString > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VCString___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___setslice__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___setslice__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VCString___setslice__" "', argument " "3"" of type '" "std::vector< CString >::difference_type""'"); } arg3 = static_cast< std::vector< CString >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VCString___setslice__" "', argument " "4"" of type '" "std::vector< CString,std::allocator< CString > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString___setslice__" "', argument " "4"" of type '" "std::vector< CString,std::allocator< CString > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_CString_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CString,std::allocator< CString > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VCString___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; std::vector< CString >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___setslice__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___setslice__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VCString___setslice__" "', argument " "3"" of type '" "std::vector< CString >::difference_type""'"); } arg3 = static_cast< std::vector< CString >::difference_type >(val3); try { std_vector_Sl_CString_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VCString___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VCString___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::__setslice__(std::vector< CString >::difference_type,std::vector< CString >::difference_type,std::vector< CString,std::allocator< CString > > const &)\n" " std::vector< CString >::__setslice__(std::vector< CString >::difference_type,std::vector< CString >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; std::vector< CString >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___delslice__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___delslice__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VCString___delslice__" "', argument " "3"" of type '" "std::vector< CString >::difference_type""'"); } arg3 = static_cast< std::vector< CString >::difference_type >(val3); try { std_vector_Sl_CString_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___delitem__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___delitem__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); try { std_vector_Sl_CString_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CString,std::allocator< CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___getitem__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< CString,std::allocator< CString > > *)std_vector_Sl_CString_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< CString,std::allocator< CString > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___setitem__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VCString___setitem__" "', argument " "3"" of type '" "std::vector< CString,std::allocator< CString > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString___setitem__" "', argument " "3"" of type '" "std::vector< CString,std::allocator< CString > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_CString_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CString,std::allocator< CString > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VCString___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___setitem__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CString_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___delitem__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CString_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VCString___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VCString___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::__delitem__(std::vector< CString >::difference_type)\n" " std::vector< CString >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CString >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___getitem__" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___getitem__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); try { result = (std::vector< CString >::value_type *) &std_vector_Sl_CString_Sg____getitem____SWIG_1((std::vector< CString > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VCString___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VCString___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::__getitem__(PySliceObject *)\n" " std::vector< CString >::__getitem__(std::vector< CString >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::difference_type arg2 ; std::vector< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString___setitem__" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString___setitem__" "', argument " "2"" of type '" "std::vector< CString >::difference_type""'"); } arg2 = static_cast< std::vector< CString >::difference_type >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VCString___setitem__" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString___setitem__" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } arg3 = ptr; } try { std_vector_Sl_CString_Sg____setitem____SWIG_2(arg1,arg2,(CString const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VCString___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VCString___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VCString___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VCString___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::__setitem__(PySliceObject *,std::vector< CString,std::allocator< CString > > const &)\n" " std::vector< CString >::__setitem__(PySliceObject *)\n" " std::vector< CString >::__setitem__(std::vector< CString >::difference_type,std::vector< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_append" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VCString_append" "', argument " "2"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_append" "', argument " "2"" of type '" "std::vector< CString >::value_type const &""'"); } arg2 = ptr; } std_vector_Sl_CString_Sg__append(arg1,(CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_VCString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VCString")) SWIG_fail; result = (std::vector< CString > *)new std::vector< CString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VCString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VCString",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VCString" "', argument " "1"" of type '" "std::vector< CString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VCString" "', argument " "1"" of type '" "std::vector< CString > const &""'"); } arg1 = ptr; } result = (std::vector< CString > *)new std::vector< CString >((std::vector< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VCString_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_empty" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (bool)((std::vector< CString > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_size" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = ((std::vector< CString > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VCString_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_clear" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_swap" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VCString_swap" "', argument " "2"" of type '" "std::vector< CString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_swap" "', argument " "2"" of type '" "std::vector< CString > &""'"); } arg2 = reinterpret_cast< std::vector< CString > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CString > > result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_get_allocator" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = ((std::vector< CString > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< CString >::allocator_type(static_cast< const std::vector< CString >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CString_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_begin" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_end" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_rbegin" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_rend" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VCString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VCString",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VCString" "', argument " "1"" of type '" "std::vector< CString >::size_type""'"); } arg1 = static_cast< std::vector< CString >::size_type >(val1); result = (std::vector< CString > *)new std::vector< CString >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VCString_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_pop_back" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_resize" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString_resize" "', argument " "2"" of type '" "std::vector< CString >::size_type""'"); } arg2 = static_cast< std::vector< CString >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:VCString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_erase" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_erase" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_erase" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } } result = std_vector_Sl_CString_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::iterator arg2 ; std::vector< CString >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_erase" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_erase" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_erase" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_erase" "', argument " "3"" of type '" "std::vector< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_erase" "', argument " "3"" of type '" "std::vector< CString >::iterator""'"); } } result = std_vector_Sl_CString_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VCString_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VCString_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::erase(std::vector< CString >::iterator)\n" " std::vector< CString >::erase(std::vector< CString >::iterator,std::vector< CString >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VCString__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString >::size_type arg1 ; std::vector< CString >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VCString",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VCString" "', argument " "1"" of type '" "std::vector< CString >::size_type""'"); } arg1 = static_cast< std::vector< CString >::size_type >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VCString" "', argument " "2"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VCString" "', argument " "2"" of type '" "std::vector< CString >::value_type const &""'"); } arg2 = ptr; } result = (std::vector< CString > *)new std::vector< CString >(arg1,(std::vector< CString >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_VCString(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VCString__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VCString__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VCString__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VCString__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VCString'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::vector()\n" " std::vector< CString >::vector(std::vector< CString > const &)\n" " std::vector< CString >::vector(std::vector< CString >::size_type)\n" " std::vector< CString >::vector(std::vector< CString >::size_type,std::vector< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_push_back" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VCString_push_back" "', argument " "2"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_push_back" "', argument " "2"" of type '" "std::vector< CString >::value_type const &""'"); } arg2 = ptr; } (arg1)->push_back((std::vector< CString >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_VCString_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VCString_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_front" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (std::vector< CString >::value_type *) &((std::vector< CString > const *)arg1)->front(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VCString_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_back" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = (std::vector< CString >::value_type *) &((std::vector< CString > const *)arg1)->back(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::size_type arg2 ; std::vector< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_assign" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString_assign" "', argument " "2"" of type '" "std::vector< CString >::size_type""'"); } arg2 = static_cast< std::vector< CString >::size_type >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VCString_assign" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_assign" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } arg3 = ptr; } (arg1)->assign(arg2,(std::vector< CString >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VCString_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::size_type arg2 ; std::vector< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_resize" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString_resize" "', argument " "2"" of type '" "std::vector< CString >::size_type""'"); } arg2 = static_cast< std::vector< CString >::size_type >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VCString_resize" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_resize" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } arg3 = ptr; } (arg1)->resize(arg2,(std::vector< CString >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VCString_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VCString_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VCString_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::resize(std::vector< CString >::size_type)\n" " std::vector< CString >::resize(std::vector< CString >::size_type,std::vector< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::iterator arg2 ; std::vector< CString >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VCString_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_insert" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_insert" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_insert" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VCString_insert" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_insert" "', argument " "3"" of type '" "std::vector< CString >::value_type const &""'"); } arg3 = ptr; } result = std_vector_Sl_CString_Sg__insert__SWIG_0(arg1,arg2,(CString const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VCString_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::iterator arg2 ; std::vector< CString >::size_type arg3 ; std::vector< CString >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VCString_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_insert" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_insert" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VCString_insert" "', argument " "2"" of type '" "std::vector< CString >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VCString_insert" "', argument " "3"" of type '" "std::vector< CString >::size_type""'"); } arg3 = static_cast< std::vector< CString >::size_type >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VCString_insert" "', argument " "4"" of type '" "std::vector< CString >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_insert" "', argument " "4"" of type '" "std::vector< CString >::value_type const &""'"); } arg4 = ptr; } std_vector_Sl_CString_Sg__insert__SWIG_1(arg1,arg2,arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VCString_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VCString_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VCString_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VCString_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CString >::insert(std::vector< CString >::iterator,std::vector< CString >::value_type const &)\n" " std::vector< CString >::insert(std::vector< CString >::iterator,std::vector< CString >::size_type,std::vector< CString >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VCString_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VCString_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_reserve" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString_reserve" "', argument " "2"" of type '" "std::vector< CString >::size_type""'"); } arg2 = static_cast< std::vector< CString >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VCString_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VCString_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_capacity" "', argument " "1"" of type '" "std::vector< CString > const *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); result = ((std::vector< CString > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VCString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VCString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VCString" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VCString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_PyMCString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::less< CString > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PyMCString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_CString_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyMCString" "', argument " "1"" of type '" "std::less< CString > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyMCString" "', argument " "1"" of type '" "std::less< CString > const &""'"); } arg1 = reinterpret_cast< std::less< CString > * >(argp1); result = (std::map< CString,CString > *)new std::map< CString,CString >((std::less< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_iterator" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_CString_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___nonzero__" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (bool)std_map_Sl_CString_Sc_CString_Sg____nonzero__((std::map< CString,CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___bool__" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (bool)std_map_Sl_CString_Sc_CString_Sg____bool__((std::map< CString,CString > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___len__" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = std_map_Sl_CString_Sc_CString_Sg____len__((std::map< CString,CString > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CString >::mapped_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___getitem__" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString___getitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString___getitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } try { result = (std::map< CString,CString >::mapped_type *) &std_map_Sl_CString_Sc_CString_Sg____getitem__(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_From_CString(static_cast< CString >(*result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___delitem__" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString___delitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString___delitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } try { std_map_Sl_CString_Sc_CString_Sg____delitem__(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_has_key",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_has_key" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_has_key" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_has_key" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_CString_Sg__has_key((std::map< CString,CString > const *)arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_keys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_keys" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CString_Sg__keys(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_values",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_values" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CString_Sg__values(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_items",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_items" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CString_Sg__items(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString___contains__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___contains__" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString___contains__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString___contains__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_CString_Sg____contains__(arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_key_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_key_iterator" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_CString_Sg__key_iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_value_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_value_iterator" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_CString_Sg__value_iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___setitem__" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString___setitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString___setitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } std_map_Sl_CString_Sc_CString_Sg____setitem____SWIG_0(arg1,(CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; std::map< CString,CString >::mapped_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyMCString___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString___setitem__" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString___setitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString___setitem__" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyMCString___setitem__" "', argument " "3"" of type '" "std::map< CString,CString >::mapped_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString___setitem__" "', argument " "3"" of type '" "std::map< CString,CString >::mapped_type const &""'"); } arg3 = ptr; } try { std_map_Sl_CString_Sc_CString_Sg____setitem____SWIG_1(arg1,(CString const &)*arg2,(CString const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyMCString___setitem____SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyMCString___setitem____SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyMCString___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,CString >::__setitem__(std::map< CString,CString >::key_type const &)\n" " std::map< CString,CString >::__setitem__(std::map< CString,CString >::key_type const &,std::map< CString,CString >::mapped_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyMCString_asdict(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_asdict",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_asdict" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_CString_Sg__asdict(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyMCString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_PyMCString")) SWIG_fail; result = (std::map< CString,CString > *)new std::map< CString,CString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyMCString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::map< CString,CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PyMCString",&obj0)) SWIG_fail; { std::map,std::allocator< std::pair< CString const,CString > > > *ptr = (std::map,std::allocator< std::pair< CString const,CString > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyMCString" "', argument " "1"" of type '" "std::map< CString,CString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyMCString" "', argument " "1"" of type '" "std::map< CString,CString > const &""'"); } arg1 = ptr; } result = (std::map< CString,CString > *)new std::map< CString,CString >((std::map< CString,CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_PyMCString(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_PyMCString__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_CString_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PyMCString__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PyMCString__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PyMCString'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,CString >::map(std::less< CString > const &)\n" " std::map< CString,CString >::map()\n" " std::map< CString,CString >::map(std::map< CString,CString > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyMCString_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_empty" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (bool)((std::map< CString,CString > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_size" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = ((std::map< CString,CString > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_clear" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_swap" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_swap" "', argument " "2"" of type '" "std::map< CString,CString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_swap" "', argument " "2"" of type '" "std::map< CString,CString > &""'"); } arg2 = reinterpret_cast< std::map< CString,CString > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::pair< CString const,CString > > > result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_get_allocator" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = ((std::map< CString,CString > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::map< CString,CString >::allocator_type(static_cast< const std::map< CString,CString >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_CString_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_begin" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_end" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_rbegin" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CString >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyMCString_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_rend" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_erase" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_erase" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_erase" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->erase((std::map< CString,CString >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CString >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_count",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_count" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_count" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_count" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = ((std::map< CString,CString > const *)arg1)->count((std::map< CString,CString >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_erase" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMCString_erase" "', argument " "2"" of type '" "std::map< CString,CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMCString_erase" "', argument " "2"" of type '" "std::map< CString,CString >::iterator""'"); } } std_map_Sl_CString_Sc_CString_Sg__erase__SWIG_1(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::iterator arg2 ; std::map< CString,CString >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyMCString_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_erase" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMCString_erase" "', argument " "2"" of type '" "std::map< CString,CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMCString_erase" "', argument " "2"" of type '" "std::map< CString,CString >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMCString_erase" "', argument " "3"" of type '" "std::map< CString,CString >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMCString_erase" "', argument " "3"" of type '" "std::map< CString,CString >::iterator""'"); } } std_map_Sl_CString_Sc_CString_Sg__erase__SWIG_2(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_PyMCString_erase__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyMCString_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map,std::allocator< std::pair< CString const,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_PyMCString_erase__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyMCString_erase'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,CString >::erase(std::map< CString,CString >::key_type const &)\n" " std::map< CString,CString >::erase(std::map< CString,CString >::iterator)\n" " std::map< CString,CString >::erase(std::map< CString,CString >::iterator,std::map< CString,CString >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyMCString_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_find",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_find" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_find" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_find" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->find((std::map< CString,CString >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_lower_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_lower_bound" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_lower_bound" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_lower_bound" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->lower_bound((std::map< CString,CString >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMCString_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; std::map< CString,CString >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,CString >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMCString_upper_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMCString_upper_bound" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMCString_upper_bound" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMCString_upper_bound" "', argument " "2"" of type '" "std::map< CString,CString >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->upper_bound((std::map< CString,CString >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,CString >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_PyMCString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_PyMCString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyMCString" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *PyMCString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_PyMStringVString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::less< CString > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PyMStringVString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__lessT_CString_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyMStringVString" "', argument " "1"" of type '" "std::less< CString > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyMStringVString" "', argument " "1"" of type '" "std::less< CString > const &""'"); } arg1 = reinterpret_cast< std::less< CString > * >(argp1); result = (std::map< CString,VCString > *)new std::map< CString,VCString >((std::less< CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_iterator" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_VCString_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___nonzero__" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (bool)std_map_Sl_CString_Sc_VCString_Sg____nonzero__((std::map< CString,std::vector< CString,std::allocator< CString > > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___bool__" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (bool)std_map_Sl_CString_Sc_VCString_Sg____bool__((std::map< CString,std::vector< CString,std::allocator< CString > > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___len__" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = std_map_Sl_CString_Sc_VCString_Sg____len__((std::map< CString,std::vector< CString,std::allocator< CString > > > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___getitem__" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString___getitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString___getitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } try { result = (std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type *) &std_map_Sl_CString_Sc_VCString_Sg____getitem__(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = swig::from(static_cast< std::vector > >(*result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___delitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___delitem__" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString___delitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString___delitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } try { std_map_Sl_CString_Sc_VCString_Sg____delitem__(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_has_key(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_has_key",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_has_key" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_has_key" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_has_key" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_VCString_Sg__has_key((std::map< CString,std::vector< CString,std::allocator< CString > > > const *)arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_keys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_keys",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_keys" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_VCString_Sg__keys(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_values(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_values",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_values" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_VCString_Sg__values(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_items(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_items",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_items" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_VCString_Sg__items(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___contains__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString___contains__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___contains__" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString___contains__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString___contains__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_VCString_Sg____contains__(arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_key_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_key_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_key_iterator" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_VCString_Sg__key_iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_value_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_value_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_value_iterator" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (swig::SwigPyIterator *)std_map_Sl_CString_Sc_VCString_Sg__value_iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___setitem__" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString___setitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString___setitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } std_map_Sl_CString_Sc_VCString_Sg____setitem____SWIG_0(arg1,(CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyMStringVString___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString___setitem__" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString___setitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString___setitem__" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyMStringVString___setitem__" "', argument " "3"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString___setitem__" "', argument " "3"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &""'"); } arg3 = ptr; } try { std_map_Sl_CString_Sc_VCString_Sg____setitem____SWIG_1(arg1,(CString const &)*arg2,(std::vector< CString,std::allocator< CString > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyMStringVString___setitem____SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyMStringVString___setitem____SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyMStringVString___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,VCString >::__setitem__(std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)\n" " std::map< CString,VCString >::__setitem__(std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &,std::map< CString,std::vector< CString,std::allocator< CString > > >::mapped_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyMStringVString_asdict(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_asdict",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_asdict" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (PyObject *)std_map_Sl_CString_Sc_VCString_Sg__asdict(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyMStringVString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_PyMStringVString")) SWIG_fail; result = (std::map< CString,VCString > *)new std::map< CString,VCString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyMStringVString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::map< CString,VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PyMStringVString",&obj0)) SWIG_fail; { std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > *ptr = (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyMStringVString" "', argument " "1"" of type '" "std::map< CString,VCString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyMStringVString" "', argument " "1"" of type '" "std::map< CString,VCString > const &""'"); } arg1 = ptr; } result = (std::map< CString,VCString > *)new std::map< CString,VCString >((std::map< CString,VCString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_PyMStringVString(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_PyMStringVString__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_CString_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PyMStringVString__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PyMStringVString__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PyMStringVString'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,VCString >::map(std::less< CString > const &)\n" " std::map< CString,VCString >::map()\n" " std::map< CString,VCString >::map(std::map< CString,VCString > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyMStringVString_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_empty" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (bool)((std::map< CString,VCString > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_size" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = ((std::map< CString,VCString > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_clear" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,VCString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_swap" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_swap" "', argument " "2"" of type '" "std::map< CString,VCString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_swap" "', argument " "2"" of type '" "std::map< CString,VCString > &""'"); } arg2 = reinterpret_cast< std::map< CString,VCString > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_get_allocator" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = ((std::map< CString,VCString > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::map< CString,std::vector< CString,std::allocator< CString > > >::allocator_type(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_begin" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_end" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_rbegin" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:PyMStringVString_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_rend" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_erase" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_erase" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_erase" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->erase((std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_count(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_count",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_count" "', argument " "1"" of type '" "std::map< CString,VCString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_count" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_count" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = ((std::map< CString,VCString > const *)arg1)->count((std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_erase" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMStringVString_erase" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMStringVString_erase" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator""'"); } } std_map_Sl_CString_Sc_VCString_Sg__erase__SWIG_1(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_erase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > arg2 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyMStringVString_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_erase" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMStringVString_erase" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMStringVString_erase" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMStringVString_erase" "', argument " "3"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyMStringVString_erase" "', argument " "3"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator""'"); } } std_map_Sl_CString_Sc_VCString_Sg__erase__SWIG_2(arg1,arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { return _wrap_PyMStringVString_erase__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyMStringVString_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { return _wrap_PyMStringVString_erase__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyMStringVString_erase'.\n" " Possible C/C++ prototypes are:\n" " std::map< CString,VCString >::erase(std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)\n" " std::map< CString,VCString >::erase(std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator)\n" " std::map< CString,VCString >::erase(std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator,std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyMStringVString_find(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_find",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_find" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_find" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_find" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->find((std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_lower_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_lower_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_lower_bound" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_lower_bound" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_lower_bound" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->lower_bound((std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_PyMStringVString_upper_bound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OO:PyMStringVString_upper_bound",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyMStringVString_upper_bound" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyMStringVString_upper_bound" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyMStringVString_upper_bound" "', argument " "2"" of type '" "std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &""'"); } arg2 = ptr; } result = (arg1)->upper_bound((std::map< CString,std::vector< CString,std::allocator< CString > > >::key_type const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< CString,std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_PyMStringVString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::map< CString,VCString > *arg1 = (std::map< CString,VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_PyMStringVString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyMStringVString" "', argument " "1"" of type '" "std::map< CString,VCString > *""'"); } arg1 = reinterpret_cast< std::map< CString,VCString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *PyMStringVString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_MCString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_MCString")) SWIG_fail; result = (MCString *)new MCString(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_MCString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString *arg1 = (MCString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_MCString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCString" "', argument " "1"" of type '" "MCString *""'"); } arg1 = reinterpret_cast< MCString * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *MCString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_MCString, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_PyModulesVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_iterator" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_CModule_Sm__Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___nonzero__" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (bool)std_vector_Sl_CModule_Sm__Sg____nonzero__((std::vector< CModule * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___bool__" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (bool)std_vector_Sl_CModule_Sm__Sg____bool__((std::vector< CModule * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___len__" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = std_vector_Sl_CModule_Sm__Sg____len__((std::vector< CModule * > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_pop" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); try { result = (std::vector< CModule * >::value_type)std_vector_Sl_CModule_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; std::vector< CModule * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CModule *,std::allocator< CModule * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___getslice__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___getslice__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyModulesVector___getslice__" "', argument " "3"" of type '" "std::vector< CModule * >::difference_type""'"); } arg3 = static_cast< std::vector< CModule * >::difference_type >(val3); try { result = (std::vector< CModule *,std::allocator< CModule * > > *)std_vector_Sl_CModule_Sm__Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; std::vector< CModule * >::difference_type arg3 ; std::vector< CModule *,std::allocator< CModule * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:PyModulesVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___setslice__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___setslice__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyModulesVector___setslice__" "', argument " "3"" of type '" "std::vector< CModule * >::difference_type""'"); } arg3 = static_cast< std::vector< CModule * >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PyModulesVector___setslice__" "', argument " "4"" of type '" "std::vector< CModule *,std::allocator< CModule * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyModulesVector___setslice__" "', argument " "4"" of type '" "std::vector< CModule *,std::allocator< CModule * > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_CModule_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CModule *,std::allocator< CModule * > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; std::vector< CModule * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___setslice__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___setslice__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyModulesVector___setslice__" "', argument " "3"" of type '" "std::vector< CModule * >::difference_type""'"); } arg3 = static_cast< std::vector< CModule * >::difference_type >(val3); try { std_vector_Sl_CModule_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_PyModulesVector___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyModulesVector___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::__setslice__(std::vector< CModule * >::difference_type,std::vector< CModule * >::difference_type,std::vector< CModule *,std::allocator< CModule * > > const &)\n" " std::vector< CModule * >::__setslice__(std::vector< CModule * >::difference_type,std::vector< CModule * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; std::vector< CModule * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___delslice__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___delslice__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyModulesVector___delslice__" "', argument " "3"" of type '" "std::vector< CModule * >::difference_type""'"); } arg3 = static_cast< std::vector< CModule * >::difference_type >(val3); try { std_vector_Sl_CModule_Sm__Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___delitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___delitem__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); try { std_vector_Sl_CModule_Sm__Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CModule *,std::allocator< CModule * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___getitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< CModule *,std::allocator< CModule * > > *)std_vector_Sl_CModule_Sm__Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< CModule *,std::allocator< CModule * > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___setitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyModulesVector___setitem__" "', argument " "3"" of type '" "std::vector< CModule *,std::allocator< CModule * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyModulesVector___setitem__" "', argument " "3"" of type '" "std::vector< CModule *,std::allocator< CModule * > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_CModule_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CModule *,std::allocator< CModule * > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___setitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CModule_Sm__Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___delitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CModule_Sm__Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_PyModulesVector___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_PyModulesVector___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::__delitem__(std::vector< CModule * >::difference_type)\n" " std::vector< CModule * >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CModule * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___getitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___getitem__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); try { result = (std::vector< CModule * >::value_type)std_vector_Sl_CModule_Sm__Sg____getitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_PyModulesVector___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_PyModulesVector___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::__getitem__(PySliceObject *)\n" " std::vector< CModule * >::__getitem__(std::vector< CModule * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::difference_type arg2 ; std::vector< CModule * >::value_type arg3 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector___setitem__" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector___setitem__" "', argument " "2"" of type '" "std::vector< CModule * >::difference_type""'"); } arg2 = static_cast< std::vector< CModule * >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyModulesVector___setitem__" "', argument " "3"" of type '" "std::vector< CModule * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CModule * >::value_type >(argp3); try { std_vector_Sl_CModule_Sm__Sg____setitem____SWIG_2(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_PyModulesVector___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyModulesVector___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyModulesVector___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::__setitem__(PySliceObject *,std::vector< CModule *,std::allocator< CModule * > > const &)\n" " std::vector< CModule * >::__setitem__(PySliceObject *)\n" " std::vector< CModule * >::__setitem__(std::vector< CModule * >::difference_type,std::vector< CModule * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::value_type arg2 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_append" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyModulesVector_append" "', argument " "2"" of type '" "std::vector< CModule * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CModule * >::value_type >(argp2); std_vector_Sl_CModule_Sm__Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyModulesVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_PyModulesVector")) SWIG_fail; result = (std::vector< CModule * > *)new std::vector< CModule * >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyModulesVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< CModule * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PyModulesVector",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyModulesVector" "', argument " "1"" of type '" "std::vector< CModule * > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyModulesVector" "', argument " "1"" of type '" "std::vector< CModule * > const &""'"); } arg1 = ptr; } result = (std::vector< CModule * > *)new std::vector< CModule * >((std::vector< CModule * > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_empty" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (bool)((std::vector< CModule * > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_size" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = ((std::vector< CModule * > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_clear" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_swap" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyModulesVector_swap" "', argument " "2"" of type '" "std::vector< CModule * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyModulesVector_swap" "', argument " "2"" of type '" "std::vector< CModule * > &""'"); } arg2 = reinterpret_cast< std::vector< CModule * > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CModule * > > result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_get_allocator" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = ((std::vector< CModule * > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< CModule * >::allocator_type(static_cast< const std::vector< CModule * >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CModule_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_begin" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_end" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_rbegin" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_rend" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyModulesVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_PyModulesVector",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyModulesVector" "', argument " "1"" of type '" "std::vector< CModule * >::size_type""'"); } arg1 = static_cast< std::vector< CModule * >::size_type >(val1); result = (std::vector< CModule * > *)new std::vector< CModule * >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_pop_back" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_resize" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector_resize" "', argument " "2"" of type '" "std::vector< CModule * >::size_type""'"); } arg2 = static_cast< std::vector< CModule * >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CModule * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_erase" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_erase" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_erase" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } } result = std_vector_Sl_CModule_Sm__Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::iterator arg2 ; std::vector< CModule * >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CModule * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_erase" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_erase" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_erase" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_erase" "', argument " "3"" of type '" "std::vector< CModule * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_erase" "', argument " "3"" of type '" "std::vector< CModule * >::iterator""'"); } } result = std_vector_Sl_CModule_Sm__Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_PyModulesVector_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_PyModulesVector_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::erase(std::vector< CModule * >::iterator)\n" " std::vector< CModule * >::erase(std::vector< CModule * >::iterator,std::vector< CModule * >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_PyModulesVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * >::size_type arg1 ; std::vector< CModule * >::value_type arg2 = (std::vector< CModule * >::value_type) 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CModule * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_PyModulesVector",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyModulesVector" "', argument " "1"" of type '" "std::vector< CModule * >::size_type""'"); } arg1 = static_cast< std::vector< CModule * >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_PyModulesVector" "', argument " "2"" of type '" "std::vector< CModule * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CModule * >::value_type >(argp2); result = (std::vector< CModule * > *)new std::vector< CModule * >(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_PyModulesVector(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_PyModulesVector__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_PyModulesVector__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PyModulesVector__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_PyModulesVector__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_PyModulesVector'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::vector()\n" " std::vector< CModule * >::vector(std::vector< CModule * > const &)\n" " std::vector< CModule * >::vector(std::vector< CModule * >::size_type)\n" " std::vector< CModule * >::vector(std::vector< CModule * >::size_type,std::vector< CModule * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::value_type arg2 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_push_back" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyModulesVector_push_back" "', argument " "2"" of type '" "std::vector< CModule * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CModule * >::value_type >(argp2); (arg1)->push_back(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_front" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (std::vector< CModule * >::value_type)((std::vector< CModule * > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_back" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = (std::vector< CModule * >::value_type)((std::vector< CModule * > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::size_type arg2 ; std::vector< CModule * >::value_type arg3 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_assign" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector_assign" "', argument " "2"" of type '" "std::vector< CModule * >::size_type""'"); } arg2 = static_cast< std::vector< CModule * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyModulesVector_assign" "', argument " "3"" of type '" "std::vector< CModule * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CModule * >::value_type >(argp3); (arg1)->assign(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::size_type arg2 ; std::vector< CModule * >::value_type arg3 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_resize" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector_resize" "', argument " "2"" of type '" "std::vector< CModule * >::size_type""'"); } arg2 = static_cast< std::vector< CModule * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyModulesVector_resize" "', argument " "3"" of type '" "std::vector< CModule * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CModule * >::value_type >(argp3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_PyModulesVector_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyModulesVector_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::resize(std::vector< CModule * >::size_type)\n" " std::vector< CModule * >::resize(std::vector< CModule * >::size_type,std::vector< CModule * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::iterator arg2 ; std::vector< CModule * >::value_type arg3 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CModule * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:PyModulesVector_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_insert" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_insert" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_insert" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyModulesVector_insert" "', argument " "3"" of type '" "std::vector< CModule * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CModule * >::value_type >(argp3); result = std_vector_Sl_CModule_Sm__Sg__insert__SWIG_0(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CModule * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::iterator arg2 ; std::vector< CModule * >::size_type arg3 ; std::vector< CModule * >::value_type arg4 = (std::vector< CModule * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:PyModulesVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_insert" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_insert" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "PyModulesVector_insert" "', argument " "2"" of type '" "std::vector< CModule * >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyModulesVector_insert" "', argument " "3"" of type '" "std::vector< CModule * >::size_type""'"); } arg3 = static_cast< std::vector< CModule * >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "PyModulesVector_insert" "', argument " "4"" of type '" "std::vector< CModule * >::value_type""'"); } arg4 = reinterpret_cast< std::vector< CModule * >::value_type >(argp4); std_vector_Sl_CModule_Sm__Sg__insert__SWIG_1(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyModulesVector_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_PyModulesVector_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'PyModulesVector_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CModule * >::insert(std::vector< CModule * >::iterator,std::vector< CModule * >::value_type)\n" " std::vector< CModule * >::insert(std::vector< CModule * >::iterator,std::vector< CModule * >::size_type,std::vector< CModule * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_PyModulesVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; std::vector< CModule * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:PyModulesVector_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_reserve" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyModulesVector_reserve" "', argument " "2"" of type '" "std::vector< CModule * >::size_type""'"); } arg2 = static_cast< std::vector< CModule * >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_PyModulesVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CModule * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:PyModulesVector_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyModulesVector_capacity" "', argument " "1"" of type '" "std::vector< CModule * > const *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); result = ((std::vector< CModule * > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_PyModulesVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CModule * > *arg1 = (std::vector< CModule * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_PyModulesVector",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyModulesVector" "', argument " "1"" of type '" "std::vector< CModule * > *""'"); } arg1 = reinterpret_cast< std::vector< CModule * > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *PyModulesVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VListeners_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_iterator" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_CListener_Sm__Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___nonzero__" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (bool)std_vector_Sl_CListener_Sm__Sg____nonzero__((std::vector< CListener * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___bool__" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (bool)std_vector_Sl_CListener_Sm__Sg____bool__((std::vector< CListener * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___len__" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = std_vector_Sl_CListener_Sm__Sg____len__((std::vector< CListener * > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_pop" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); try { result = (std::vector< CListener * >::value_type)std_vector_Sl_CListener_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; std::vector< CListener * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CListener *,std::allocator< CListener * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___getslice__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___getslice__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListeners___getslice__" "', argument " "3"" of type '" "std::vector< CListener * >::difference_type""'"); } arg3 = static_cast< std::vector< CListener * >::difference_type >(val3); try { result = (std::vector< CListener *,std::allocator< CListener * > > *)std_vector_Sl_CListener_Sm__Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; std::vector< CListener * >::difference_type arg3 ; std::vector< CListener *,std::allocator< CListener * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VListeners___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___setslice__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___setslice__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListeners___setslice__" "', argument " "3"" of type '" "std::vector< CListener * >::difference_type""'"); } arg3 = static_cast< std::vector< CListener * >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VListeners___setslice__" "', argument " "4"" of type '" "std::vector< CListener *,std::allocator< CListener * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListeners___setslice__" "', argument " "4"" of type '" "std::vector< CListener *,std::allocator< CListener * > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_CListener_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CListener *,std::allocator< CListener * > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VListeners___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; std::vector< CListener * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___setslice__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___setslice__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListeners___setslice__" "', argument " "3"" of type '" "std::vector< CListener * >::difference_type""'"); } arg3 = static_cast< std::vector< CListener * >::difference_type >(val3); try { std_vector_Sl_CListener_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VListeners___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VListeners___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::__setslice__(std::vector< CListener * >::difference_type,std::vector< CListener * >::difference_type,std::vector< CListener *,std::allocator< CListener * > > const &)\n" " std::vector< CListener * >::__setslice__(std::vector< CListener * >::difference_type,std::vector< CListener * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; std::vector< CListener * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___delslice__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___delslice__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListeners___delslice__" "', argument " "3"" of type '" "std::vector< CListener * >::difference_type""'"); } arg3 = static_cast< std::vector< CListener * >::difference_type >(val3); try { std_vector_Sl_CListener_Sm__Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___delitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___delitem__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); try { std_vector_Sl_CListener_Sm__Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CListener *,std::allocator< CListener * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___getitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< CListener *,std::allocator< CListener * > > *)std_vector_Sl_CListener_Sm__Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< CListener *,std::allocator< CListener * > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___setitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VListeners___setitem__" "', argument " "3"" of type '" "std::vector< CListener *,std::allocator< CListener * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListeners___setitem__" "', argument " "3"" of type '" "std::vector< CListener *,std::allocator< CListener * > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_CListener_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CListener *,std::allocator< CListener * > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VListeners___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___setitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CListener_Sm__Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___delitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CListener_Sm__Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VListeners___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VListeners___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::__delitem__(std::vector< CListener * >::difference_type)\n" " std::vector< CListener * >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CListener * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___getitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___getitem__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); try { result = (std::vector< CListener * >::value_type)std_vector_Sl_CListener_Sm__Sg____getitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VListeners___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VListeners___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::__getitem__(PySliceObject *)\n" " std::vector< CListener * >::__getitem__(std::vector< CListener * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::difference_type arg2 ; std::vector< CListener * >::value_type arg3 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners___setitem__" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners___setitem__" "', argument " "2"" of type '" "std::vector< CListener * >::difference_type""'"); } arg2 = static_cast< std::vector< CListener * >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VListeners___setitem__" "', argument " "3"" of type '" "std::vector< CListener * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CListener * >::value_type >(argp3); try { std_vector_Sl_CListener_Sm__Sg____setitem____SWIG_2(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VListeners___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VListeners___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VListeners___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::__setitem__(PySliceObject *,std::vector< CListener *,std::allocator< CListener * > > const &)\n" " std::vector< CListener * >::__setitem__(PySliceObject *)\n" " std::vector< CListener * >::__setitem__(std::vector< CListener * >::difference_type,std::vector< CListener * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::value_type arg2 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_append" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListeners_append" "', argument " "2"" of type '" "std::vector< CListener * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CListener * >::value_type >(argp2); std_vector_Sl_CListener_Sm__Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VListeners__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VListeners")) SWIG_fail; result = (std::vector< CListener * > *)new std::vector< CListener * >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VListeners__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< CListener * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VListeners",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VListeners" "', argument " "1"" of type '" "std::vector< CListener * > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VListeners" "', argument " "1"" of type '" "std::vector< CListener * > const &""'"); } arg1 = ptr; } result = (std::vector< CListener * > *)new std::vector< CListener * >((std::vector< CListener * > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VListeners_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_empty" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (bool)((std::vector< CListener * > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_size" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = ((std::vector< CListener * > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_clear" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_swap" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListeners_swap" "', argument " "2"" of type '" "std::vector< CListener * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListeners_swap" "', argument " "2"" of type '" "std::vector< CListener * > &""'"); } arg2 = reinterpret_cast< std::vector< CListener * > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CListener * > > result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_get_allocator" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = ((std::vector< CListener * > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< CListener * >::allocator_type(static_cast< const std::vector< CListener * >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CListener_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_begin" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_end" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_rbegin" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_rend" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VListeners__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VListeners",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VListeners" "', argument " "1"" of type '" "std::vector< CListener * >::size_type""'"); } arg1 = static_cast< std::vector< CListener * >::size_type >(val1); result = (std::vector< CListener * > *)new std::vector< CListener * >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_pop_back" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_resize" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners_resize" "', argument " "2"" of type '" "std::vector< CListener * >::size_type""'"); } arg2 = static_cast< std::vector< CListener * >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CListener * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_erase" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_erase" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_erase" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } } result = std_vector_Sl_CListener_Sm__Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::iterator arg2 ; std::vector< CListener * >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CListener * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_erase" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_erase" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_erase" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_erase" "', argument " "3"" of type '" "std::vector< CListener * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_erase" "', argument " "3"" of type '" "std::vector< CListener * >::iterator""'"); } } result = std_vector_Sl_CListener_Sm__Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VListeners_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VListeners_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::erase(std::vector< CListener * >::iterator)\n" " std::vector< CListener * >::erase(std::vector< CListener * >::iterator,std::vector< CListener * >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VListeners__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * >::size_type arg1 ; std::vector< CListener * >::value_type arg2 = (std::vector< CListener * >::value_type) 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CListener * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VListeners",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VListeners" "', argument " "1"" of type '" "std::vector< CListener * >::size_type""'"); } arg1 = static_cast< std::vector< CListener * >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VListeners" "', argument " "2"" of type '" "std::vector< CListener * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CListener * >::value_type >(argp2); result = (std::vector< CListener * > *)new std::vector< CListener * >(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VListeners(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VListeners__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VListeners__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VListeners__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VListeners__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VListeners'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::vector()\n" " std::vector< CListener * >::vector(std::vector< CListener * > const &)\n" " std::vector< CListener * >::vector(std::vector< CListener * >::size_type)\n" " std::vector< CListener * >::vector(std::vector< CListener * >::size_type,std::vector< CListener * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::value_type arg2 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_push_back" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListeners_push_back" "', argument " "2"" of type '" "std::vector< CListener * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CListener * >::value_type >(argp2); (arg1)->push_back(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_front" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (std::vector< CListener * >::value_type)((std::vector< CListener * > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_back" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = (std::vector< CListener * >::value_type)((std::vector< CListener * > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::size_type arg2 ; std::vector< CListener * >::value_type arg3 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_assign" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners_assign" "', argument " "2"" of type '" "std::vector< CListener * >::size_type""'"); } arg2 = static_cast< std::vector< CListener * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VListeners_assign" "', argument " "3"" of type '" "std::vector< CListener * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CListener * >::value_type >(argp3); (arg1)->assign(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::size_type arg2 ; std::vector< CListener * >::value_type arg3 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_resize" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners_resize" "', argument " "2"" of type '" "std::vector< CListener * >::size_type""'"); } arg2 = static_cast< std::vector< CListener * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VListeners_resize" "', argument " "3"" of type '" "std::vector< CListener * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CListener * >::value_type >(argp3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VListeners_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VListeners_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::resize(std::vector< CListener * >::size_type)\n" " std::vector< CListener * >::resize(std::vector< CListener * >::size_type,std::vector< CListener * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::iterator arg2 ; std::vector< CListener * >::value_type arg3 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CListener * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VListeners_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_insert" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_insert" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_insert" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VListeners_insert" "', argument " "3"" of type '" "std::vector< CListener * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CListener * >::value_type >(argp3); result = std_vector_Sl_CListener_Sm__Sg__insert__SWIG_0(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CListener * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::iterator arg2 ; std::vector< CListener * >::size_type arg3 ; std::vector< CListener * >::value_type arg4 = (std::vector< CListener * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VListeners_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_insert" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_insert" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VListeners_insert" "', argument " "2"" of type '" "std::vector< CListener * >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VListeners_insert" "', argument " "3"" of type '" "std::vector< CListener * >::size_type""'"); } arg3 = static_cast< std::vector< CListener * >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VListeners_insert" "', argument " "4"" of type '" "std::vector< CListener * >::value_type""'"); } arg4 = reinterpret_cast< std::vector< CListener * >::value_type >(argp4); std_vector_Sl_CListener_Sm__Sg__insert__SWIG_1(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VListeners_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VListeners_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VListeners_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CListener * >::insert(std::vector< CListener * >::iterator,std::vector< CListener * >::value_type)\n" " std::vector< CListener * >::insert(std::vector< CListener * >::iterator,std::vector< CListener * >::size_type,std::vector< CListener * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VListeners_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VListeners_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_reserve" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners_reserve" "', argument " "2"" of type '" "std::vector< CListener * >::size_type""'"); } arg2 = static_cast< std::vector< CListener * >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VListeners_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VListeners_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_capacity" "', argument " "1"" of type '" "std::vector< CListener * > const *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); result = ((std::vector< CListener * > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VListeners(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VListeners",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VListeners" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VListeners_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_BufLines_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_iterator" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (swig::SwigPyIterator *)std_deque_Sl_CBufLine_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___nonzero__" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (bool)std_deque_Sl_CBufLine_Sg____nonzero__((std::deque< CBufLine > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___bool__" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (bool)std_deque_Sl_CBufLine_Sg____bool__((std::deque< CBufLine > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___len__" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = std_deque_Sl_CBufLine_Sg____len__((std::deque< CBufLine > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_pop" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); try { result = std_deque_Sl_CBufLine_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj((new std::deque< CBufLine >::value_type(static_cast< const std::deque< CBufLine >::value_type& >(result))), SWIGTYPE_p_CBufLine, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; std::deque< CBufLine >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::deque< CBufLine,std::allocator< CBufLine > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___getslice__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___getslice__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines___getslice__" "', argument " "3"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg3 = static_cast< std::deque< CBufLine >::difference_type >(val3); try { result = (std::deque< CBufLine,std::allocator< CBufLine > > *)std_deque_Sl_CBufLine_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; std::deque< CBufLine >::difference_type arg3 ; std::deque< CBufLine,std::allocator< CBufLine > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:BufLines___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___setslice__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___setslice__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines___setslice__" "', argument " "3"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg3 = static_cast< std::deque< CBufLine >::difference_type >(val3); { std::deque > *ptr = (std::deque > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BufLines___setslice__" "', argument " "4"" of type '" "std::deque< CBufLine,std::allocator< CBufLine > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines___setslice__" "', argument " "4"" of type '" "std::deque< CBufLine,std::allocator< CBufLine > > const &""'"); } arg4 = ptr; } try { std_deque_Sl_CBufLine_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::deque< CBufLine,std::allocator< CBufLine > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_BufLines___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; std::deque< CBufLine >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___setslice__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___setslice__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines___setslice__" "', argument " "3"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg3 = static_cast< std::deque< CBufLine >::difference_type >(val3); try { std_deque_Sl_CBufLine_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_BufLines___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_BufLines___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::__setslice__(std::deque< CBufLine >::difference_type,std::deque< CBufLine >::difference_type,std::deque< CBufLine,std::allocator< CBufLine > > const &)\n" " std::deque< CBufLine >::__setslice__(std::deque< CBufLine >::difference_type,std::deque< CBufLine >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; std::deque< CBufLine >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___delslice__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___delslice__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines___delslice__" "', argument " "3"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg3 = static_cast< std::deque< CBufLine >::difference_type >(val3); try { std_deque_Sl_CBufLine_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___delitem__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___delitem__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); try { std_deque_Sl_CBufLine_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::deque< CBufLine,std::allocator< CBufLine > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___getitem__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::deque< CBufLine,std::allocator< CBufLine > > *)std_deque_Sl_CBufLine_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::deque< CBufLine,std::allocator< CBufLine > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___setitem__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::deque > *ptr = (std::deque > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines___setitem__" "', argument " "3"" of type '" "std::deque< CBufLine,std::allocator< CBufLine > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines___setitem__" "', argument " "3"" of type '" "std::deque< CBufLine,std::allocator< CBufLine > > const &""'"); } arg3 = ptr; } try { std_deque_Sl_CBufLine_Sg____setitem____SWIG_0(arg1,arg2,(std::deque< CBufLine,std::allocator< CBufLine > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_BufLines___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___setitem__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_deque_Sl_CBufLine_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___delitem__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_deque_Sl_CBufLine_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_BufLines___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_BufLines___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::__delitem__(std::deque< CBufLine >::difference_type)\n" " std::deque< CBufLine >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::deque< CBufLine >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___getitem__" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___getitem__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); try { result = (std::deque< CBufLine >::value_type *) &std_deque_Sl_CBufLine_Sg____getitem____SWIG_1((std::deque< CBufLine > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_BufLines___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_BufLines___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::__getitem__(PySliceObject *)\n" " std::deque< CBufLine >::__getitem__(std::deque< CBufLine >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::difference_type arg2 ; std::deque< CBufLine >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines___setitem__" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines___setitem__" "', argument " "2"" of type '" "std::deque< CBufLine >::difference_type""'"); } arg2 = static_cast< std::deque< CBufLine >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines___setitem__" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines___setitem__" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg3 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp3); try { std_deque_Sl_CBufLine_Sg____setitem____SWIG_2(arg1,arg2,(CBufLine const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_BufLines___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_BufLines___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_BufLines___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::__setitem__(PySliceObject *,std::deque< CBufLine,std::allocator< CBufLine > > const &)\n" " std::deque< CBufLine >::__setitem__(PySliceObject *)\n" " std::deque< CBufLine >::__setitem__(std::deque< CBufLine >::difference_type,std::deque< CBufLine >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_append" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_append" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_append" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg2 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp2); std_deque_Sl_CBufLine_Sg__append(arg1,(CBufLine const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_BufLines__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_BufLines")) SWIG_fail; result = (std::deque< CBufLine > *)new std::deque< CBufLine >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_BufLines__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::deque< CBufLine > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_BufLines",&obj0)) SWIG_fail; { std::deque > *ptr = (std::deque > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine > const &""'"); } arg1 = ptr; } result = (std::deque< CBufLine > *)new std::deque< CBufLine >((std::deque< CBufLine > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_BufLines_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_empty" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (bool)((std::deque< CBufLine > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_size" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = ((std::deque< CBufLine > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_clear" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_swap" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_swap" "', argument " "2"" of type '" "std::deque< CBufLine > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_swap" "', argument " "2"" of type '" "std::deque< CBufLine > &""'"); } arg2 = reinterpret_cast< std::deque< CBufLine > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CBufLine > > result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_get_allocator" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = ((std::deque< CBufLine > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::deque< CBufLine >::allocator_type(static_cast< const std::deque< CBufLine >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CBufLine_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_begin" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_end" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_rbegin" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_rend" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_BufLines__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_BufLines",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine >::size_type""'"); } arg1 = static_cast< std::deque< CBufLine >::size_type >(val1); result = (std::deque< CBufLine > *)new std::deque< CBufLine >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_pop_back" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_resize" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_resize" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::deque< CBufLine >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_erase" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_erase" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_erase" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } } result = std_deque_Sl_CBufLine_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::iterator arg2 ; std::deque< CBufLine >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::deque< CBufLine >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_erase" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_erase" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_erase" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_erase" "', argument " "3"" of type '" "std::deque< CBufLine >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_erase" "', argument " "3"" of type '" "std::deque< CBufLine >::iterator""'"); } } result = std_deque_Sl_CBufLine_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_BufLines_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_BufLines_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines_erase'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::erase(std::deque< CBufLine >::iterator)\n" " std::deque< CBufLine >::erase(std::deque< CBufLine >::iterator,std::deque< CBufLine >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_BufLines__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine >::size_type arg1 ; std::deque< CBufLine >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::deque< CBufLine > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_BufLines",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine >::size_type""'"); } arg1 = static_cast< std::deque< CBufLine >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufLines" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufLines" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg2 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp2); result = (std::deque< CBufLine > *)new std::deque< CBufLine >(arg1,(std::deque< CBufLine >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_BufLines(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_BufLines__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_BufLines__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_BufLines__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_BufLines__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_BufLines'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::deque()\n" " std::deque< CBufLine >::deque(std::deque< CBufLine > const &)\n" " std::deque< CBufLine >::deque(std::deque< CBufLine >::size_type)\n" " std::deque< CBufLine >::deque(std::deque< CBufLine >::size_type,std::deque< CBufLine >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_push_back" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_push_back" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_push_back" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg2 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp2); (arg1)->push_back((std::deque< CBufLine >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_front" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (std::deque< CBufLine >::value_type *) &((std::deque< CBufLine > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_back" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (std::deque< CBufLine >::value_type *) &((std::deque< CBufLine > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::size_type arg2 ; std::deque< CBufLine >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_assign" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_assign" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines_assign" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_assign" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg3 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp3); (arg1)->assign(arg2,(std::deque< CBufLine >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::size_type arg2 ; std::deque< CBufLine >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_resize" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_resize" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines_resize" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_resize" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg3 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp3); (arg1)->resize(arg2,(std::deque< CBufLine >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_BufLines_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_BufLines_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines_resize'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::resize(std::deque< CBufLine >::size_type)\n" " std::deque< CBufLine >::resize(std::deque< CBufLine >::size_type,std::deque< CBufLine >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::iterator arg2 ; std::deque< CBufLine >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::deque< CBufLine >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:BufLines_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_insert" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_insert" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_insert" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines_insert" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_insert" "', argument " "3"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg3 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp3); result = std_deque_Sl_CBufLine_Sg__insert__SWIG_0(arg1,arg2,(CBufLine const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::deque< CBufLine >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::iterator arg2 ; std::deque< CBufLine >::size_type arg3 ; std::deque< CBufLine >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:BufLines_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_insert" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_insert" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "BufLines_insert" "', argument " "2"" of type '" "std::deque< CBufLine >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines_insert" "', argument " "3"" of type '" "std::deque< CBufLine >::size_type""'"); } arg3 = static_cast< std::deque< CBufLine >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BufLines_insert" "', argument " "4"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_insert" "', argument " "4"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg4 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp4); std_deque_Sl_CBufLine_Sg__insert__SWIG_1(arg1,arg2,arg3,(CBufLine const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_BufLines_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::deque >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_BufLines_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'BufLines_insert'.\n" " Possible C/C++ prototypes are:\n" " std::deque< CBufLine >::insert(std::deque< CBufLine >::iterator,std::deque< CBufLine >::value_type const &)\n" " std::deque< CBufLine >::insert(std::deque< CBufLine >::iterator,std::deque< CBufLine >::size_type,std::deque< CBufLine >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_BufLines_pop_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:BufLines_pop_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_pop_front" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); (arg1)->pop_front(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_BufLines_push_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:BufLines_push_front",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_push_front" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CBufLine, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_push_front" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_push_front" "', argument " "2"" of type '" "std::deque< CBufLine >::value_type const &""'"); } arg2 = reinterpret_cast< std::deque< CBufLine >::value_type * >(argp2); (arg1)->push_front((std::deque< CBufLine >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_BufLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_BufLines",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *BufLines_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VVString_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VVString_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_iterator" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_VCString_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VVString___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___nonzero__" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (bool)std_vector_Sl_VCString_Sg____nonzero__((std::vector< std::vector< CString,std::allocator< CString > > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VVString___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___bool__" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (bool)std_vector_Sl_VCString_Sg____bool__((std::vector< std::vector< CString,std::allocator< CString > > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VVString___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___len__" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = std_vector_Sl_VCString_Sg____len__((std::vector< std::vector< CString,std::allocator< CString > > > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_pop" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); try { result = std_vector_Sl_VCString_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = swig::from(static_cast< std::vector > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___getslice__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___getslice__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VVString___getslice__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg3 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val3); try { result = (std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *)std_vector_Sl_VCString_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg3 ; std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VVString___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___setslice__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VVString___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg3 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val3); { std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > > *ptr = (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VVString___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString___setslice__" "', argument " "4"" of type '" "std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_VCString_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VVString___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___setslice__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___setslice__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VVString___setslice__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg3 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val3); try { std_vector_Sl_VCString_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VVString___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VVString___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::__setslice__(std::vector< std::vector< CString,std::allocator< CString > > >::difference_type,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type,std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &)\n" " std::vector< VCString >::__setslice__(std::vector< std::vector< CString,std::allocator< CString > > >::difference_type,std::vector< std::vector< CString,std::allocator< CString > > >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___delslice__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___delslice__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VVString___delslice__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg3 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val3); try { std_vector_Sl_VCString_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___delitem__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___delitem__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); try { std_vector_Sl_VCString_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___getitem__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *)std_vector_Sl_VCString_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___setitem__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > > *ptr = (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VVString___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_VCString_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VVString___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___setitem__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_VCString_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___delitem__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_VCString_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VVString___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VVString___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::__delitem__(std::vector< std::vector< CString,std::allocator< CString > > >::difference_type)\n" " std::vector< VCString >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___getitem__" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___getitem__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); try { result = (std::vector< std::vector< CString,std::allocator< CString > > >::value_type *) &std_vector_Sl_VCString_Sg____getitem____SWIG_1((std::vector< std::vector< CString,std::allocator< CString > > > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VVString___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VVString___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::__getitem__(PySliceObject *)\n" " std::vector< VCString >::__getitem__(std::vector< std::vector< CString,std::allocator< CString > > >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::difference_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString___setitem__" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString___setitem__" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::difference_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::difference_type >(val2); { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VVString___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString___setitem__" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg3 = ptr; } try { std_vector_Sl_VCString_Sg____setitem____SWIG_2(arg1,arg2,(std::vector< CString,std::allocator< CString > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VVString___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VVString___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VVString___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VVString___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::__setitem__(PySliceObject *,std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > const &)\n" " std::vector< VCString >::__setitem__(PySliceObject *)\n" " std::vector< VCString >::__setitem__(std::vector< std::vector< CString,std::allocator< CString > > >::difference_type,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_append" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { std::vector > *ptr = (std::vector > *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VVString_append" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_append" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg2 = ptr; } std_vector_Sl_VCString_Sg__append(arg1,(std::vector< CString,std::allocator< CString > > const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_VVString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VVString")) SWIG_fail; result = (std::vector< VCString > *)new std::vector< VCString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VVString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VVString",&obj0)) SWIG_fail; { std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > > *ptr = (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VVString" "', argument " "1"" of type '" "std::vector< VCString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VVString" "', argument " "1"" of type '" "std::vector< VCString > const &""'"); } arg1 = ptr; } result = (std::vector< VCString > *)new std::vector< VCString >((std::vector< VCString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VVString_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_empty" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (bool)((std::vector< VCString > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_size" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = ((std::vector< VCString > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VVString_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_clear" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< VCString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_swap" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VVString_swap" "', argument " "2"" of type '" "std::vector< VCString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_swap" "', argument " "2"" of type '" "std::vector< VCString > &""'"); } arg2 = reinterpret_cast< std::vector< VCString > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::vector< CString,std::allocator< CString > > > > result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_get_allocator" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = ((std::vector< VCString > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< std::vector< CString,std::allocator< CString > > >::allocator_type(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_begin" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_end" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_rbegin" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_rend" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VVString__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VVString",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VVString" "', argument " "1"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg1 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val1); result = (std::vector< VCString > *)new std::vector< VCString >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VVString_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_pop_back" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_resize" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString_resize" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OO:VVString_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_erase" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_erase" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_erase" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } } result = std_vector_Sl_VCString_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > arg2 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_erase" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_erase" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_erase" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_erase" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_erase" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } } result = std_vector_Sl_VCString_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { return _wrap_VVString_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { return _wrap_VVString_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::erase(std::vector< std::vector< CString,std::allocator< CString > > >::iterator)\n" " std::vector< VCString >::erase(std::vector< std::vector< CString,std::allocator< CString > > >::iterator,std::vector< std::vector< CString,std::allocator< CString > > >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VVString__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg1 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< VCString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VVString",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VVString" "', argument " "1"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg1 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val1); { std::vector > *ptr = (std::vector > *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VVString" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VVString" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg2 = ptr; } result = (std::vector< VCString > *)new std::vector< VCString >(arg1,(std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_VVString(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VVString__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VVString__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VVString__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[1], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VVString__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VVString'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::vector()\n" " std::vector< VCString >::vector(std::vector< VCString > const &)\n" " std::vector< VCString >::vector(std::vector< std::vector< CString,std::allocator< CString > > >::size_type)\n" " std::vector< VCString >::vector(std::vector< std::vector< CString,std::allocator< CString > > >::size_type,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_push_back" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { std::vector > *ptr = (std::vector > *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VVString_push_back" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_push_back" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg2 = ptr; } (arg1)->push_back((std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_VVString_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VVString_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_front" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (std::vector< std::vector< CString,std::allocator< CString > > >::value_type *) &((std::vector< VCString > const *)arg1)->front(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VVString_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_back" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = (std::vector< std::vector< CString,std::allocator< CString > > >::value_type *) &((std::vector< VCString > const *)arg1)->back(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_assign" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString_assign" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val2); { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VVString_assign" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_assign" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg3 = ptr; } (arg1)->assign(arg2,(std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VVString_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_resize" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString_resize" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val2); { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VVString_resize" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_resize" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg3 = ptr; } (arg1)->resize(arg2,(std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VVString_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VVString_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VVString_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::resize(std::vector< std::vector< CString,std::allocator< CString > > >::size_type)\n" " std::vector< VCString >::resize(std::vector< std::vector< CString,std::allocator< CString > > >::size_type,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OOO:VVString_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_insert" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_insert" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_insert" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VVString_insert" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_insert" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg3 = ptr; } result = std_vector_Sl_VCString_Sg__insert__SWIG_0(arg1,arg2,(std::vector< CString,std::allocator< CString > > const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::vector< CString,std::allocator< CString > > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VVString_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; SwigValueWrapper< std::vector< std::vector< CString,std::allocator< CString > > >::iterator > arg2 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg3 ; std::vector< std::vector< CString,std::allocator< CString > > >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VVString_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_insert" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_insert" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } else { swig::SwigPyIterator_T > >::iterator > *iter_t = dynamic_cast > >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VVString_insert" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VVString_insert" "', argument " "3"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg3 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VVString_insert" "', argument " "4"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VVString_insert" "', argument " "4"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &""'"); } arg4 = ptr; } std_vector_Sl_VCString_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::vector< CString,std::allocator< CString > > const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VVString_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VVString_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >,std::allocator< std::vector< CString,std::allocator< CString > > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast > >::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VVString_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VVString_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< VCString >::insert(std::vector< std::vector< CString,std::allocator< CString > > >::iterator,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)\n" " std::vector< VCString >::insert(std::vector< std::vector< CString,std::allocator< CString > > >::iterator,std::vector< std::vector< CString,std::allocator< CString > > >::size_type,std::vector< std::vector< CString,std::allocator< CString > > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VVString_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VVString_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_reserve" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString_reserve" "', argument " "2"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg2 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VVString_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VVString_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_capacity" "', argument " "1"" of type '" "std::vector< VCString > const *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); result = ((std::vector< VCString > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VVString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VVString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VVString" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VVString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VClients_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VClients_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_iterator" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_CClient_Sm__Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VClients___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___nonzero__" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (bool)std_vector_Sl_CClient_Sm__Sg____nonzero__((std::vector< CClient * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VClients___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___bool__" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (bool)std_vector_Sl_CClient_Sm__Sg____bool__((std::vector< CClient * > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VClients___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___len__" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = std_vector_Sl_CClient_Sm__Sg____len__((std::vector< CClient * > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_pop" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); try { result = (std::vector< CClient * >::value_type)std_vector_Sl_CClient_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; std::vector< CClient * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CClient *,std::allocator< CClient * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___getslice__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___getslice__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VClients___getslice__" "', argument " "3"" of type '" "std::vector< CClient * >::difference_type""'"); } arg3 = static_cast< std::vector< CClient * >::difference_type >(val3); try { result = (std::vector< CClient *,std::allocator< CClient * > > *)std_vector_Sl_CClient_Sm__Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; std::vector< CClient * >::difference_type arg3 ; std::vector< CClient *,std::allocator< CClient * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VClients___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___setslice__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___setslice__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VClients___setslice__" "', argument " "3"" of type '" "std::vector< CClient * >::difference_type""'"); } arg3 = static_cast< std::vector< CClient * >::difference_type >(val3); { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VClients___setslice__" "', argument " "4"" of type '" "std::vector< CClient *,std::allocator< CClient * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VClients___setslice__" "', argument " "4"" of type '" "std::vector< CClient *,std::allocator< CClient * > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_CClient_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< CClient *,std::allocator< CClient * > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VClients___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; std::vector< CClient * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___setslice__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___setslice__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VClients___setslice__" "', argument " "3"" of type '" "std::vector< CClient * >::difference_type""'"); } arg3 = static_cast< std::vector< CClient * >::difference_type >(val3); try { std_vector_Sl_CClient_Sm__Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VClients___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VClients___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::__setslice__(std::vector< CClient * >::difference_type,std::vector< CClient * >::difference_type,std::vector< CClient *,std::allocator< CClient * > > const &)\n" " std::vector< CClient * >::__setslice__(std::vector< CClient * >::difference_type,std::vector< CClient * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; std::vector< CClient * >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___delslice__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___delslice__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VClients___delslice__" "', argument " "3"" of type '" "std::vector< CClient * >::difference_type""'"); } arg3 = static_cast< std::vector< CClient * >::difference_type >(val3); try { std_vector_Sl_CClient_Sm__Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___delitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___delitem__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); try { std_vector_Sl_CClient_Sm__Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CClient *,std::allocator< CClient * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___getitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< CClient *,std::allocator< CClient * > > *)std_vector_Sl_CClient_Sm__Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< CClient *,std::allocator< CClient * > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___setitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector > *ptr = (std::vector > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VClients___setitem__" "', argument " "3"" of type '" "std::vector< CClient *,std::allocator< CClient * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VClients___setitem__" "', argument " "3"" of type '" "std::vector< CClient *,std::allocator< CClient * > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_CClient_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CClient *,std::allocator< CClient * > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VClients___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___setitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CClient_Sm__Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___delitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_CClient_Sm__Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VClients___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VClients___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::__delitem__(std::vector< CClient * >::difference_type)\n" " std::vector< CClient * >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CClient * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"OO:VClients___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___getitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___getitem__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); try { result = (std::vector< CClient * >::value_type)std_vector_Sl_CClient_Sm__Sg____getitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VClients___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VClients___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::__getitem__(PySliceObject *)\n" " std::vector< CClient * >::__getitem__(std::vector< CClient * >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::difference_type arg2 ; std::vector< CClient * >::value_type arg3 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients___setitem__" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients___setitem__" "', argument " "2"" of type '" "std::vector< CClient * >::difference_type""'"); } arg2 = static_cast< std::vector< CClient * >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VClients___setitem__" "', argument " "3"" of type '" "std::vector< CClient * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CClient * >::value_type >(argp3); try { std_vector_Sl_CClient_Sm__Sg____setitem____SWIG_2(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VClients___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VClients___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VClients___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::__setitem__(PySliceObject *,std::vector< CClient *,std::allocator< CClient * > > const &)\n" " std::vector< CClient * >::__setitem__(PySliceObject *)\n" " std::vector< CClient * >::__setitem__(std::vector< CClient * >::difference_type,std::vector< CClient * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::value_type arg2 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_append" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VClients_append" "', argument " "2"" of type '" "std::vector< CClient * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CClient * >::value_type >(argp2); std_vector_Sl_CClient_Sm__Sg__append(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VClients__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VClients")) SWIG_fail; result = (std::vector< CClient * > *)new std::vector< CClient * >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VClients__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< CClient * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VClients",&obj0)) SWIG_fail; { std::vector > *ptr = (std::vector > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VClients" "', argument " "1"" of type '" "std::vector< CClient * > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VClients" "', argument " "1"" of type '" "std::vector< CClient * > const &""'"); } arg1 = ptr; } result = (std::vector< CClient * > *)new std::vector< CClient * >((std::vector< CClient * > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VClients_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_empty" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (bool)((std::vector< CClient * > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_size" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = ((std::vector< CClient * > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VClients_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_clear" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_swap" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VClients_swap" "', argument " "2"" of type '" "std::vector< CClient * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VClients_swap" "', argument " "2"" of type '" "std::vector< CClient * > &""'"); } arg2 = reinterpret_cast< std::vector< CClient * > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< CClient * > > result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_get_allocator" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = ((std::vector< CClient * > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< CClient * >::allocator_type(static_cast< const std::vector< CClient * >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_CClient_p_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_begin" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_end" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_rbegin" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_rend" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VClients__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VClients",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VClients" "', argument " "1"" of type '" "std::vector< CClient * >::size_type""'"); } arg1 = static_cast< std::vector< CClient * >::size_type >(val1); result = (std::vector< CClient * > *)new std::vector< CClient * >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VClients_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_pop_back" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_resize" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients_resize" "', argument " "2"" of type '" "std::vector< CClient * >::size_type""'"); } arg2 = static_cast< std::vector< CClient * >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CClient * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:VClients_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_erase" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_erase" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_erase" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } } result = std_vector_Sl_CClient_Sm__Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::iterator arg2 ; std::vector< CClient * >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CClient * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_erase" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_erase" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_erase" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_erase" "', argument " "3"" of type '" "std::vector< CClient * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_erase" "', argument " "3"" of type '" "std::vector< CClient * >::iterator""'"); } } result = std_vector_Sl_CClient_Sm__Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VClients_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { return _wrap_VClients_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::erase(std::vector< CClient * >::iterator)\n" " std::vector< CClient * >::erase(std::vector< CClient * >::iterator,std::vector< CClient * >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VClients__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * >::size_type arg1 ; std::vector< CClient * >::value_type arg2 = (std::vector< CClient * >::value_type) 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CClient * > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VClients",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VClients" "', argument " "1"" of type '" "std::vector< CClient * >::size_type""'"); } arg1 = static_cast< std::vector< CClient * >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VClients" "', argument " "2"" of type '" "std::vector< CClient * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CClient * >::value_type >(argp2); result = (std::vector< CClient * > *)new std::vector< CClient * >(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VClients(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VClients__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VClients__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VClients__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VClients__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VClients'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::vector()\n" " std::vector< CClient * >::vector(std::vector< CClient * > const &)\n" " std::vector< CClient * >::vector(std::vector< CClient * >::size_type)\n" " std::vector< CClient * >::vector(std::vector< CClient * >::size_type,std::vector< CClient * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::value_type arg2 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_push_back" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VClients_push_back" "', argument " "2"" of type '" "std::vector< CClient * >::value_type""'"); } arg2 = reinterpret_cast< std::vector< CClient * >::value_type >(argp2); (arg1)->push_back(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_front" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (std::vector< CClient * >::value_type)((std::vector< CClient * > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_back" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = (std::vector< CClient * >::value_type)((std::vector< CClient * > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::size_type arg2 ; std::vector< CClient * >::value_type arg3 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_assign" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients_assign" "', argument " "2"" of type '" "std::vector< CClient * >::size_type""'"); } arg2 = static_cast< std::vector< CClient * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VClients_assign" "', argument " "3"" of type '" "std::vector< CClient * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CClient * >::value_type >(argp3); (arg1)->assign(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::size_type arg2 ; std::vector< CClient * >::value_type arg3 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_resize" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients_resize" "', argument " "2"" of type '" "std::vector< CClient * >::size_type""'"); } arg2 = static_cast< std::vector< CClient * >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VClients_resize" "', argument " "3"" of type '" "std::vector< CClient * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CClient * >::value_type >(argp3); (arg1)->resize(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VClients_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VClients_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::resize(std::vector< CClient * >::size_type)\n" " std::vector< CClient * >::resize(std::vector< CClient * >::size_type,std::vector< CClient * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::iterator arg2 ; std::vector< CClient * >::value_type arg3 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< CClient * >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VClients_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_insert" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_insert" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_insert" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VClients_insert" "', argument " "3"" of type '" "std::vector< CClient * >::value_type""'"); } arg3 = reinterpret_cast< std::vector< CClient * >::value_type >(argp3); result = std_vector_Sl_CClient_Sm__Sg__insert__SWIG_0(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CClient * >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::iterator arg2 ; std::vector< CClient * >::size_type arg3 ; std::vector< CClient * >::value_type arg4 = (std::vector< CClient * >::value_type) 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VClients_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_insert" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_insert" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } else { swig::SwigPyIterator_T::iterator > *iter_t = dynamic_cast::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VClients_insert" "', argument " "2"" of type '" "std::vector< CClient * >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VClients_insert" "', argument " "3"" of type '" "std::vector< CClient * >::size_type""'"); } arg3 = static_cast< std::vector< CClient * >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VClients_insert" "', argument " "4"" of type '" "std::vector< CClient * >::value_type""'"); } arg4 = reinterpret_cast< std::vector< CClient * >::value_type >(argp4); std_vector_Sl_CClient_Sm__Sg__insert__SWIG_1(arg1,arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VClients_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VClients_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VClients_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< CClient * >::insert(std::vector< CClient * >::iterator,std::vector< CClient * >::value_type)\n" " std::vector< CClient * >::insert(std::vector< CClient * >::iterator,std::vector< CClient * >::size_type,std::vector< CClient * >::value_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VClients_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; std::vector< CClient * >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VClients_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_reserve" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VClients_reserve" "', argument " "2"" of type '" "std::vector< CClient * >::size_type""'"); } arg2 = static_cast< std::vector< CClient * >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VClients_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient * >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VClients_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VClients_capacity" "', argument " "1"" of type '" "std::vector< CClient * > const *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); result = ((std::vector< CClient * > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< CClient * > *arg1 = (std::vector< CClient * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VClients" "', argument " "1"" of type '" "std::vector< CClient * > *""'"); } arg1 = reinterpret_cast< std::vector< CClient * > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VClients_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_SetFdCloseOnExec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:SetFdCloseOnExec",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SetFdCloseOnExec" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); SetFdCloseOnExec(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN int Swig_var_g_HexDigits_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable g_HexDigits is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_g_HexDigits_get(void) { PyObject *pyobj = 0; pyobj = SWIG_FromCharPtr(g_HexDigits); return pyobj; } SWIGINTERN PyObject *_wrap_new_CUtils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUtils *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CUtils")) SWIG_fail; result = (CUtils *)new CUtils(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUtils, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CUtils(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUtils *arg1 = (CUtils *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CUtils",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUtils, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CUtils" "', argument " "1"" of type '" "CUtils *""'"); } arg1 = reinterpret_cast< CUtils * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned long arg1 ; unsigned long val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_GetIP",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CUtils_GetIP" "', argument " "1"" of type '" "unsigned long""'"); } arg1 = static_cast< unsigned long >(val1); result = CUtils::GetIP(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetLongIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_GetLongIP",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetLongIP" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetLongIP" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (unsigned long)CUtils::GetLongIP((CString const &)*arg1); resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_PrintError",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintError" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintError" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintError((CString const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintMessage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_PrintMessage",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUtils_PrintMessage" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); CUtils::PrintMessage((CString const &)*arg1,arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintMessage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_PrintMessage",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintMessage((CString const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintMessage(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_PrintMessage__SWIG_1(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUtils_PrintMessage__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUtils_PrintMessage'.\n" " Possible C/C++ prototypes are:\n" " CUtils::PrintMessage(CString const &,bool)\n" " CUtils::PrintMessage(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUtils_PrintPrompt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_PrintPrompt",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintPrompt" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintPrompt" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintPrompt((CString const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_PrintAction",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintAction" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintAction" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintAction((CString const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintStatus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; CString *arg2 = 0 ; bool val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_PrintStatus",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CUtils_PrintStatus" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_PrintStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } CUtils::PrintStatus(arg1,(CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintStatus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_PrintStatus",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CUtils_PrintStatus" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); CUtils::PrintStatus(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_PrintStatus(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUtils_PrintStatus__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_PrintStatus__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUtils_PrintStatus'.\n" " Possible C/C++ prototypes are:\n" " CUtils::PrintStatus(bool,CString const &)\n" " CUtils::PrintStatus(bool)\n"); return 0; } SWIGINTERN int Swig_var_CUtils_sDefaultHash_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable CUtils_sDefaultHash is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_CUtils_sDefaultHash_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_CString(static_cast< CString >(CUtils::sDefaultHash)); return pyobj; } SWIGINTERN PyObject *_wrap_CUtils_GetSaltedHashPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_GetSaltedHashPass",&obj0)) SWIG_fail; { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj0, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg1 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 1 sSalt"); } } result = CUtils::GetSaltedHashPass(*arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetSalt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":CUtils_GetSalt")) SWIG_fail; result = CUtils::GetSalt(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_SaltedMD5Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_SaltedMD5Hash",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_SaltedMD5Hash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedMD5Hash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_SaltedMD5Hash" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedMD5Hash" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUtils::SaltedMD5Hash((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_SaltedSHA256Hash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_SaltedSHA256Hash",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_SaltedSHA256Hash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedSHA256Hash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_SaltedSHA256Hash" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedSHA256Hash" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUtils::SaltedSHA256Hash((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_GetPass",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetPass" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetPass" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CUtils::GetPass((CString const &)*arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUtils_GetInput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sRet"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUtils_GetInput" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)CUtils::GetInput((CString const &)*arg1,*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUtils_GetInput",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sRet"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)CUtils::GetInput((CString const &)*arg1,*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetInput__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_GetInput",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sRet"); } } result = (bool)CUtils::GetInput((CString const &)*arg1,*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetInput(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CUtils_GetInput__SWIG_2(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_GetInput__SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_GetInput__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUtils_GetInput'.\n" " Possible C/C++ prototypes are:\n" " CUtils::GetInput(CString const &,CString &,CString const &,CString const &)\n" " CUtils::GetInput(CString const &,CString &,CString const &)\n" " CUtils::GetInput(CString const &,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUtils_GetBoolInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_GetBoolInput",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUtils_GetBoolInput" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CUtils::GetBoolInput((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetBoolInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool *arg2 = (bool *) 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_GetBoolInput",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_bool, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetBoolInput" "', argument " "2"" of type '" "bool *""'"); } arg2 = reinterpret_cast< bool * >(argp2); result = (bool)CUtils::GetBoolInput((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetBoolInput__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_GetBoolInput",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CUtils::GetBoolInput((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetBoolInput(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_GetBoolInput__SWIG_2(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_bool, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_GetBoolInput__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUtils_GetBoolInput__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUtils_GetBoolInput'.\n" " Possible C/C++ prototypes are:\n" " CUtils::GetBoolInput(CString const &,bool)\n" " CUtils::GetBoolInput(CString const &,bool *)\n" " CUtils::GetBoolInput(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUtils_GetNumInput__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned int *arg2 = 0 ; unsigned int arg3 ; unsigned int arg4 ; unsigned int arg5 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CUtils_GetNumInput",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUtils_GetNumInput" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CUtils_GetNumInput" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CUtils_GetNumInput" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2,arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetNumInput__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned int *arg2 = 0 ; unsigned int arg3 ; unsigned int arg4 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUtils_GetNumInput",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUtils_GetNumInput" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CUtils_GetNumInput" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetNumInput__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned int *arg2 = 0 ; unsigned int arg3 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUtils_GetNumInput",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUtils_GetNumInput" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetNumInput__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned int *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_GetNumInput",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetNumInput(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUtils_GetNumInput__SWIG_3(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUtils_GetNumInput__SWIG_2(self, args); } } } } if (argc == 4) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUtils_GetNumInput__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUtils_GetNumInput__SWIG_0(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUtils_GetNumInput'.\n" " Possible C/C++ prototypes are:\n" " CUtils::GetNumInput(CString const &,unsigned int &,unsigned int,unsigned int,unsigned int)\n" " CUtils::GetNumInput(CString const &,unsigned int &,unsigned int,unsigned int)\n" " CUtils::GetNumInput(CString const &,unsigned int &,unsigned int)\n" " CUtils::GetNumInput(CString const &,unsigned int &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUtils_GetMillTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned long long result; if (!PyArg_ParseTuple(args,(char *)":CUtils_GetMillTime")) SWIG_fail; result = (unsigned long long)CUtils::GetMillTime(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_CTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; time_t arg1 ; CString *arg2 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_CTime",&obj0,&obj1)) SWIG_fail; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_CTime" "', argument " "1"" of type '" "time_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_CTime" "', argument " "1"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_CTime" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_CTime" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUtils::CTime(arg1,(CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_FormatTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; time_t arg1 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUtils_FormatTime",&obj0,&obj1,&obj2)) SWIG_fail; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_FormatTime" "', argument " "1"" of type '" "time_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatTime" "', argument " "1"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_FormatTime" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatTime" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUtils_FormatTime" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatTime" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = CUtils::FormatTime(arg1,(CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_FormatServerTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; timeval *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_FormatServerTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_FormatServerTime" "', argument " "1"" of type '" "timeval const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatServerTime" "', argument " "1"" of type '" "timeval const &""'"); } arg1 = reinterpret_cast< timeval * >(argp1); result = CUtils::FormatServerTime((timeval const &)*arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetTimezones(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; SCString result; if (!PyArg_ParseTuple(args,(char *)":CUtils_GetTimezones")) SWIG_fail; result = CUtils::GetTimezones(); resultobj = swig::from(static_cast< std::set,std::allocator< CString > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; SCString result; if (!PyArg_ParseTuple(args,(char *)":CUtils_GetEncodings")) SWIG_fail; result = CUtils::GetEncodings(); resultobj = swig::from(static_cast< std::set,std::allocator< CString > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUtils_GetMessageTags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; MCString result; if (!PyArg_ParseTuple(args,(char *)"O:CUtils_GetMessageTags",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetMessageTags" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetMessageTags" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CUtils::GetMessageTags((CString const &)*arg1); resultobj = SWIG_NewPointerObj((new MCString(static_cast< const MCString& >(result))), SWIGTYPE_p_MCString, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUtils_SetMessageTags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; MCString *arg2 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUtils_SetMessageTags",&obj0,&obj1)) SWIG_fail; { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj0, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg1 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 1 sLine"); } } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_MCString, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_SetMessageTags" "', argument " "2"" of type '" "MCString const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SetMessageTags" "', argument " "2"" of type '" "MCString const &""'"); } arg2 = reinterpret_cast< MCString * >(argp2); CUtils::SetMessageTags(*arg1,(MCString const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CUtils_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CUtils, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CException(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CException::EType arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CException *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CException",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CException" "', argument " "1"" of type '" "CException::EType""'"); } arg1 = static_cast< CException::EType >(val1); result = (CException *)new CException(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CException, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CException(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CException *arg1 = (CException *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CException",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CException, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CException" "', argument " "1"" of type '" "CException *""'"); } arg1 = reinterpret_cast< CException * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CException_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CException *arg1 = (CException *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CException::EType result; if (!PyArg_ParseTuple(args,(char *)"O:CException_GetType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CException, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CException_GetType" "', argument " "1"" of type '" "CException const *""'"); } arg1 = reinterpret_cast< CException * >(argp1); result = (CException::EType)((CException const *)arg1)->GetType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CException_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CException, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CTable__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CTable *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CTable",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CTable" "', argument " "1"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg1 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val1); result = (CTable *)new CTable(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTable, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CTable__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CTable")) SWIG_fail; result = (CTable *)new CTable(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTable, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CTable(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CTable__SWIG_1(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CTable__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CTable'.\n" " Possible C/C++ prototypes are:\n" " CTable::CTable(std::vector< std::vector< CString,std::allocator< CString > > >::size_type)\n" " CTable::CTable()\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CTable",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTable" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTable_AddColumn__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTable_AddColumn",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_AddColumn" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTable_AddColumn" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->AddColumn((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTable_AddColumn__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTable_AddColumn",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_AddColumn" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddColumn((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTable_AddColumn(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTable_AddColumn__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTable_AddColumn__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTable_AddColumn'.\n" " Possible C/C++ prototypes are:\n" " CTable::AddColumn(CString const &,bool)\n" " CTable::AddColumn(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTable_AddRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:CTable_AddRow",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_AddRow" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); result = (arg1)->AddRow(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTable_SetCell__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; size_t val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CTable_SetCell",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_SetCell" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_size_t(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CTable_SetCell" "', argument " "4"" of type '" "std::vector< std::vector< CString,std::allocator< CString > > >::size_type""'"); } arg4 = static_cast< std::vector< std::vector< CString,std::allocator< CString > > >::size_type >(val4); result = (bool)(arg1)->SetCell((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CTable_SetCell__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTable_SetCell",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_SetCell" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SetCell((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CTable_SetCell(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTable_SetCell__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTable_SetCell__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTable_SetCell'.\n" " Possible C/C++ prototypes are:\n" " CTable::SetCell(CString const &,CString const &,std::vector< std::vector< CString,std::allocator< CString > > >::size_type)\n" " CTable::SetCell(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTable_GetLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; unsigned int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTable_GetLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_GetLine" "', argument " "1"" of type '" "CTable const *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTable_GetLine" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (bool)((CTable const *)arg1)->GetLine(arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTable_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:CTable_GetColumnWidth",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_GetColumnWidth" "', argument " "1"" of type '" "CTable const *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTable_GetColumnWidth" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = ((CTable const *)arg1)->GetColumnWidth(arg2); resultobj = SWIG_NewPointerObj((new CString::size_type(static_cast< const CString::size_type& >(result))), SWIGTYPE_p_CString__size_type, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTable_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTable_Clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_Clear" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); (arg1)->Clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTable_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::vector< CString,std::allocator< CString > > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:CTable_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_size" "', argument " "1"" of type '" "CTable const *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); result = ((CTable const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTable_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CTable_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_empty" "', argument " "1"" of type '" "CTable const *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); result = (bool)((CTable const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CTable, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CConfigEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfigEntry *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CConfigEntry")) SWIG_fail; result = (CConfigEntry *)new CConfigEntry(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfigEntry, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CConfigEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CConfigEntry *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CConfigEntry",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CConfig, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfig const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfig const &""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = (CConfigEntry *)new CConfigEntry((CConfig const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfigEntry, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CConfigEntry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfigEntry *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CConfigEntry *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CConfigEntry",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CConfigEntry, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfigEntry const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfigEntry const &""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); result = (CConfigEntry *)new CConfigEntry((CConfigEntry const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfigEntry, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CConfigEntry(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CConfigEntry__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CConfigEntry__SWIG_1(self, args); } } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CConfigEntry, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CConfigEntry__SWIG_2(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CConfigEntry'.\n" " Possible C/C++ prototypes are:\n" " CConfigEntry::CConfigEntry()\n" " CConfigEntry::CConfigEntry(CConfig const &)\n" " CConfigEntry::CConfigEntry(CConfigEntry const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CConfigEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfigEntry *arg1 = (CConfigEntry *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CConfigEntry",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfigEntry, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CConfigEntry" "', argument " "1"" of type '" "CConfigEntry *""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfigEntry_m_pSubConfig_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfigEntry *arg1 = (CConfigEntry *) 0 ; CConfig *arg2 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CConfigEntry_m_pSubConfig_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfigEntry, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfigEntry_m_pSubConfig_set" "', argument " "1"" of type '" "CConfigEntry *""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CConfig, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfigEntry_m_pSubConfig_set" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); if (arg1) (arg1)->m_pSubConfig = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfigEntry_m_pSubConfig_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfigEntry *arg1 = (CConfigEntry *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CConfig *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CConfigEntry_m_pSubConfig_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfigEntry, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfigEntry_m_pSubConfig_get" "', argument " "1"" of type '" "CConfigEntry *""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); result = (CConfig *) ((arg1)->m_pSubConfig); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfig, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CConfigEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CConfigEntry, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CConfig_BeginEntries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CConfig_BeginEntries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_BeginEntries" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->BeginEntries(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const CConfig::EntryMapIterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_EndEntries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::vector< CString,std::allocator< CString > > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CConfig_EndEntries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_EndEntries" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->EndEntries(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const CConfig::EntryMapIterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_BeginSubConfigs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > >,std::less< CString >,std::allocator< std::pair< CString const,std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > > > > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CConfig_BeginSubConfigs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_BeginSubConfigs" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->BeginSubConfigs(); resultobj = SWIG_NewPointerObj((new CConfig::SubConfigMapIterator(static_cast< const CConfig::SubConfigMapIterator& >(result))), SWIGTYPE_p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_EndSubConfigs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< CString,std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > >,std::less< CString >,std::allocator< std::pair< CString const,std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > > > > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CConfig_EndSubConfigs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_EndSubConfigs" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->EndSubConfigs(); resultobj = SWIG_NewPointerObj((new CConfig::SubConfigMapIterator(static_cast< const CConfig::SubConfigMapIterator& >(result))), SWIGTYPE_p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_AddKeyValuePair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_AddKeyValuePair",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_AddKeyValuePair" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_AddKeyValuePair" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddKeyValuePair" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_AddKeyValuePair" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddKeyValuePair" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddKeyValuePair((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_AddSubConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CConfig arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_AddSubConfig",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_AddSubConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_AddSubConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddSubConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_AddSubConfig" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddSubConfig" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CConfig, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CConfig_AddSubConfig" "', argument " "4"" of type '" "CConfig""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddSubConfig" "', argument " "4"" of type '" "CConfig""'"); } else { CConfig * temp = reinterpret_cast< CConfig * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } result = (bool)(arg1)->AddSubConfig((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindStringVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindStringVector",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringVector" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindStringVector" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->FindStringVector((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindStringVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindStringVector",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringVector" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); result = (bool)(arg1)->FindStringVector((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindStringVector(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindStringVector__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_FindStringVector__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindStringVector'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindStringVector(CString const &,VCString &,bool)\n" " CConfig::FindStringVector(CString const &,VCString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_FindStringEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindStringEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRes"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CConfig_FindStringEntry" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->FindStringEntry((CString const &)*arg2,*arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindStringEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindStringEntry",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRes"); } } result = (bool)(arg1)->FindStringEntry((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindStringEntry(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CConfig_FindStringEntry__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindStringEntry__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindStringEntry'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindStringEntry(CString const &,CString &,CString const &)\n" " CConfig::FindStringEntry(CString const &,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_FindBoolEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; bool *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindBoolEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindBoolEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindBoolEntry" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->FindBoolEntry((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindBoolEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; bool *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindBoolEntry",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindBoolEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); result = (bool)(arg1)->FindBoolEntry((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindBoolEntry(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_bool, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindBoolEntry__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_bool, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_FindBoolEntry__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindBoolEntry'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindBoolEntry(CString const &,bool &,bool)\n" " CConfig::FindBoolEntry(CString const &,bool &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_FindUIntEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned int *arg3 = 0 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindUIntEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUIntEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } arg3 = reinterpret_cast< unsigned int * >(argp3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindUIntEntry" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->FindUIntEntry((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindUIntEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned int *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindUIntEntry",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUIntEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } arg3 = reinterpret_cast< unsigned int * >(argp3); result = (bool)(arg1)->FindUIntEntry((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindUIntEntry(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindUIntEntry__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_FindUIntEntry__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindUIntEntry'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindUIntEntry(CString const &,unsigned int &,unsigned int)\n" " CConfig::FindUIntEntry(CString const &,unsigned int &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_FindUShortEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned short *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; unsigned short val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindUShortEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUShortEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_unsigned_short, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } arg3 = reinterpret_cast< unsigned short * >(argp3); ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindUShortEntry" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); result = (bool)(arg1)->FindUShortEntry((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindUShortEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned short *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindUShortEntry",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUShortEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_unsigned_short, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } arg3 = reinterpret_cast< unsigned short * >(argp3); result = (bool)(arg1)->FindUShortEntry((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindUShortEntry(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindUShortEntry__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_FindUShortEntry__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindUShortEntry'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindUShortEntry(CString const &,unsigned short &,unsigned short)\n" " CConfig::FindUShortEntry(CString const &,unsigned short &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_FindDoubleEntry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; double *arg3 = 0 ; double arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; double val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindDoubleEntry",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindDoubleEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_double, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } arg3 = reinterpret_cast< double * >(argp3); ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindDoubleEntry" "', argument " "4"" of type '" "double""'"); } arg4 = static_cast< double >(val4); result = (bool)(arg1)->FindDoubleEntry((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindDoubleEntry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; double *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindDoubleEntry",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindDoubleEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_double, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } arg3 = reinterpret_cast< double * >(argp3); result = (bool)(arg1)->FindDoubleEntry((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindDoubleEntry(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindDoubleEntry__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_FindDoubleEntry__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindDoubleEntry'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindDoubleEntry(CString const &,double &,double)\n" " CConfig::FindDoubleEntry(CString const &,double &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_FindSubConfig__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CConfig::SubConfig *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CConfig_FindSubConfig",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindSubConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } arg3 = reinterpret_cast< CConfig::SubConfig * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindSubConfig" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->FindSubConfig((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindSubConfig__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CConfig::SubConfig *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_FindSubConfig",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindSubConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } arg3 = reinterpret_cast< CConfig::SubConfig * >(argp3); result = (bool)(arg1)->FindSubConfig((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CConfig_FindSubConfig(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_FindSubConfig__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_FindSubConfig__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_FindSubConfig'.\n" " Possible C/C++ prototypes are:\n" " CConfig::FindSubConfig(CString const &,CConfig::SubConfig &,bool)\n" " CConfig::FindSubConfig(CString const &,CConfig::SubConfig &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CConfig_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CConfig_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_empty" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = (bool)((CConfig const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_Parse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CFile *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_Parse",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_Parse" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CFile, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_Parse" "', argument " "2"" of type '" "CFile &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Parse" "', argument " "2"" of type '" "CFile &""'"); } arg2 = reinterpret_cast< CFile * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorMsg"); } } result = (bool)(arg1)->Parse(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_Write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CFile *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CConfig_Write",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_Write" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CFile, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } arg2 = reinterpret_cast< CFile * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CConfig_Write" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); (arg1)->Write(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_Write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; CFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CConfig_Write",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_Write" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CFile, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } arg2 = reinterpret_cast< CFile * >(argp2); (arg1)->Write(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CConfig_Write(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CConfig_Write__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CConfig_Write__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CConfig_Write'.\n" " Possible C/C++ prototypes are:\n" " CConfig::Write(CFile &,unsigned int)\n" " CConfig::Write(CFile &)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_CConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CConfig")) SWIG_fail; result = (CConfig *)new CConfig(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfig, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CConfig_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CConfig, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *CS_INVALID_SOCK_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *module; PyObject *d; if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; d = PyModule_GetDict(module); if (!d) return NULL; SWIG_Python_SetConstant(d, "CS_INVALID_SOCK",SWIG_From_int(static_cast< int >(-1))); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSCharBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; size_t arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CSCharBuffer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CSCharBuffer",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSCharBuffer" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_t >(val1); result = (CSCharBuffer *)new CSCharBuffer(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSCharBuffer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CSCharBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSCharBuffer *arg1 = (CSCharBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSCharBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSCharBuffer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSCharBuffer" "', argument " "1"" of type '" "CSCharBuffer *""'"); } arg1 = reinterpret_cast< CSCharBuffer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSCharBuffer___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSCharBuffer *arg1 = (CSCharBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; char *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSCharBuffer___call__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSCharBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSCharBuffer___call__" "', argument " "1"" of type '" "CSCharBuffer *""'"); } arg1 = reinterpret_cast< CSCharBuffer * >(argp1); result = (char *)(arg1)->operator ()(); resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSCharBuffer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSCharBuffer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSSockAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CSSockAddr")) SWIG_fail; result = (CSSockAddr *)new CSSockAddr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSSockAddr, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CSSockAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSSockAddr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSSockAddr" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_SinFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSSockAddr_SinFamily",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SinFamily" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); (arg1)->SinFamily(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_SinPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSSockAddr_SinPort",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SinPort" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSSockAddr_SinPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SinPort(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_SetIPv6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSSockAddr_SetIPv6",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SetIPv6" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSSockAddr_SetIPv6" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIPv6(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_GetIPv6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSSockAddr_GetIPv6",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetIPv6" "', argument " "1"" of type '" "CSSockAddr const *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (bool)((CSSockAddr const *)arg1)->GetIPv6(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_GetSockAddrLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; socklen_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSSockAddr_GetSockAddrLen",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetSockAddrLen" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (arg1)->GetSockAddrLen(); resultobj = SWIG_NewPointerObj((new socklen_t(static_cast< const socklen_t& >(result))), SWIGTYPE_p_socklen_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_GetSockAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; sockaddr_in *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSSockAddr_GetSockAddr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetSockAddr" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (sockaddr_in *)(arg1)->GetSockAddr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sockaddr_in, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_GetAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; in_addr *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSSockAddr_GetAddr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetAddr" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (in_addr *)(arg1)->GetAddr(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_in_addr, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_SetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSSockAddr_SetAFRequire",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SetAFRequire" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSSockAddr_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSSockAddr_GetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSSockAddr::EAFRequire result; if (!PyArg_ParseTuple(args,(char *)"O:CSSockAddr_GetAFRequire",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetAFRequire" "', argument " "1"" of type '" "CSSockAddr const *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (CSSockAddr::EAFRequire)((CSSockAddr const *)arg1)->GetAFRequire(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSSockAddr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSSockAddr, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CGetAddrInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; Csock *arg2 = (Csock *) 0 ; CSSockAddr *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CGetAddrInfo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CGetAddrInfo",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CGetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CGetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CGetAddrInfo" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSSockAddr, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CGetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CGetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } arg3 = reinterpret_cast< CSSockAddr * >(argp3); result = (CGetAddrInfo *)new CGetAddrInfo((CString const &)*arg1,arg2,*arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CGetAddrInfo, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_delete_CGetAddrInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CGetAddrInfo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CGetAddrInfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CGetAddrInfo" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CGetAddrInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CGetAddrInfo_Init",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CGetAddrInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CGetAddrInfo_Init" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); (arg1)->Init(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CGetAddrInfo_Process(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:CGetAddrInfo_Process",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CGetAddrInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CGetAddrInfo_Process" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); result = (int)(arg1)->Process(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CGetAddrInfo_Finish(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:CGetAddrInfo_Finish",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CGetAddrInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CGetAddrInfo_Finish" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); result = (int)(arg1)->Finish(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CGetAddrInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CGetAddrInfo, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_GetAddrInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; Csock *arg2 = (Csock *) 0 ; CSSockAddr *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:GetAddrInfo",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetAddrInfo" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSSockAddr, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } arg3 = reinterpret_cast< CSSockAddr * >(argp3); result = (int)GetAddrInfo((CString const &)*arg1,arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_GetCsockSSLIdx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":GetCsockSSLIdx")) SWIG_fail; result = (int)GetCsockSSLIdx(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN int Swig_var_CS_BLOCKSIZE_set(PyObject *) { SWIG_Error(SWIG_AttributeError,"Variable CS_BLOCKSIZE is read-only."); return 1; } SWIGINTERN PyObject *Swig_var_CS_BLOCKSIZE_get(void) { PyObject *pyobj = 0; pyobj = SWIG_From_long(static_cast< long >(CS_BLOCKSIZE)); return pyobj; } SWIGINTERN PyObject *_wrap_InitCsocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":InitCsocket")) SWIG_fail; result = (bool)InitCsocket(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ShutdownCsocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":ShutdownCsocket")) SWIG_fail; ShutdownCsocket(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_GetSockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":GetSockError")) SWIG_fail; result = (int)GetSockError(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_TFD_ZERO(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; fd_set *arg1 = (fd_set *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:TFD_ZERO",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TFD_ZERO" "', argument " "1"" of type '" "fd_set *""'"); } arg1 = reinterpret_cast< fd_set * >(argp1); TFD_ZERO(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_TFD_SET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; cs_sock_t arg1 ; fd_set *arg2 = (fd_set *) 0 ; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:TFD_SET",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TFD_SET" "', argument " "1"" of type '" "cs_sock_t""'"); } arg1 = static_cast< cs_sock_t >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TFD_SET" "', argument " "2"" of type '" "fd_set *""'"); } arg2 = reinterpret_cast< fd_set * >(argp2); TFD_SET(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_TFD_ISSET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; cs_sock_t arg1 ; fd_set *arg2 = (fd_set *) 0 ; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:TFD_ISSET",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TFD_ISSET" "', argument " "1"" of type '" "cs_sock_t""'"); } arg1 = static_cast< cs_sock_t >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TFD_ISSET" "', argument " "2"" of type '" "fd_set *""'"); } arg2 = reinterpret_cast< fd_set * >(argp2); result = (bool)TFD_ISSET(arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_TFD_CLR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; cs_sock_t arg1 ; fd_set *arg2 = (fd_set *) 0 ; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:TFD_CLR",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TFD_CLR" "', argument " "1"" of type '" "cs_sock_t""'"); } arg1 = static_cast< cs_sock_t >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TFD_CLR" "', argument " "2"" of type '" "fd_set *""'"); } arg2 = reinterpret_cast< fd_set * >(argp2); TFD_CLR(arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap___Perror(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; char *arg2 = (char *) 0 ; uint32_t arg3 ; int res1 = SWIG_OLDOBJ ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:__Perror",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__Perror" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__Perror" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__Perror" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__Perror" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); __Perror((CString const &)*arg1,(char const *)arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_millitime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; uint64_t result; if (!PyArg_ParseTuple(args,(char *)":millitime")) SWIG_fail; result = millitime(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CCron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CCron")) SWIG_fail; result = (CCron *)new CCron(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CCron, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CCron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CCron",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CCron" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; timeval *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CCron_run",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_run" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_run" "', argument " "2"" of type '" "timeval &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_run" "', argument " "2"" of type '" "timeval &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); (arg1)->run(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_StartMaxCycles__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; double arg2 ; uint32_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CCron_StartMaxCycles",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_StartMaxCycles" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CCron_StartMaxCycles" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); (arg1)->StartMaxCycles(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_StartMaxCycles__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; timeval *arg2 = 0 ; uint32_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CCron_StartMaxCycles",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_StartMaxCycles" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_StartMaxCycles" "', argument " "2"" of type '" "timeval const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_StartMaxCycles" "', argument " "2"" of type '" "timeval const &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); (arg1)->StartMaxCycles((timeval const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_StartMaxCycles(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CCron_StartMaxCycles__SWIG_1(self, args); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CCron_StartMaxCycles__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CCron_StartMaxCycles'.\n" " Possible C/C++ prototypes are:\n" " CCron::StartMaxCycles(double,uint32_t)\n" " CCron::StartMaxCycles(timeval const &,uint32_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CCron_Start__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CCron_Start",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Start" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CCron_Start" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); (arg1)->Start(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_Start__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; timeval *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CCron_Start",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Start" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_Start" "', argument " "2"" of type '" "timeval const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_Start" "', argument " "2"" of type '" "timeval const &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); (arg1)->Start((timeval const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_Start(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CCron_Start__SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CCron_Start__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CCron_Start'.\n" " Possible C/C++ prototypes are:\n" " CCron::Start(double)\n" " CCron::Start(timeval const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CCron_Stop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CCron_Stop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Stop" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->Stop(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_Pause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CCron_Pause",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Pause" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->Pause(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_UnPause(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CCron_UnPause",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_UnPause" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->UnPause(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CCron_Reset",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Reset" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->Reset(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_GetInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; timeval result; if (!PyArg_ParseTuple(args,(char *)"O:CCron_GetInterval",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetInterval" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetInterval(); resultobj = SWIG_NewPointerObj((new timeval(static_cast< const timeval& >(result))), SWIGTYPE_p_timeval, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_GetMaxCycles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint32_t result; if (!PyArg_ParseTuple(args,(char *)"O:CCron_GetMaxCycles",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetMaxCycles" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetMaxCycles(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_GetCyclesLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint32_t result; if (!PyArg_ParseTuple(args,(char *)"O:CCron_GetCyclesLeft",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetCyclesLeft" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetCyclesLeft(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_isValid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CCron_isValid",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_isValid" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = (bool)((CCron const *)arg1)->isValid(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CCron_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetName" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = (CString *) &((CCron const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CCron_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_SetName" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CCron_GetNextRun(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; timeval result; if (!PyArg_ParseTuple(args,(char *)"O:CCron_GetNextRun",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetNextRun" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetNextRun(); resultobj = SWIG_NewPointerObj((new timeval(static_cast< const timeval& >(result))), SWIGTYPE_p_timeval, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CCron_RunJob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CCron_RunJob",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_RunJob" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->RunJob(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CCron_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CCron, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSMonitorFD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CSMonitorFD")) SWIG_fail; result = (CSMonitorFD *)new CSMonitorFD(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSMonitorFD, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CSMonitorFD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSMonitorFD",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSMonitorFD" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_GatherFDsForSelect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg2 = 0 ; long *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSMonitorFD_GatherFDsForSelect",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_long, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "3"" of type '" "long &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "3"" of type '" "long &""'"); } arg3 = reinterpret_cast< long * >(argp3); result = (bool)(arg1)->GatherFDsForSelect(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_FDsThatTriggered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CSMonitorFD_FDsThatTriggered",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp2); result = (bool)(arg1)->FDsThatTriggered((std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_CheckFDs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CSMonitorFD_CheckFDs",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_CheckFDs" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSMonitorFD_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp2); result = (bool)(arg1)->CheckFDs((std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; cs_sock_t arg2 ; short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSMonitorFD_Add",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_Add" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSMonitorFD_Add" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); ecode3 = SWIG_AsVal_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSMonitorFD_Add" "', argument " "3"" of type '" "short""'"); } arg3 = static_cast< short >(val3); (arg1)->Add(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSMonitorFD_Remove",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_Remove" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSMonitorFD_Remove" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->Remove(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_DisableMonitor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSMonitorFD_DisableMonitor",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_DisableMonitor" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); (arg1)->DisableMonitor(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSMonitorFD_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSMonitorFD_IsEnabled",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_IsEnabled" "', argument " "1"" of type '" "CSMonitorFD const *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); result = (bool)((CSMonitorFD const *)arg1)->IsEnabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSMonitorFD_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSMonitorFD, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSockCommon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CSockCommon")) SWIG_fail; result = (CSockCommon *)new CSockCommon(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockCommon, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CSockCommon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSockCommon",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSockCommon" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_CleanupCrons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSockCommon_CleanupCrons",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_CleanupCrons" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); (arg1)->CleanupCrons(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_CleanupFDMonitors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSockCommon_CleanupFDMonitors",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_CleanupFDMonitors" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); (arg1)->CleanupFDMonitors(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_GetCrons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CCron *,std::allocator< CCron * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSockCommon_GetCrons",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_GetCrons" "', argument " "1"" of type '" "CSockCommon const *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); result = (std::vector< CCron *,std::allocator< CCron * > > *) &((CSockCommon const *)arg1)->GetCrons(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_Cron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSockCommon_Cron",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_Cron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); (arg1)->Cron(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_AddCron(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; CCron *arg2 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSockCommon_AddCron",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_AddCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_AddCron" "', argument " "2"" of type '" "CCron *""'"); } arg2 = reinterpret_cast< CCron * >(argp2); (arg1)->AddCron(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_DelCron__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; CString *arg2 = 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSockCommon_DelCron",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockCommon_DelCron" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockCommon_DelCron" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->DelCron((CString const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_DelCron__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSockCommon_DelCron",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockCommon_DelCron" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->DelCron((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_DelCron__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSockCommon_DelCron",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->DelCron((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_DelCron__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSockCommon_DelCron",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->DelCron(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_DelCron(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockCommon_DelCron__SWIG_3(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockCommon_DelCron__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockCommon_DelCron__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockCommon_DelCron__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSockCommon_DelCron'.\n" " Possible C/C++ prototypes are:\n" " CSockCommon::DelCron(CString const &,bool,bool)\n" " CSockCommon::DelCron(CString const &,bool)\n" " CSockCommon::DelCron(CString const &)\n" " CSockCommon::DelCron(uint32_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSockCommon_DelCronByAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; CCron *arg2 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSockCommon_DelCronByAddr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCronByAddr" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCronByAddr" "', argument " "2"" of type '" "CCron *""'"); } arg2 = reinterpret_cast< CCron * >(argp2); (arg1)->DelCronByAddr(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_CheckFDs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSockCommon_CheckFDs",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_CheckFDs" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp2); (arg1)->CheckFDs((std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_AssignFDs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg2 = 0 ; timeval *arg3 = (timeval *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSockCommon_AssignFDs",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_AssignFDs" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_AssignFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_AssignFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockCommon_AssignFDs" "', argument " "3"" of type '" "timeval *""'"); } arg3 = reinterpret_cast< timeval * >(argp3); (arg1)->AssignFDs(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockCommon_MonitorFD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockCommon *arg1 = (CSockCommon *) 0 ; CSMonitorFD *arg2 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSockCommon_MonitorFD",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_MonitorFD" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_MonitorFD" "', argument " "2"" of type '" "CSMonitorFD *""'"); } arg2 = reinterpret_cast< CSMonitorFD * >(argp2); (arg1)->MonitorFD(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSockCommon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSockCommon, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_Csock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_Csock",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Csock" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); result = (Csock *)new Csock(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_Csock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_Csock")) SWIG_fail; result = (Csock *)new Csock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_Csock__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; uint16_t arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_Csock",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Csock" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (Csock *)new Csock((CString const &)*arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_Csock__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_Csock",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (Csock *)new Csock((CString const &)*arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_Csock(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_Csock__SWIG_1(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_Csock__SWIG_0(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_Csock__SWIG_3(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_Csock__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_Csock'.\n" " Possible C/C++ prototypes are:\n" " Csock::Csock(int)\n" " Csock::Csock()\n" " Csock::Csock(CString const &,uint16_t,int)\n" " Csock::Csock(CString const &,uint16_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetSockObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSockObj" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_Csock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_Csock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Csock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Dereference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_Dereference",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Dereference" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Dereference(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; Csock *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_Copy",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Copy" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_Csock, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Copy" "', argument " "2"" of type '" "Csock const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Copy" "', argument " "2"" of type '" "Csock const &""'"); } arg2 = reinterpret_cast< Csock * >(argp2); (arg1)->Copy((Csock const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (Csock *) &(arg1)->operator <<((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; std::ostream &(*arg2)(std::ostream &) = (std::ostream &(*)(std::ostream &)) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_r_std__ostream__r_std__ostream); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "std::ostream &(*)(std::ostream &)""'"); } } result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_int32_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int32_t""'"); } else { int32_t * temp = reinterpret_cast< int32_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_int64_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int64_t""'"); } else { int64_t * temp = reinterpret_cast< int64_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_float(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift____SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock___lshift__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); result = (Csock *) &(arg1)->operator <<(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock___lshift__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_r_std__ostream__r_std__ostream); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock___lshift____SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_int32_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock___lshift____SWIG_2(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_int64_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock___lshift____SWIG_4(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock___lshift____SWIG_3(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock___lshift____SWIG_5(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_float(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock___lshift____SWIG_6(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_double(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock___lshift____SWIG_7(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock___lshift____SWIG_0(self, args); } } } fail: Py_INCREF(Py_NotImplemented); return Py_NotImplemented; } SWIGINTERN PyObject *_wrap_Csock_Connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_Connect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Connect" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->Connect(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:Csock_Listen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Csock_Listen" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:Csock_Listen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listen__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:Csock_Listen",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listen__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_Listen",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->Listen(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listen__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_Listen",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (bool)(arg1)->Listen(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listen(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_Listen__SWIG_4(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_Listen__SWIG_3(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_Listen__SWIG_2(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_Listen__SWIG_1(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_Listen__SWIG_0(self, args); } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_Listen'.\n" " Possible C/C++ prototypes are:\n" " Csock::Listen(uint16_t,int,CString const &,uint32_t,bool)\n" " Csock::Listen(uint16_t,int,CString const &,uint32_t)\n" " Csock::Listen(uint16_t,int,CString const &)\n" " Csock::Listen(uint16_t,int)\n" " Csock::Listen(uint16_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_Accept(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; cs_sock_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_Accept",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Accept" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sHost"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_Accept" "', argument " "3"" of type '" "uint16_t &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Accept" "', argument " "3"" of type '" "uint16_t &""'"); } arg3 = reinterpret_cast< uint16_t * >(argp3); result = (cs_sock_t)(arg1)->Accept(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_AcceptSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_AcceptSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_AcceptSSL" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->AcceptSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SSLClientSetup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_SSLClientSetup",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SSLClientSetup" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->SSLClientSetup(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SSLServerSetup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_SSLServerSetup",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SSLServerSetup" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->SSLServerSetup(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ConnectSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectSSL" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->ConnectSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_StartTLS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_StartTLS",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_StartTLS" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->StartTLS(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_Write",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Write" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Write" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Write" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->Write((char const *)arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_Write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_Write",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Write" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Write" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Write" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Write((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_Write(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_Write__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_Write__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_Write'.\n" " Possible C/C++ prototypes are:\n" " Csock::Write(char const *,size_t)\n" " Csock::Write(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_Read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; cs_ssize_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_Read",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Read" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Read" "', argument " "2"" of type '" "char *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Read" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (arg1)->Read(arg2,arg3); resultobj = SWIG_NewPointerObj((new cs_ssize_t(static_cast< const cs_ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetLocalIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetLocalIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetLocalIP" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetLocalIP(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetRemoteIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetRemoteIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRemoteIP" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRemoteIP(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_IsConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_IsConnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_IsConnected" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->IsConnected(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetIsConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetIsConnected",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetIsConnected" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetIsConnected" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsConnected(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetRSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; cs_sock_t *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetRSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &(arg1)->GetRSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetRSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; cs_sock_t *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetRSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRSock" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &((Csock const *)arg1)->GetRSock(); resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetRSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetRSock__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetRSock__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetRSock'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetRSock()\n" " Csock::GetRSock() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_SetRSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetRSock",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetRSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetRSock" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->SetRSock(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetWSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; cs_sock_t *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetWSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetWSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &(arg1)->GetWSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetWSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; cs_sock_t *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetWSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetWSock" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &((Csock const *)arg1)->GetWSock(); resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetWSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetWSock__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetWSock__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetWSock'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetWSock()\n" " Csock::GetWSock() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_SetWSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetWSock",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetWSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetWSock" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->SetWSock(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetSock",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetSock" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->SetSock(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; cs_sock_t *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &(arg1)->GetSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; cs_sock_t *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSock" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &((Csock const *)arg1)->GetSock(); resultobj = SWIG_From_int(static_cast< int >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetSock__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetSock__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetSock'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetSock()\n" " Csock::GetSock() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_CallSockError__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_CallSockError",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CallSockError" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_CallSockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_CallSockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_CallSockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->CallSockError(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_Csock_CallSockError__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_CallSockError",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CallSockError" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_CallSockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->CallSockError(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_CallSockError(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_CallSockError__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_CallSockError__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_CallSockError'.\n" " Possible C/C++ prototypes are:\n" " Csock::CallSockError(int,CString const &)\n" " Csock::CallSockError(int)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_ResetTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ResetTimer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetTimer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetTimer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_PauseRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_PauseRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_PauseRead" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->PauseRead(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_UnPauseRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_UnPauseRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_UnPauseRead" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->UnPauseRead(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_IsReadPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_IsReadPaused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_IsReadPaused" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->IsReadPaused(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetTimeout__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; uint32_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_SetTimeout",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetTimeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetTimeout" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_SetTimeout" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); (arg1)->SetTimeout(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetTimeout__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetTimeout",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetTimeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetTimeout" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetTimeout(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetTimeout(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_SetTimeout__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_SetTimeout__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_SetTimeout'.\n" " Possible C/C++ prototypes are:\n" " Csock::SetTimeout(int,uint32_t)\n" " Csock::SetTimeout(int)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_SetTimeoutType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetTimeoutType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetTimeoutType" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetTimeoutType" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->SetTimeoutType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetTimeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetTimeout(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetTimeoutType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint32_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetTimeoutType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeoutType" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetTimeoutType(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_CheckTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; time_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_CheckTimeout",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CheckTimeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_CheckTimeout" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_CheckTimeout" "', argument " "2"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (bool)(arg1)->CheckTimeout(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_PushBuff__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:Csock_PushBuff",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_PushBuff" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_PushBuff" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_PushBuff" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Csock_PushBuff" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->PushBuff((char const *)arg2,arg3,arg4); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_PushBuff__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_PushBuff",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_PushBuff" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_PushBuff" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_PushBuff" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->PushBuff((char const *)arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_PushBuff(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_PushBuff__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_PushBuff__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_PushBuff'.\n" " Possible C/C++ prototypes are:\n" " Csock::PushBuff(char const *,size_t,bool)\n" " Csock::PushBuff(char const *,size_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetInternalReadBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetInternalReadBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetInternalReadBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetInternalReadBuffer(); { if (result) { resultobj = CPyRetString::wrap(*result); } else { resultobj = Py_None; Py_INCREF(Py_None); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetInternalWriteBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetInternalWriteBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetInternalWriteBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetInternalWriteBuffer(); { if (result) { resultobj = CPyRetString::wrap(*result); } else { resultobj = Py_None; Py_INCREF(Py_None); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetMaxBufferThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetMaxBufferThreshold",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetMaxBufferThreshold" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetMaxBufferThreshold" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->SetMaxBufferThreshold(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetMaxBufferThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint32_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetMaxBufferThreshold",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetMaxBufferThreshold" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetMaxBufferThreshold(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetType" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetType" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetType" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetSockName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSockName" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetSockName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetSockName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSockName" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSockName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetHostName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetHostName" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetHostName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetHostName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetHostName" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetHostName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetHostName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHostName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetStartTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetStartTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetStartTime" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetStartTime(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ResetStartTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ResetStartTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetStartTime" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetStartTime(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetBytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetBytesRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetBytesRead" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetBytesRead(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ResetBytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ResetBytesRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetBytesRead" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetBytesRead(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetBytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetBytesWritten",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetBytesWritten" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetBytesWritten(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ResetBytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ResetBytesWritten",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetBytesWritten" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetBytesWritten(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetAvgRead__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_GetAvgRead",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgRead" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_GetAvgRead" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); result = (double)((Csock const *)arg1)->GetAvgRead(arg2); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetAvgRead__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetAvgRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgRead" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)((Csock const *)arg1)->GetAvgRead(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetAvgRead(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetAvgRead__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_GetAvgRead__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetAvgRead'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetAvgRead(uint64_t) const\n" " Csock::GetAvgRead() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetAvgWrite__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_GetAvgWrite",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgWrite" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_GetAvgWrite" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); result = (double)((Csock const *)arg1)->GetAvgWrite(arg2); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetAvgWrite__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetAvgWrite",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgWrite" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)((Csock const *)arg1)->GetAvgWrite(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetAvgWrite(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetAvgWrite__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_GetAvgWrite__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetAvgWrite'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetAvgWrite(uint64_t) const\n" " Csock::GetAvgWrite() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetRemotePort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint16_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetRemotePort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRemotePort" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRemotePort(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetLocalPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint16_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetLocalPort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetLocalPort" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetLocalPort(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint16_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetPort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetPort" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetPort(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetPort",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetPort" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SetPort(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Close__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; Csock::ECloseType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_Close",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Close" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Close" "', argument " "2"" of type '" "Csock::ECloseType""'"); } arg2 = static_cast< Csock::ECloseType >(val2); (arg1)->Close(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Close__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_Close",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Close" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Close(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_Close__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_Close__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_Close'.\n" " Possible C/C++ prototypes are:\n" " Csock::Close(Csock::ECloseType)\n" " Csock::Close()\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetCloseType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Csock::ECloseType result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetCloseType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetCloseType" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (Csock::ECloseType)((Csock const *)arg1)->GetCloseType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_IsClosed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_IsClosed",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_IsClosed" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->IsClosed(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_NonBlockingIO(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_NonBlockingIO",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_NonBlockingIO" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->NonBlockingIO(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSSL" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->GetSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetSSL",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSSL" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetSSL" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetSSL(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_HasWriteBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_HasWriteBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_HasWriteBuffer" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->HasWriteBuffer(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ClearWriteBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ClearWriteBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ClearWriteBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ClearWriteBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SslIsEstablished(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_SslIsEstablished",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SslIsEstablished" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->SslIsEstablished(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectInetd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; bool arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_ConnectInetd",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectInetd" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectInetd" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_ConnectInetd" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectInetd" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ConnectInetd(arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectInetd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_ConnectInetd",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectInetd" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectInetd" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)(arg1)->ConnectInetd(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectInetd__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ConnectInetd",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectInetd" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->ConnectInetd(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectInetd(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_ConnectInetd__SWIG_2(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_ConnectInetd__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_ConnectInetd__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_ConnectInetd'.\n" " Possible C/C++ prototypes are:\n" " Csock::ConnectInetd(bool,CString const &)\n" " Csock::ConnectInetd(bool)\n" " Csock::ConnectInetd()\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_ConnectFD__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; int arg3 ; CString *arg4 = 0 ; bool arg5 ; Csock::ETConn arg6 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:Csock_ConnectFD",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectFD" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectFD" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_ConnectFD" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Csock_ConnectFD" "', argument " "6"" of type '" "Csock::ETConn""'"); } arg6 = static_cast< Csock::ETConn >(val6); result = (bool)(arg1)->ConnectFD(arg2,arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectFD__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; int arg3 ; CString *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:Csock_ConnectFD",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectFD" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectFD" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_ConnectFD" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->ConnectFD(arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectFD__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; int arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:Csock_ConnectFD",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectFD" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectFD" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->ConnectFD(arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectFD(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_ConnectFD__SWIG_2(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_ConnectFD__SWIG_1(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_Csock_ConnectFD__SWIG_0(self, args); } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_ConnectFD'.\n" " Possible C/C++ prototypes are:\n" " Csock::ConnectFD(int,int,CString const &,bool,Csock::ETConn)\n" " Csock::ConnectFD(int,int,CString const &,bool)\n" " Csock::ConnectFD(int,int,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_SetParentSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetParentSockName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetParentSockName" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetParentSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetParentSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetParentSockName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetParentSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetParentSockName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetParentSockName" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetParentSockName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; uint64_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_SetRate",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetRate" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetRate" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_SetRate" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = static_cast< uint64_t >(val3); (arg1)->SetRate(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetRateBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint32_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetRateBytes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRateBytes" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRateBytes(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetRateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetRateTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRateTime" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRateTime(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Connected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_Connected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Connected" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Connected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Disconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_Disconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Disconnected" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Disconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_Timeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_Timeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Timeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Timeout(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ReadData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_ReadData",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReadData" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ReadData" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ReadData" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->ReadData((char const *)arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReadLine" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_EnableReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_EnableReadLine",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_EnableReadLine" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->EnableReadLine(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_DisableReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_DisableReadLine",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_DisableReadLine" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->DisableReadLine(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_HasReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_HasReadLine",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_HasReadLine" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->HasReadLine(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ReachedMaxBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ReachedMaxBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReachedMaxBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ReachedMaxBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_SockError",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SockError" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectionFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_ConnectionFrom",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectionFrom" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectionFrom" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_Listening(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_Listening",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listening" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listening" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listening" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listening" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); (arg1)->Listening((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConnectionRefused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ConnectionRefused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectionRefused" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ConnectionRefused(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_ReadPaused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_ReadPaused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReadPaused" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ReadPaused(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; time_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_GetTimeSinceLastDataTransaction",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "2"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = ((Csock const *)arg1)->GetTimeSinceLastDataTransaction(arg2); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetTimeSinceLastDataTransaction",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetTimeSinceLastDataTransaction(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetTimeSinceLastDataTransaction(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetTimeSinceLastDataTransaction'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetTimeSinceLastDataTransaction(time_t) const\n" " Csock::GetTimeSinceLastDataTransaction() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetLastCheckTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetLastCheckTimeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetLastCheckTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetLastCheckTimeout(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetNextCheckTimeout__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; time_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_GetNextCheckTimeout",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetNextCheckTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetNextCheckTimeout" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetNextCheckTimeout" "', argument " "2"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = ((Csock const *)arg1)->GetNextCheckTimeout(arg2); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetNextCheckTimeout__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetNextCheckTimeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetNextCheckTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetNextCheckTimeout(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetNextCheckTimeout(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetNextCheckTimeout__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_Csock_GetNextCheckTimeout__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'Csock_GetNextCheckTimeout'.\n" " Possible C/C++ prototypes are:\n" " Csock::GetNextCheckTimeout(time_t) const\n" " Csock::GetNextCheckTimeout() const\n"); return 0; } SWIGINTERN PyObject *_wrap_Csock_GetPending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetPending",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetPending" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetPending(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetConState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Csock::ECONState result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetConState",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetConState" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (Csock::ECONState)((Csock const *)arg1)->GetConState(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetConState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; Csock::ECONState arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetConState",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetConState" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetConState" "', argument " "2"" of type '" "Csock::ECONState""'"); } arg2 = static_cast< Csock::ECONState >(val2); (arg1)->SetConState(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_CreateSocksFD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_CreateSocksFD",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CreateSocksFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->CreateSocksFD(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_CloseSocksFD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_CloseSocksFD",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CloseSocksFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->CloseSocksFD(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetBindHost" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetBindHost" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_DNSLookup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; Csock::EDNSLType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_DNSLookup",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_DNSLookup" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_DNSLookup" "', argument " "2"" of type '" "Csock::EDNSLType""'"); } arg2 = static_cast< Csock::EDNSLType >(val2); result = (int)(arg1)->DNSLookup(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetupVHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_SetupVHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetupVHost" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->SetupVHost(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetIPv6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetIPv6",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetIPv6" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->GetIPv6(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetIPv6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetIPv6",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetIPv6" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetIPv6" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIPv6(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetAFRequire",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetAFRequire" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_AllowWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; uint64_t *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_AllowWrite",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_AllowWrite" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_AllowWrite" "', argument " "2"" of type '" "uint64_t &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_AllowWrite" "', argument " "2"" of type '" "uint64_t &""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (bool)((Csock const *)arg1)->AllowWrite(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_SetSkipConnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_SetSkipConnect",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSkipConnect" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetSkipConnect" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetSkipConnect(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetAddrInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; CSSockAddr *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOO:Csock_GetAddrInfo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAddrInfo" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetAddrInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAddrInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CSSockAddr, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } arg3 = reinterpret_cast< CSSockAddr * >(argp3); result = (int)(arg1)->GetAddrInfo((CString const &)*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_Csock_ConvertAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; sockaddr_storage *arg2 = (sockaddr_storage *) 0 ; socklen_t arg3 ; CString *arg4 = 0 ; uint16_t *arg5 = (uint16_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:Csock_ConvertAddress",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConvertAddress" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_sockaddr_storage, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ConvertAddress" "', argument " "2"" of type '" "sockaddr_storage const *""'"); } arg2 = reinterpret_cast< sockaddr_storage * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_socklen_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } else { socklen_t * temp = reinterpret_cast< socklen_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sIP"); } } res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_uint16_t, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Csock_ConvertAddress" "', argument " "5"" of type '" "uint16_t *""'"); } arg5 = reinterpret_cast< uint16_t * >(argp5); result = (int)((Csock const *)arg1)->ConvertAddress((sockaddr_storage const *)arg2,arg3,*arg4,arg5); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_GetMaxConns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:Csock_GetMaxConns",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetMaxConns" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetMaxConns(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_Csock_WriteBytes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; Csock *arg1 = (Csock *) 0 ; PyObject *arg2 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:Csock_WriteBytes",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_WriteBytes" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); arg2 = obj1; result = (PyObject *)Csock_WriteBytes(arg1,arg2); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *Csock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_Csock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSConnection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; uint16_t arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CSConnection *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CSConnection",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSConnection" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (CSConnection *)new CSConnection((CString const &)*arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSConnection, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CSConnection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CSConnection *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CSConnection",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (CSConnection *)new CSConnection((CString const &)*arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSConnection, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CSConnection(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSConnection__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSConnection__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CSConnection'.\n" " Possible C/C++ prototypes are:\n" " CSConnection::CSConnection(CString const &,uint16_t,int)\n" " CSConnection::CSConnection(CString const &,uint16_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CSConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSConnection",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSConnection" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetHostname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetHostname",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetHostname" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CString *) &((CSConnection const *)arg1)->GetHostname(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetSockName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetSockName" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CString *) &((CSConnection const *)arg1)->GetSockName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetBindHost" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CString *) &((CSConnection const *)arg1)->GetBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint16_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetPort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetPort" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = ((CSConnection const *)arg1)->GetPort(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetTimeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetTimeout" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (int)((CSConnection const *)arg1)->GetTimeout(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetIsSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetIsSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetIsSSL" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (bool)((CSConnection const *)arg1)->GetIsSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_GetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSSockAddr::EAFRequire result; if (!PyArg_ParseTuple(args,(char *)"O:CSConnection_GetAFRequire",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetAFRequire" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CSSockAddr::EAFRequire)((CSConnection const *)arg1)->GetAFRequire(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetHostname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetHostname",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetHostname" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetHostname" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetHostname" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHostname((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetSockName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetSockName" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSockName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetBindHost" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetPort",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetPort" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SetPort(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetTimeout",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetTimeout" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetTimeout" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetTimeout(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetIsSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetIsSSL",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetIsSSL" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetIsSSL" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsSSL(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSConnection_SetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSConnection *arg1 = (CSConnection *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSConnection_SetAFRequire",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetAFRequire" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSConnection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSConnection, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSSSLConnection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; uint16_t arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CSSSLConnection *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CSSSLConnection",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSSSLConnection" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (CSSSLConnection *)new CSSSLConnection((CString const &)*arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSSSLConnection, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CSSSLConnection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CSSSLConnection *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CSSSLConnection",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (CSSSLConnection *)new CSSSLConnection((CString const &)*arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSSSLConnection, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CSSSLConnection(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSSSLConnection__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSSSLConnection__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CSSSLConnection'.\n" " Possible C/C++ prototypes are:\n" " CSSSLConnection::CSSSLConnection(CString const &,uint16_t,int)\n" " CSSSLConnection::CSSSLConnection(CString const &,uint16_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CSSSLConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSSSLConnection *arg1 = (CSSSLConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSSSLConnection",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSSSLConnection, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSSSLConnection" "', argument " "1"" of type '" "CSSSLConnection *""'"); } arg1 = reinterpret_cast< CSSSLConnection * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSSSLConnection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSSSLConnection, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSListener__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; uint16_t arg1 ; CString *arg2 = 0 ; bool arg3 ; long val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CSListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CSListener",&obj0,&obj1,&obj2)) SWIG_fail; ecode1 = SWIG_AsVal_long(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } arg1 = static_cast< uint16_t >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSListener" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (CSListener *)new CSListener(arg1,(CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSListener, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CSListener__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; uint16_t arg1 ; CString *arg2 = 0 ; long val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CSListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CSListener",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_long(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } arg1 = static_cast< uint16_t >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CSListener *)new CSListener(arg1,(CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSListener, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CSListener__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; uint16_t arg1 ; long val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CSListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CSListener",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_long(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } arg1 = static_cast< uint16_t >(val1); result = (CSListener *)new CSListener(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSListener, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CSListener(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; { int res = SWIG_AsVal_long(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSListener__SWIG_2(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_long(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CSListener__SWIG_1(self, args); } } } if (argc == 3) { int _v; { int res = SWIG_AsVal_long(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSListener__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CSListener'.\n" " Possible C/C++ prototypes are:\n" " CSListener::CSListener(uint16_t,CString const &,bool)\n" " CSListener::CSListener(uint16_t,CString const &)\n" " CSListener::CSListener(uint16_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CSListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSListener",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSListener" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetDetach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetDetach",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetDetach" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetDetach" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDetach(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetDetach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetDetach",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetDetach" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (bool)((CSListener const *)arg1)->GetDetach(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint16_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetPort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetPort" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = ((CSListener const *)arg1)->GetPort(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetSockName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetSockName" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (CString *) &((CSListener const *)arg1)->GetSockName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetBindHost" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (CString *) &((CSListener const *)arg1)->GetBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetIsSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetIsSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetIsSSL" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (bool)((CSListener const *)arg1)->GetIsSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetMaxConns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetMaxConns",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetMaxConns" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (int)((CSListener const *)arg1)->GetMaxConns(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint32_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetTimeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetTimeout" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = ((CSListener const *)arg1)->GetTimeout(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_GetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSSockAddr::EAFRequire result; if (!PyArg_ParseTuple(args,(char *)"O:CSListener_GetAFRequire",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetAFRequire" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (CSSockAddr::EAFRequire)((CSListener const *)arg1)->GetAFRequire(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetPort",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetPort" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SetPort(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetSockName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetSockName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetSockName" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSockName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetBindHost" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetIsSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetIsSSL",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetIsSSL" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetIsSSL" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsSSL(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetMaxConns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetMaxConns",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetMaxConns" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetMaxConns" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetMaxConns(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetTimeout",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetTimeout" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetTimeout" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->SetTimeout(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSListener_SetAFRequire(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSListener *arg1 = (CSListener *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSListener_SetAFRequire",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetAFRequire" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSListener_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSListener, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSocketManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CSocketManager")) SWIG_fail; result = (CSocketManager *)new CSocketManager(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocketManager, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CSocketManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSocketManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSocketManager" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_clear" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Cleanup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_Cleanup",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Cleanup" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); (arg1)->Cleanup(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetSockObj__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocketManager_GetSockObj",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetSockObj" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocketManager_GetSockObj" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetSockObj__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetSockObj" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetSockObj(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocketManager_GetSockObj__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocketManager_GetSockObj__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSocketManager_GetSockObj'.\n" " Possible C/C++ prototypes are:\n" " CSocketManager::GetSockObj(CString const &,uint16_t,int)\n" " CSocketManager::GetSockObj(CString const &,uint16_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSocketManager_Connect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CSConnection *arg2 = 0 ; Csock *arg3 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_Connect",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Connect" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSConnection, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } arg2 = reinterpret_cast< CSConnection * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_Connect" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); (arg1)->Connect((CSConnection const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Connect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CSConnection *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_Connect",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Connect" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSConnection, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } arg2 = reinterpret_cast< CSConnection * >(argp2); (arg1)->Connect((CSConnection const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Connect(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CSConnection, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocketManager_Connect__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CSConnection, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocketManager_Connect__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSocketManager_Connect'.\n" " Possible C/C++ prototypes are:\n" " CSocketManager::Connect(CSConnection const &,Csock *)\n" " CSocketManager::Connect(CSConnection const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSocketManager_Listen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CSListener *arg2 = 0 ; Csock *arg3 = (Csock *) 0 ; uint16_t *arg4 = (uint16_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocketManager_Listen",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Listen" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSListener, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } arg2 = reinterpret_cast< CSListener * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_Listen" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_uint16_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocketManager_Listen" "', argument " "4"" of type '" "uint16_t *""'"); } arg4 = reinterpret_cast< uint16_t * >(argp4); result = (bool)(arg1)->Listen((CSListener const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Listen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CSListener *arg2 = 0 ; Csock *arg3 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_Listen",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Listen" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSListener, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } arg2 = reinterpret_cast< CSListener * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_Listen" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); result = (bool)(arg1)->Listen((CSListener const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Listen__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CSListener *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_Listen",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Listen" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CSListener, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } arg2 = reinterpret_cast< CSListener * >(argp2); result = (bool)(arg1)->Listen((CSListener const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Listen(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CSListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocketManager_Listen__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CSListener, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocketManager_Listen__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CSListener, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocketManager_Listen__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSocketManager_Listen'.\n" " Possible C/C++ prototypes are:\n" " CSocketManager::Listen(CSListener const &,Csock *,uint16_t *)\n" " CSocketManager::Listen(CSListener const &,Csock *)\n" " CSocketManager::Listen(CSListener const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSocketManager_HasFDs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_HasFDs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_HasFDs" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (bool)((CSocketManager const *)arg1)->HasFDs(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_Loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_Loop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Loop" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); (arg1)->Loop(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_DynamicSelectLoop__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; uint64_t arg3 ; time_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocketManager_DynamicSelectLoop",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = static_cast< uint64_t >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "4"" of type '" "time_t""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "4"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } (arg1)->DynamicSelectLoop(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_DynamicSelectLoop__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; uint64_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_DynamicSelectLoop",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = static_cast< uint64_t >(val3); (arg1)->DynamicSelectLoop(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_DynamicSelectLoop(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocketManager_DynamicSelectLoop__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocketManager_DynamicSelectLoop__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSocketManager_DynamicSelectLoop'.\n" " Possible C/C++ prototypes are:\n" " CSocketManager::DynamicSelectLoop(uint64_t,uint64_t,time_t)\n" " CSocketManager::DynamicSelectLoop(uint64_t,uint64_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSocketManager_AddSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_AddSock",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_AddSock" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_AddSock" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_AddSock" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_AddSock" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddSock(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FindSockByRemotePort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_FindSockByRemotePort",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (Csock *)(arg1)->FindSockByRemotePort(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FindSockByLocalPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_FindSockByLocalPort",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (Csock *)(arg1)->FindSockByLocalPort(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FindSockByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_FindSockByName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByName" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSockByName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSockByName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (Csock *)(arg1)->FindSockByName((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FindSockByFD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_FindSockByFD",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByFD" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FindSockByFD" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); result = (Csock *)(arg1)->FindSockByFD(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FindSocksByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< Csock *,std::allocator< Csock * > > > result; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_FindSocksByName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSocksByName" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSocksByName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSocksByName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->FindSocksByName((CString const &)*arg2); resultobj = SWIG_NewPointerObj((new std::vector< Csock *,std::allocator< Csock * > >(static_cast< const std::vector< Csock *,std::allocator< Csock * > >& >(result))), SWIGTYPE_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FindSocksByRemoteHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< Csock *,std::allocator< Csock * > > > result; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_FindSocksByRemoteHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSocksByRemoteHost" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSocksByRemoteHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSocksByRemoteHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->FindSocksByRemoteHost((CString const &)*arg2); resultobj = SWIG_NewPointerObj((new std::vector< Csock *,std::allocator< Csock * > >(static_cast< const std::vector< Csock *,std::allocator< Csock * > >& >(result))), SWIGTYPE_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetErrno(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_GetErrno",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetErrno" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (int)((CSocketManager const *)arg1)->GetErrno(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetSelectTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_GetSelectTimeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetSelectTimeout" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = ((CSocketManager const *)arg1)->GetSelectTimeout(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_SetSelectTimeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_SetSelectTimeout",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_SetSelectTimeout" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_SetSelectTimeout" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); (arg1)->SetSelectTimeout(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_DelSockByAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_DelSockByAddr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DelSockByAddr" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_DelSockByAddr" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); (arg1)->DelSockByAddr(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_DelSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CSocketManager_DelSock",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DelSock" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_DelSock" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); (arg1)->DelSock(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_SwapSockByIdx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_SwapSockByIdx",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_SwapSockByIdx" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_SwapSockByIdx" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_SwapSockByIdx" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->SwapSockByIdx(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_SwapSockByAddr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; Csock *arg3 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocketManager_SwapSockByAddr",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_SwapSockByAddr" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_SwapSockByAddr" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_SwapSockByAddr" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); result = (bool)(arg1)->SwapSockByAddr(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetBytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_GetBytesRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetBytesRead" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = ((CSocketManager const *)arg1)->GetBytesRead(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_GetBytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uint64_t result; if (!PyArg_ParseTuple(args,(char *)"O:CSocketManager_GetBytesWritten",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetBytesWritten" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = ((CSocketManager const *)arg1)->GetBytesWritten(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FDSetCheck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; cs_sock_t arg2 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg3 = 0 ; CSocketManager::ECheckType arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocketManager_FDSetCheck",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FDSetCheck" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FDSetCheck" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_FDSetCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDSetCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } arg3 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocketManager_FDSetCheck" "', argument " "4"" of type '" "CSocketManager::ECheckType""'"); } arg4 = static_cast< CSocketManager::ECheckType >(val4); (arg1)->FDSetCheck(arg2,*arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocketManager_FDHasCheck(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocketManager *arg1 = (CSocketManager *) 0 ; cs_sock_t arg2 ; std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *arg3 = 0 ; CSocketManager::ECheckType arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocketManager_FDHasCheck",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FDHasCheck" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FDHasCheck" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_FDHasCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDHasCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > &""'"); } arg3 = reinterpret_cast< std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > * >(argp3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocketManager_FDHasCheck" "', argument " "4"" of type '" "CSocketManager::ECheckType""'"); } arg4 = static_cast< CSocketManager::ECheckType >(val4); result = (bool)(arg1)->FDHasCheck(arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSocketManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSocketManager, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_ZNCSocketManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; TSocketManager< CZNCSock > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_ZNCSocketManager")) SWIG_fail; result = (TSocketManager< CZNCSock > *)new TSocketManager< CZNCSock >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TSocketManagerT_CZNCSock_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_ZNCSocketManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; TSocketManager< CZNCSock > *arg1 = (TSocketManager< CZNCSock > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_ZNCSocketManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TSocketManagerT_CZNCSock_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZNCSocketManager" "', argument " "1"" of type '" "TSocketManager< CZNCSock > *""'"); } arg1 = reinterpret_cast< TSocketManager< CZNCSock > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_ZNCSocketManager_GetSockObj__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; TSocketManager< CZNCSock > *arg1 = (TSocketManager< CZNCSock > *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CZNCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:ZNCSocketManager_GetSockObj",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "1"" of type '" "TSocketManager< CZNCSock > *""'"); } arg1 = reinterpret_cast< TSocketManager< CZNCSock > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (CZNCSock *)(arg1)->GetSockObj((CString const &)*arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ZNCSocketManager_GetSockObj__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; TSocketManager< CZNCSock > *arg1 = (TSocketManager< CZNCSock > *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CZNCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:ZNCSocketManager_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "1"" of type '" "TSocketManager< CZNCSock > *""'"); } arg1 = reinterpret_cast< TSocketManager< CZNCSock > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (CZNCSock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_ZNCSocketManager_GetSockObj(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ZNCSocketManager_GetSockObj__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_ZNCSocketManager_GetSockObj__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'ZNCSocketManager_GetSockObj'.\n" " Possible C/C++ prototypes are:\n" " TSocketManager< CZNCSock >::GetSockObj(CString const &,uint16_t,int)\n" " TSocketManager< CZNCSock >::GetSockObj(CString const &,uint16_t)\n"); return 0; } SWIGINTERN PyObject *ZNCSocketManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_TSocketManagerT_CZNCSock_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CZNCSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CZNCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CZNCSock",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CZNCSock" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); result = (CZNCSock *)new CZNCSock(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CZNCSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CZNCSock")) SWIG_fail; result = (CZNCSock *)new CZNCSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CZNCSock__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned short arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CZNCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CZNCSock",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CZNCSock" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CZNCSock" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (CZNCSock *)new CZNCSock((CString const &)*arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CZNCSock__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned short arg2 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CZNCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CZNCSock",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CZNCSock" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); result = (CZNCSock *)new CZNCSock((CString const &)*arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CZNCSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CZNCSock__SWIG_1(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CZNCSock__SWIG_0(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CZNCSock__SWIG_3(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CZNCSock__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CZNCSock'.\n" " Possible C/C++ prototypes are:\n" " CZNCSock::CZNCSock(int)\n" " CZNCSock::CZNCSock()\n" " CZNCSock::CZNCSock(CString const &,unsigned short,int)\n" " CZNCSock::CZNCSock(CString const &,unsigned short)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CZNCSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CZNCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZNCSock" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNCSock_ConvertAddress(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; sockaddr_storage *arg2 = (sockaddr_storage *) 0 ; socklen_t arg3 ; CString *arg4 = 0 ; unsigned short *arg5 = (unsigned short *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CZNCSock_ConvertAddress",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_ConvertAddress" "', argument " "1"" of type '" "CZNCSock const *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_sockaddr_storage, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_ConvertAddress" "', argument " "2"" of type '" "sockaddr_storage const *""'"); } arg2 = reinterpret_cast< sockaddr_storage * >(argp2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_socklen_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNCSock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } else { socklen_t * temp = reinterpret_cast< socklen_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sIP"); } } res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CZNCSock_ConvertAddress" "', argument " "5"" of type '" "unsigned short *""'"); } arg5 = reinterpret_cast< unsigned short * >(argp5); result = (int)((CZNCSock const *)arg1)->ConvertAddress((sockaddr_storage const *)arg2,arg3,*arg4,arg5); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNCSock_SetHostToVerifySSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNCSock_SetHostToVerifySSL",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_SetHostToVerifySSL" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_SetHostToVerifySSL" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_SetHostToVerifySSL" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHostToVerifySSL((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNCSock_GetSSLPeerFingerprint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNCSock_GetSSLPeerFingerprint",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_GetSSLPeerFingerprint" "', argument " "1"" of type '" "CZNCSock const *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); result = ((CZNCSock const *)arg1)->GetSSLPeerFingerprint(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNCSock_SetSSLTrustedPeerFingerprints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; SCString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNCSock_SetSSLTrustedPeerFingerprints",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_SetSSLTrustedPeerFingerprints" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); { std::set,std::allocator< CString > > *ptr = (std::set,std::allocator< CString > > *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_SetSSLTrustedPeerFingerprints" "', argument " "2"" of type '" "SCString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_SetSSLTrustedPeerFingerprints" "', argument " "2"" of type '" "SCString const &""'"); } arg2 = ptr; } (arg1)->SetSSLTrustedPeerFingerprints((SCString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNCSock_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNCSock_SetEncoding",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_SetEncoding" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetEncoding((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNCSock_GetRemoteIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCSock *arg1 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNCSock_GetRemoteIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_GetRemoteIP" "', argument " "1"" of type '" "CZNCSock const *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); result = ((CZNCSock const *)arg1)->GetRemoteIP(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CZNCSock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CZNCSock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *ADDR_IPV4ONLY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *module; PyObject *d; if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; d = PyModule_GetDict(module); if (!d) return NULL; SWIG_Python_SetConstant(d, "ADDR_IPV4ONLY",SWIG_From_int(static_cast< int >(ADDR_IPV4ONLY))); return SWIG_Py_Void(); } SWIGINTERN PyObject *ADDR_IPV6ONLY_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *module; PyObject *d; if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; d = PyModule_GetDict(module); if (!d) return NULL; SWIG_Python_SetConstant(d, "ADDR_IPV6ONLY",SWIG_From_int(static_cast< int >(ADDR_IPV6ONLY))); return SWIG_Py_Void(); } SWIGINTERN PyObject *ADDR_ALL_swigconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *module; PyObject *d; if (!PyArg_ParseTuple(args,(char*)"O:swigconstant", &module)) return NULL; d = PyModule_GetDict(module); if (!d) return NULL; SWIG_Python_SetConstant(d, "ADDR_ALL",SWIG_From_int(static_cast< int >(ADDR_ALL))); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSockManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CSockManager")) SWIG_fail; result = (CSockManager *)new CSockManager(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CSockManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSockManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSockManager" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; CZNCSock *arg7 = (CZNCSock *) 0 ; unsigned int arg8 ; EAddrType arg9 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; unsigned int val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; PyObject * obj8 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:CSockManager_ListenHost",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_ListenHost" "', argument " "7"" of type '" "CZNCSock *""'"); } arg7 = reinterpret_cast< CZNCSock * >(argp7); ecode8 = SWIG_AsVal_unsigned_SS_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenHost" "', argument " "8"" of type '" "unsigned int""'"); } arg8 = static_cast< unsigned int >(val8); ecode9 = SWIG_AsVal_int(obj8, &val9); if (!SWIG_IsOK(ecode9)) { SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CSockManager_ListenHost" "', argument " "9"" of type '" "EAddrType""'"); } arg9 = static_cast< EAddrType >(val9); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7,arg8,arg9); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; CZNCSock *arg7 = (CZNCSock *) 0 ; unsigned int arg8 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; unsigned int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:CSockManager_ListenHost",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_ListenHost" "', argument " "7"" of type '" "CZNCSock *""'"); } arg7 = reinterpret_cast< CZNCSock * >(argp7); ecode8 = SWIG_AsVal_unsigned_SS_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenHost" "', argument " "8"" of type '" "unsigned int""'"); } arg8 = static_cast< unsigned int >(val8); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; CZNCSock *arg7 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CSockManager_ListenHost",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_ListenHost" "', argument " "7"" of type '" "CZNCSock *""'"); } arg7 = reinterpret_cast< CZNCSock * >(argp7); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CSockManager_ListenHost",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSockManager_ListenHost",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSockManager_ListenHost",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenHost(PyObject *self, PyObject *args) { int argc; PyObject *argv[10]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 9) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenHost__SWIG_5(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenHost__SWIG_4(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenHost__SWIG_3(self, args); } } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenHost__SWIG_2(self, args); } } } } } } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenHost__SWIG_1(self, args); } } } } } } } } } if (argc == 9) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[6], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[8], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenHost__SWIG_0(self, args); } } } } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSockManager_ListenHost'.\n" " Possible C/C++ prototypes are:\n" " CSockManager::ListenHost(unsigned short,CString const &,CString const &,bool,int,CZNCSock *,unsigned int,EAddrType)\n" " CSockManager::ListenHost(unsigned short,CString const &,CString const &,bool,int,CZNCSock *,unsigned int)\n" " CSockManager::ListenHost(unsigned short,CString const &,CString const &,bool,int,CZNCSock *)\n" " CSockManager::ListenHost(unsigned short,CString const &,CString const &,bool,int)\n" " CSockManager::ListenHost(unsigned short,CString const &,CString const &,bool)\n" " CSockManager::ListenHost(unsigned short,CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; EAddrType arg8 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:CSockManager_ListenAll",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenAll" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenAll" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenAll" "', argument " "8"" of type '" "EAddrType""'"); } arg8 = static_cast< EAddrType >(val8); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CSockManager_ListenAll",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenAll" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenAll" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CSockManager_ListenAll",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenAll" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5,arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSockManager_ListenAll",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSockManager_ListenAll",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSockManager_ListenAll",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAll(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenAll__SWIG_5(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAll__SWIG_4(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAll__SWIG_3(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenAll__SWIG_2(self, args); } } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAll__SWIG_1(self, args); } } } } } } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAll__SWIG_0(self, args); } } } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSockManager_ListenAll'.\n" " Possible C/C++ prototypes are:\n" " CSockManager::ListenAll(unsigned short,CString const &,bool,int,CZNCSock *,unsigned int,EAddrType)\n" " CSockManager::ListenAll(unsigned short,CString const &,bool,int,CZNCSock *,unsigned int)\n" " CSockManager::ListenAll(unsigned short,CString const &,bool,int,CZNCSock *)\n" " CSockManager::ListenAll(unsigned short,CString const &,bool,int)\n" " CSockManager::ListenAll(unsigned short,CString const &,bool)\n" " CSockManager::ListenAll(unsigned short,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; EAddrType arg8 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:CSockManager_ListenRand",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenRand" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenRand" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); ecode8 = SWIG_AsVal_int(obj7, &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenRand" "', argument " "8"" of type '" "EAddrType""'"); } arg8 = static_cast< EAddrType >(val8); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7,arg8); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CSockManager_ListenRand",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenRand" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenRand" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CSockManager_ListenRand",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenRand" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSockManager_ListenRand",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSockManager_ListenRand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSockManager_ListenRand",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenRand(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenRand__SWIG_5(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenRand__SWIG_4(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenRand__SWIG_3(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenRand__SWIG_2(self, args); } } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenRand__SWIG_1(self, args); } } } } } } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[7], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenRand__SWIG_0(self, args); } } } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSockManager_ListenRand'.\n" " Possible C/C++ prototypes are:\n" " CSockManager::ListenRand(CString const &,CString const &,bool,int,CZNCSock *,unsigned int,EAddrType)\n" " CSockManager::ListenRand(CString const &,CString const &,bool,int,CZNCSock *,unsigned int)\n" " CSockManager::ListenRand(CString const &,CString const &,bool,int,CZNCSock *)\n" " CSockManager::ListenRand(CString const &,CString const &,bool,int)\n" " CSockManager::ListenRand(CString const &,CString const &,bool)\n" " CSockManager::ListenRand(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; CZNCSock *arg5 = (CZNCSock *) 0 ; unsigned int arg6 ; EAddrType arg7 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CSockManager_ListenAllRand",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSockManager_ListenAllRand" "', argument " "5"" of type '" "CZNCSock *""'"); } arg5 = reinterpret_cast< CZNCSock * >(argp5); ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenAllRand" "', argument " "6"" of type '" "unsigned int""'"); } arg6 = static_cast< unsigned int >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenAllRand" "', argument " "7"" of type '" "EAddrType""'"); } arg7 = static_cast< EAddrType >(val7); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4,arg5,arg6,arg7); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; CZNCSock *arg5 = (CZNCSock *) 0 ; unsigned int arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CSockManager_ListenAllRand",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSockManager_ListenAllRand" "', argument " "5"" of type '" "CZNCSock *""'"); } arg5 = reinterpret_cast< CZNCSock * >(argp5); ecode6 = SWIG_AsVal_unsigned_SS_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenAllRand" "', argument " "6"" of type '" "unsigned int""'"); } arg6 = static_cast< unsigned int >(val6); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4,arg5,arg6); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; CZNCSock *arg5 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSockManager_ListenAllRand",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSockManager_ListenAllRand" "', argument " "5"" of type '" "CZNCSock *""'"); } arg5 = reinterpret_cast< CZNCSock * >(argp5); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSockManager_ListenAllRand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSockManager_ListenAllRand",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"OO:CSockManager_ListenAllRand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_ListenAllRand(PyObject *self, PyObject *args) { int argc; PyObject *argv[8]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 7) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenAllRand__SWIG_5(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAllRand__SWIG_4(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAllRand__SWIG_3(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_ListenAllRand__SWIG_2(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAllRand__SWIG_1(self, args); } } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_ListenAllRand__SWIG_0(self, args); } } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSockManager_ListenAllRand'.\n" " Possible C/C++ prototypes are:\n" " CSockManager::ListenAllRand(CString const &,bool,int,CZNCSock *,unsigned int,EAddrType)\n" " CSockManager::ListenAllRand(CString const &,bool,int,CZNCSock *,unsigned int)\n" " CSockManager::ListenAllRand(CString const &,bool,int,CZNCSock *)\n" " CSockManager::ListenAllRand(CString const &,bool,int)\n" " CSockManager::ListenAllRand(CString const &,bool)\n" " CSockManager::ListenAllRand(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSockManager_Connect__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; bool arg6 ; CString *arg7 = 0 ; CZNCSock *arg8 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int res7 = SWIG_OLDOBJ ; void *argp8 = 0 ; int res8 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:CSockManager_Connect",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_Connect" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); { CString *ptr = (CString *)0; res7 = SWIG_AsPtr_CString(obj6, &ptr); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } arg7 = ptr; } res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CSockManager_Connect" "', argument " "8"" of type '" "CZNCSock *""'"); } arg8 = reinterpret_cast< CZNCSock * >(argp8); (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5,arg6,(CString const &)*arg7,arg8); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_Connect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; bool arg6 ; CString *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int res7 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CSockManager_Connect",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_Connect" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); { CString *ptr = (CString *)0; res7 = SWIG_AsPtr_CString(obj6, &ptr); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } arg7 = ptr; } (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5,arg6,(CString const &)*arg7); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_Connect__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CSockManager_Connect",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_Connect" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_Connect__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSockManager_Connect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_Connect__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSockManager_Connect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSockManager_Connect(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_Connect__SWIG_4(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_Connect__SWIG_3(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSockManager_Connect__SWIG_2(self, args); } } } } } } } if (argc == 7) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[6], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_Connect__SWIG_1(self, args); } } } } } } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[6], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[7], &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSockManager_Connect__SWIG_0(self, args); } } } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSockManager_Connect'.\n" " Possible C/C++ prototypes are:\n" " CSockManager::Connect(CString const &,unsigned short,CString const &,int,bool,CString const &,CZNCSock *)\n" " CSockManager::Connect(CString const &,unsigned short,CString const &,int,bool,CString const &)\n" " CSockManager::Connect(CString const &,unsigned short,CString const &,int,bool)\n" " CSockManager::Connect(CString const &,unsigned short,CString const &,int)\n" " CSockManager::Connect(CString const &,unsigned short,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSockManager_GetAnonConnectionCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:CSockManager_GetAnonConnectionCount",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_GetAnonConnectionCount" "', argument " "1"" of type '" "CSockManager const *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_GetAnonConnectionCount" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_GetAnonConnectionCount" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned int)((CSockManager const *)arg1)->GetAnonConnectionCount((CString const &)*arg2); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *CSockManager_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSockManager, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CSocket__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CSocket",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CSocket *)new CSocket(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CSocket__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CSocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CSocket",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSocket" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CSocket" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (CSocket *)new CSocket(arg1,(CString const &)*arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CSocket__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CSocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CSocket",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSocket" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (CSocket *)new CSocket(arg1,(CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CSocket(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CSocket__SWIG_0(self, args); } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSocket__SWIG_2(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CSocket__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CSocket'.\n" " Possible C/C++ prototypes are:\n" " CSocket::CSocket(CModule *)\n" " CSocket::CSocket(CModule *,CString const &,unsigned short,int)\n" " CSocket::CSocket(CModule *,CString const &,unsigned short)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CSocket",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSocket" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Connect__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CSocket_Connect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); result = (bool)(arg1)->Connect(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_0_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CSocket_Listen",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSocket_Listen" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_0_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSocket_Listen",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_0_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocket_Listen",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_0_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocket_Listen",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->Listen(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_0_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CSocket_Listen",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (bool)(arg1)->Listen(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_ReachedMaxBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSocket_ReachedMaxBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_ReachedMaxBuffer" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); (arg1)->ReachedMaxBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_SockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocket_SockError",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_SockError" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocket_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_ConnectionFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocket_ConnectionFrom",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_ConnectionFrom" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_ConnectionFrom" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Connect__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; bool arg4 ; unsigned int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CSocket_Connect",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocket_Connect" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSocket_Connect" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); result = (bool)(arg1)->Connect((CString const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Connect__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocket_Connect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocket_Connect" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->Connect((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Connect__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocket_Connect",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->Connect((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Connect(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocket_Connect__SWIG_0_0(self, args); } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Connect__SWIG_3(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Connect__SWIG_2(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Connect__SWIG_1(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSocket_Connect'.\n" " Possible C/C++ prototypes are:\n" " Connect()\n" " CSocket::Connect(CString const &,unsigned short,bool,unsigned int)\n" " CSocket::Connect(CString const &,unsigned short,bool)\n" " CSocket::Connect(CString const &,unsigned short)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; unsigned short arg2 ; bool arg3 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CSocket_Listen",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->Listen(arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; unsigned short arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CSocket_Listen",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->Listen(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CSocket_Listen(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Listen__SWIG_0_4(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Listen__SWIG_2(self, args); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Listen__SWIG_0_3(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Listen__SWIG_1(self, args); } } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CSocket_Listen__SWIG_0_2(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Listen__SWIG_0_1(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CSocket_Listen__SWIG_0_0(self, args); } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CSocket_Listen'.\n" " Possible C/C++ prototypes are:\n" " Listen(uint16_t,int,CString const &,uint32_t,bool)\n" " Listen(uint16_t,int,CString const &,uint32_t)\n" " Listen(uint16_t,int,CString const &)\n" " Listen(uint16_t,int)\n" " Listen(uint16_t)\n" " CSocket::Listen(unsigned short,bool,unsigned int)\n" " CSocket::Listen(unsigned short,bool)\n"); return 0; } SWIGINTERN PyObject *_wrap_CSocket_GetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CSocket_GetModule",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_GetModule" "', argument " "1"" of type '" "CSocket const *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); result = (CModule *)((CSocket const *)arg1)->GetModule(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CSocket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CSocket, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CIRCSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CIRCSocket")) SWIG_fail; result = (CIRCSocket *)new CIRCSocket(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSocket, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CIRCSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSocket *arg1 = (CIRCSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CIRCSocket",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSocket, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIRCSocket" "', argument " "1"" of type '" "CIRCSocket *""'"); } arg1 = reinterpret_cast< CIRCSocket * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CIRCSocket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CIRCSocket, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CFile")) SWIG_fail; result = (CFile *)new CFile(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CFile, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CFile *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CFile",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CFile" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CFile" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CFile *)new CFile((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CFile, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CFile__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CFile__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CFile'.\n" " Possible C/C++ prototypes are:\n" " CFile::CFile()\n" " CFile::CFile(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CFile",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CFile" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_SetFileName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_SetFileName" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_SetFileName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_SetFileName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetFileName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsReg__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsReg",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsReg" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsReg((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsReg__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsReg",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsReg((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsDir",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsDir" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsDir((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsDir",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsDir((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsChr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsChr",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsChr" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsChr((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsChr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsChr",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsChr((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsBlk__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsBlk",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsBlk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsBlk((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsBlk__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsBlk",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsBlk((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsFifo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsFifo",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsFifo" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsFifo((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsFifo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsFifo",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsFifo((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsLnk__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsLnk",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsLnk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsLnk((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsLnk__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsLnk",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsLnk((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsSock",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsSock" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsSock((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsSock",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsSock((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsReg__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsReg",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsReg" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsReg(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsReg__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsReg",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsReg(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsReg(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsReg__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsReg__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsReg__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsReg__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsReg'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsReg(CString const &,bool)\n" " CFile::IsReg(CString const &)\n" " CFile::IsReg(bool) const\n" " CFile::IsReg() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_IsDir__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsDir",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsDir" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsDir(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsDir__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsDir",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsDir(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsDir(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsDir__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsDir__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsDir__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsDir__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsDir'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsDir(CString const &,bool)\n" " CFile::IsDir(CString const &)\n" " CFile::IsDir(bool) const\n" " CFile::IsDir() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_IsChr__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsChr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsChr" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsChr(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsChr__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsChr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsChr(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsChr(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsChr__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsChr__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsChr__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsChr__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsChr'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsChr(CString const &,bool)\n" " CFile::IsChr(CString const &)\n" " CFile::IsChr(bool) const\n" " CFile::IsChr() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_IsBlk__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsBlk",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsBlk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsBlk(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsBlk__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsBlk",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsBlk(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsBlk(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsBlk__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsBlk__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsBlk__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsBlk__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsBlk'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsBlk(CString const &,bool)\n" " CFile::IsBlk(CString const &)\n" " CFile::IsBlk(bool) const\n" " CFile::IsBlk() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_IsFifo__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsFifo",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsFifo" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsFifo(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsFifo__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsFifo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsFifo(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsFifo(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsFifo__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsFifo__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsFifo__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsFifo__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsFifo'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsFifo(CString const &,bool)\n" " CFile::IsFifo(CString const &)\n" " CFile::IsFifo(bool) const\n" " CFile::IsFifo() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_IsLnk__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsLnk",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsLnk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsLnk(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsLnk__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsLnk",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsLnk(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsLnk(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsLnk__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsLnk__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsLnk__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsLnk__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsLnk'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsLnk(CString const &,bool)\n" " CFile::IsLnk(CString const &)\n" " CFile::IsLnk(bool) const\n" " CFile::IsLnk() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_IsSock__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_IsSock",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsSock" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsSock(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsSock__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsSock(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsSock__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_IsSock__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsSock__SWIG_2(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_IsSock__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_IsSock'.\n" " Possible C/C++ prototypes are:\n" " CFile::IsSock(CString const &,bool)\n" " CFile::IsSock(CString const &)\n" " CFile::IsSock(bool) const\n" " CFile::IsSock() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_FType__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CFile::EFileTypes arg2 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_FType",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_FType" "', argument " "2"" of type '" "CFile::EFileTypes""'"); } arg2 = static_cast< CFile::EFileTypes >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_FType" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)CFile::FType((CString const &)*arg1,arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_FType__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CFile::EFileTypes arg2 ; int res1 = SWIG_OLDOBJ ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_FType",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_FType" "', argument " "2"" of type '" "CFile::EFileTypes""'"); } arg2 = static_cast< CFile::EFileTypes >(val2); result = (bool)CFile::FType((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_FType(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_FType__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_FType__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_FType'.\n" " Possible C/C++ prototypes are:\n" " CFile::FType(CString const &,CFile::EFileTypes,bool)\n" " CFile::FType(CString const &,CFile::EFileTypes)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Exists__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Exists",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Exists" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->Exists(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetSize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; off_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetSize" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetSize(); resultobj = SWIG_From_long(static_cast< long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetATime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetATime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetATime" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetATime(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetMTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetMTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetMTime" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetMTime(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetCTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetCTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetCTime" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetCTime(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetUID__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; uid_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetUID",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetUID" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetUID(); resultobj = SWIG_NewPointerObj((new uid_t(static_cast< const uid_t& >(result))), SWIGTYPE_p_uid_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetGID__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; gid_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetGID",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetGID" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetGID(); resultobj = SWIG_NewPointerObj((new gid_t(static_cast< const gid_t& >(result))), SWIGTYPE_p_gid_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Exists__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Exists",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Exists" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Exists" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::Exists((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Exists(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Exists__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Exists__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Exists'.\n" " Possible C/C++ prototypes are:\n" " CFile::Exists() const\n" " CFile::Exists(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetSize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; off_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetSize",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetSize" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetSize" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetSize((CString const &)*arg1); resultobj = SWIG_From_long(static_cast< long >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetSize(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetSize__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetSize__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_GetSize'.\n" " Possible C/C++ prototypes are:\n" " CFile::GetSize() const\n" " CFile::GetSize(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetATime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetATime",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetATime" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetATime" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetATime((CString const &)*arg1); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetATime(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetATime__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetATime__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_GetATime'.\n" " Possible C/C++ prototypes are:\n" " CFile::GetATime() const\n" " CFile::GetATime(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetMTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetMTime",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetMTime" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetMTime" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetMTime((CString const &)*arg1); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetMTime(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetMTime__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetMTime__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_GetMTime'.\n" " Possible C/C++ prototypes are:\n" " CFile::GetMTime() const\n" " CFile::GetMTime(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetCTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetCTime",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetCTime" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetCTime" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetCTime((CString const &)*arg1); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetCTime(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetCTime__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetCTime__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_GetCTime'.\n" " Possible C/C++ prototypes are:\n" " CFile::GetCTime() const\n" " CFile::GetCTime(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetUID__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; uid_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetUID",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetUID" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetUID" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetUID((CString const &)*arg1); resultobj = SWIG_NewPointerObj((new uid_t(static_cast< const uid_t& >(result))), SWIGTYPE_p_uid_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetUID(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetUID__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetUID__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_GetUID'.\n" " Possible C/C++ prototypes are:\n" " CFile::GetUID() const\n" " CFile::GetUID(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetGID__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; gid_t result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetGID",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetGID" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetGID" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetGID((CString const &)*arg1); resultobj = SWIG_NewPointerObj((new gid_t(static_cast< const gid_t& >(result))), SWIGTYPE_p_gid_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetGID(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetGID__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_GetGID__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_GetGID'.\n" " Possible C/C++ prototypes are:\n" " CFile::GetGID() const\n" " CFile::GetGID(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_GetInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; stat *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_GetInfo",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_stat, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_GetInfo" "', argument " "2"" of type '" "stat &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetInfo" "', argument " "2"" of type '" "stat &""'"); } arg2 = reinterpret_cast< stat * >(argp2); result = (int)CFile::GetInfo((CString const &)*arg1,*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Delete__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Delete",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Delete" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Delete(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Move__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Move",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Move" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->Move((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Move__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Move",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Move((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Copy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Copy",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Copy" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->Copy((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Copy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Copy",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Copy((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Delete__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Delete",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Delete" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Delete" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::Delete((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Delete(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Delete__SWIG_0(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Delete__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Delete'.\n" " Possible C/C++ prototypes are:\n" " CFile::Delete()\n" " CFile::Delete(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Move__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Move",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Move" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)CFile::Move((CString const &)*arg1,(CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Move__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Move",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)CFile::Move((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Move(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Move__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Move__SWIG_3(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Move__SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Move__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Move'.\n" " Possible C/C++ prototypes are:\n" " CFile::Move(CString const &,bool)\n" " CFile::Move(CString const &)\n" " CFile::Move(CString const &,CString const &,bool)\n" " CFile::Move(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Copy__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Copy",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Copy" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)CFile::Copy((CString const &)*arg1,(CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Copy__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Copy",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)CFile::Copy((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Copy(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Copy__SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Copy__SWIG_3(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Copy__SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Copy__SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Copy'.\n" " Possible C/C++ prototypes are:\n" " CFile::Copy(CString const &,bool)\n" " CFile::Copy(CString const &)\n" " CFile::Copy(CString const &,CString const &,bool)\n" " CFile::Copy(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Chmod__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Chmod",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Chmod" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (bool)(arg1)->Chmod(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Chmod__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; mode_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Chmod",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Chmod" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Chmod" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (bool)CFile::Chmod((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Chmod(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Chmod__SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Chmod__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Chmod'.\n" " Possible C/C++ prototypes are:\n" " CFile::Chmod(mode_t)\n" " CFile::Chmod(CString const &,mode_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Seek(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; off_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Seek",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Seek" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_Seek" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); result = (bool)(arg1)->Seek(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Truncate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Truncate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Truncate" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Truncate(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Sync(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Sync",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Sync" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Sync(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; int arg3 ; mode_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CFile_Open",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Open" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CFile_Open" "', argument " "4"" of type '" "mode_t""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "4"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp4); arg4 = *temp; if (SWIG_IsNewObj(res4)) delete temp; } } result = (bool)(arg1)->Open((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Open",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Open" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->Open((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Open",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Open((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; int arg2 ; mode_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Open",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_Open" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CFile_Open" "', argument " "3"" of type '" "mode_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "3"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp3); arg3 = *temp; if (SWIG_IsNewObj(res3)) delete temp; } } result = (bool)(arg1)->Open(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Open",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_Open" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (bool)(arg1)->Open(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Open",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Open(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_Open(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Open__SWIG_5(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Open__SWIG_4(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Open__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Open__SWIG_3(self, args); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Open__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Open__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Open'.\n" " Possible C/C++ prototypes are:\n" " CFile::Open(CString const &,int,mode_t)\n" " CFile::Open(CString const &,int)\n" " CFile::Open(CString const &)\n" " CFile::Open(int,mode_t)\n" " CFile::Open(int)\n" " CFile::Open()\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ssize_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Read",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Read" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Read" "', argument " "2"" of type '" "char *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Read" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (arg1)->Read(arg2,arg3); resultobj = SWIG_NewPointerObj((new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_ReadLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_ReadLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadLine" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sData"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CFile_ReadLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_ReadLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ReadLine(*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CFile_ReadLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadLine" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sData"); } } result = (bool)(arg1)->ReadLine(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_ReadLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CFile_ReadLine__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_ReadLine__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_ReadLine'.\n" " Possible C/C++ prototypes are:\n" " CFile::ReadLine(CString &,CString const &)\n" " CFile::ReadLine(CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_ReadFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_ReadFile",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadFile" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sData"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_ReadFile" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->ReadFile(*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_ReadFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_ReadFile",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadFile" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sData"); } } result = (bool)(arg1)->ReadFile(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_ReadFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CFile_ReadFile__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_ReadFile__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_ReadFile'.\n" " Possible C/C++ prototypes are:\n" " CFile::ReadFile(CString &,size_t)\n" " CFile::ReadFile(CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; ssize_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_Write",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Write" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Write" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Write" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (arg1)->Write((char const *)arg2,arg3); resultobj = SWIG_NewPointerObj((new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 ); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; ssize_t result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_Write",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Write" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Write" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Write" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->Write((CString const &)*arg2); resultobj = SWIG_NewPointerObj((new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_Write(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_Write__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_Write__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_Write'.\n" " Possible C/C++ prototypes are:\n" " CFile::Write(char const *,size_t)\n" " CFile::Write(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CFile_Close",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Close" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); (arg1)->Close(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_ClearBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CFile_ClearBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ClearBuffer" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); (arg1)->ClearBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_TryExLock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CFile_TryExLock",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_TryExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_TryExLock" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->TryExLock((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_TryExLock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CFile_TryExLock",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_TryExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->TryExLock((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CFile_TryExLock__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_TryExLock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_TryExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->TryExLock(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_TryExLock(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_TryExLock__SWIG_2(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CFile_TryExLock__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CFile_TryExLock__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CFile_TryExLock'.\n" " Possible C/C++ prototypes are:\n" " CFile::TryExLock(CString const &,int)\n" " CFile::TryExLock(CString const &)\n" " CFile::TryExLock()\n"); return 0; } SWIGINTERN PyObject *_wrap_CFile_ExLock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_ExLock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->ExLock(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_UnLock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_UnLock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_UnLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->UnLock(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_IsOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_IsOpen",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsOpen" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsOpen(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetLongName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetLongName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetLongName" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetLongName(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetShortName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetShortName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetShortName" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetShortName(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_GetDir",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetDir" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetDir(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_HadError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CFile_HadError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_HadError" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->HadError(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_ResetError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CFile_ResetError",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ResetError" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); (arg1)->ResetError(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFile_InitHomePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CFile_InitHomePath",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_InitHomePath" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_InitHomePath" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CFile::InitHomePath((CString const &)*arg1); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CFile_GetHomePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":CFile_GetHomePath")) SWIG_fail; result = (CString *) &CFile::GetHomePath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CFile, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CDir *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CDir",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CDir *)new CDir((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDir, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CDir")) SWIG_fail; result = (CDir *)new CDir(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDir, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CDir(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CDir__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CDir__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CDir'.\n" " Possible C/C++ prototypes are:\n" " CDir::CDir(CString const &)\n" " CDir::CDir()\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CDir",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CDir" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDir_CleanUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CDir_CleanUp",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_CleanUp" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); (arg1)->CleanUp(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDir_Fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_Fill",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Fill" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Fill" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Fill" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->Fill((CString const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CDir_FillByWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CDir_FillByWildcard",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_FillByWildcard" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_FillByWildcard" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_FillByWildcard" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_FillByWildcard" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_FillByWildcard" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->FillByWildcard((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CDir_Chmod__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mode_t arg1 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OOO:CDir_Chmod",&obj0,&obj1,&obj2)) SWIG_fail; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_Chmod" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (unsigned int)CDir::Chmod(arg1,(CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CDir_Chmod__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; mode_t arg1 ; CString *arg2 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_Chmod",&obj0,&obj1)) SWIG_fail; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned int)CDir::Chmod(arg1,(CString const &)*arg2); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CDir_Chmod__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_Chmod",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Chmod" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Chmod" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "2"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (unsigned int)(arg1)->Chmod(arg2); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDir_Chmod(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_Chmod__SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CDir, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_Chmod__SWIG_2(self, args); } } } if (argc == 3) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_Chmod__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CDir_Chmod'.\n" " Possible C/C++ prototypes are:\n" " CDir::Chmod(mode_t,CString const &,CString const &)\n" " CDir::Chmod(mode_t,CString const &)\n" " CDir::Chmod(mode_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CDir_Delete__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_Delete",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Delete" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Delete" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned int)CDir::Delete((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CDir_Delete__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CDir_Delete",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (unsigned int)CDir::Delete((CString const &)*arg1); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CDir_Delete__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CDir_Delete",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Delete" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (unsigned int)(arg1)->Delete(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDir_Delete(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CDir, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_Delete__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_Delete__SWIG_1(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_Delete__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CDir_Delete'.\n" " Possible C/C++ prototypes are:\n" " CDir::Delete(CString const &,CString const &)\n" " CDir::Delete(CString const &)\n" " CDir::Delete()\n"); return 0; } SWIGINTERN PyObject *_wrap_CDir_GetSortAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CFile::EFileAttr result; if (!PyArg_ParseTuple(args,(char *)"O:CDir_GetSortAttr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_GetSortAttr" "', argument " "1"" of type '" "CDir const *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (CFile::EFileAttr)((CDir const *)arg1)->GetSortAttr(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDir_IsDescending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CDir_IsDescending",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_IsDescending" "', argument " "1"" of type '" "CDir const *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (bool)((CDir const *)arg1)->IsDescending(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDir_CheckPathPrefix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CDir_CheckPathPrefix",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_CheckPathPrefix" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = CDir::CheckPathPrefix((CString const &)*arg1,(CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CDir_CheckPathPrefix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_CheckPathPrefix",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CDir::CheckPathPrefix((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CDir_CheckPathPrefix(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_CheckPathPrefix__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_CheckPathPrefix__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CDir_CheckPathPrefix'.\n" " Possible C/C++ prototypes are:\n" " CDir::CheckPathPrefix(CString const &,CString const &,CString const &)\n" " CDir::CheckPathPrefix(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CDir_ChangeDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CDir_ChangeDir",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_ChangeDir" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = CDir::ChangeDir((CString const &)*arg1,(CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CDir_ChangeDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_ChangeDir",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CDir::ChangeDir((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CDir_ChangeDir(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_ChangeDir__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_ChangeDir__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CDir_ChangeDir'.\n" " Possible C/C++ prototypes are:\n" " CDir::ChangeDir(CString const &,CString const &,CString const &)\n" " CDir::ChangeDir(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CDir_MakeDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; mode_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CDir_MakeDir",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_mode_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_MakeDir" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_MakeDir" "', argument " "2"" of type '" "mode_t""'"); } else { mode_t * temp = reinterpret_cast< mode_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } result = (bool)CDir::MakeDir((CString const &)*arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CDir_MakeDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CDir_MakeDir",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CDir::MakeDir((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CDir_MakeDir(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_MakeDir__SWIG_1(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CDir_MakeDir__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CDir_MakeDir'.\n" " Possible C/C++ prototypes are:\n" " CDir::MakeDir(CString const &,mode_t)\n" " CDir::MakeDir(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CDir_GetCWD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":CDir_GetCWD")) SWIG_fail; result = CDir::GetCWD(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CDir_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CDir, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CTimer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CTimer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CTimer *)new CTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTimer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_delete_CTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTimer *arg1 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CTimer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTimer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTimer" "', argument " "1"" of type '" "CTimer *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTimer_SetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTimer *arg1 = (CTimer *) 0 ; CModule *arg2 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTimer_SetModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_SetModule" "', argument " "1"" of type '" "CTimer *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTimer_SetModule" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); (arg1)->SetModule(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTimer_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTimer *arg1 = (CTimer *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTimer_SetDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_SetDescription" "', argument " "1"" of type '" "CTimer *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTimer_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTimer_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDescription((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTimer_GetModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTimer *arg1 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTimer_GetModule",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_GetModule" "', argument " "1"" of type '" "CTimer const *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); result = (CModule *)((CTimer const *)arg1)->GetModule(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTimer_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTimer *arg1 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTimer_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_GetDescription" "', argument " "1"" of type '" "CTimer const *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); result = (CString *) &((CTimer const *)arg1)->GetDescription(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CTimer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CTimer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CFPTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CFPTimer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CFPTimer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CFPTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CFPTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CFPTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CFPTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CFPTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CFPTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CFPTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CFPTimer *)new CFPTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CFPTimer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_delete_CFPTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFPTimer *arg1 = (CFPTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CFPTimer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFPTimer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CFPTimer" "', argument " "1"" of type '" "CFPTimer *""'"); } arg1 = reinterpret_cast< CFPTimer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CFPTimer_SetFPCallback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CFPTimer *arg1 = (CFPTimer *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CFPTimer_SetFPCallback",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CFPTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFPTimer_SetFPCallback" "', argument " "1"" of type '" "CFPTimer *""'"); } arg1 = reinterpret_cast< CFPTimer * >(argp1); { int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CFPTimer_SetFPCallback" "', argument " "2"" of type '" "FPTimer_t""'"); } } (arg1)->SetFPCallback(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CFPTimer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CFPTimer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CModInfo__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CModInfo")) SWIG_fail; result = (CModInfo *)new CModInfo(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModInfo, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CModInfo__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; CModInfo::EModuleType arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModInfo *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CModInfo",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CModInfo" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); result = (CModInfo *)new CModInfo((CString const &)*arg1,(CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModInfo, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CModInfo(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CModInfo__SWIG_0(self, args); } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CModInfo__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CModInfo'.\n" " Possible C/C++ prototypes are:\n" " CModInfo::CModInfo()\n" " CModInfo::CModInfo(CString const &,CString const &,CModInfo::EModuleType)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CModInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CModInfo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModInfo" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CModInfo *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo___lt__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo___lt__" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo___lt__" "', argument " "2"" of type '" "CModInfo const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo___lt__" "', argument " "2"" of type '" "CModInfo const &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); result = (bool)((CModInfo const *)arg1)->operator <((CModInfo const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SupportsType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SupportsType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SupportsType" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_SupportsType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); result = (bool)((CModInfo const *)arg1)->SupportsType(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_AddType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_AddType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_AddType" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_AddType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); (arg1)->AddType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_ModuleTypeToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo::EModuleType arg1 ; int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_ModuleTypeToString",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CModInfo_ModuleTypeToString" "', argument " "1"" of type '" "CModInfo::EModuleType""'"); } arg1 = static_cast< CModInfo::EModuleType >(val1); result = CModInfo::ModuleTypeToString(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetName" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetPath" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetPath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetDescription" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetDescription(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetWikiPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetWikiPage",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetWikiPage" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetWikiPage(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetArgsHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetArgsHelpText",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetArgsHelpText" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetArgsHelpText(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetHasArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetHasArgs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetHasArgs" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (bool)((CModInfo const *)arg1)->GetHasArgs(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModInfo::ModLoader result; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetLoader",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetLoader" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CModInfo::ModLoader)((CModInfo const *)arg1)->GetLoader(); resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_GetDefaultType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModInfo::EModuleType result; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_GetDefaultType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetDefaultType" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CModInfo::EModuleType)((CModInfo const *)arg1)->GetDefaultType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetName" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetPath" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetPath((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetDescription" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDescription((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetWikiPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetWikiPage",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetWikiPage" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetWikiPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetWikiPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetWikiPage((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetArgsHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetArgsHelpText",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetArgsHelpText" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetArgsHelpText" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetArgsHelpText" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetArgsHelpText((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetHasArgs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetHasArgs",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetHasArgs" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_SetHasArgs" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetHasArgs(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetHasArgs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModInfo_SetHasArgs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetHasArgs" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); (arg1)->SetHasArgs(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetHasArgs(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModInfo, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModInfo_SetHasArgs__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModInfo, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModInfo_SetHasArgs__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModInfo_SetHasArgs'.\n" " Possible C/C++ prototypes are:\n" " CModInfo::SetHasArgs(bool)\n" " CModInfo::SetHasArgs()\n"); return 0; } SWIGINTERN PyObject *_wrap_CModInfo_SetLoader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::ModLoader arg2 = (CModInfo::ModLoader) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetLoader",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetLoader" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModInfo_SetLoader" "', argument " "2"" of type '" "CModInfo::ModLoader""'"); } } (arg1)->SetLoader(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModInfo_SetDefaultType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModInfo_SetDefaultType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetDefaultType" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_SetDefaultType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); (arg1)->SetDefaultType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CModInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CModInfo, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CModCommand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CModCommand")) SWIG_fail; result = (CModCommand *)new CModCommand(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CModCommand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CModule *arg2 = (CModule *) 0 ; CModCommand::ModCmdFunc arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CModCommand",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModCommand" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); { int res = SWIG_ConvertMember(obj2, SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CModCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CModCommand" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CModCommand *)new CModCommand((CString const &)*arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_new_CModCommand__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; SwigValueWrapper< std::function< void (CString const &) > > arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CModCommand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModCommand" "', argument " "2"" of type '" "CModCommand::CmdFunc""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "2"" of type '" "CModCommand::CmdFunc""'"); } else { CModCommand::CmdFunc * temp = reinterpret_cast< CModCommand::CmdFunc * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CModCommand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (CModCommand *)new CModCommand((CString const &)*arg1,arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_new_CModCommand__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CModCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CModCommand, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModCommand" "', argument " "1"" of type '" "CModCommand const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "1"" of type '" "CModCommand const &""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CModCommand *)new CModCommand((CModCommand const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CModCommand(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CModCommand__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CModCommand, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CModCommand__SWIG_3(self, args); } } if (argc == 4) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CModCommand__SWIG_2(self, args); } } } } } if (argc == 5) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[4], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CModCommand__SWIG_1(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CModCommand'.\n" " Possible C/C++ prototypes are:\n" " CModCommand::CModCommand()\n" " CModCommand::CModCommand(CString const &,CModule *,CModCommand::ModCmdFunc,CString const &,CString const &)\n" " CModCommand::CModCommand(CString const &,CModCommand::CmdFunc,CString const &,CString const &)\n" " CModCommand::CModCommand(CModCommand const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModCommand_InitHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTable *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModCommand_InitHelp",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CTable, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_InitHelp" "', argument " "1"" of type '" "CTable &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_InitHelp" "', argument " "1"" of type '" "CTable &""'"); } arg1 = reinterpret_cast< CTable * >(argp1); CModCommand::InitHelp(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; CTable *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModCommand_AddHelp",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_AddHelp" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModCommand_AddHelp" "', argument " "2"" of type '" "CTable &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_AddHelp" "', argument " "2"" of type '" "CTable &""'"); } arg2 = reinterpret_cast< CTable * >(argp2); ((CModCommand const *)arg1)->AddHelp(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModCommand_GetCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetCommand" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CString *) &((CModCommand const *)arg1)->GetCommand(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_GetFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::function< void (CString const &) > > result; if (!PyArg_ParseTuple(args,(char *)"O:CModCommand_GetFunction",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetFunction" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = ((CModCommand const *)arg1)->GetFunction(); resultobj = SWIG_NewPointerObj((new CModCommand::CmdFunc(static_cast< const CModCommand::CmdFunc& >(result))), SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_GetArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModCommand_GetArgs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetArgs" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CString *) &((CModCommand const *)arg1)->GetArgs(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModCommand_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetDescription" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CString *) &((CModCommand const *)arg1)->GetDescription(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModCommand_Call(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModCommand_Call",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_Call" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModCommand_Call" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_Call" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ((CModCommand const *)arg1)->Call((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_CModCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CModCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModCommand, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModCommand" "', argument " "1"" of type '" "CModCommand *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CModCommand_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CModCommand, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; ModHandle arg1 = (ModHandle) 0 ; CUser *arg2 = (CUser *) 0 ; CIRCNetwork *arg3 = (CIRCNetwork *) 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; int res1 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CModule",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModule" "', argument " "1"" of type '" "ModHandle""'"); } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModule" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CModule" "', argument " "3"" of type '" "CIRCNetwork *""'"); } arg3 = reinterpret_cast< CIRCNetwork * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CModule" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModule" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CModule" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModule" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CModule *)new CModule(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_delete_CModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CModule",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->SetUser(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetNetwork" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetClient",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetClient" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetClient" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->SetClient(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_Unload(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_Unload",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_Unload" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->Unload(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnLoad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnLoad",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnLoad" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnLoad" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnLoad" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnLoad((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnBoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnBoot",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnBoot" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->OnBoot(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_WebRequiresLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_WebRequiresLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_WebRequiresLogin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->WebRequiresLogin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_WebRequiresAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_WebRequiresAdmin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_WebRequiresAdmin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->WebRequiresAdmin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetWebMenuTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetWebMenuTitle",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetWebMenuTitle" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->GetWebMenuTitle(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetWebPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetWebPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetWebPath" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->GetWebPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetWebFilesPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetWebFilesPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetWebFilesPath" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->GetWebFilesPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnWebPreRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnWebPreRequest",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnWebPreRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnWebPreRequest(*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnWebRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnWebRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnWebRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnWebRequest(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; SwigValueWrapper< std::shared_ptr< CWebSubPage > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_AddSubPage",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddSubPage" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddSubPage" "', argument " "2"" of type '" "TWebSubPage""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddSubPage" "', argument " "2"" of type '" "TWebSubPage""'"); } else { TWebSubPage * temp = reinterpret_cast< TWebSubPage * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->AddSubPage(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ClearSubPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_ClearSubPages",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ClearSubPages" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->ClearSubPages(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetSubPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; VWebSubPages *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetSubPages",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetSubPages" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (VWebSubPages *) &(arg1)->GetSubPages(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnEmbeddedWebRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnEmbeddedWebRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnEmbeddedWebRequest(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPreRehash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnPreRehash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPreRehash" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnPreRehash(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPostRehash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnPostRehash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPostRehash" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnPostRehash(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnIRCDisconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnIRCDisconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCDisconnected" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnIRCDisconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnIRCConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnIRCConnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCConnected" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnIRCConnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnIRCConnecting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnIRCConnecting",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCConnecting" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnIRCConnecting" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (CModule::EModRet)(arg1)->OnIRCConnecting(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnIRCConnectionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnIRCConnectionError",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCConnectionError" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnIRCConnectionError" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); (arg1)->OnIRCConnectionError(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnIRCRegistration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnIRCRegistration",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCRegistration" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sPass"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sNick"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sIdent"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sRealName"); } } result = (CModule::EModRet)(arg1)->OnIRCRegistration(*arg2,*arg3,*arg4,*arg5); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnBroadcast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnBroadcast",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnBroadcast" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sMessage"); } } result = (CModule::EModRet)(arg1)->OnBroadcast(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanPermission2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModule_OnChanPermission2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanPermission2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanPermission2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnChanPermission2" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnChanPermission2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnChanPermission2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnChanPermission2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanPermission(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModule_OnChanPermission",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanPermission" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnChanPermission" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnChanPermission" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnChanPermission" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnChanPermission((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnOp2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnOp2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnOp2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnOp2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnOp2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnOp2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnOp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnOp",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnOp" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnOp" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnOp" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnOp((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnDeop2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnDeop2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeop2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeop2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDeop2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDeop2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnDeop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnDeop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeop" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDeop" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDeop((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnVoice2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnVoice2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnVoice2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnVoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnVoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnVoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnVoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnVoice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnVoice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnVoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnVoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnDevoice2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnDevoice2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDevoice2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDevoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDevoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDevoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnDevoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnDevoice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDevoice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDevoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDevoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnMode2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModule_OnMode2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnMode2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnMode2" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnMode2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnMode2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnMode2((CNick const *)arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModule_OnMode",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnMode" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnMode" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnMode" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnMode" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnMode((CNick const &)*arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnRawMode2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnRawMode2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnRawMode2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnRawMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnRawMode2((CNick const *)arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnRawMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnRawMode",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnRawMode" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnRawMode((CNick const &)*arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnRaw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnRaw" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (CModule::EModRet)(arg1)->OnRaw(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnStatusCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnStatusCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnStatusCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sCommand"); } } result = (CModule::EModRet)(arg1)->OnStatusCommand(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnModCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnModCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCommand((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUnknownModCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnUnknownModCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUnknownModCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUnknownModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUnknownModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnUnknownModCommand((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnModNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnModNotice",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModNotice((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnModCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnModCTCP",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCTCP((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnQuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnQuit",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnQuit" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnQuit" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnQuit" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } (arg1)->OnQuit((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnNick",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnNick" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnNick" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnNick" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } (arg1)->OnNick((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnKick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CChan *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnKick",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnKick" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnKick((CNick const &)*arg2,(CString const &)*arg3,*arg4,(CString const &)*arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnJoining(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnJoining",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnJoining" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnJoining(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnJoin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnJoin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); (arg1)->OnJoin((CNick const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnPart",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPart" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->OnPart((CNick const &)*arg2,*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnInvite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnInvite",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnInvite" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CModule::EModRet)(arg1)->OnInvite((CNick const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanBufferStarting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnChanBufferStarting",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferStarting" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferStarting(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanBufferEnding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnChanBufferEnding",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferEnding" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferEnding(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanBufferPlayLine2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; timeval *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnChanBufferPlayLine2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sLine"); } } res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } arg5 = reinterpret_cast< timeval * >(argp5); result = (CModule::EModRet)(arg1)->OnChanBufferPlayLine2(*arg2,*arg3,*arg4,(timeval const &)*arg5); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanBufferPlayLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnChanBufferPlayLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sLine"); } } result = (CModule::EModRet)(arg1)->OnChanBufferPlayLine(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPrivBufferPlayLine2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnPrivBufferPlayLine2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (CModule::EModRet)(arg1)->OnPrivBufferPlayLine2(*arg2,*arg3,(timeval const &)*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPrivBufferPlayLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnPrivBufferPlayLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (CModule::EModRet)(arg1)->OnPrivBufferPlayLine(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnClientLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnClientLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientLogin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnClientLogin(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnClientDisconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_OnClientDisconnect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientDisconnect" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnClientDisconnect(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnUserRaw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserRaw" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (CModule::EModRet)(arg1)->OnUserRaw(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserCTCPReply" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserCTCPReply(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserCTCP(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserAction",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserAction" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserAction(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserMsg" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserMsg(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserNotice(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserJoin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserJoin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sKey"); } } result = (CModule::EModRet)(arg1)->OnUserJoin(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserPart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserPart",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserPart" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserPart(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUserTopic",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserTopic" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sTopic"); } } result = (CModule::EModRet)(arg1)->OnUserTopic(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUserTopicRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnUserTopicRequest",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserTopicRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } result = (CModule::EModRet)(arg1)->OnUserTopicRequest(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnCTCPReply" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnCTCPReply(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPrivCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnPrivCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivCTCP(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnChanCTCP",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanCTCP(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPrivAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnPrivAction",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivAction" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivAction(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnChanAction",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanAction" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanAction(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPrivMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnPrivMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivMsg" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivMsg(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnChanMsg",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanMsg" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanMsg(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnPrivNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnPrivNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivNotice(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnChanNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnChanNotice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanNotice(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnTopic",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnTopic" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sTopic"); } } result = (CModule::EModRet)(arg1)->OnTopic(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnServerCapAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnServerCapAvailable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnServerCapAvailable" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnServerCapResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnServerCapResult",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnServerCapResult" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModule_OnServerCapResult" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->OnServerCapResult((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnTimerAutoJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnTimerAutoJoin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnTimerAutoJoin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnTimerAutoJoin(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnAddNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CIRCNetwork *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnAddNetwork",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnAddNetwork" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (CModule::EModRet)(arg1)->OnAddNetwork(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnDeleteNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnDeleteNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeleteNetwork" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteNetwork(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnSendToClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnSendToClient",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnSendToClient" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnSendToClient(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnSendToIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnSendToIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnSendToIRC" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (CModule::EModRet)(arg1)->OnSendToIRC(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetDLL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; ModHandle result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetDLL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetDLL" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (ModHandle)(arg1)->GetDLL(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetCoreVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; double result; if (!PyArg_ParseTuple(args,(char *)":CModule_GetCoreVersion")) SWIG_fail; result = (double)CModule::GetCoreVersion(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_PutIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_PutIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutIRC" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutIRC((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_PutUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_PutUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutUser((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_PutStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_PutStatus",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutStatus" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatus((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_PutModule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_PutModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutModule((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_PutModule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CTable *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_PutModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTable, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CTable const &""'"); } arg2 = reinterpret_cast< CTable * >(argp2); result = (unsigned int)(arg1)->PutModule((CTable const &)*arg2); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_PutModule(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_PutModule__SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_PutModule__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_PutModule'.\n" " Possible C/C++ prototypes are:\n" " CModule::PutModule(CString const &)\n" " CModule::PutModule(CTable const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_PutModNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_PutModNotice",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutModNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutModNotice((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetModName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetModName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModName" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetModName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetModNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetModNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModNick" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->GetModNick(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetModDataDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetModDataDir",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModDataDir" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetModDataDir(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddTimer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CTimer *arg2 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_AddTimer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "CTimer *""'"); } arg2 = reinterpret_cast< CTimer * >(argp2); result = (bool)(arg1)->AddTimer(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddTimer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; CString *arg3 = 0 ; unsigned int arg4 ; unsigned int arg5 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; int res6 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CModule_AddTimer",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "FPTimer_t""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_AddTimer" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_AddTimer" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); { CString *ptr = (CString *)0; res6 = SWIG_AsPtr_CString(obj5, &ptr); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModule_AddTimer" "', argument " "6"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "6"" of type '" "CString const &""'"); } arg6 = ptr; } result = (bool)(arg1)->AddTimer(arg2,(CString const &)*arg3,arg4,arg5,(CString const &)*arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res6)) delete arg6; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res6)) delete arg6; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddTimer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; CString *arg3 = 0 ; unsigned int arg4 ; unsigned int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_AddTimer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "FPTimer_t""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_AddTimer" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_AddTimer" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); result = (bool)(arg1)->AddTimer(arg2,(CString const &)*arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddTimer__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; CString *arg3 = 0 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_AddTimer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "FPTimer_t""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_AddTimer" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->AddTimer(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddTimer(PyObject *self, PyObject *args) { int argc; PyObject *argv[7]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 6) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CTimer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddTimer__SWIG_0(self, args); } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModule_AddTimer__SWIG_3(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModule_AddTimer__SWIG_2(self, args); } } } } } } if (argc == 6) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[5], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddTimer__SWIG_1(self, args); } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_AddTimer'.\n" " Possible C/C++ prototypes are:\n" " CModule::AddTimer(CTimer *)\n" " CModule::AddTimer(FPTimer_t,CString const &,unsigned int,unsigned int,CString const &)\n" " CModule::AddTimer(FPTimer_t,CString const &,unsigned int,unsigned int)\n" " CModule::AddTimer(FPTimer_t,CString const &,unsigned int)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_RemTimer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CTimer *arg2 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_RemTimer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemTimer" "', argument " "2"" of type '" "CTimer *""'"); } arg2 = reinterpret_cast< CTimer * >(argp2); result = (bool)(arg1)->RemTimer(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_RemTimer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_RemTimer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemTimer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_RemTimer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemTimer((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_RemTimer(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CTimer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_RemTimer__SWIG_0(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_RemTimer__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_RemTimer'.\n" " Possible C/C++ prototypes are:\n" " CModule::RemTimer(CTimer *)\n" " CModule::RemTimer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_UnlinkTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CTimer *arg2 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_UnlinkTimer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_UnlinkTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_UnlinkTimer" "', argument " "2"" of type '" "CTimer *""'"); } arg2 = reinterpret_cast< CTimer * >(argp2); result = (bool)(arg1)->UnlinkTimer(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_FindTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CTimer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_FindTimer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindTimer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindTimer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CTimer *)(arg1)->FindTimer((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTimer, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_BeginTimers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_BeginTimers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginTimers" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->BeginTimers(); resultobj = SWIG_NewPointerObj((new std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator(static_cast< const std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_EndTimers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_EndTimers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_EndTimers" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->EndTimers(); resultobj = SWIG_NewPointerObj((new std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator(static_cast< const std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ListTimers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_ListTimers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ListTimers" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->ListTimers(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CSocket *arg2 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_AddSocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddSocket" "', argument " "2"" of type '" "CSocket *""'"); } arg2 = reinterpret_cast< CSocket * >(argp2); result = (bool)(arg1)->AddSocket(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_RemSocket__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CSocket *arg2 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_RemSocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemSocket" "', argument " "2"" of type '" "CSocket *""'"); } arg2 = reinterpret_cast< CSocket * >(argp2); result = (bool)(arg1)->RemSocket(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_RemSocket__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_RemSocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_RemSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemSocket((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_RemSocket(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_RemSocket__SWIG_0(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_RemSocket__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_RemSocket'.\n" " Possible C/C++ prototypes are:\n" " CModule::RemSocket(CSocket *)\n" " CModule::RemSocket(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_UnlinkSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CSocket *arg2 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_UnlinkSocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_UnlinkSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_UnlinkSocket" "', argument " "2"" of type '" "CSocket *""'"); } arg2 = reinterpret_cast< CSocket * >(argp2); result = (bool)(arg1)->UnlinkSocket(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_FindSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CSocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_FindSocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CSocket *)(arg1)->FindSocket((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_BeginSockets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_BeginSockets",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginSockets" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->BeginSockets(); resultobj = SWIG_NewPointerObj((new std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator(static_cast< const std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_EndSockets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_EndSockets",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_EndSockets" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->EndSockets(); resultobj = SWIG_NewPointerObj((new std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator(static_cast< const std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ListSockets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_ListSockets",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ListSockets" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->ListSockets(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddHelpCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_AddHelpCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddHelpCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->AddHelpCommand(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddCommand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CModCommand *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_AddCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModCommand, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CModCommand const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CModCommand const &""'"); } arg2 = reinterpret_cast< CModCommand * >(argp2); result = (bool)(arg1)->AddCommand((CModCommand const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddCommand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CModCommand::ModCmdFunc arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_AddCommand",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { int res = SWIG_ConvertMember(obj2, SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->AddCommand((CString const &)*arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddCommand__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CModCommand::ModCmdFunc arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_AddCommand",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { int res = SWIG_ConvertMember(obj2, SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->AddCommand((CString const &)*arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddCommand__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CModCommand::ModCmdFunc arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_AddCommand",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { int res = SWIG_ConvertMember(obj2, SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } result = (bool)(arg1)->AddCommand((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddCommand__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; SwigValueWrapper< std::function< void (CString const &) > > arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_AddCommand",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "std::function< void (CString const &) >""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "std::function< void (CString const &) >""'"); } else { std::function< void (CString const &) > * temp = reinterpret_cast< std::function< void (CString const &) > * >(argp5); arg5 = *temp; if (SWIG_IsNewObj(res5)) delete temp; } } result = (bool)(arg1)->AddCommand((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModule_AddCommand(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CModCommand, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddCommand__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddCommand__SWIG_3(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddCommand__SWIG_2(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[4], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddCommand__SWIG_1(self, args); } } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_AddCommand__SWIG_4(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_AddCommand'.\n" " Possible C/C++ prototypes are:\n" " CModule::AddCommand(CModCommand const &)\n" " CModule::AddCommand(CString const &,CModCommand::ModCmdFunc,CString const &,CString const &)\n" " CModule::AddCommand(CString const &,CModCommand::ModCmdFunc,CString const &)\n" " CModule::AddCommand(CString const &,CModCommand::ModCmdFunc)\n" " CModule::AddCommand(CString const &,CString const &,CString const &,std::function< void (CString const &) >)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_RemCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_RemCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_RemCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemCommand((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_FindCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModCommand *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_FindCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindCommand" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CModCommand *)((CModule const *)arg1)->FindCommand((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_HandleCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_HandleCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_HandleCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_HandleCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_HandleCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->HandleCommand((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_HandleHelpCommand__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_HandleHelpCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_HandleHelpCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_HandleHelpCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_HandleHelpCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->HandleHelpCommand((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_HandleHelpCommand__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_HandleHelpCommand",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_HandleHelpCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->HandleHelpCommand(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_HandleHelpCommand(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_HandleHelpCommand__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_HandleHelpCommand__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_HandleHelpCommand'.\n" " Possible C/C++ prototypes are:\n" " CModule::HandleHelpCommand(CString const &)\n" " CModule::HandleHelpCommand()\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_LoadRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_LoadRegistry",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_LoadRegistry" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->LoadRegistry(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_SaveRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_SaveRegistry",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SaveRegistry" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)((CModule const *)arg1)->SaveRegistry(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_MoveRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_MoveRegistry",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_MoveRegistry" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_MoveRegistry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_MoveRegistry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->MoveRegistry((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetNV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_SetNV",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_SetNV" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->SetNV((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetNV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_SetNV",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SetNV((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetNV(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_SetNV__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModule_SetNV__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_SetNV'.\n" " Possible C/C++ prototypes are:\n" " CModule::SetNV(CString const &,CString const &,bool)\n" " CModule::SetNV(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_GetNV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_GetNV",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetNV" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_GetNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_GetNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CModule const *)arg1)->GetNV((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_DelNV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_DelNV",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_DelNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModule_DelNV" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->DelNV((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_DelNV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_DelNV",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_DelNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelNV((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_FindNV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; MCString::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_FindNV",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->FindNV((CString const &)*arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const MCString::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_EndNV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; MCString::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_EndNV",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_EndNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->EndNV(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const MCString::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_BeginNV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; MCString::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_BeginNV",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->BeginNV(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const MCString::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_DelNV__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; MCString::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_DelNV",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_DelNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "MCString::iterator""'"); } else { swig::SwigPyIterator_T *iter_t = dynamic_cast *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "MCString::iterator""'"); } } (arg1)->DelNV(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_DelNV(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast *>(iter) != 0)); if (_v) { return _wrap_CModule_DelNV__SWIG_2(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_DelNV__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModule_DelNV__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_DelNV'.\n" " Possible C/C++ prototypes are:\n" " CModule::DelNV(CString const &,bool)\n" " CModule::DelNV(CString const &)\n" " CModule::DelNV(MCString::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_ClearNV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_ClearNV",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ClearNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModule_ClearNV" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)(arg1)->ClearNV(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ClearNV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_ClearNV",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ClearNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->ClearNV(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ClearNV(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_ClearNV__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModule_ClearNV__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_ClearNV'.\n" " Possible C/C++ prototypes are:\n" " CModule::ClearNV(bool)\n" " CModule::ClearNV()\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_GetSavePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetSavePath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetSavePath" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetSavePath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ExpandString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_ExpandString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ExpandString" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CModule const *)arg1)->ExpandString((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_ExpandString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_ExpandString",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ExpandString" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRet"); } } result = (CString *) &((CModule const *)arg1)->ExpandString((CString const &)*arg2,*arg3); { if (result) { resultobj = CPyRetString::wrap(*result); } else { resultobj = Py_None; Py_INCREF(Py_None); } } if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_ExpandString(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModule_ExpandString__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CModule_ExpandString__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModule_ExpandString'.\n" " Possible C/C++ prototypes are:\n" " CModule::ExpandString(CString const &) const\n" " CModule::ExpandString(CString const &,CString &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CModule_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetType" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModule_SetType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); (arg1)->SetType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetDescription",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetDescription" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDescription((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetModPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetModPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetModPath" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetModPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetModPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetModPath((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_SetArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_SetArgs",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetArgs" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetArgs" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetArgs" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetArgs((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModInfo::EModuleType result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetType" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CModInfo::EModuleType)((CModule const *)arg1)->GetType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetDescription",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetDescription" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetDescription(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetArgs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetArgs",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetArgs" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetArgs(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetModPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetModPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModPath" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetModPath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetUser" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CUser *)((CModule const *)arg1)->GetUser(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetNetwork",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetNetwork" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CIRCNetwork *)((CModule const *)arg1)->GetNetwork(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CClient *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetClient",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetClient" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CClient *)((CModule const *)arg1)->GetClient(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_GetManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSockManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModule_GetManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetManager" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CSockManager *)((CModule const *)arg1)->GetManager(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnAddUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnAddUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnAddUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (CModule::EModRet)(arg1)->OnAddUser(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnDeleteUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnDeleteUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeleteUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteUser(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnClientConnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CZNCSock *arg2 = (CZNCSock *) 0 ; CString *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned short val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnClientConnect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientConnect" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnClientConnect" "', argument " "2"" of type '" "CZNCSock *""'"); } arg2 = reinterpret_cast< CZNCSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnClientConnect" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); (arg1)->OnClientConnect(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnLoginAttempt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; std::shared_ptr< CAuthBase > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_OnLoginAttempt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnLoginAttempt" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int newmem = 0; res2 = SWIG_ConvertPtrAndOwn(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 , &newmem); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2); } result = (CModule::EModRet)(arg1)->OnLoginAttempt(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnFailedLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnFailedLogin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnFailedLogin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->OnFailedLogin((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnUnknownUserRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnUnknownUserRaw",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUnknownUserRaw" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUnknownUserRaw" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (CModule::EModRet)(arg1)->OnUnknownUserRaw(arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnClientCapLs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; SCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnClientCapLs",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientCapLs" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnClientCapLs" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } arg3 = reinterpret_cast< SCString * >(argp3); (arg1)->OnClientCapLs(arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_IsClientCapSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_IsClientCapSupported",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_IsClientCapSupported" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_IsClientCapSupported" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_IsClientCapSupported" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->IsClientCapSupported(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnClientCapRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnClientCapRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientCapRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnClientCapRequest" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnClientCapRequest" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->OnClientCapRequest(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnModuleLoading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; bool *arg5 = 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CModule_OnModuleLoading",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModuleLoading" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnModuleLoading" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } arg5 = reinterpret_cast< bool * >(argp5); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj5, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg6 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 6 sRetMsg"); } } result = (CModule::EModRet)(arg1)->OnModuleLoading((CString const &)*arg2,(CString const &)*arg3,arg4,*arg5,*arg6); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnModuleUnloading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CModule *arg2 = (CModule *) 0 ; bool *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModule_OnModuleUnloading",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModuleUnloading" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModuleUnloading" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sRetMsg"); } } result = (CModule::EModRet)(arg1)->OnModuleUnloading(arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnGetModInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CModInfo *arg2 = 0 ; CString *arg3 = 0 ; bool *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModule_OnGetModInfo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnGetModInfo" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } arg4 = reinterpret_cast< bool * >(argp4); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sRetMsg"); } } result = (CModule::EModRet)(arg1)->OnGetModInfo(*arg2,(CString const &)*arg3,*arg4,*arg5); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModule_OnGetAvailableMods(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg2 = 0 ; CModInfo::EModuleType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CModule_OnGetAvailableMods",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnGetAvailableMods" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModule_OnGetAvailableMods" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); (arg1)->OnGetAvailableMods(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CModule___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule___str__" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = CModule___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_BeginNV_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; MCString_iter result; if (!PyArg_ParseTuple(args,(char *)"O:CModule_BeginNV_",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginNV_" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = CModule_BeginNV_(arg1); resultobj = SWIG_NewPointerObj((new MCString_iter(static_cast< const MCString_iter& >(result))), SWIGTYPE_p_MCString_iter, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModule_ExistsNV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModule_ExistsNV",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ExistsNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_ExistsNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExistsNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)CModule_ExistsNV(arg1,(CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *CModule_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CModule, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CModules(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CModules")) SWIG_fail; result = (CModules *)new CModules(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CModules(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CModules",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModules" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_SetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_SetUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_SetUser" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->SetUser(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_SetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_SetNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_SetNetwork" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_SetClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_SetClient",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_SetClient" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_SetClient" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->SetClient(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModules_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetUser" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CUser *)((CModules const *)arg1)->GetUser(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModules_GetNetwork",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetNetwork" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CIRCNetwork *)((CModules const *)arg1)->GetNetwork(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CClient *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModules_GetClient",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetClient" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CClient *)((CModules const *)arg1)->GetClient(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_UnloadAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModules_UnloadAll",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_UnloadAll" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); (arg1)->UnloadAll(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnBoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnBoot",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnBoot" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnBoot(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPreRehash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnPreRehash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPreRehash" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnPreRehash(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPostRehash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnPostRehash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPostRehash" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnPostRehash(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnIRCDisconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnIRCDisconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCDisconnected" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnIRCDisconnected(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnIRCConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnIRCConnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCConnected" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnIRCConnected(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnIRCConnecting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnIRCConnecting",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCConnecting" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnIRCConnecting" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (bool)(arg1)->OnIRCConnecting(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnIRCConnectionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnIRCConnectionError",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCConnectionError" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnIRCConnectionError" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (bool)(arg1)->OnIRCConnectionError(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnIRCRegistration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnIRCRegistration",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCRegistration" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sPass"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sNick"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sIdent"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sRealName"); } } result = (bool)(arg1)->OnIRCRegistration(*arg2,*arg3,*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnBroadcast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnBroadcast",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnBroadcast" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sMessage"); } } result = (bool)(arg1)->OnBroadcast(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanPermission2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModules_OnChanPermission2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanPermission2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanPermission2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnChanPermission2" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnChanPermission2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnChanPermission2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnChanPermission2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanPermission(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModules_OnChanPermission",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanPermission" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnChanPermission" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnChanPermission" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnChanPermission" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnChanPermission((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnOp2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnOp2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnOp2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnOp2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnOp2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnOp2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnOp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnOp",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnOp" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnOp" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnOp" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnOp((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnDeop2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnDeop2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeop2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeop2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDeop2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDeop2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnDeop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnDeop",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeop" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDeop" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDeop((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnVoice2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnVoice2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnVoice2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnVoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnVoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnVoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnVoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnVoice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnVoice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnVoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnVoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnDevoice2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnDevoice2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDevoice2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDevoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDevoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDevoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnDevoice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnDevoice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDevoice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDevoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDevoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnRawMode2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnRawMode2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnRawMode2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnRawMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->OnRawMode2((CNick const *)arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnRawMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnRawMode",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnRawMode" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->OnRawMode((CNick const &)*arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnMode2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModules_OnMode2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnMode2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnMode2" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnMode2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnMode2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnMode2((CNick const *)arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModules_OnMode",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnMode" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnMode" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnMode" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnMode" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnMode((CNick const &)*arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnRaw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnRaw" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (bool)(arg1)->OnRaw(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnStatusCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnStatusCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnStatusCommand" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sCommand"); } } result = (bool)(arg1)->OnStatusCommand(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnModCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnModCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModCommand" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnModCommand((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnModNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnModNotice",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnModNotice((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnModCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnModCTCP",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnModCTCP((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnQuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnQuit",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnQuit" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnQuit" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnQuit" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } result = (bool)(arg1)->OnQuit((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnNick",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnNick" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnNick" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnNick" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } result = (bool)(arg1)->OnNick((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnKick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CChan *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnKick",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnKick" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnKick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnKick" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnKick" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->OnKick((CNick const &)*arg2,(CString const &)*arg3,*arg4,(CString const &)*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnJoining(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnJoining",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnJoining" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (bool)(arg1)->OnJoining(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnJoin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnJoin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); result = (bool)(arg1)->OnJoin((CNick const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnPart",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPart" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPart" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPart" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnPart" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPart" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->OnPart((CNick const &)*arg2,*arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnInvite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnInvite",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnInvite" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnInvite((CNick const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanBufferStarting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnChanBufferStarting",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferStarting" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->OnChanBufferStarting(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanBufferEnding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnChanBufferEnding",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferEnding" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->OnChanBufferEnding(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanBufferPlayLine2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; timeval *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnChanBufferPlayLine2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sLine"); } } res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } arg5 = reinterpret_cast< timeval * >(argp5); result = (bool)(arg1)->OnChanBufferPlayLine2(*arg2,*arg3,*arg4,(timeval const &)*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanBufferPlayLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnChanBufferPlayLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sLine"); } } result = (bool)(arg1)->OnChanBufferPlayLine(*arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPrivBufferPlayLine2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnPrivBufferPlayLine2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (bool)(arg1)->OnPrivBufferPlayLine2(*arg2,*arg3,(timeval const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPrivBufferPlayLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnPrivBufferPlayLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (bool)(arg1)->OnPrivBufferPlayLine(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnClientLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnClientLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientLogin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnClientLogin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnClientDisconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModules_OnClientDisconnect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientDisconnect" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnClientDisconnect(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnUserRaw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserRaw" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (bool)(arg1)->OnUserRaw(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserCTCPReply" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnUserCTCPReply(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnUserCTCP(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserAction",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserAction" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnUserAction(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserMsg" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnUserMsg(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnUserNotice(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserJoin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserJoin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sKey"); } } result = (bool)(arg1)->OnUserJoin(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserPart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserPart",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserPart" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnUserPart(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUserTopic",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserTopic" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sTopic"); } } result = (bool)(arg1)->OnUserTopic(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUserTopicRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnUserTopicRequest",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserTopicRequest" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } result = (bool)(arg1)->OnUserTopicRequest(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnCTCPReply" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnCTCPReply(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPrivCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnPrivCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivCTCP(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnChanCTCP",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanCTCP(*arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPrivAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnPrivAction",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivAction" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivAction(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnChanAction",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanAction" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanAction(*arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPrivMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnPrivMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivMsg" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivMsg(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnChanMsg",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanMsg" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanMsg(*arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnPrivNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnPrivNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivNotice(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnChanNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnChanNotice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanNotice(*arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnTopic",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnTopic" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sTopic"); } } result = (bool)(arg1)->OnTopic(*arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnTimerAutoJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnTimerAutoJoin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnTimerAutoJoin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (bool)(arg1)->OnTimerAutoJoin(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnAddNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CIRCNetwork *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnAddNetwork",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnAddNetwork" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (bool)(arg1)->OnAddNetwork(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnDeleteNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnDeleteNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeleteNetwork" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (bool)(arg1)->OnDeleteNetwork(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnSendToClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnSendToClient",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnSendToClient" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->OnSendToClient(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnSendToIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnSendToIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnSendToIRC" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (bool)(arg1)->OnSendToIRC(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnServerCapAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnServerCapAvailable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnServerCapAvailable" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnServerCapResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnServerCapResult",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnServerCapResult" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModules_OnServerCapResult" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->OnServerCapResult((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_FindModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_FindModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_FindModule" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_FindModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_FindModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CModule *)((CModules const *)arg1)->FindModule((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_LoadModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; CUser *arg5 = (CUser *) 0 ; CIRCNetwork *arg6 = (CIRCNetwork *) 0 ; CString *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CModules_LoadModule",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_LoadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_LoadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_LoadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_LoadModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_LoadModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_LoadModule" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_LoadModule" "', argument " "5"" of type '" "CUser *""'"); } arg5 = reinterpret_cast< CUser * >(argp5); res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModules_LoadModule" "', argument " "6"" of type '" "CIRCNetwork *""'"); } arg6 = reinterpret_cast< CIRCNetwork * >(argp6); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj6, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg7 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 7 sRetMsg"); } } result = (bool)(arg1)->LoadModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6,*arg7); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_UnloadModule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_UnloadModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_UnloadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->UnloadModule((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_UnloadModule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_UnloadModule",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_UnloadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRetMsg"); } } result = (bool)(arg1)->UnloadModule((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_UnloadModule(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModules, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModules_UnloadModule__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CModules, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CModules_UnloadModule__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModules_UnloadModule'.\n" " Possible C/C++ prototypes are:\n" " CModules::UnloadModule(CString const &)\n" " CModules::UnloadModule(CString const &,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModules_ReloadModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CUser *arg4 = (CUser *) 0 ; CIRCNetwork *arg5 = (CIRCNetwork *) 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CModules_ReloadModule",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_ReloadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_ReloadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_ReloadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_ReloadModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_ReloadModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_ReloadModule" "', argument " "4"" of type '" "CUser *""'"); } arg4 = reinterpret_cast< CUser * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_ReloadModule" "', argument " "5"" of type '" "CIRCNetwork *""'"); } arg5 = reinterpret_cast< CIRCNetwork * >(argp5); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj5, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg6 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 6 sRetMsg"); } } result = (bool)(arg1)->ReloadModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,*arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetModInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_GetModInfo",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetModInfo" "', argument " "1"" of type '" "CModInfo &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModInfo" "', argument " "1"" of type '" "CModInfo &""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_GetModInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRetMsg"); } } result = (bool)CModules::GetModInfo(*arg1,(CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetModPathInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModInfo *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_GetModPathInfo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetModPathInfo" "', argument " "1"" of type '" "CModInfo &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "1"" of type '" "CModInfo &""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_GetModPathInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_GetModPathInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sRetMsg"); } } result = (bool)CModules::GetModPathInfo(*arg1,(CString const &)*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetAvailableMods__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg1 = 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_GetAvailableMods",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModules_GetAvailableMods" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); CModules::GetAvailableMods(*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetAvailableMods__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModules_GetAvailableMods",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp1); CModules::GetAvailableMods(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetAvailableMods(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModules_GetAvailableMods__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModules_GetAvailableMods__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModules_GetAvailableMods'.\n" " Possible C/C++ prototypes are:\n" " CModules::GetAvailableMods(std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &,CModInfo::EModuleType)\n" " CModules::GetAvailableMods(std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModules_GetDefaultMods__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg1 = 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_GetDefaultMods",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModules_GetDefaultMods" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); CModules::GetDefaultMods(*arg1,arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetDefaultMods__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModules_GetDefaultMods",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp1); CModules::GetDefaultMods(*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetDefaultMods(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CModules_GetDefaultMods__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CModules_GetDefaultMods__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CModules_GetDefaultMods'.\n" " Possible C/C++ prototypes are:\n" " CModules::GetDefaultMods(std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &,CModInfo::EModuleType)\n" " CModules::GetDefaultMods(std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CModules_FindModPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_FindModPath",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_FindModPath" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_FindModPath" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sModPath"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sDataPath"); } } result = (bool)CModules::FindModPath((CString const &)*arg1,*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CModules_GetModDirs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; SwigValueWrapper< std::queue< std::pair< CString,CString > > > result; if (!PyArg_ParseTuple(args,(char *)":CModules_GetModDirs")) SWIG_fail; result = CModules::GetModDirs(); resultobj = PyList_New((&result)->size()); if (resultobj) { for (size_t i = 0; !(&result)->empty(); (&result)->pop(), ++i) { PyList_SetItem(resultobj, i, Py_BuildValue("ss", (&result)->front().first.c_str(), (&result)->front().second.c_str())); } } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnAddUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnAddUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnAddUser" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (bool)(arg1)->OnAddUser(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnDeleteUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnDeleteUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeleteUser" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (bool)(arg1)->OnDeleteUser(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnClientConnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CZNCSock *arg2 = (CZNCSock *) 0 ; CString *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned short val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnClientConnect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientConnect" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnClientConnect" "', argument " "2"" of type '" "CZNCSock *""'"); } arg2 = reinterpret_cast< CZNCSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnClientConnect" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); result = (bool)(arg1)->OnClientConnect(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnLoginAttempt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; std::shared_ptr< CAuthBase > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_OnLoginAttempt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnLoginAttempt" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { int newmem = 0; res2 = SWIG_ConvertPtrAndOwn(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 , &newmem); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2); } result = (bool)(arg1)->OnLoginAttempt(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnFailedLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnFailedLogin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnFailedLogin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnFailedLogin((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnUnknownUserRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnUnknownUserRaw",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUnknownUserRaw" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUnknownUserRaw" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (bool)(arg1)->OnUnknownUserRaw(arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnClientCapLs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; SCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnClientCapLs",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientCapLs" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnClientCapLs" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } arg3 = reinterpret_cast< SCString * >(argp3); result = (bool)(arg1)->OnClientCapLs(arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_IsClientCapSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_IsClientCapSupported",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_IsClientCapSupported" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_IsClientCapSupported" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_IsClientCapSupported" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->IsClientCapSupported(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnClientCapRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnClientCapRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientCapRequest" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnClientCapRequest" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnClientCapRequest" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->OnClientCapRequest(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnModuleLoading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; bool *arg5 = 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CModules_OnModuleLoading",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModuleLoading" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnModuleLoading" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } arg5 = reinterpret_cast< bool * >(argp5); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj5, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg6 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 6 sRetMsg"); } } result = (bool)(arg1)->OnModuleLoading((CString const &)*arg2,(CString const &)*arg3,arg4,*arg5,*arg6); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnModuleUnloading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CModule *arg2 = (CModule *) 0 ; bool *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CModules_OnModuleUnloading",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModuleUnloading" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModuleUnloading" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sRetMsg"); } } result = (bool)(arg1)->OnModuleUnloading(arg2,*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnGetModInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CModInfo *arg2 = 0 ; CString *arg3 = 0 ; bool *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CModules_OnGetModInfo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnGetModInfo" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } arg4 = reinterpret_cast< bool * >(argp4); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sRetMsg"); } } result = (bool)(arg1)->OnGetModInfo(*arg2,(CString const &)*arg3,*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CModules_OnGetAvailableMods(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg2 = 0 ; CModInfo::EModuleType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CModules_OnGetAvailableMods",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnGetAvailableMods" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModules_OnGetAvailableMods" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); result = (bool)(arg1)->OnGetAvailableMods(*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModules_removeModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; CModule *arg2 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CModules_removeModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_removeModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_removeModule" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); result = (bool)CModules_removeModule(arg1,arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CModules_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CModules, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CNick")) SWIG_fail; result = (CNick *)new CNick(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CNick *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CNick",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CNick" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CNick" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CNick *)new CNick((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CNick__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CNick__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CNick'.\n" " Possible C/C++ prototypes are:\n" " CNick::CNick()\n" " CNick::CNick(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CNick" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CNick_Reset",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_Reset" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); (arg1)->Reset(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_Parse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_Parse",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_Parse" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_Parse" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_Parse" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Parse((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetHostMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetHostMask",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetHostMask" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = ((CNick const *)arg1)->GetHostMask(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetCommonChans(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg2 = 0 ; CIRCNetwork *arg3 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CNick_GetCommonChans",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetCommonChans" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_GetCommonChans" "', argument " "2"" of type '" "std::vector< CChan *,std::allocator< CChan * > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_GetCommonChans" "', argument " "2"" of type '" "std::vector< CChan *,std::allocator< CChan * > > &""'"); } arg2 = reinterpret_cast< std::vector< CChan *,std::allocator< CChan * > > * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CNick_GetCommonChans" "', argument " "3"" of type '" "CIRCNetwork *""'"); } arg3 = reinterpret_cast< CIRCNetwork * >(argp3); result = ((CNick const *)arg1)->GetCommonChans(*arg2,arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_NickEquals(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_NickEquals",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_NickEquals" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_NickEquals" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_NickEquals" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CNick const *)arg1)->NickEquals((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CNick_SetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_SetNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetNetwork" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_SetNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_SetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetNick" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CNick_SetIdent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_SetIdent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetIdent" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIdent((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CNick_SetHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_SetHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetHost" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_SetHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CNick_AddPerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_AddPerm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_AddPerm" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CNick_AddPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->AddPerm(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_RemPerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_RemPerm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_RemPerm" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CNick_RemPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->RemPerm(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetPermStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetPermStr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetPermStr" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = ((CNick const *)arg1)->GetPermStr(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetPermChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned char result; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetPermChar",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetPermChar" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (unsigned char)((CNick const *)arg1)->GetPermChar(); resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_HasPerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_HasPerm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_HasPerm" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CNick_HasPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)((CNick const *)arg1)->HasPerm(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetNick" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (CString *) &((CNick const *)arg1)->GetNick(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetIdent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetIdent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetIdent" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (CString *) &((CNick const *)arg1)->GetIdent(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetHost" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (CString *) &((CNick const *)arg1)->GetHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_GetNickMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CNick_GetNickMask",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetNickMask" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = ((CNick const *)arg1)->GetNickMask(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; CNick *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CNick_Clone",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_Clone" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_Clone" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_Clone" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); (arg1)->Clone((CNick const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CNick___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick___str__" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = CNick___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CNick___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CNick___repr__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick___repr__" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = CNick___repr__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CNick_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CNick, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CChan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; CConfig *arg4 = (CConfig *) 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CChan *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CChan",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CChan" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CChan" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CChan" "', argument " "4"" of type '" "CConfig *""'"); } arg4 = reinterpret_cast< CConfig * >(argp4); result = (CChan *)new CChan((CString const &)*arg1,arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CChan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CChan *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CChan",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CChan" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CChan" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (CChan *)new CChan((CString const &)*arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CChan(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CChan__SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CChan__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CChan'.\n" " Possible C/C++ prototypes are:\n" " CChan::CChan(CString const &,CIRCNetwork *,bool,CConfig *)\n" " CChan::CChan(CString const &,CIRCNetwork *,bool)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CChan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CChan",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CChan" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_Reset",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Reset" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->Reset(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_ToConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CConfig result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_ToConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ToConfig" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->ToConfig(); resultobj = SWIG_NewPointerObj((new CConfig(static_cast< const CConfig& >(result))), SWIGTYPE_p_CConfig, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_Clone",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Clone" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_Clone" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_Clone" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); (arg1)->Clone(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_Cycle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_Cycle",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Cycle" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ((CChan const *)arg1)->Cycle(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_JoinUser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_JoinUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_JoinUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_JoinUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_JoinUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->JoinUser((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_JoinUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_JoinUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_JoinUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->JoinUser(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_JoinUser(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_JoinUser__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_JoinUser__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_JoinUser'.\n" " Possible C/C++ prototypes are:\n" " CChan::JoinUser(CString const &)\n" " CChan::JoinUser()\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_AttachUser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_AttachUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AttachUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AttachUser" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->AttachUser(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_AttachUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_AttachUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AttachUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->AttachUser(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_AttachUser(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_AttachUser__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_AttachUser__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_AttachUser'.\n" " Possible C/C++ prototypes are:\n" " CChan::AttachUser(CClient *)\n" " CChan::AttachUser()\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_DetachUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_DetachUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_DetachUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->DetachUser(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_OnWho(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CChan_OnWho",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_OnWho" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_OnWho" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_OnWho" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_OnWho" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_OnWho" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CChan_OnWho" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_OnWho" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->OnWho((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetModes",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetModes" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetModes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetModes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetModes((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_ModeChange__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CNick *arg3 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_ModeChange",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ModeChange" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_ModeChange" "', argument " "3"" of type '" "CNick const *""'"); } arg3 = reinterpret_cast< CNick * >(argp3); (arg1)->ModeChange((CString const &)*arg2,(CNick const *)arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_ModeChange__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_ModeChange",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ModeChange" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ModeChange((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_ModeChange(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_ModeChange__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CNick, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_ModeChange__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_ModeChange'.\n" " Possible C/C++ prototypes are:\n" " CChan::ModeChange(CString const &,CNick const *)\n" " CChan::ModeChange(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_AddMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_AddMode",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddMode" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_AddMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_AddMode" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddMode" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->AddMode(arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CChan_RemMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_RemMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_RemMode" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_RemMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->RemMode(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetModeString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetModeString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeString" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetModeString(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetModeArg__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_GetModeArg",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeArg" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sArgs"); } } result = ((CChan const *)arg1)->GetModeArg(*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetModeForNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetModeForNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeForNames" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetModeForNames(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_ClearNicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_ClearNicks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ClearNicks" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->ClearNicks(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_FindNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CNick *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_FindNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_FindNick" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CNick *)((CChan const *)arg1)->FindNick((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_FindNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CNick *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_FindNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_FindNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CNick *)(arg1)->FindNick((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_FindNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_FindNick__SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_FindNick__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_FindNick'.\n" " Possible C/C++ prototypes are:\n" " CChan::FindNick(CString const &) const\n" " CChan::FindNick(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_AddNicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_AddNicks",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddNicks" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddNicks" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddNicks" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (int)(arg1)->AddNicks((CString const &)*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_AddNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_AddNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddNick((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_RemNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_RemNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_RemNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_RemNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_RemNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemNick((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_ChangeNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_ChangeNick",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ChangeNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_ChangeNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ChangeNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_ChangeNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ChangeNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ChangeNick((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CBuffer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetBuffer" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CBuffer *) &((CChan const *)arg1)->GetBuffer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBuffer, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetBufferCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetBufferCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetBufferCount" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned int)((CChan const *)arg1)->GetBufferCount(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetBufferCount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_SetBufferCount",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CChan_SetBufferCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->SetBufferCount(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetBufferCount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetBufferCount",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (bool)(arg1)->SetBufferCount(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetBufferCount(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_SetBufferCount__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_SetBufferCount__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_SetBufferCount'.\n" " Possible C/C++ prototypes are:\n" " CChan::SetBufferCount(unsigned int,bool)\n" " CChan::SetBufferCount(unsigned int)\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_InheritBufferCount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_InheritBufferCount",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InheritBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_InheritBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CChan_InheritBufferCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->InheritBufferCount(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_InheritBufferCount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_InheritBufferCount",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InheritBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_InheritBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->InheritBufferCount(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_InheritBufferCount(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_InheritBufferCount__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_InheritBufferCount__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_InheritBufferCount'.\n" " Possible C/C++ prototypes are:\n" " CChan::InheritBufferCount(unsigned int,bool)\n" " CChan::InheritBufferCount(unsigned int)\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_AddBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = (timeval *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CChan_AddBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CChan_AddBuffer" "', argument " "4"" of type '" "timeval const *""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (arg1)->AddBuffer((CString const &)*arg2,(CString const &)*arg3,(timeval const *)arg4); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CChan_AddBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_AddBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->AddBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CChan_AddBuffer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_AddBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddBuffer((CString const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_AddBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_AddBuffer__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_AddBuffer__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_AddBuffer__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_AddBuffer'.\n" " Possible C/C++ prototypes are:\n" " CChan::AddBuffer(CString const &,CString const &,timeval const *)\n" " CChan::AddBuffer(CString const &,CString const &)\n" " CChan::AddBuffer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_ClearBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_ClearBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ClearBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->ClearBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SendBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SendBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SendBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SendBuffer" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->SendBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SendBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CClient *arg2 = (CClient *) 0 ; CBuffer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CChan_SendBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SendBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SendBuffer" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CBuffer, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_SendBuffer" "', argument " "3"" of type '" "CBuffer const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SendBuffer" "', argument " "3"" of type '" "CBuffer const &""'"); } arg3 = reinterpret_cast< CBuffer * >(argp3); (arg1)->SendBuffer(arg2,(CBuffer const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SendBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_SendBuffer__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_SendBuffer__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_SendBuffer'.\n" " Possible C/C++ prototypes are:\n" " CChan::SendBuffer(CClient *)\n" " CChan::SendBuffer(CClient *,CBuffer const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_GetPermStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetPermStr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetPermStr" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetPermStr(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_HasPerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_HasPerm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasPerm" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_HasPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)((CChan const *)arg1)->HasPerm(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_AddPerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_AddPerm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddPerm" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_AddPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->AddPerm(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_RemPerm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_RemPerm",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_RemPerm" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_RemPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->RemPerm(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetModeKnown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetModeKnown",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetModeKnown" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetModeKnown" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetModeKnown(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetIsOn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetIsOn",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetIsOn" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetIsOn" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsOn(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetKey",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetKey" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetKey" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetKey" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetKey((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetTopic",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetTopic" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetTopic" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetTopic" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTopic((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetTopicOwner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetTopicOwner",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetTopicOwner" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetTopicOwner" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetTopicOwner" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTopicOwner((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetTopicDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetTopicDate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetTopicDate" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetTopicDate" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); (arg1)->SetTopicDate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetDefaultModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetDefaultModes",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetDefaultModes" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetDefaultModes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetDefaultModes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDefaultModes((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetAutoClearChanBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetAutoClearChanBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetAutoClearChanBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetAutoClearChanBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAutoClearChanBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_InheritAutoClearChanBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_InheritAutoClearChanBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InheritAutoClearChanBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_InheritAutoClearChanBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->InheritAutoClearChanBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetDetached__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetDetached",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetDetached" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetDetached" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDetached(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetDetached__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_SetDetached",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetDetached" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->SetDetached(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetDetached(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CChan_SetDetached__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_SetDetached__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_SetDetached'.\n" " Possible C/C++ prototypes are:\n" " CChan::SetDetached(bool)\n" " CChan::SetDetached()\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_SetInConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetInConfig",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetInConfig" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetInConfig" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetInConfig(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_SetCreationDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_SetCreationDate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetCreationDate" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetCreationDate" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); (arg1)->SetCreationDate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_Disable",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Disable" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->Disable(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_Enable",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Enable" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->Enable(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_IncJoinTries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_IncJoinTries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IncJoinTries" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->IncJoinTries(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_ResetJoinTries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_ResetJoinTries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ResetJoinTries" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->ResetJoinTries(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_IsModeKnown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_IsModeKnown",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsModeKnown" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsModeKnown(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_HasMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_HasMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasMode" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_HasMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)((CChan const *)arg1)->HasMode(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetOptions",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetOptions" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetOptions(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetModeArg__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CChan_GetModeArg",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeArg" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_GetModeArg" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = ((CChan const *)arg1)->GetModeArg(arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetModeArg(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_char(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CChan_GetModeArg__SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CChan_GetModeArg__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CChan_GetModeArg'.\n" " Possible C/C++ prototypes are:\n" " CChan::GetModeArg(CString &) const\n" " CChan::GetModeArg(unsigned char) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CChan_GetPermCounts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::map< char,unsigned int,std::less< char >,std::allocator< std::pair< char const,unsigned int > > > > result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetPermCounts",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetPermCounts" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetPermCounts(); resultobj = SWIG_NewPointerObj((new std::map< char,unsigned int,std::less< char >,std::allocator< std::pair< char const,unsigned int > > >(static_cast< const std::map< char,unsigned int,std::less< char >,std::allocator< std::pair< char const,unsigned int > > >& >(result))), SWIGTYPE_p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_IsOn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_IsOn",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsOn" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsOn(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetName" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< unsigned char,CString,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CString > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetModes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModes" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (std::map< unsigned char,CString,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CString > > > *) &((CChan const *)arg1)->GetModes(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetKey",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetKey" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetKey(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetTopic",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetTopic" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetTopic(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetTopicOwner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetTopicOwner",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetTopicOwner" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetTopicOwner(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetTopicDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetTopicDate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetTopicDate" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned long)((CChan const *)arg1)->GetTopicDate(); resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetDefaultModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetDefaultModes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetDefaultModes" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetDefaultModes(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetNicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetNicks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetNicks" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > > *) &((CChan const *)arg1)->GetNicks(); resultobj = swig::from(static_cast< std::map,std::allocator< std::pair< CString const,CNick > > > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetNickCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetNickCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetNickCount" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetNickCount(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_AutoClearChanBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_AutoClearChanBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AutoClearChanBuffer" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->AutoClearChanBuffer(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_IsDetached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_IsDetached",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsDetached" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsDetached(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_InConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_InConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InConfig" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->InConfig(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetCreationDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetCreationDate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetCreationDate" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned long)((CChan const *)arg1)->GetCreationDate(); resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_IsDisabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_IsDisabled",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsDisabled" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsDisabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetJoinTries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetJoinTries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetJoinTries" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned int)((CChan const *)arg1)->GetJoinTries(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_HasBufferCountSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_HasBufferCountSet",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasBufferCountSet" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->HasBufferCountSet(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_HasAutoClearChanBufferSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_HasAutoClearChanBufferSet",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasAutoClearChanBufferSet" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->HasAutoClearChanBufferSet(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CChan___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan___str__" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = CChan___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CChan___repr__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan___repr__" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = CChan___repr__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CChan_GetNicks_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > > result; if (!PyArg_ParseTuple(args,(char *)"O:CChan_GetNicks_",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetNicks_" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = CChan_GetNicks_(arg1); resultobj = swig::from(static_cast< std::map,std::allocator< std::pair< CString const,CNick > > > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CChan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CChan, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CUser",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CUser" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CUser" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CUser *)new CUser((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_delete_CUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_ParseConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CConfig *arg2 = (CConfig *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_ParseConfig",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ParseConfig" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_ParseConfig" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sError"); } } result = (bool)(arg1)->ParseConfig(arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SaltedHash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SaltedHash",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SaltedHash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SaltedHash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SaltedHash" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SaltedHash" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUser::SaltedHash((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_ToConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CConfig result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_ToConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ToConfig" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->ToConfig(); resultobj = SWIG_NewPointerObj((new CConfig(static_cast< const CConfig& >(result))), SWIGTYPE_p_CConfig, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_CheckPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_CheckPass",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_CheckPass" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_CheckPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_CheckPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CUser const *)arg1)->CheckPass((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddAllowedHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_AddAllowedHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddAllowedHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddAllowedHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddAllowedHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddAllowedHost((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_IsHostAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_IsHostAllowed",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsHostAllowed" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CUser const *)arg1)->IsHostAllowed((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_IsValid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_IsValid",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsValid" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sErrMsg"); } } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_IsValid" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)((CUser const *)arg1)->IsValid(*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_IsValid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_IsValid",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsValid" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sErrMsg"); } } result = (bool)((CUser const *)arg1)->IsValid(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_IsValid(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CUser_IsValid__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[1], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_IsValid__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_IsValid'.\n" " Possible C/C++ prototypes are:\n" " CUser::IsValid(CString &,bool) const\n" " CUser::IsValid(CString &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_IsValidUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_IsValidUserName",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsValidUserName" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_IsValidUserName" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CUser::IsValidUserName((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUser_MakeCleanUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_MakeCleanUserName",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MakeCleanUserName" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_MakeCleanUserName" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CUser::MakeCleanUserName((CString const &)*arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetModules__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetModules",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetModules" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CModules *) &(arg1)->GetModules(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetModules__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetModules",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetModules" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CModules *) &((CUser const *)arg1)->GetModules(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetModules(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_GetModules__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_GetModules__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_GetModules'.\n" " Possible C/C++ prototypes are:\n" " CUser::GetModules()\n" " CUser::GetModules() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_AddNetwork__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_AddNetwork",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (CIRCNetwork *)(arg1)->AddNetwork((CString const &)*arg2,*arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_DeleteNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_DeleteNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DeleteNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_DeleteNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_DeleteNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DeleteNetwork((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddNetwork__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_AddNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (bool)(arg1)->AddNetwork(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddNetwork(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_AddNetwork__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CUser_AddNetwork__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_AddNetwork'.\n" " Possible C/C++ prototypes are:\n" " CUser::AddNetwork(CString const &,CString &)\n" " CUser::AddNetwork(CIRCNetwork *)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_RemoveNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_RemoveNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_RemoveNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_RemoveNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->RemoveNetwork(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_FindNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_FindNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_FindNetwork" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_FindNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_FindNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CIRCNetwork *)((CUser const *)arg1)->FindNetwork((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetNetworks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetNetworks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNetworks" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *) &((CUser const *)arg1)->GetNetworks(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_HasSpaceForNewNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_HasSpaceForNewNetwork",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_HasSpaceForNewNetwork" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->HasSpaceForNewNetwork(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutUser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_PutUser",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_PutUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutUser__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_PutUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutUser((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutUser(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutUser__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutUser__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutUser__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_PutUser'.\n" " Possible C/C++ prototypes are:\n" " CUser::PutUser(CString const &,CClient *,CClient *)\n" " CUser::PutUser(CString const &,CClient *)\n" " CUser::PutUser(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_PutAllUser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_PutAllUser",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutAllUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutAllUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutAllUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutAllUser((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutAllUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_PutAllUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutAllUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutAllUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutAllUser((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutAllUser__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_PutAllUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutAllUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutAllUser((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutAllUser(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutAllUser__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutAllUser__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutAllUser__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_PutAllUser'.\n" " Possible C/C++ prototypes are:\n" " CUser::PutAllUser(CString const &,CClient *,CClient *)\n" " CUser::PutAllUser(CString const &,CClient *)\n" " CUser::PutAllUser(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_PutStatus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_PutStatus",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatus" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutStatus" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutStatus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_PutStatus",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatus" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutStatus__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_PutStatus",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatus" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatus((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutStatus(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutStatus__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutStatus__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutStatus__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_PutStatus'.\n" " Possible C/C++ prototypes are:\n" " CUser::PutStatus(CString const &,CClient *,CClient *)\n" " CUser::PutStatus(CString const &,CClient *)\n" " CUser::PutStatus(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_PutStatusNotice__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_PutStatusNotice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatusNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatusNotice" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutStatusNotice" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutStatusNotice((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutStatusNotice__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_PutStatusNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatusNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatusNotice" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutStatusNotice((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutStatusNotice__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_PutStatusNotice",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatusNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatusNotice((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutStatusNotice(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutStatusNotice__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutStatusNotice__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutStatusNotice__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_PutStatusNotice'.\n" " Possible C/C++ prototypes are:\n" " CUser::PutStatusNotice(CString const &,CClient *,CClient *)\n" " CUser::PutStatusNotice(CString const &,CClient *)\n" " CUser::PutStatusNotice(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_PutModule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CUser_PutModule",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CUser_PutModule" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutModule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_PutModule",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutModule__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_PutModule",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutModule(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutModule__SWIG_2(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutModule__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutModule__SWIG_0(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_PutModule'.\n" " Possible C/C++ prototypes are:\n" " CUser::PutModule(CString const &,CString const &,CClient *,CClient *)\n" " CUser::PutModule(CString const &,CString const &,CClient *)\n" " CUser::PutModule(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_PutModNotice__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CUser_PutModNotice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModNotice" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CUser_PutModNotice" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); result = (bool)(arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutModNotice__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_PutModNotice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModNotice" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutModNotice__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_PutModNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_PutModNotice(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutModNotice__SWIG_2(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutModNotice__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_PutModNotice__SWIG_0(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_PutModNotice'.\n" " Possible C/C++ prototypes are:\n" " CUser::PutModNotice(CString const &,CString const &,CClient *,CClient *)\n" " CUser::PutModNotice(CString const &,CString const &,CClient *)\n" " CUser::PutModNotice(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_IsUserAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_IsUserAttached",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsUserAttached" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->IsUserAttached(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_UserConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_UserConnected",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_UserConnected" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_UserConnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->UserConnected(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_UserDisconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_UserDisconnected",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_UserDisconnected" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_UserDisconnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->UserDisconnected(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetLocalDCCIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetLocalDCCIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetLocalDCCIP" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetLocalDCCIP(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_ExpandString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_ExpandString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ExpandString" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CUser const *)arg1)->ExpandString((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_ExpandString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_ExpandString",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ExpandString" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRet"); } } result = (CString *) &((CUser const *)arg1)->ExpandString((CString const &)*arg2,*arg3); { if (result) { resultobj = CPyRetString::wrap(*result); } else { resultobj = Py_None; Py_INCREF(Py_None); } } if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_ExpandString(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_ExpandString__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CUser_ExpandString__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_ExpandString'.\n" " Possible C/C++ prototypes are:\n" " CUser::ExpandString(CString const &) const\n" " CUser::ExpandString(CString const &,CString &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_AddTimestamp__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_AddTimestamp",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddTimestamp" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CUser const *)arg1)->AddTimestamp((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddTimestamp__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; time_t arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_AddTimestamp",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddTimestamp" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_AddTimestamp" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddTimestamp" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = ((CUser const *)arg1)->AddTimestamp(arg2,(CString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddTimestamp(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_AddTimestamp__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_AddTimestamp__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_AddTimestamp'.\n" " Possible C/C++ prototypes are:\n" " CUser::AddTimestamp(CString const &) const\n" " CUser::AddTimestamp(time_t,CString const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_CloneNetworks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_CloneNetworks",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_CloneNetworks" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_CloneNetworks" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_CloneNetworks" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->CloneNetworks((CUser const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_Clone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_Clone",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_Clone" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CUser_Clone" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->Clone((CUser const &)*arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_Clone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_Clone",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_Clone" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (bool)(arg1)->Clone((CUser const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_Clone(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CUser_Clone__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_Clone__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_Clone'.\n" " Possible C/C++ prototypes are:\n" " CUser::Clone(CUser const &,CString &,bool)\n" " CUser::Clone(CUser const &,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_BounceAllClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_BounceAllClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_BounceAllClients" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); (arg1)->BounceAllClients(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddBytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_AddBytesRead",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddBytesRead" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_AddBytesRead" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesRead(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddBytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_AddBytesWritten",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddBytesWritten" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_AddBytesWritten" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesWritten(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetNick" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetAltNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetAltNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAltNick" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetAltNick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetIdent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetIdent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetIdent" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIdent((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetRealName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetRealName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetRealName" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetRealName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBindHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetDCCBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetDCCBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDCCBindHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetDCCBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetDCCBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDCCBindHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetPass__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CUser::eHashType arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CUser_SetPass",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetPass" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_SetPass" "', argument " "3"" of type '" "CUser::eHashType""'"); } arg3 = static_cast< CUser::eHashType >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_SetPass" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetPass" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->SetPass((CString const &)*arg2,arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetPass__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CUser::eHashType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_SetPass",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetPass" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_SetPass" "', argument " "3"" of type '" "CUser::eHashType""'"); } arg3 = static_cast< CUser::eHashType >(val3); (arg1)->SetPass((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetPass(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_SetPass__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_SetPass__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_SetPass'.\n" " Possible C/C++ prototypes are:\n" " CUser::SetPass(CString const &,CUser::eHashType,CString const &)\n" " CUser::SetPass(CString const &,CUser::eHashType)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_SetMultiClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetMultiClients",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMultiClients" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMultiClients" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetMultiClients(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetDenyLoadMod(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetDenyLoadMod",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDenyLoadMod" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetDenyLoadMod" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDenyLoadMod(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetAdmin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAdmin" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetAdmin" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAdmin(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetDenySetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetDenySetBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDenySetBindHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetDenySetBindHost" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDenySetBindHost(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetStatusPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetStatusPrefix",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetStatusPrefix" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->SetStatusPrefix((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetDefaultChanModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetDefaultChanModes",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDefaultChanModes" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetDefaultChanModes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetDefaultChanModes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDefaultChanModes((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetClientEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetClientEncoding",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetClientEncoding" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetClientEncoding" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetClientEncoding" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetClientEncoding((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetQuitMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetQuitMsg",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetQuitMsg" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetQuitMsg((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_AddCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_AddCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddCTCPReply" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_AddCTCPReply" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddCTCPReply" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->AddCTCPReply((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CUser_DelCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_DelCTCPReply",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DelCTCPReply" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_DelCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_DelCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelCTCPReply((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetBufferCount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CUser_SetBufferCount",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBufferCount" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_SetBufferCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->SetBufferCount(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetBufferCount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetBufferCount",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBufferCount" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (bool)(arg1)->SetBufferCount(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetBufferCount(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_SetBufferCount__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_SetBufferCount__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_SetBufferCount'.\n" " Possible C/C++ prototypes are:\n" " CUser::SetBufferCount(unsigned int,bool)\n" " CUser::SetBufferCount(unsigned int)\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_SetAutoClearChanBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetAutoClearChanBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAutoClearChanBuffer" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetAutoClearChanBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAutoClearChanBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetAutoClearQueryBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetAutoClearQueryBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAutoClearQueryBuffer" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetAutoClearQueryBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAutoClearQueryBuffer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetBeingDeleted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetBeingDeleted",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBeingDeleted" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetBeingDeleted" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetBeingDeleted(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetTimestampFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetTimestampFormat",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimestampFormat" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetTimestampFormat" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetTimestampFormat" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTimestampFormat((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetTimestampAppend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetTimestampAppend",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimestampAppend" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetTimestampAppend" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetTimestampAppend(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetTimestampPrepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetTimestampPrepend",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimestampPrepend" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetTimestampPrepend" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetTimestampPrepend(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetTimezone",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimezone" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetTimezone" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetTimezone" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTimezone((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetJoinTries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetJoinTries",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetJoinTries" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetJoinTries" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetJoinTries(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetMaxJoins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetMaxJoins",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMaxJoins" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMaxJoins" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxJoins(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetSkinName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetSkinName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetSkinName" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSkinName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetMaxNetworks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetMaxNetworks",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMaxNetworks" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMaxNetworks" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxNetworks(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_SetMaxQueryBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_SetMaxQueryBuffers",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMaxQueryBuffers" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMaxQueryBuffers" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxQueryBuffers(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetUserClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient *,std::allocator< CClient * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetUserClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetUserClients" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::vector< CClient *,std::allocator< CClient * > > *) &((CUser const *)arg1)->GetUserClients(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetAllClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient *,std::allocator< CClient * > > result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetAllClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAllClients" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetAllClients(); resultobj = swig::from(static_cast< std::vector > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetUserName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetUserName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetUserName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetCleanUserName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetCleanUserName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetCleanUserName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetCleanUserName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_GetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_GetNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CUser const *)arg1)->GetNick(arg2); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetNick(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_GetNick__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_GetNick__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_GetNick'.\n" " Possible C/C++ prototypes are:\n" " CUser::GetNick(bool) const\n" " CUser::GetNick() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_GetAltNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_GetAltNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAltNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_GetAltNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CUser const *)arg1)->GetAltNick(arg2); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetAltNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetAltNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAltNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetAltNick(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetAltNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_GetAltNick__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_GetAltNick__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_GetAltNick'.\n" " Possible C/C++ prototypes are:\n" " CUser::GetAltNick(bool) const\n" " CUser::GetAltNick() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_GetIdent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CUser_GetIdent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetIdent" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_GetIdent" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CUser const *)arg1)->GetIdent(arg2); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetIdent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetIdent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetIdent" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetIdent(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetIdent(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CUser_GetIdent__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CUser_GetIdent__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CUser_GetIdent'.\n" " Possible C/C++ prototypes are:\n" " CUser::GetIdent(bool) const\n" " CUser::GetIdent() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CUser_GetRealName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetRealName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetRealName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetRealName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetBindHost" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetDCCBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetDCCBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetDCCBindHost" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetDCCBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetPass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetPass" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetPass(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetPassHashType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CUser::eHashType result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetPassHashType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetPassHashType" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CUser::eHashType)((CUser const *)arg1)->GetPassHashType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetPassSalt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetPassSalt",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetPassSalt" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetPassSalt(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetAllowedHosts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< CString,std::less< CString >,std::allocator< CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetAllowedHosts",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAllowedHosts" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::set< CString,std::less< CString >,std::allocator< CString > > *) &((CUser const *)arg1)->GetAllowedHosts(); resultobj = swig::from(static_cast< std::set,std::allocator< CString > > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetTimestampFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetTimestampFormat",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimestampFormat" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetTimestampFormat(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetClientEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetClientEncoding",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetClientEncoding" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetClientEncoding(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetTimestampAppend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetTimestampAppend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimestampAppend" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->GetTimestampAppend(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetTimestampPrepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetTimestampPrepend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimestampPrepend" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->GetTimestampPrepend(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetUserPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetUserPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetUserPath" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetUserPath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_DenyLoadMod(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_DenyLoadMod",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DenyLoadMod" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->DenyLoadMod(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_IsAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_IsAdmin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsAdmin" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->IsAdmin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_DenySetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_DenySetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DenySetBindHost" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->DenySetBindHost(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_MultiClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_MultiClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MultiClients" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->MultiClients(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetStatusPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetStatusPrefix",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetStatusPrefix" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetStatusPrefix(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetDefaultChanModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetDefaultChanModes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetDefaultChanModes" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetDefaultChanModes(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetQuitMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetQuitMsg",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetQuitMsg" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetQuitMsg(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetCTCPReplies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; MCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetCTCPReplies",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetCTCPReplies" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (MCString *) &((CUser const *)arg1)->GetCTCPReplies(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetBufferCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetBufferCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetBufferCount" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->GetBufferCount(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_AutoClearChanBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_AutoClearChanBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AutoClearChanBuffer" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->AutoClearChanBuffer(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_AutoClearQueryBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_AutoClearQueryBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AutoClearQueryBuffer" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->AutoClearQueryBuffer(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_IsBeingDeleted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_IsBeingDeleted",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsBeingDeleted" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->IsBeingDeleted(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetTimezone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetTimezone",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimezone" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetTimezone(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_BytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_BytesRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_BytesRead" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned long long)((CUser const *)arg1)->BytesRead(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_BytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_BytesWritten",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_BytesWritten" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned long long)((CUser const *)arg1)->BytesWritten(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_JoinTries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_JoinTries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_JoinTries" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->JoinTries(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_MaxJoins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_MaxJoins",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MaxJoins" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->MaxJoins(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetSkinName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetSkinName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetSkinName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetSkinName(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_MaxNetworks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_MaxNetworks",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MaxNetworks" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->MaxNetworks(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_MaxQueryBuffers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_MaxQueryBuffers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MaxQueryBuffers" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->MaxQueryBuffers(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser___str__" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = CUser___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CUser___repr__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser___repr__" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = CUser___repr__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CUser_GetNetworks_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > result; if (!PyArg_ParseTuple(args,(char *)"O:CUser_GetNetworks_",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNetworks_" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = CUser_GetNetworks_(arg1); resultobj = swig::from(static_cast< std::vector > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CUser_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CUser, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsValidNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsValidNetwork",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsValidNetwork" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_IsValidNetwork" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CIRCNetwork::IsValidNetwork((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CIRCNetwork__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CIRCNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIRCNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CIRCNetwork *)new CIRCNetwork(arg1,(CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CIRCNetwork__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CIRCNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIRCNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (CIRCNetwork *)new CIRCNetwork(arg1,(CIRCNetwork const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CIRCNetwork(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CIRCNetwork__SWIG_1(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CIRCNetwork__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CIRCNetwork'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::CIRCNetwork(CUser *,CString const &)\n" " CIRCNetwork::CIRCNetwork(CUser *,CIRCNetwork const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CIRCNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CIRCNetwork",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIRCNetwork" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_Clone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CIRCNetwork *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_Clone",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_Clone" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_Clone" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->Clone((CIRCNetwork const &)*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_Clone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_Clone",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_Clone" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->Clone((CIRCNetwork const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_Clone(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_Clone__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_Clone__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_Clone'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::Clone(CIRCNetwork const &,bool)\n" " CIRCNetwork::Clone(CIRCNetwork const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetNetworkPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetNetworkPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNetworkPath" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->GetNetworkPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_DelServers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_DelServers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelServers" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->DelServers(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ParseConfig__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CConfig *arg2 = (CConfig *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_ParseConfig",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ParseConfig" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ParseConfig" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sError"); } } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CIRCNetwork_ParseConfig" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->ParseConfig(arg2,*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ParseConfig__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CConfig *arg2 = (CConfig *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_ParseConfig",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ParseConfig" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ParseConfig" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sError"); } } result = (bool)(arg1)->ParseConfig(arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ParseConfig(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CIRCNetwork_ParseConfig__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_ParseConfig__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_ParseConfig'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::ParseConfig(CConfig *,CString &,bool)\n" " CIRCNetwork::ParseConfig(CConfig *,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ToConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CConfig result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_ToConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ToConfig" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->ToConfig(); resultobj = SWIG_NewPointerObj((new CConfig(static_cast< const CConfig& >(result))), SWIGTYPE_p_CConfig, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_BounceAllClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_BounceAllClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_BounceAllClients" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->BounceAllClients(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsUserAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsUserAttached",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsUserAttached" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsUserAttached(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsUserOnline(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsUserOnline",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsUserOnline" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsUserOnline(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ClientConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_ClientConnected",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClientConnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ClientConnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->ClientConnected(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ClientDisconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_ClientDisconnected",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClientDisconnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ClientDisconnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->ClientDisconnected(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetUser" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CUser *)((CIRCNetwork const *)arg1)->GetUser(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetName" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsNetworkAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsNetworkAttached",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsNetworkAttached" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsNetworkAttached(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient *,std::allocator< CClient * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetClients" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CClient *,std::allocator< CClient * > > *) &((CIRCNetwork const *)arg1)->GetClients(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_FindClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CClient *,std::allocator< CClient * > > result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_FindClients",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindClients" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindClients" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindClients" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->FindClients((CString const &)*arg2); resultobj = swig::from(static_cast< std::vector > >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->SetUser(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetName" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->SetName((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetModules__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetModules",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetModules" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CModules *) &(arg1)->GetModules(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetModules__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetModules",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetModules" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CModules *) &((CIRCNetwork const *)arg1)->GetModules(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetModules(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetModules__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetModules__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_GetModules'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::GetModules()\n" " CIRCNetwork::GetModules() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutUser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_PutUser",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_PutUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutUser__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_PutUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutUser((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutUser(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutUser__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutUser__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutUser__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_PutUser'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::PutUser(CString const &,CClient *,CClient *)\n" " CIRCNetwork::PutUser(CString const &,CClient *)\n" " CIRCNetwork::PutUser(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutStatus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_PutStatus",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutStatus" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutStatus" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutStatus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_PutStatus",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutStatus" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutStatus__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_PutStatus",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutStatus" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatus((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutStatus(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutStatus__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutStatus__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutStatus__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_PutStatus'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::PutStatus(CString const &,CClient *,CClient *)\n" " CIRCNetwork::PutStatus(CString const &,CClient *)\n" " CIRCNetwork::PutStatus(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutModule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CIRCNetwork_PutModule",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutModule" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CIRCNetwork_PutModule" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutModule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_PutModule",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutModule" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutModule__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_PutModule",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutModule" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutModule(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutModule__SWIG_2(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutModule__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_PutModule__SWIG_0(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_PutModule'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::PutModule(CString const &,CString const &,CClient *,CClient *)\n" " CIRCNetwork::PutModule(CString const &,CString const &,CClient *)\n" " CIRCNetwork::PutModule(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetChans(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetChans",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetChans" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CChan *,std::allocator< CChan * > > *) &((CIRCNetwork const *)arg1)->GetChans(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_FindChan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CChan *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_FindChan",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindChan" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CIRCNetwork_FindChan" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (CChan *)((CIRCNetwork const *)arg1)->FindChan(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_FindChans(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CChan *,std::allocator< CChan * > > result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_FindChans",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindChans" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindChans" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindChans" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->FindChans((CString const &)*arg2); resultobj = swig::from(static_cast< std::vector > >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddChan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CChan *arg2 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddChan",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddChan" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddChan" "', argument " "2"" of type '" "CChan *""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (bool)(arg1)->AddChan(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddChan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_AddChan",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddChan" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddChan" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddChan" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddChan" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->AddChan((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddChan(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddChan__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_AddChan__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_AddChan'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::AddChan(CChan *)\n" " CIRCNetwork::AddChan(CString const &,bool)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_DelChan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_DelChan",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelChan" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelChan" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelChan" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelChan((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_JoinChans__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_JoinChans",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_JoinChans" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->JoinChans(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_JoinChans__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; std::set< CChan *,std::less< CChan * >,std::allocator< CChan * > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_JoinChans",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_JoinChans" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_JoinChans" "', argument " "2"" of type '" "std::set< CChan *,std::less< CChan * >,std::allocator< CChan * > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_JoinChans" "', argument " "2"" of type '" "std::set< CChan *,std::less< CChan * >,std::allocator< CChan * > > &""'"); } arg2 = reinterpret_cast< std::set< CChan *,std::less< CChan * >,std::allocator< CChan * > > * >(argp2); (arg1)->JoinChans(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_JoinChans(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_JoinChans__SWIG_0(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_JoinChans__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_JoinChans'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::JoinChans()\n" " CIRCNetwork::JoinChans(std::set< CChan *,std::less< CChan * >,std::allocator< CChan * > > &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetQueries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CQuery *,std::allocator< CQuery * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetQueries",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetQueries" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CQuery *,std::allocator< CQuery * > > *) &((CIRCNetwork const *)arg1)->GetQueries(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_FindQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CQuery *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_FindQuery",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindQuery" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindQuery" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindQuery" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CQuery *)((CIRCNetwork const *)arg1)->FindQuery((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CQuery, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_FindQueries(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< CQuery *,std::allocator< CQuery * > > > result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_FindQueries",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindQueries" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindQueries" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindQueries" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->FindQueries((CString const &)*arg2); resultobj = SWIG_NewPointerObj((new std::vector< CQuery *,std::allocator< CQuery * > >(static_cast< const std::vector< CQuery *,std::allocator< CQuery * > >& >(result))), SWIGTYPE_p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CQuery *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddQuery",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddQuery" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddQuery" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQuery" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CQuery *)(arg1)->AddQuery((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CQuery, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_DelQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_DelQuery",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelQuery" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelQuery" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelQuery" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelQuery((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetChanPrefixes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetChanPrefixes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetChanPrefixes" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetChanPrefixes(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetChanPrefixes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetChanPrefixes",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetChanPrefixes" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetChanPrefixes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetChanPrefixes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetChanPrefixes((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsChan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_IsChan",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsChan" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_IsChan" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_IsChan" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CIRCNetwork const *)arg1)->IsChan((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetServers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CServer *,std::allocator< CServer * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetServers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetServers" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CServer *,std::allocator< CServer * > > *) &((CIRCNetwork const *)arg1)->GetServers(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_HasServers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_HasServers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_HasServers" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->HasServers(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_FindServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_FindServer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CServer *)((CIRCNetwork const *)arg1)->FindServer((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_DelServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_DelServer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_DelServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_DelServer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelServer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->DelServer((CString const &)*arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddServer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddServer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddServer((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddServer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CIRCNetwork_AddServer",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CIRCNetwork_AddServer" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->AddServer((CString const &)*arg2,arg3,(CString const &)*arg4,arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddServer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_AddServer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->AddServer((CString const &)*arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddServer__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_AddServer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->AddServer((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddServer(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddServer__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_AddServer__SWIG_3(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddServer__SWIG_2(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_AddServer__SWIG_1(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_AddServer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::AddServer(CString const &)\n" " CIRCNetwork::AddServer(CString const &,unsigned short,CString const &,bool)\n" " CIRCNetwork::AddServer(CString const &,unsigned short,CString const &)\n" " CIRCNetwork::AddServer(CString const &,unsigned short)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetNextServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetNextServer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNextServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CServer *)(arg1)->GetNextServer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetCurrentServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetCurrentServer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetCurrentServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CServer *)((CIRCNetwork const *)arg1)->GetCurrentServer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetIRCServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetIRCServer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIRCServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetIRCServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIRCServer((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetNextServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CServer *arg2 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetNextServer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetNextServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetNextServer" "', argument " "2"" of type '" "CServer const *""'"); } arg2 = reinterpret_cast< CServer * >(argp2); result = (bool)(arg1)->SetNextServer((CServer const *)arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsLastServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsLastServer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsLastServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsLastServer(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetTrustedFingerprints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetTrustedFingerprints",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetTrustedFingerprints" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (SCString *) &((CIRCNetwork const *)arg1)->GetTrustedFingerprints(); resultobj = swig::from(static_cast< std::set,std::allocator< CString > > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddTrustedFingerprint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddTrustedFingerprint",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddTrustedFingerprint" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddTrustedFingerprint((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_DelTrustedFingerprint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_DelTrustedFingerprint",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelTrustedFingerprint" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->DelTrustedFingerprint((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetIRCConnectEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetIRCConnectEnabled",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCConnectEnabled" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetIRCConnectEnabled" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIRCConnectEnabled(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIRCConnectEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetIRCConnectEnabled",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCConnectEnabled" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->GetIRCConnectEnabled(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIRCSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetIRCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCSock" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CIRCSock *)(arg1)->GetIRCSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIRCSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetIRCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCSock" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CIRCSock *)((CIRCNetwork const *)arg1)->GetIRCSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIRCSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetIRCSock__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetIRCSock__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_GetIRCSock'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::GetIRCSock()\n" " CIRCNetwork::GetIRCSock() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIRCServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetIRCServer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetIRCServer(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIRCNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CNick *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetIRCNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CNick *) &((CIRCNetwork const *)arg1)->GetIRCNick(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetIRCNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CNick *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetIRCNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCNick" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIRCNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetIRCNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); (arg1)->SetIRCNick((CNick const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetCurNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetCurNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetCurNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->GetCurNick(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsIRCAway(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsIRCAway",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsIRCAway" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsIRCAway(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetIRCAway(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetIRCAway",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCAway" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetIRCAway" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIRCAway(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_Connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_Connect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_Connect" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)(arg1)->Connect(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IsIRCConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IsIRCConnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsIRCConnected" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsIRCConnected(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetIRCSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetIRCSocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCSocket" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIRCSocket" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); (arg1)->SetIRCSocket(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IRCConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IRCConnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IRCConnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->IRCConnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_IRCDisconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_IRCDisconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IRCDisconnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->IRCDisconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_CheckIRCConnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_CheckIRCConnect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_CheckIRCConnect" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->CheckIRCConnect(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_PutIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_PutIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutIRC" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutIRC((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddRawBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_AddRawBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddRawBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddRawBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddRawBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddRawBuffer((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddRawBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddRawBuffer__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddRawBuffer__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_AddRawBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::AddRawBuffer(CString const &,CString const &)\n" " CIRCNetwork::AddRawBuffer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateRawBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_UpdateRawBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateRawBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateRawBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_UpdateRawBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateRawBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateRawBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateRawBuffer__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateRawBuffer__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_UpdateRawBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::UpdateRawBuffer(CString const &,CString const &,CString const &)\n" " CIRCNetwork::UpdateRawBuffer(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_UpdateExactRawBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateExactRawBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_UpdateExactRawBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->UpdateExactRawBuffer((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateExactRawBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_UpdateExactRawBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::UpdateExactRawBuffer(CString const &,CString const &)\n" " CIRCNetwork::UpdateExactRawBuffer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ClearRawBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_ClearRawBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClearRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearRawBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddMotdBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_AddMotdBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddMotdBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddMotdBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddMotdBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddMotdBuffer((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddMotdBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddMotdBuffer__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddMotdBuffer__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_AddMotdBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::AddMotdBuffer(CString const &,CString const &)\n" " CIRCNetwork::AddMotdBuffer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_UpdateMotdBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateMotdBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_UpdateMotdBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateMotdBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateMotdBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_UpdateMotdBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::UpdateMotdBuffer(CString const &,CString const &,CString const &)\n" " CIRCNetwork::UpdateMotdBuffer(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ClearMotdBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_ClearMotdBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClearMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearMotdBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddNoticeBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_AddNoticeBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddNoticeBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddNoticeBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_AddNoticeBuffer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddNoticeBuffer((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_AddNoticeBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddNoticeBuffer__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_AddNoticeBuffer__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_AddNoticeBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::AddNoticeBuffer(CString const &,CString const &)\n" " CIRCNetwork::AddNoticeBuffer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCNetwork_UpdateNoticeBuffer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateNoticeBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_UpdateNoticeBuffer",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateNoticeBuffer((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_UpdateNoticeBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_UpdateNoticeBuffer'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::UpdateNoticeBuffer(CString const &,CString const &,CString const &)\n" " CIRCNetwork::UpdateNoticeBuffer(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ClearNoticeBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_ClearNoticeBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClearNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearNoticeBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_GetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_GetNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CIRCNetwork const *)arg1)->GetNick(arg2); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetNick(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetNick__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_GetNick__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_GetNick'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::GetNick(bool const) const\n" " CIRCNetwork::GetNick() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetAltNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_GetAltNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetAltNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_GetAltNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CIRCNetwork const *)arg1)->GetAltNick(arg2); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetAltNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetAltNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetAltNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetAltNick(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetAltNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetAltNick__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_GetAltNick__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_GetAltNick'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::GetAltNick(bool const) const\n" " CIRCNetwork::GetAltNick() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIdent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_GetIdent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIdent" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_GetIdent" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CIRCNetwork const *)arg1)->GetIdent(arg2); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIdent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetIdent",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIdent" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetIdent(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetIdent(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_GetIdent__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CIRCNetwork_GetIdent__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_GetIdent'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::GetIdent(bool const) const\n" " CIRCNetwork::GetIdent() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetRealName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetRealName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetRealName" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetRealName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetBindHost" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetEncoding",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetEncoding" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetEncoding(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetQuitMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetQuitMsg",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetQuitMsg" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->GetQuitMsg(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetNick" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetAltNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetAltNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetAltNick" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetAltNick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetIdent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetIdent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIdent" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIdent((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetRealName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetRealName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetRealName" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetRealName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetBindHost" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetEncoding",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetEncoding" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetEncoding((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetQuitMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetQuitMsg",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetQuitMsg" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetQuitMsg((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetFloodRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; double result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetFloodRate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetFloodRate" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (double)((CIRCNetwork const *)arg1)->GetFloodRate(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetFloodBurst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetFloodBurst",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetFloodBurst" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (unsigned short)((CIRCNetwork const *)arg1)->GetFloodBurst(); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetFloodRate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetFloodRate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetFloodRate" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_double(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetFloodRate" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); (arg1)->SetFloodRate(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetFloodBurst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetFloodBurst",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetFloodBurst" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetFloodBurst" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); (arg1)->SetFloodBurst(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetJoinDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetJoinDelay",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetJoinDelay" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (unsigned short)((CIRCNetwork const *)arg1)->GetJoinDelay(); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_SetJoinDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_SetJoinDelay",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetJoinDelay" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetJoinDelay" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); (arg1)->SetJoinDelay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ExpandString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCNetwork_ExpandString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ExpandString" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->ExpandString((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ExpandString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCNetwork_ExpandString",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ExpandString" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sRet"); } } result = (CString *) &((CIRCNetwork const *)arg1)->ExpandString((CString const &)*arg2,*arg3); { if (result) { resultobj = CPyRetString::wrap(*result); } else { resultobj = Py_None; Py_INCREF(Py_None); } } if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_ExpandString(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCNetwork_ExpandString__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CIRCNetwork_ExpandString__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCNetwork_ExpandString'.\n" " Possible C/C++ prototypes are:\n" " CIRCNetwork::ExpandString(CString const &) const\n" " CIRCNetwork::ExpandString(CString const &,CString &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCNetwork___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork___str__" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = CIRCNetwork___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork___repr__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork___repr__" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = CIRCNetwork___repr__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCNetwork_GetChans_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CChan *,std::allocator< CChan * > > result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCNetwork_GetChans_",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetChans_" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = CIRCNetwork_GetChans_(arg1); resultobj = swig::from(static_cast< std::vector > >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CIRCNetwork_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CIRCNetwork, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_delete_CAuthBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase > tempshared1 ; std::shared_ptr< CAuthBase > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CAuthBase",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CAuthBase" "', argument " "1"" of type '" "CAuthBase *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } (void)arg1; delete smartarg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_SetLoginInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CZNCSock *arg4 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase > tempshared1 ; std::shared_ptr< CAuthBase > *smartarg1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CAuthBase_SetLoginInfo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_SetLoginInfo" "', argument " "1"" of type '" "CAuthBase *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CAuthBase_SetLoginInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_SetLoginInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CAuthBase_SetLoginInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_SetLoginInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CAuthBase_SetLoginInfo" "', argument " "4"" of type '" "CZNCSock *""'"); } arg4 = reinterpret_cast< CZNCSock * >(argp4); (arg1)->SetLoginInfo((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_AcceptLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase > tempshared1 ; std::shared_ptr< CAuthBase > *smartarg1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CAuthBase_AcceptLogin",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_AcceptLogin" "', argument " "1"" of type '" "CAuthBase *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CAuthBase_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->AcceptLogin(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_RefuseLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase > tempshared1 ; std::shared_ptr< CAuthBase > *smartarg1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CAuthBase_RefuseLogin",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_RefuseLogin" "', argument " "1"" of type '" "CAuthBase *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CAuthBase_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RefuseLogin((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_GetUsername(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase const > tempshared1 ; std::shared_ptr< CAuthBase const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetUsername",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetUsername" "', argument " "1"" of type '" "CAuthBase const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } result = (CString *) &((CAuthBase const *)arg1)->GetUsername(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_GetPassword(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase const > tempshared1 ; std::shared_ptr< CAuthBase const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetPassword",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetPassword" "', argument " "1"" of type '" "CAuthBase const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } result = (CString *) &((CAuthBase const *)arg1)->GetPassword(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_GetSocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase const > tempshared1 ; std::shared_ptr< CAuthBase const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetSocket",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetSocket" "', argument " "1"" of type '" "CAuthBase const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } result = (Csock *)((CAuthBase const *)arg1)->GetSocket(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_GetRemoteIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase const > tempshared1 ; std::shared_ptr< CAuthBase const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_GetRemoteIP",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetRemoteIP" "', argument " "1"" of type '" "CAuthBase const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } result = ((CAuthBase const *)arg1)->GetRemoteIP(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CAuthBase_Invalidate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CAuthBase > tempshared1 ; std::shared_ptr< CAuthBase > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CAuthBase_Invalidate",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_Invalidate" "', argument " "1"" of type '" "CAuthBase *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp1); arg1 = const_cast< CAuthBase * >((smartarg1 ? smartarg1->get() : 0)); } } (arg1)->Invalidate(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CAuthBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CClientAuth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CClientAuth *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CClientAuth",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CClientAuth" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CClientAuth" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CClientAuth" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CClientAuth" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CClientAuth" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CClientAuth *)new CClientAuth(arg1,(CString const &)*arg2,(CString const &)*arg3); { std::shared_ptr< CClientAuth > *smartresult = result ? new std::shared_ptr< CClientAuth >(result SWIG_NO_NULL_DELETER_SWIG_POINTER_NEW) : 0; resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CClientAuth_t, SWIG_POINTER_NEW | SWIG_POINTER_OWN); } if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_delete_CClientAuth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClientAuth *arg1 = (CClientAuth *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CClientAuth > tempshared1 ; std::shared_ptr< CClientAuth > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CClientAuth",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CClientAuth_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CClientAuth" "', argument " "1"" of type '" "CClientAuth *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); delete reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >((smartarg1 ? smartarg1->get() : 0)); } } (void)arg1; delete smartarg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClientAuth_Invalidate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClientAuth *arg1 = (CClientAuth *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CClientAuth > tempshared1 ; std::shared_ptr< CClientAuth > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClientAuth_Invalidate",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CClientAuth_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClientAuth_Invalidate" "', argument " "1"" of type '" "CClientAuth *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); delete reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >((smartarg1 ? smartarg1->get() : 0)); } } (arg1)->Invalidate(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClientAuth_AcceptedLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClientAuth *arg1 = (CClientAuth *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CClientAuth > tempshared1 ; std::shared_ptr< CClientAuth > *smartarg1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClientAuth_AcceptedLogin",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CClientAuth_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClientAuth_AcceptedLogin" "', argument " "1"" of type '" "CClientAuth *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); delete reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >((smartarg1 ? smartarg1->get() : 0)); } } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClientAuth_AcceptedLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClientAuth_AcceptedLogin" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->AcceptedLogin(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClientAuth_RefusedLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClientAuth *arg1 = (CClientAuth *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CClientAuth > tempshared1 ; std::shared_ptr< CClientAuth > *smartarg1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClientAuth_RefusedLogin",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CClientAuth_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClientAuth_RefusedLogin" "', argument " "1"" of type '" "CClientAuth *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); delete reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CClientAuth > * >(argp1); arg1 = const_cast< CClientAuth * >((smartarg1 ? smartarg1->get() : 0)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClientAuth_RefusedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClientAuth_RefusedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RefusedLogin((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *CClientAuth_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_CClientAuth_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CClient")) SWIG_fail; result = (CClient *)new CClient(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CClient",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CClient" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SendRequiredPasswordNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_SendRequiredPasswordNotice",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SendRequiredPasswordNotice" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->SendRequiredPasswordNotice(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_AcceptLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_AcceptLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_AcceptLogin" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->AcceptLogin(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_RefuseLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_RefuseLogin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_RefuseLogin" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RefuseLogin((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetNick__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_GetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNick" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CClient_GetNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = ((CClient const *)arg1)->GetNick(arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetNick__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNick" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetNick(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetNick(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_GetNick__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CClient_GetNick__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CClient_GetNick'.\n" " Possible C/C++ prototypes are:\n" " CClient::GetNick(bool) const\n" " CClient::GetNick() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CClient_GetNickMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetNickMask",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNickMask" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetNickMask(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetIdentifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetIdentifier",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetIdentifier" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetIdentifier(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HasNamesx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_HasNamesx",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasNamesx" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasNamesx(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HasUHNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_HasUHNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasUHNames" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasUHNames(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_IsAway(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_IsAway",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsAway" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->IsAway(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HasServerTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_HasServerTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasServerTime" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasServerTime(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HasBatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_HasBatch",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasBatch" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasBatch(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HasSelfMessage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_HasSelfMessage",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasSelfMessage" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasSelfMessage(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_IsValidIdentifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_IsValidIdentifier",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsValidIdentifier" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_IsValidIdentifier" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CClient::IsValidIdentifier((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CClient_UserCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_UserCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_UserCommand" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } (arg1)->UserCommand(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_UserPortCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_UserPortCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_UserPortCommand" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } (arg1)->UserPortCommand(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_StatusCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_StatusCTCP",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_StatusCTCP" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_StatusCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_StatusCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->StatusCTCP((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_BouncedOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_BouncedOff",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_BouncedOff" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->BouncedOff(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_IsAttached",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsAttached" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->IsAttached(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_IsPlaybackActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_IsPlaybackActive",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsPlaybackActive" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->IsPlaybackActive(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetPlaybackActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_SetPlaybackActive",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetPlaybackActive" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CClient_SetPlaybackActive" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetPlaybackActive(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_PutIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutIRC" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutIRC((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_PutClient",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutClient" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutClient" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutClient" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutClient((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutStatus__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CTable *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_PutStatus",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutStatus" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTable, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CTable const &""'"); } arg2 = reinterpret_cast< CTable * >(argp2); result = (unsigned int)(arg1)->PutStatus((CTable const &)*arg2); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutStatus__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_PutStatus",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutStatus" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutStatus((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutStatus(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_PutStatus__SWIG_0(self, args); } } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_PutStatus__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CClient_PutStatus'.\n" " Possible C/C++ prototypes are:\n" " CClient::PutStatus(CTable const &)\n" " CClient::PutStatus(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CClient_PutStatusNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_PutStatusNotice",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutStatusNotice" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutStatusNotice((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CClient_PutModule",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutModule" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CClient_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CClient_PutModNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CClient_PutModNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutModNotice" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CClient_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CClient_IsCapEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_IsCapEnabled",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsCapEnabled" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_IsCapEnabled" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_IsCapEnabled" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CClient const *)arg1)->IsCapEnabled((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_ReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_ReadLine" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_SendMotd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_SendMotd",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SendMotd" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)(arg1)->SendMotd(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HelpUser__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_HelpUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HelpUser" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_HelpUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_HelpUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->HelpUser((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_HelpUser__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_HelpUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HelpUser" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->HelpUser(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_HelpUser(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_HelpUser__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_HelpUser__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CClient_HelpUser'.\n" " Possible C/C++ prototypes are:\n" " CClient::HelpUser(CString const &)\n" " CClient::HelpUser()\n"); return 0; } SWIGINTERN PyObject *_wrap_CClient_AuthUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_AuthUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_AuthUser" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->AuthUser(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_Connected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_Connected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_Connected" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->Connected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_Timeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_Timeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_Timeout" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->Timeout(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_Disconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_Disconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_Disconnected" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->Disconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_ConnectionRefused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_ConnectionRefused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_ConnectionRefused" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->ConnectionRefused(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_ReachedMaxBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_ReachedMaxBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_ReachedMaxBuffer" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->ReachedMaxBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_SetNick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNick" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetAway(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_SetAway",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetAway" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CClient_SetAway" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAway(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetUser" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CUser *)((CClient const *)arg1)->GetUser(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetNetwork__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CClient_SetNetwork",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNetwork" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CClient_SetNetwork" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CClient_SetNetwork" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->SetNetwork(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetNetwork__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CClient_SetNetwork",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNetwork" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CClient_SetNetwork" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->SetNetwork(arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetNetwork__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CClient_SetNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNetwork" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_SetNetwork(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_SetNetwork__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CClient_SetNetwork__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CClient_SetNetwork__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CClient_SetNetwork'.\n" " Possible C/C++ prototypes are:\n" " CClient::SetNetwork(CIRCNetwork *,bool,bool)\n" " CClient::SetNetwork(CIRCNetwork *,bool)\n" " CClient::SetNetwork(CIRCNetwork *)\n"); return 0; } SWIGINTERN PyObject *_wrap_CClient_GetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetNetwork",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNetwork" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CIRCNetwork *)((CClient const *)arg1)->GetNetwork(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetClients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CClient *,std::allocator< CClient * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetClients",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetClients" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (std::vector< CClient *,std::allocator< CClient * > > *) &((CClient const *)arg1)->GetClients(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetIRCSock__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetIRCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetIRCSock" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CIRCSock *)((CClient const *)arg1)->GetIRCSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetIRCSock__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetIRCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetIRCSock" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CIRCSock *)(arg1)->GetIRCSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CClient_GetIRCSock(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_GetIRCSock__SWIG_1(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CClient_GetIRCSock__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CClient_GetIRCSock'.\n" " Possible C/C++ prototypes are:\n" " CClient::GetIRCSock() const\n" " CClient::GetIRCSock()\n"); return 0; } SWIGINTERN PyObject *_wrap_CClient_GetFullName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CClient_GetFullName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetFullName" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetFullName(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CClient_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CClient, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CIRCSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CIRCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIRCSock" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CIRCSock *)new CIRCSock(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CIRCSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CIRCSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIRCSock" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_OnCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnCTCPReply" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnCTCPReply(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnPrivCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_OnPrivCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnPrivCTCP" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivCTCP(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnChanCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCSock_OnChanCTCP",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnChanCTCP" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnChanCTCP" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanCTCP" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanCTCP(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnGeneralCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_OnGeneralCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnGeneralCTCP(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnPrivMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_OnPrivMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnPrivMsg" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivMsg(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnChanMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCSock_OnChanMsg",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnChanMsg" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnChanMsg" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanMsg" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanMsg(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnPrivNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_OnPrivNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnPrivNotice" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (bool)(arg1)->OnPrivNotice(*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnChanNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CIRCSock_OnChanNotice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnChanNotice" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnChanNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (bool)(arg1)->OnChanNotice(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_OnServerCapAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_OnServerCapAvailable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnServerCapAvailable" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ReadLine" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_Connected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_Connected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Connected" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Connected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_Disconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_Disconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Disconnected" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Disconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ConnectionRefused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_ConnectionRefused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ConnectionRefused" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ConnectionRefused(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_SockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_SockError",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_SockError" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_Timeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_Timeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Timeout" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Timeout(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ReachedMaxBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_ReachedMaxBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ReachedMaxBuffer" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ReachedMaxBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_PutIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_PutIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_PutIRC" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutIRC((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_PutIRCQuick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_PutIRCQuick",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_PutIRCQuick" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_PutIRCQuick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_PutIRCQuick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutIRCQuick((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ResetChans(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_ResetChans",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ResetChans" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ResetChans(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_Quit__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_Quit",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Quit" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_Quit" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_Quit" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Quit((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_Quit__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_Quit",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Quit" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Quit(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_Quit(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_Quit__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_Quit__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCSock_Quit'.\n" " Possible C/C++ prototypes are:\n" " CIRCSock::Quit(CString const &)\n" " CIRCSock::Quit()\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCSock_PauseCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_PauseCap",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_PauseCap" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->PauseCap(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ResumeCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_ResumeCap",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ResumeCap" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ResumeCap(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_SetPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_SetPass",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_SetPass" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_SetPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_SetPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetPass((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetMaxNickLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetMaxNickLen",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetMaxNickLen" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (unsigned int)((CIRCSock const *)arg1)->GetMaxNickLen(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetModeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CIRCSock::EChanModeArgs result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_GetModeType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetModeType" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_GetModeType" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (CIRCSock::EChanModeArgs)((CIRCSock const *)arg1)->GetModeType(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetPermFromMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; unsigned char result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_GetPermFromMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPermFromMode" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_GetPermFromMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (unsigned char)((CIRCSock const *)arg1)->GetPermFromMode(arg2); resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetChanModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< unsigned char,CIRCSock::EChanModeArgs,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CIRCSock::EChanModeArgs > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetChanModes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetChanModes" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (std::map< unsigned char,CIRCSock::EChanModeArgs,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CIRCSock::EChanModeArgs > > > *) &((CIRCSock const *)arg1)->GetChanModes(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_IsPermChar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_IsPermChar",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsPermChar" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_IsPermChar" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)((CIRCSock const *)arg1)->IsPermChar(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_IsPermMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_IsPermMode",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsPermMode" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_char(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_IsPermMode" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)((CIRCSock const *)arg1)->IsPermMode(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetPerms(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetPerms",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPerms" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetPerms(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetPermModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetPermModes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPermModes" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetPermModes(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetNickMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetNickMask",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetNickMask" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = ((CIRCSock const *)arg1)->GetNickMask(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetNick",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetNick" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetNick(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetPass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPass" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetPass(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CIRCNetwork *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetNetwork",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetNetwork" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CIRCNetwork *)((CIRCSock const *)arg1)->GetNetwork(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_HasNamesx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_HasNamesx",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_HasNamesx" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (bool)((CIRCSock const *)arg1)->HasNamesx(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_HasUHNames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_HasUHNames",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_HasUHNames" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (bool)((CIRCSock const *)arg1)->HasUHNames(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetUserModes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::set< unsigned char,std::less< unsigned char >,std::allocator< unsigned char > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetUserModes",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetUserModes" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (std::set< unsigned char,std::less< unsigned char >,std::allocator< unsigned char > > *) &((CIRCSock const *)arg1)->GetUserModes(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_IsAuthed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_IsAuthed",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsAuthed" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (bool)((CIRCSock const *)arg1)->IsAuthed(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_IsCapAccepted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_IsCapAccepted",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsCapAccepted" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_IsCapAccepted" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_IsCapAccepted" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->IsCapAccepted((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetISupport__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; MCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_GetISupport",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetISupport" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (MCString *) &((CIRCSock const *)arg1)->GetISupport(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetISupport__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_GetISupport",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetISupport" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_GetISupport" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_GetISupport" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = ((CIRCSock const *)arg1)->GetISupport((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetISupport__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_GetISupport",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetISupport" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCSock const *)arg1)->GetISupport((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_GetISupport(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_GetISupport__SWIG_0(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_GetISupport__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_GetISupport__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCSock_GetISupport'.\n" " Possible C/C++ prototypes are:\n" " CIRCSock::GetISupport() const\n" " CIRCSock::GetISupport(CString const &,CString const &) const\n" " CIRCSock::GetISupport(CString const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCSock_ForwardRaw353__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIRCSock_ForwardRaw353",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ForwardRaw353" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ((CIRCSock const *)arg1)->ForwardRaw353((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ForwardRaw353__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CIRCSock_ForwardRaw353",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ForwardRaw353" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_ForwardRaw353" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); ((CIRCSock const *)arg1)->ForwardRaw353((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIRCSock_ForwardRaw353(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_ForwardRaw353__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CIRCSock_ForwardRaw353__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CIRCSock_ForwardRaw353'.\n" " Possible C/C++ prototypes are:\n" " CIRCSock::ForwardRaw353(CString const &) const\n" " CIRCSock::ForwardRaw353(CString const &,CClient *) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CIRCSock_IsFloodProtected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; double arg1 ; double val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CIRCSock_IsFloodProtected",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_double(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CIRCSock_IsFloodProtected" "', argument " "1"" of type '" "double""'"); } arg1 = static_cast< double >(val1); result = (bool)CIRCSock::IsFloodProtected(arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CIRCSock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CIRCSock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned short arg1 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; EAddrType arg5 ; CListener::EAcceptType arg6 ; unsigned short val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_CListener",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_short(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CListener" "', argument " "1"" of type '" "unsigned short""'"); } arg1 = static_cast< unsigned short >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CListener" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CListener" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CListener" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CListener" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CListener" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CListener" "', argument " "5"" of type '" "EAddrType""'"); } arg5 = static_cast< EAddrType >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CListener" "', argument " "6"" of type '" "CListener::EAcceptType""'"); } arg6 = static_cast< CListener::EAcceptType >(val6); result = (CListener *)new CListener(arg1,(CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_delete_CListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CListener",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CListener" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_IsSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CListener_IsSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_IsSSL" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (bool)((CListener const *)arg1)->IsSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_GetAddrType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; EAddrType result; if (!PyArg_ParseTuple(args,(char *)"O:CListener_GetAddrType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetAddrType" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (EAddrType)((CListener const *)arg1)->GetAddrType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_GetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:CListener_GetPort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetPort" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (unsigned short)((CListener const *)arg1)->GetPort(); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_GetBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CListener_GetBindHost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetBindHost" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CString *) &((CListener const *)arg1)->GetBindHost(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_GetRealListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CRealListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CListener_GetRealListener",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetRealListener" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CRealListener *)((CListener const *)arg1)->GetRealListener(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRealListener, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_GetURIPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CListener_GetURIPrefix",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetURIPrefix" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CString *) &((CListener const *)arg1)->GetURIPrefix(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_GetAcceptType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CListener::EAcceptType result; if (!PyArg_ParseTuple(args,(char *)"O:CListener_GetAcceptType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetAcceptType" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CListener::EAcceptType)((CListener const *)arg1)->GetAcceptType(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_SetAcceptType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; CListener::EAcceptType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CListener_SetAcceptType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_SetAcceptType" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CListener_SetAcceptType" "', argument " "2"" of type '" "CListener::EAcceptType""'"); } arg2 = static_cast< CListener::EAcceptType >(val2); (arg1)->SetAcceptType(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_Listen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CListener_Listen",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_Listen" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (bool)(arg1)->Listen(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CListener_ResetRealListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CListener_ResetRealListener",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_ResetRealListener" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); (arg1)->ResetRealListener(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CListener_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CListener, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CRealListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CListener *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CRealListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CRealListener",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CListener, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CRealListener" "', argument " "1"" of type '" "CListener &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CRealListener" "', argument " "1"" of type '" "CListener &""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CRealListener *)new CRealListener(*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRealListener, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CRealListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CRealListener *arg1 = (CRealListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CRealListener",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRealListener, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CRealListener" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CRealListener_ConnectionFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CRealListener *arg1 = (CRealListener *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CRealListener_ConnectionFrom",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRealListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CRealListener_ConnectionFrom" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CRealListener_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CRealListener_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CRealListener_ConnectionFrom" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CRealListener_GetSockObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CRealListener *arg1 = (CRealListener *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CRealListener_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRealListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CRealListener_GetSockObj" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CRealListener_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CRealListener_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CRealListener_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CRealListener_SockError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CRealListener *arg1 = (CRealListener *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CRealListener_SockError",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CRealListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CRealListener_SockError" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CRealListener_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CRealListener_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CRealListener_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *CRealListener_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CRealListener, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CIncomingConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned short arg2 ; CListener::EAcceptType arg3 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CIncomingConnection *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CIncomingConnection",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIncomingConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIncomingConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CIncomingConnection" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CIncomingConnection" "', argument " "3"" of type '" "CListener::EAcceptType""'"); } arg3 = static_cast< CListener::EAcceptType >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CIncomingConnection" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIncomingConnection" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (CIncomingConnection *)new CIncomingConnection((CString const &)*arg1,arg2,arg3,(CString const &)*arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIncomingConnection, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_delete_CIncomingConnection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIncomingConnection *arg1 = (CIncomingConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CIncomingConnection",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIncomingConnection, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIncomingConnection" "', argument " "1"" of type '" "CIncomingConnection *""'"); } arg1 = reinterpret_cast< CIncomingConnection * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CIncomingConnection_ReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIncomingConnection *arg1 = (CIncomingConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CIncomingConnection_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIncomingConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIncomingConnection_ReadLine" "', argument " "1"" of type '" "CIncomingConnection *""'"); } arg1 = reinterpret_cast< CIncomingConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIncomingConnection_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIncomingConnection_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CIncomingConnection_ReachedMaxBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CIncomingConnection *arg1 = (CIncomingConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CIncomingConnection_ReachedMaxBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CIncomingConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIncomingConnection_ReachedMaxBuffer" "', argument " "1"" of type '" "CIncomingConnection *""'"); } arg1 = reinterpret_cast< CIncomingConnection * >(argp1); (arg1)->ReachedMaxBuffer(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CIncomingConnection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CIncomingConnection, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_delete_CHTTPSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CHTTPSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CHTTPSock" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_ReadData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_ReadData",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ReadData" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_ReadData" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_ReadData" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->ReadData((char const *)arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_ReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ReadLine" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_Connected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_Connected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_Connected" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->Connected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetSockObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetSockObj" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_ForceLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_ForceLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ForceLogin" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)(arg1)->ForceLogin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_OnLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CHTTPSock_OnLogin",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_OnLogin" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_OnLogin" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->OnLogin((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_OnPageRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_OnPageRequest",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_OnPageRequest" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnPageRequest((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_PrintFile",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintFile" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CHTTPSock_PrintFile" "', argument " "3"" of type '" "CString""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->PrintFile((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_PrintFile",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintFile" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PrintFile((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_PrintFile__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_PrintFile__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_PrintFile'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::PrintFile(CString const &,CString)\n" " CHTTPSock::PrintFile(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_CheckPost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_CheckPost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_CheckPost" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->CheckPost(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_SentHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_SentHeader",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SentHeader" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)((CHTTPSock const *)arg1)->SentHeader(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintHeader__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; CString *arg3 = 0 ; unsigned int arg4 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CHTTPSock_PrintHeader",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_PrintHeader" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CHTTPSock_PrintHeader" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->PrintHeader(arg2,(CString const &)*arg3,arg4,(CString const &)*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintHeader__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; CString *arg3 = 0 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CHTTPSock_PrintHeader",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_PrintHeader" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->PrintHeader(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintHeader__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_PrintHeader",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PrintHeader(arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintHeader__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_PrintHeader",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); result = (bool)(arg1)->PrintHeader(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintHeader(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_PrintHeader__SWIG_3(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_PrintHeader__SWIG_2(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_PrintHeader__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_long(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[4], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_PrintHeader__SWIG_0(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_PrintHeader'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::PrintHeader(off_t,CString const &,unsigned int,CString const &)\n" " CHTTPSock::PrintHeader(off_t,CString const &,unsigned int)\n" " CHTTPSock::PrintHeader(off_t,CString const &)\n" " CHTTPSock::PrintHeader(off_t)\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_AddHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_AddHeader",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_AddHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_AddHeader" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_AddHeader" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_AddHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_AddHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddHeader((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_SetContentType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_SetContentType",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SetContentType" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_SetContentType" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SetContentType" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetContentType((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintNotFound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_PrintNotFound",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintNotFound" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)(arg1)->PrintNotFound(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_Redirect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_Redirect",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_Redirect" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_Redirect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_Redirect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Redirect((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_PrintErrorPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; unsigned int arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CHTTPSock_PrintErrorPage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintErrorPage" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintErrorPage" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->PrintErrorPage(arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_ParseParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_ParseParams",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ParseParams" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_ParseParams" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_ParseParams" "', argument " "2"" of type '" "std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_ParseParams" "', argument " "2"" of type '" "std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > &""'"); } arg2 = reinterpret_cast< std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > * >(argp2); CHTTPSock::ParseParams((CString const &)*arg1,*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_ParseURI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_ParseURI",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ParseURI" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->ParseURI(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetPage",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetPage" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->GetPage(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetDate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; time_t arg1 ; void *argp1 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetDate",&obj0)) SWIG_fail; { res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_time_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetDate" "', argument " "1"" of type '" "time_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetDate" "', argument " "1"" of type '" "time_t""'"); } else { time_t * temp = reinterpret_cast< time_t * >(argp1); arg1 = *temp; if (SWIG_IsNewObj(res1)) delete temp; } } result = CHTTPSock::GetDate(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetDate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":CHTTPSock_GetDate")) SWIG_fail; result = CHTTPSock::GetDate(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetDate(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_CHTTPSock_GetDate__SWIG_1(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetDate__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_GetDate'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::GetDate(time_t)\n" " CHTTPSock::GetDate()\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetRemoteIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetRemoteIP",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRemoteIP" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = ((CHTTPSock const *)arg1)->GetRemoteIP(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetRequestCookie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_GetRequestCookie",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRequestCookie" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CHTTPSock const *)arg1)->GetRequestCookie((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_SendCookie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_SendCookie",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SendCookie" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SendCookie((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_SetDocRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_SetDocRoot",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SetDocRoot" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_SetDocRoot" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SetDocRoot" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDocRoot((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_SetLoggedIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_SetLoggedIn",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SetLoggedIn" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_SetLoggedIn" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetLoggedIn(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetPath" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = ((CHTTPSock const *)arg1)->GetPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_IsLoggedIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_IsLoggedIn",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_IsLoggedIn" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)((CHTTPSock const *)arg1)->IsLoggedIn(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetDocRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetDocRoot",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetDocRoot" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetDocRoot(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetUser",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetUser" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetUser(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetPass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetPass" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetPass(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetParamString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamString" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetParamString(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetContentType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetContentType",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetContentType" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetContentType(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetURIPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetURIPrefix",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetURIPrefix" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetURIPrefix(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_IsPost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_IsPost",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_IsPost" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)((CHTTPSock const *)arg1)->IsPost(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParam__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CHTTPSock_GetParam",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CHTTPSock_GetParam" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = ((CHTTPSock const *)arg1)->GetParam((CString const &)*arg2,arg3,(CString const &)*arg4); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParam__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_GetParam",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = ((CHTTPSock const *)arg1)->GetParam((CString const &)*arg2,arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParam__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_GetParam",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CHTTPSock const *)arg1)->GetParam((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParam(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParam__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_GetParam__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParam__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_GetParam'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::GetParam(CString const &,bool,CString const &) const\n" " CHTTPSock::GetParam(CString const &,bool) const\n" " CHTTPSock::GetParam(CString const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetRawParam__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_GetRawParam",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRawParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetRawParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = ((CHTTPSock const *)arg1)->GetRawParam((CString const &)*arg2,arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetRawParam__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_GetRawParam",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRawParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CHTTPSock const *)arg1)->GetRawParam((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetRawParam(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetRawParam__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_GetRawParam__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_GetRawParam'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::GetRawParam(CString const &,bool) const\n" " CHTTPSock::GetRawParam(CString const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_HasParam__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_HasParam",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_HasParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_HasParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)((CHTTPSock const *)arg1)->HasParam((CString const &)*arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_HasParam__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_HasParam",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_HasParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CHTTPSock const *)arg1)->HasParam((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_HasParam(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_HasParam__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_HasParam__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_HasParam'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::HasParam(CString const &,bool) const\n" " CHTTPSock::HasParam(CString const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParams__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CHTTPSock_GetParams",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParams" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_GetParams" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > *) &((CHTTPSock const *)arg1)->GetParams(arg2); resultobj = swig::from(static_cast< std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParams__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CHTTPSock_GetParams",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParams" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > *) &((CHTTPSock const *)arg1)->GetParams(); resultobj = swig::from(static_cast< std::map >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParams(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParams__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_GetParams__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_GetParams'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::GetParams(bool) const\n" " CHTTPSock::GetParams() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; bool arg4 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CHTTPSock_GetParamValues",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4,(CString const &)*arg5); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CHTTPSock_GetParamValues",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_GetParamValues",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; std::set< CString,std::less< CString >,std::allocator< CString > > *arg3 = 0 ; bool arg4 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CHTTPSock_GetParamValues",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString,std::less< CString >,std::allocator< CString > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString,std::less< CString >,std::allocator< CString > > &""'"); } arg3 = reinterpret_cast< std::set< CString,std::less< CString >,std::allocator< CString > > * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4,(CString const &)*arg5); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; std::set< CString,std::less< CString >,std::allocator< CString > > *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CHTTPSock_GetParamValues",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString,std::less< CString >,std::allocator< CString > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString,std::less< CString >,std::allocator< CString > > &""'"); } arg3 = reinterpret_cast< std::set< CString,std::less< CString >,std::allocator< CString > > * >(argp3); ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; std::set< CString,std::less< CString >,std::allocator< CString > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OOO:CHTTPSock_GetParamValues",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString,std::less< CString >,std::allocator< CString > > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString,std::less< CString >,std::allocator< CString > > &""'"); } arg3 = reinterpret_cast< std::set< CString,std::less< CString >,std::allocator< CString > > * >(argp3); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CHTTPSock_GetParamValues(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParamValues__SWIG_2(self, args); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParamValues__SWIG_5(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_GetParamValues__SWIG_4(self, args); } } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CHTTPSock_GetParamValues__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[4], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParamValues__SWIG_0(self, args); } } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[4], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CHTTPSock_GetParamValues__SWIG_3(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CHTTPSock_GetParamValues'.\n" " Possible C/C++ prototypes are:\n" " CHTTPSock::GetParamValues(CString const &,VCString &,bool,CString const &) const\n" " CHTTPSock::GetParamValues(CString const &,VCString &,bool) const\n" " CHTTPSock::GetParamValues(CString const &,VCString &) const\n" " CHTTPSock::GetParamValues(CString const &,std::set< CString,std::less< CString >,std::allocator< CString > > &,bool,CString const &) const\n" " CHTTPSock::GetParamValues(CString const &,std::set< CString,std::less< CString >,std::allocator< CString > > &,bool) const\n" " CHTTPSock::GetParamValues(CString const &,std::set< CString,std::less< CString >,std::allocator< CString > > &) const\n"); return 0; } SWIGINTERN PyObject *CHTTPSock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CHTTPSock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CTemplateTagHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateTagHandler *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CTemplateTagHandler")) SWIG_fail; result = (CTemplateTagHandler *)new CTemplateTagHandler(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateTagHandler, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CTemplateTagHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CTemplateTagHandler",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateTagHandler, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplateTagHandler" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateTagHandler_HandleVar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CTemplateTagHandler_HandleVar",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sOutput"); } } result = (bool)(arg1)->HandleVar(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateTagHandler_HandleTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CTemplateTagHandler_HandleTag",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sOutput"); } } result = (bool)(arg1)->HandleTag(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateTagHandler_HandleIf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CTemplateTagHandler_HandleIf",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sOutput"); } } result = (bool)(arg1)->HandleIf(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateTagHandler_HandleValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; MCString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CTemplateTagHandler_HandleValue",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleValue" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sValue"); } } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_MCString, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "4"" of type '" "MCString const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleValue" "', argument " "4"" of type '" "MCString const &""'"); } arg4 = reinterpret_cast< MCString * >(argp4); result = (bool)(arg1)->HandleValue(*arg2,*arg3,(MCString const &)*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CTemplateTagHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CTemplateTagHandler, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CTemplateOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateOptions *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CTemplateOptions")) SWIG_fail; result = (CTemplateOptions *)new CTemplateOptions(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateOptions, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CTemplateOptions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CTemplateOptions",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateOptions, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplateOptions" "', argument " "1"" of type '" "CTemplateOptions *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateOptions_Parse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateOptions_Parse",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateOptions, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateOptions_Parse" "', argument " "1"" of type '" "CTemplateOptions *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateOptions_Parse" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateOptions_Parse" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Parse((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateOptions_GetEscapeFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString::EEscape result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateOptions_GetEscapeFrom",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateOptions, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateOptions_GetEscapeFrom" "', argument " "1"" of type '" "CTemplateOptions const *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); result = ((CTemplateOptions const *)arg1)->GetEscapeFrom(); resultobj = SWIG_NewPointerObj((new CString::EEscape(static_cast< const CString::EEscape& >(result))), SWIGTYPE_p_CString__EEscape, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateOptions_GetEscapeTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString::EEscape result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateOptions_GetEscapeTo",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateOptions, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateOptions_GetEscapeTo" "', argument " "1"" of type '" "CTemplateOptions const *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); result = ((CTemplateOptions const *)arg1)->GetEscapeTo(); resultobj = SWIG_NewPointerObj((new CString::EEscape(static_cast< const CString::EEscape& >(result))), SWIGTYPE_p_CString__EEscape, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CTemplateOptions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CTemplateOptions, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CTemplateLoopContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned long arg1 ; CString *arg2 = 0 ; bool arg3 ; std::vector< CTemplate *,std::allocator< CTemplate * > > *arg4 = (std::vector< CTemplate *,std::allocator< CTemplate * > > *) 0 ; unsigned long val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CTemplateLoopContext *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CTemplateLoopContext",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CTemplateLoopContext" "', argument " "1"" of type '" "unsigned long""'"); } arg1 = static_cast< unsigned long >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CTemplateLoopContext" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplateLoopContext" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CTemplateLoopContext" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CTemplateLoopContext" "', argument " "4"" of type '" "std::vector< CTemplate *,std::allocator< CTemplate * > > *""'"); } arg4 = reinterpret_cast< std::vector< CTemplate *,std::allocator< CTemplate * > > * >(argp4); result = (CTemplateLoopContext *)new CTemplateLoopContext(arg1,(CString const &)*arg2,arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateLoopContext, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_CTemplateLoopContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CTemplateLoopContext",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplateLoopContext" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_SetHasData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateLoopContext_SetHasData",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetHasData" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_SetHasData" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetHasData(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_SetHasData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_SetHasData",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetHasData" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); (arg1)->SetHasData(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_SetHasData(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplateLoopContext_SetHasData__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTemplateLoopContext_SetHasData__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplateLoopContext_SetHasData'.\n" " Possible C/C++ prototypes are:\n" " CTemplateLoopContext::SetHasData(bool)\n" " CTemplateLoopContext::SetHasData()\n"); return 0; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateLoopContext_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetName" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateLoopContext_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateLoopContext_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_SetRowIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateLoopContext_SetRowIndex",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_SetRowIndex" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetRowIndex(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_IncRowIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_IncRowIndex",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_IncRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned int)(arg1)->IncRowIndex(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_DecRowIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_DecRowIndex",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_DecRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned int)(arg1)->DecRowIndex(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_SetFilePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateLoopContext_SetFilePosition",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetFilePosition" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_SetFilePosition" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetFilePosition(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_HasData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_HasData",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_HasData" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (bool)((CTemplateLoopContext const *)arg1)->HasData(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetName" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (CString *) &((CTemplateLoopContext const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetFilePosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetFilePosition",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetFilePosition" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned long)((CTemplateLoopContext const *)arg1)->GetFilePosition(); resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetRowIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetRowIndex",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned int)((CTemplateLoopContext const *)arg1)->GetRowIndex(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetRowCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRowCount" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (arg1)->GetRowCount(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CTemplate *,std::allocator< CTemplate * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetRows",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRows" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (std::vector< CTemplate *,std::allocator< CTemplate * > > *)(arg1)->GetRows(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetNextRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetNextRow",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetNextRow" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (CTemplate *)(arg1)->GetNextRow(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetCurRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplateLoopContext_GetCurRow",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetCurRow" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (CTemplate *)(arg1)->GetCurRow(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateLoopContext_GetRow",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRow" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_GetRow" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (CTemplate *)(arg1)->GetRow(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplateLoopContext_GetValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetValue" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplateLoopContext_GetValue" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->GetValue((CString const &)*arg2,arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplateLoopContext_GetValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetValue" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->GetValue((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplateLoopContext_GetValue(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplateLoopContext_GetValue__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTemplateLoopContext_GetValue__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplateLoopContext_GetValue'.\n" " Possible C/C++ prototypes are:\n" " CTemplateLoopContext::GetValue(CString const &,bool)\n" " CTemplateLoopContext::GetValue(CString const &)\n"); return 0; } SWIGINTERN PyObject *CTemplateLoopContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CTemplateLoopContext, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CTemplate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CTemplate")) SWIG_fail; result = (CTemplate *)new CTemplate(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CTemplate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CTemplate",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CTemplate *)new CTemplate((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CTemplate__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::shared_ptr< CTemplateOptions > *arg1 = 0 ; CTemplate *arg2 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CTemplate",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< std::shared_ptr< CTemplateOptions > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CTemplate" "', argument " "2"" of type '" "CTemplate *""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); result = (CTemplate *)new CTemplate((std::shared_ptr< CTemplateOptions > const &)*arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CTemplate__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::shared_ptr< CTemplateOptions > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CTemplate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< std::shared_ptr< CTemplateOptions > * >(argp1); result = (CTemplate *)new CTemplate((std::shared_ptr< CTemplateOptions > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CTemplate(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CTemplate__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CTemplate__SWIG_3(self, args); } } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CTemplate__SWIG_1(self, args); } } if (argc == 2) { int _v; int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CTemplate__SWIG_2(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CTemplate'.\n" " Possible C/C++ prototypes are:\n" " CTemplate::CTemplate()\n" " CTemplate::CTemplate(CString const &)\n" " CTemplate::CTemplate(std::shared_ptr< CTemplateOptions > const &,CTemplate *)\n" " CTemplate::CTemplate(std::shared_ptr< CTemplateOptions > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CTemplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CTemplate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplate" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_AddTagHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; SwigValueWrapper< std::shared_ptr< CTemplateTagHandler > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_AddTagHandler",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AddTagHandler" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CTemplateTagHandler_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "std::shared_ptr< CTemplateTagHandler >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "std::shared_ptr< CTemplateTagHandler >""'"); } else { std::shared_ptr< CTemplateTagHandler > * temp = reinterpret_cast< std::shared_ptr< CTemplateTagHandler > * >(argp2); arg2 = *temp; if (SWIG_IsNewObj(res2)) delete temp; } } (arg1)->AddTagHandler(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetTagHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::shared_ptr< CTemplateTagHandler >,std::allocator< std::shared_ptr< CTemplateTagHandler > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_GetTagHandlers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetTagHandlers" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (std::vector< std::shared_ptr< CTemplateTagHandler >,std::allocator< std::shared_ptr< CTemplateTagHandler > > > *) &(arg1)->GetTagHandlers(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_ResolveLiteral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_ResolveLiteral",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ResolveLiteral" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ResolveLiteral" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ResolveLiteral" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->ResolveLiteral((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_Init",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_Init" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); (arg1)->Init(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_GetParent",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetParent" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplate_GetParent" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CTemplate *)(arg1)->GetParent(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_ExpandFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_ExpandFile",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ExpandFile" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_ExpandFile" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->ExpandFile((CString const &)*arg2,arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_ExpandFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_ExpandFile",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ExpandFile" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->ExpandFile((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_ExpandFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplate_ExpandFile__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTemplate_ExpandFile__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplate_ExpandFile'.\n" " Possible C/C++ prototypes are:\n" " CTemplate::ExpandFile(CString const &,bool)\n" " CTemplate::ExpandFile(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTemplate_SetFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_SetFile",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_SetFile" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_SetFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_SetFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->SetFile((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_SetPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_SetPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_SetPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_SetPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetPath((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_MakePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_MakePath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_MakePath" "', argument " "1"" of type '" "CTemplate const *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_MakePath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_MakePath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CTemplate const *)arg1)->MakePath((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_PrependPath__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_PrependPath",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_PrependPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_PrependPath" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->PrependPath((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_PrependPath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_PrependPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_PrependPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PrependPath((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_PrependPath(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplate_PrependPath__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTemplate_PrependPath__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplate_PrependPath'.\n" " Possible C/C++ prototypes are:\n" " CTemplate::PrependPath(CString const &,bool)\n" " CTemplate::PrependPath(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTemplate_AppendPath__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_AppendPath",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AppendPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_AppendPath" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->AppendPath((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_AppendPath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_AppendPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AppendPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AppendPath((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_AppendPath(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplate_AppendPath__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTemplate_AppendPath__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplate_AppendPath'.\n" " Possible C/C++ prototypes are:\n" " CTemplate::AppendPath(CString const &,bool)\n" " CTemplate::AppendPath(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTemplate_RemovePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_RemovePath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_RemovePath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_RemovePath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_RemovePath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RemovePath((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_ClearPaths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_ClearPaths",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ClearPaths" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); (arg1)->ClearPaths(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_PrintString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_PrintString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_PrintString" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sRet"); } } result = (bool)(arg1)->PrintString(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_Print__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; std::ostream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_Print",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_Print" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); result = (bool)(arg1)->Print(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_Print__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; std::ostream *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_Print",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_Print" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_Print" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_Print" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplate_Print" "', argument " "3"" of type '" "std::ostream &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_Print" "', argument " "3"" of type '" "std::ostream &""'"); } arg3 = reinterpret_cast< std::ostream * >(argp3); result = (bool)(arg1)->Print((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_Print(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplate_Print__SWIG_0(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplate_Print__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplate_Print'.\n" " Possible C/C++ prototypes are:\n" " CTemplate::Print(std::ostream &)\n" " CTemplate::Print(CString const &,std::ostream &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTemplate_ValidIf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_ValidIf",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ValidIf" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ValidIf" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ValidIf" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->ValidIf((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_ValidExpr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_ValidExpr",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ValidExpr" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ValidExpr" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ValidExpr" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->ValidExpr((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_IsTrue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_IsTrue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_IsTrue" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_IsTrue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_IsTrue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->IsTrue((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_HasLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_HasLoop",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_HasLoop" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_HasLoop" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_HasLoop" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->HasLoop((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetValue__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_GetValue",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetValue" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_GetValue" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->GetValue((CString const &)*arg2,arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetValue__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_GetValue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetValue" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->GetValue((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetValue(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CTemplate_GetValue__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CTemplate_GetValue__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CTemplate_GetValue'.\n" " Possible C/C++ prototypes are:\n" " CTemplate::GetValue(CString const &,bool)\n" " CTemplate::GetValue(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CTemplate_AddRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_AddRow",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AddRow" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AddRow" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AddRow" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CTemplate *) &(arg1)->AddRow((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_GetRow",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetRow" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetRow" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetRow" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_GetRow" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); result = (CTemplate *)(arg1)->GetRow((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< CTemplate *,std::allocator< CTemplate * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CTemplate_GetLoop",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetLoop" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetLoop" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetLoop" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (std::vector< CTemplate *,std::allocator< CTemplate * > > *)(arg1)->GetLoop((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_DelCurLoopContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_DelCurLoopContext",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_DelCurLoopContext" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); (arg1)->DelCurLoopContext(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetCurLoopContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CTemplateLoopContext *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_GetCurLoopContext",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetCurLoopContext" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (CTemplateLoopContext *)(arg1)->GetCurLoopContext(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetCurTemplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CTemplate *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_GetCurTemplate",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetCurTemplate" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (CTemplate *)(arg1)->GetCurTemplate(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CTemplate_GetFileName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetFileName" "', argument " "1"" of type '" "CTemplate const *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (CString *) &((CTemplate const *)arg1)->GetFileName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CTemplate_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CTemplate_set",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_set" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplate_set" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_set" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } CTemplate_set(arg1,(CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *CTemplate_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CTemplate, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CZNCTagHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CZNCTagHandler *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CZNCTagHandler",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CZNCTagHandler" "', argument " "1"" of type '" "CWebSock &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CZNCTagHandler" "', argument " "1"" of type '" "CWebSock &""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (CZNCTagHandler *)new CZNCTagHandler(*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCTagHandler, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CZNCTagHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCTagHandler *arg1 = (CZNCTagHandler *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CZNCTagHandler",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCTagHandler, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZNCTagHandler" "', argument " "1"" of type '" "CZNCTagHandler *""'"); } arg1 = reinterpret_cast< CZNCTagHandler * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNCTagHandler_HandleTag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNCTagHandler *arg1 = (CZNCTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CZNCTagHandler_HandleTag",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNCTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCTagHandler_HandleTag" "', argument " "1"" of type '" "CZNCTagHandler *""'"); } arg1 = reinterpret_cast< CZNCTagHandler * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNCTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNCTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sOutput"); } } result = (bool)(arg1)->HandleTag(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *CZNCTagHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CZNCTagHandler, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CWebSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CWebSession *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CWebSession",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSession" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSession" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSession" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSession" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CWebSession *)new CWebSession((CString const &)*arg1,(CString const &)*arg2); { std::shared_ptr< CWebSession > *smartresult = result ? new std::shared_ptr< CWebSession >(result SWIG_NO_NULL_DELETER_SWIG_POINTER_NEW) : 0; resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CWebSession_t, SWIG_POINTER_NEW | SWIG_POINTER_OWN); } if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_delete_CWebSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CWebSession",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSession" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } (void)arg1; delete smartarg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession const > tempshared1 ; std::shared_ptr< CWebSession const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetId",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetId" "', argument " "1"" of type '" "CWebSession const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } result = (CString *) &((CWebSession const *)arg1)->GetId(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_GetIP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession const > tempshared1 ; std::shared_ptr< CWebSession const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetIP",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetIP" "', argument " "1"" of type '" "CWebSession const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } result = (CString *) &((CWebSession const *)arg1)->GetIP(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_GetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession const > tempshared1 ; std::shared_ptr< CWebSession const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetUser",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetUser" "', argument " "1"" of type '" "CWebSession const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } result = (CUser *)((CWebSession const *)arg1)->GetUser(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_GetLastActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession const > tempshared1 ; std::shared_ptr< CWebSession const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_GetLastActive",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetLastActive" "', argument " "1"" of type '" "CWebSession const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } result = ((CWebSession const *)arg1)->GetLastActive(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_IsLoggedIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession const > tempshared1 ; std::shared_ptr< CWebSession const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_IsLoggedIn",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_IsLoggedIn" "', argument " "1"" of type '" "CWebSession const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } result = (bool)((CWebSession const *)arg1)->IsLoggedIn(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_IsAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession const > tempshared1 ; std::shared_ptr< CWebSession const > *smartarg1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_IsAdmin",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_IsAdmin" "', argument " "1"" of type '" "CWebSession const *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< const CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } result = (bool)((CWebSession const *)arg1)->IsAdmin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_UpdateLastActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_UpdateLastActive",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_UpdateLastActive" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } (arg1)->UpdateLastActive(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_SetUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSession_SetUser",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_SetUser" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (CUser *)(arg1)->SetUser(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_ClearMessageLoops(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSession_ClearMessageLoops",&obj0)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_ClearMessageLoops" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } (arg1)->ClearMessageLoops(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_FillMessageLoops(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; CTemplate *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSession_FillMessageLoops",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_FillMessageLoops" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_FillMessageLoops" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSession_FillMessageLoops" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); (arg1)->FillMessageLoops(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_AddError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSession_AddError",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_AddError" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_AddError" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSession_AddError" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddError((CString const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSession_AddSuccess(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSession *arg1 = (CWebSession *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::shared_ptr< CWebSession > tempshared1 ; std::shared_ptr< CWebSession > *smartarg1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; size_t result; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSession_AddSuccess",&obj0,&obj1)) SWIG_fail; { int newmem = 0; res1 = SWIG_ConvertPtrAndOwn(obj0, &argp1, SWIGTYPE_p_std__shared_ptrT_CWebSession_t, 0 | 0 , &newmem); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_AddSuccess" "', argument " "1"" of type '" "CWebSession *""'"); } if (newmem & SWIG_CAST_NEW_MEMORY) { tempshared1 = *reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); delete reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >(tempshared1.get()); } else { smartarg1 = reinterpret_cast< std::shared_ptr< CWebSession > * >(argp1); arg1 = const_cast< CWebSession * >((smartarg1 ? smartarg1->get() : 0)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_AddSuccess" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSession_AddSuccess" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddSuccess((CString const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *CWebSession_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_CWebSession_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CWebSubPage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; unsigned int arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CWebSubPage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CWebSubPage",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSubPage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CWebSubPage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CWebSubPage",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSubPage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CWebSubPage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CWebSubPage",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSubPage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; VPair *arg3 = 0 ; unsigned int arg4 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CWebSubPage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CWebSubPage",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } arg3 = reinterpret_cast< VPair * >(argp3); ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CWebSubPage" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2,(VPair const &)*arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSubPage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; VPair *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CWebSubPage *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CWebSubPage",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } arg3 = reinterpret_cast< VPair * >(argp3); result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2,(VPair const &)*arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSubPage(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CWebSubPage__SWIG_2(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CWebSubPage__SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CWebSubPage__SWIG_4(self, args); } } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CWebSubPage__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CWebSubPage__SWIG_3(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CWebSubPage'.\n" " Possible C/C++ prototypes are:\n" " CWebSubPage::CWebSubPage(CString const &,CString const &,unsigned int)\n" " CWebSubPage::CWebSubPage(CString const &,CString const &)\n" " CWebSubPage::CWebSubPage(CString const &)\n" " CWebSubPage::CWebSubPage(CString const &,CString const &,VPair const &,unsigned int)\n" " CWebSubPage::CWebSubPage(CString const &,CString const &,VPair const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CWebSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CWebSubPage",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSubPage" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSubPage_SetName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_SetName" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSubPage_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSubPage_SetTitle",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_SetTitle" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSubPage_SetTitle" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_SetTitle" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTitle((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_AddParam(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CWebSubPage_AddParam",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_AddParam" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSubPage_AddParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_AddParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSubPage_AddParam" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_AddParam" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddParam((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_RequiresAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSubPage_RequiresAdmin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_RequiresAdmin" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (bool)((CWebSubPage const *)arg1)->RequiresAdmin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSubPage_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_GetName" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (CString *) &((CWebSubPage const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSubPage_GetTitle",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_GetTitle" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (CString *) &((CWebSubPage const *)arg1)->GetTitle(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSubPage_GetParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; VPair *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSubPage_GetParams",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_GetParams" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (VPair *) &((CWebSubPage const *)arg1)->GetParams(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CWebSubPage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CWebSubPage, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CWebSessionMap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CWebSessionMap *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CWebSessionMap",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CWebSessionMap" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (CWebSessionMap *)new CWebSessionMap(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSessionMap, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSessionMap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSessionMap *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CWebSessionMap")) SWIG_fail; result = (CWebSessionMap *)new CWebSessionMap(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSessionMap, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CWebSessionMap(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CWebSessionMap__SWIG_1(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CWebSessionMap__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CWebSessionMap'.\n" " Possible C/C++ prototypes are:\n" " CWebSessionMap::CWebSessionMap(unsigned int)\n" " CWebSessionMap::CWebSessionMap()\n"); return 0; } SWIGINTERN PyObject *_wrap_CWebSessionMap_FinishUserSessions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSessionMap *arg1 = (CWebSessionMap *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSessionMap_FinishUserSessions",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSessionMap, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSessionMap_FinishUserSessions" "', argument " "1"" of type '" "CWebSessionMap *""'"); } arg1 = reinterpret_cast< CWebSessionMap * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSessionMap_FinishUserSessions" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSessionMap_FinishUserSessions" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->FinishUserSessions((CUser const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CWebSessionMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSessionMap *arg1 = (CWebSessionMap *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CWebSessionMap",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSessionMap, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSessionMap" "', argument " "1"" of type '" "CWebSessionMap *""'"); } arg1 = reinterpret_cast< CWebSessionMap * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CWebSessionMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CWebSessionMap, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CWebSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CWebSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CWebSock",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CWebSock *)new CWebSock((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSock, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_delete_CWebSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CWebSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSock" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_ForceLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSock_ForceLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_ForceLogin" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (bool)(arg1)->ForceLogin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_OnLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CWebSock_OnLogin",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_OnLogin" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CWebSock_OnLogin" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->OnLogin((CString const &)*arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_OnPageRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSock_OnPageRequest",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_OnPageRequest" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnPageRequest((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_PrintTemplate__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModule *arg4 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CWebSock::EPageReqResult result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CWebSock_PrintTemplate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintTemplate" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sPageRet"); } } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CWebSock_PrintTemplate" "', argument " "4"" of type '" "CModule *""'"); } arg4 = reinterpret_cast< CModule * >(argp4); result = (CWebSock::EPageReqResult)(arg1)->PrintTemplate((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_PrintTemplate__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CWebSock::EPageReqResult result; if (!PyArg_ParseTuple(args,(char *)"OOO:CWebSock_PrintTemplate",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintTemplate" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sPageRet"); } } result = (CWebSock::EPageReqResult)(arg1)->PrintTemplate((CString const &)*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_PrintTemplate(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CWebSock_PrintTemplate__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CWebSock_PrintTemplate__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CWebSock_PrintTemplate'.\n" " Possible C/C++ prototypes are:\n" " CWebSock::PrintTemplate(CString const &,CString &,CModule *)\n" " CWebSock::PrintTemplate(CString const &,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CWebSock_PrintStaticFile__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModule *arg4 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CWebSock::EPageReqResult result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CWebSock_PrintStaticFile",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintStaticFile" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sPageRet"); } } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CWebSock_PrintStaticFile" "', argument " "4"" of type '" "CModule *""'"); } arg4 = reinterpret_cast< CModule * >(argp4); result = (CWebSock::EPageReqResult)(arg1)->PrintStaticFile((CString const &)*arg2,*arg3,arg4); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_PrintStaticFile__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CWebSock::EPageReqResult result; if (!PyArg_ParseTuple(args,(char *)"OOO:CWebSock_PrintStaticFile",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintStaticFile" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sPageRet"); } } result = (CWebSock::EPageReqResult)(arg1)->PrintStaticFile((CString const &)*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_PrintStaticFile(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CWebSock_PrintStaticFile__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[2], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CWebSock_PrintStaticFile__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CWebSock_PrintStaticFile'.\n" " Possible C/C++ prototypes are:\n" " CWebSock::PrintStaticFile(CString const &,CString &,CModule *)\n" " CWebSock::PrintStaticFile(CString const &,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CWebSock_FindTmpl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CModule *arg2 = (CModule *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CWebSock_FindTmpl",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_FindTmpl" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_FindTmpl" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_FindTmpl" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_FindTmpl" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->FindTmpl(arg2,(CString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_PrintErrorPage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSock_PrintErrorPage",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintErrorPage" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintErrorPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintErrorPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PrintErrorPage((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetSession(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::shared_ptr< CWebSession > result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSock_GetSession",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSession" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (arg1)->GetSession(); { std::shared_ptr< CWebSession > *smartresult = result ? new std::shared_ptr< CWebSession >(result) : 0; resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_CWebSession_t, SWIG_POINTER_OWN); } return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetSockObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CWebSock_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSockObj" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CWebSock_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetSkinPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSock_GetSkinPath",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSkinPath" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetSkinPath" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CWebSock::GetSkinPath((CString const &)*arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetAvailSkins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; VCString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSock_GetAvailSkins",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetAvailSkins" "', argument " "1"" of type '" "CWebSock const *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CString_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_GetAvailSkins" "', argument " "2"" of type '" "VCString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetAvailSkins" "', argument " "2"" of type '" "VCString &""'"); } arg2 = reinterpret_cast< VCString * >(argp2); ((CWebSock const *)arg1)->GetAvailSkins(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetSkinName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CWebSock_GetSkinName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSkinName" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (arg1)->GetSkinName(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_GetRequestCookie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CWebSock_GetRequestCookie",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetRequestCookie" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->GetRequestCookie((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_SendCookie(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CWebSock_SendCookie",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_SendCookie" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SendCookie((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CWebSock_FinishUserSessions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CWebSock_FinishUserSessions",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CUser, 0 | 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_FinishUserSessions" "', argument " "1"" of type '" "CUser const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_FinishUserSessions" "', argument " "1"" of type '" "CUser const &""'"); } arg1 = reinterpret_cast< CUser * >(argp1); CWebSock::FinishUserSessions((CUser const &)*arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CWebSock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CWebSock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CZNC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CZNC")) SWIG_fail; result = (CZNC *)new CZNC(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNC, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CZNC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CZNC",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZNC" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_DeleteUsers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_DeleteUsers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DeleteUsers" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->DeleteUsers(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Loop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_Loop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Loop" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->Loop(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_WritePidFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_WritePidFile",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WritePidFile" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_WritePidFile" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (bool)(arg1)->WritePidFile(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_DeletePidFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_DeletePidFile",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DeletePidFile" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->DeletePidFile(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_WaitForChildLock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_WaitForChildLock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WaitForChildLock" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->WaitForChildLock(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_IsHostAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_IsHostAllowed",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_IsHostAllowed" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CZNC const *)arg1)->IsHostAllowed((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AllowConnectionFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AllowConnectionFrom",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AllowConnectionFrom" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AllowConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AllowConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CZNC const *)arg1)->AllowConnectionFrom((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_InitDirs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_InitDirs",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_InitDirs" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_InitDirs" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_InitDirs" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_InitDirs" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_InitDirs" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->InitDirs((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_OnBoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_OnBoot",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_OnBoot" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->OnBoot(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ExpandConfigPath__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_ExpandConfigPath",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ExpandConfigPath" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_ExpandConfigPath" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->ExpandConfigPath((CString const &)*arg2,arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ExpandConfigPath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_ExpandConfigPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ExpandConfigPath" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->ExpandConfigPath((CString const &)*arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ExpandConfigPath(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_ExpandConfigPath__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CZNC_ExpandConfigPath__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_ExpandConfigPath'.\n" " Possible C/C++ prototypes are:\n" " CZNC::ExpandConfigPath(CString const &,bool)\n" " CZNC::ExpandConfigPath(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_WriteNewConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_WriteNewConfig",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WriteNewConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_WriteNewConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_WriteNewConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->WriteNewConfig((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_WriteConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_WriteConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WriteConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->WriteConfig(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ParseConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_ParseConfig",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ParseConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_ParseConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ParseConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sError"); } } result = (bool)(arg1)->ParseConfig((CString const &)*arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_RehashConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_RehashConfig",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_RehashConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sError"); } } result = (bool)(arg1)->RehashConfig(*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_BackupConfigOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_BackupConfigOnce",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_BackupConfigOnce" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_BackupConfigOnce" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_BackupConfigOnce" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->BackupConfigOnce((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":CZNC_GetVersion")) SWIG_fail; result = CZNC::GetVersion(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetTag__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; bool arg2 ; bool val1 ; int ecode1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_GetTag",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CZNC_GetTag" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_GetTag" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = CZNC::GetTag(arg1,arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetTag__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetTag",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CZNC_GetTag" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); result = CZNC::GetTag(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetTag__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":CZNC_GetTag")) SWIG_fail; result = CZNC::GetTag(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetTag(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_CZNC_GetTag__SWIG_2(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CZNC_GetTag__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_bool(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CZNC_GetTag__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_GetTag'.\n" " Possible C/C++ prototypes are:\n" " CZNC::GetTag(bool,bool)\n" " CZNC::GetTag(bool)\n" " CZNC::GetTag()\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_GetCompileOptionsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":CZNC_GetCompileOptionsString")) SWIG_fail; result = CZNC::GetCompileOptionsString(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetUptime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetUptime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUptime" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetUptime(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ClearBindHosts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_ClearBindHosts",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ClearBindHosts" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ClearBindHosts(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddBindHost" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddBindHost((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_RemBindHost(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_RemBindHost",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_RemBindHost" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_RemBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_RemBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemBindHost((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ClearTrustedProxies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_ClearTrustedProxies",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ClearTrustedProxies" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ClearTrustedProxies(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddTrustedProxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddTrustedProxy",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddTrustedProxy" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddTrustedProxy((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_RemTrustedProxy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_RemTrustedProxy",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_RemTrustedProxy" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_RemTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_RemTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemTrustedProxy((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Broadcast__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; CUser *arg4 = (CUser *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CZNC_Broadcast",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_Broadcast" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_Broadcast" "', argument " "4"" of type '" "CUser *""'"); } arg4 = reinterpret_cast< CUser * >(argp4); res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CZNC_Broadcast" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); (arg1)->Broadcast((CString const &)*arg2,arg3,arg4,arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Broadcast__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; CUser *arg4 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CZNC_Broadcast",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_Broadcast" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_Broadcast" "', argument " "4"" of type '" "CUser *""'"); } arg4 = reinterpret_cast< CUser * >(argp4); (arg1)->Broadcast((CString const &)*arg2,arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Broadcast__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_Broadcast",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_Broadcast" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->Broadcast((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Broadcast__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_Broadcast",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Broadcast((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Broadcast(PyObject *self, PyObject *args) { int argc; PyObject *argv[6]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 5) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_Broadcast__SWIG_3(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CZNC_Broadcast__SWIG_2(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_Broadcast__SWIG_1(self, args); } } } } } if (argc == 5) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_Broadcast__SWIG_0(self, args); } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_Broadcast'.\n" " Possible C/C++ prototypes are:\n" " CZNC::Broadcast(CString const &,bool,CUser *,CClient *)\n" " CZNC::Broadcast(CString const &,bool,CUser *)\n" " CZNC::Broadcast(CString const &,bool)\n" " CZNC::Broadcast(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_AddBytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddBytesRead",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddBytesRead" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_AddBytesRead" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesRead(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddBytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddBytesWritten",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddBytesWritten" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_AddBytesWritten" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesWritten(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_BytesRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_BytesRead",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_BytesRead" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned long long)((CZNC const *)arg1)->BytesRead(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_BytesWritten(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned long long result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_BytesWritten",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_BytesWritten" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned long long)((CZNC const *)arg1)->BytesWritten(); resultobj = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetTrafficStats(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CZNC::TrafficStatsPair *arg2 = 0 ; CZNC::TrafficStatsPair *arg3 = 0 ; CZNC::TrafficStatsPair *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; SwigValueWrapper< std::map< CString,std::pair< unsigned long long,unsigned long long >,std::less< CString >,std::allocator< std::pair< CString const,std::pair< unsigned long long,unsigned long long > > > > > result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CZNC_GetTrafficStats",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetTrafficStats" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_GetTrafficStats" "', argument " "2"" of type '" "CZNC::TrafficStatsPair &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_GetTrafficStats" "', argument " "2"" of type '" "CZNC::TrafficStatsPair &""'"); } arg2 = reinterpret_cast< CZNC::TrafficStatsPair * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_GetTrafficStats" "', argument " "3"" of type '" "CZNC::TrafficStatsPair &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_GetTrafficStats" "', argument " "3"" of type '" "CZNC::TrafficStatsPair &""'"); } arg3 = reinterpret_cast< CZNC::TrafficStatsPair * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_GetTrafficStats" "', argument " "4"" of type '" "CZNC::TrafficStatsPair &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_GetTrafficStats" "', argument " "4"" of type '" "CZNC::TrafficStatsPair &""'"); } arg4 = reinterpret_cast< CZNC::TrafficStatsPair * >(argp4); result = (arg1)->GetTrafficStats(*arg2,*arg3,*arg4); resultobj = SWIG_NewPointerObj((new CZNC::TrafficStatsMap(static_cast< const CZNC::TrafficStatsMap& >(result))), SWIGTYPE_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AuthUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; std::shared_ptr< CAuthBase > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AuthUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AuthUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { int newmem = 0; res2 = SWIG_ConvertPtrAndOwn(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 , &newmem); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2); } (arg1)->AuthUser(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetConfigState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; enum CZNC::ConfigState arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetConfigState",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetConfigState" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetConfigState" "', argument " "2"" of type '" "enum CZNC::ConfigState""'"); } arg2 = static_cast< enum CZNC::ConfigState >(val2); (arg1)->SetConfigState(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetSkinName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetSkinName",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetSkinName" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSkinName((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetStatusPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetStatusPrefix",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetStatusPrefix" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetStatusPrefix((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetMaxBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetMaxBufferSize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetMaxBufferSize" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetMaxBufferSize" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxBufferSize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetAnonIPLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetAnonIPLimit",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetAnonIPLimit" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetAnonIPLimit" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetAnonIPLimit(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetServerThrottle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetServerThrottle",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetServerThrottle" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetServerThrottle" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetServerThrottle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetProtectWebSessions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetProtectWebSessions",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetProtectWebSessions" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetProtectWebSessions" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetProtectWebSessions(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetHideVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetHideVersion",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetHideVersion" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetHideVersion" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetHideVersion(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetConnectDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetConnectDelay",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetConnectDelay" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetConnectDelay" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetConnectDelay(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConfigState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; enum CZNC::ConfigState result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetConfigState",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfigState" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (enum CZNC::ConfigState)((CZNC const *)arg1)->GetConfigState(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetManager__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSockManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetManager" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CSockManager *) &(arg1)->GetManager(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetManager__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CSockManager *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetManager",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetManager" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CSockManager *) &((CZNC const *)arg1)->GetManager(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetManager(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_GetManager__SWIG_0(self, args); } } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_GetManager__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_GetManager'.\n" " Possible C/C++ prototypes are:\n" " CZNC::GetManager()\n" " CZNC::GetManager() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_GetModules(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetModules",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetModules" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CModules *) &(arg1)->GetModules(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetSkinName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetSkinName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetSkinName" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetSkinName(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetStatusPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetStatusPrefix",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetStatusPrefix" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetStatusPrefix(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetCurPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetCurPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetCurPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetCurPath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetHomePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetHomePath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetHomePath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetHomePath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetZNCPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetZNCPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetZNCPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetZNCPath(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConfPath__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_GetConfPath",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_GetConfPath" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = ((CZNC const *)arg1)->GetConfPath(arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConfPath__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetConfPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetConfPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConfPath(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_GetConfPath__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CZNC_GetConfPath__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_GetConfPath'.\n" " Possible C/C++ prototypes are:\n" " CZNC::GetConfPath(bool) const\n" " CZNC::GetConfPath() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_GetUserPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetUserPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUserPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetUserPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetModPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetModPath",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetModPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetModPath(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetPemLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetPemLocation",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetPemLocation" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetPemLocation(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConfigFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetConfigFile",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfigFile" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetConfigFile(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_WritePemFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_WritePemFile",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WritePemFile" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->WritePemFile(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetBindHosts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; VCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetBindHosts",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetBindHosts" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (VCString *) &((CZNC const *)arg1)->GetBindHosts(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetTrustedProxies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; VCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetTrustedProxies",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetTrustedProxies" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (VCString *) &((CZNC const *)arg1)->GetTrustedProxies(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetListeners(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< CListener *,std::allocator< CListener * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetListeners",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetListeners" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (std::vector< CListener *,std::allocator< CListener * > > *) &((CZNC const *)arg1)->GetListeners(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_TimeStarted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; time_t result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_TimeStarted",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_TimeStarted" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->TimeStarted(); resultobj = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetMaxBufferSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetMaxBufferSize",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetMaxBufferSize" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetMaxBufferSize(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetAnonIPLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetAnonIPLimit",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetAnonIPLimit" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetAnonIPLimit(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetServerThrottle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetServerThrottle",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetServerThrottle" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetServerThrottle(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConnectDelay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetConnectDelay",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConnectDelay" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetConnectDelay(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetProtectWebSessions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetProtectWebSessions",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetProtectWebSessions" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)((CZNC const *)arg1)->GetProtectWebSessions(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetHideVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetHideVersion",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetHideVersion" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)((CZNC const *)arg1)->GetHideVersion(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetSSLCiphers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetSSLCiphers",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetSSLCiphers" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetSSLCiphers(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetDisabledSSLProtocols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; Csock::EDisableProtocol result; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetDisabledSSLProtocols",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetDisabledSSLProtocols" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (Csock::EDisableProtocol)((CZNC const *)arg1)->GetDisabledSSLProtocols(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_CreateInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":CZNC_CreateInstance")) SWIG_fail; CZNC::CreateInstance(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":CZNC_Get")) SWIG_fail; result = (CZNC *) &CZNC::Get(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNC, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_DestroyInstance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; if (!PyArg_ParseTuple(args,(char *)":CZNC_DestroyInstance")) SWIG_fail; CZNC::DestroyInstance(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_FindUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CUser *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_FindUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_FindUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CUser *)(arg1)->FindUser((CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_FindModule__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_FindModule",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindModule" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_FindModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CModule *)(arg1)->FindModule((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_FindModule__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CUser *arg3 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_FindModule",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindModule" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_FindModule" "', argument " "3"" of type '" "CUser *""'"); } arg3 = reinterpret_cast< CUser * >(argp3); result = (CModule *)(arg1)->FindModule((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_FindModule(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_FindModule__SWIG_1(self, args); } } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_FindModule__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_FindModule'.\n" " Possible C/C++ prototypes are:\n" " CZNC::FindModule(CString const &,CString const &)\n" " CZNC::FindModule(CString const &,CUser *)\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_UpdateModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_UpdateModule",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_UpdateModule" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_UpdateModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_UpdateModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->UpdateModule((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_DeleteUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_DeleteUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DeleteUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_DeleteUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_DeleteUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DeleteUser((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CUser *arg2 = (CUser *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CZNC_AddUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (bool)(arg1)->AddUser(arg2,*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetUserMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::map< CString,CUser *,std::less< CString >,std::allocator< std::pair< CString const,CUser * > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetUserMap",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUserMap" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (std::map< CString,CUser *,std::less< CString >,std::allocator< std::pair< CString const,CUser * > > > *) &((CZNC const *)arg1)->GetUserMap(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_FindListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; EAddrType arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CListener *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CZNC_FindListener",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_FindListener" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_FindListener" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindListener" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CZNC_FindListener" "', argument " "4"" of type '" "EAddrType""'"); } arg4 = static_cast< EAddrType >(val4); result = (CListener *)(arg1)->FindListener(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | 0 ); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddListener__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CListener *arg2 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddListener",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddListener" "', argument " "2"" of type '" "CListener *""'"); } arg2 = reinterpret_cast< CListener * >(argp2); result = (bool)(arg1)->AddListener(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddListener__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; EAddrType arg6 ; CListener::EAcceptType arg7 ; CString *arg8 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; PyObject * obj7 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:CZNC_AddListener",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_AddListener" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_AddListener" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddListener" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_AddListener" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddListener" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CZNC_AddListener" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CZNC_AddListener" "', argument " "6"" of type '" "EAddrType""'"); } arg6 = static_cast< EAddrType >(val6); ecode7 = SWIG_AsVal_int(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CZNC_AddListener" "', argument " "7"" of type '" "CListener::EAcceptType""'"); } arg7 = static_cast< CListener::EAcceptType >(val7); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj7, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg8 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 8 sError"); } } result = (bool)(arg1)->AddListener(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7,*arg8); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddListener(PyObject *self, PyObject *args) { int argc; PyObject *argv[9]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 8) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_AddListener__SWIG_0(self, args); } } } if (argc == 8) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[4], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[5], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_int(argv[6], NULL); _v = SWIG_CheckState(res); } if (_v) { { String* p; _v = SWIG_IsOK(SWIG_ConvertPtr(argv[7], (void**)&p, SWIG_TypeQuery("String*"), 0)); } if (_v) { return _wrap_CZNC_AddListener__SWIG_1(self, args); } } } } } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_AddListener'.\n" " Possible C/C++ prototypes are:\n" " CZNC::AddListener(CListener *)\n" " CZNC::AddListener(unsigned short,CString const &,CString const &,bool,EAddrType,CListener::EAcceptType,CString &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_DelListener(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CListener *arg2 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_DelListener",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DelListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_DelListener" "', argument " "2"" of type '" "CListener *""'"); } arg2 = reinterpret_cast< CListener * >(argp2); result = (bool)(arg1)->DelListener(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_SetMotd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_SetMotd",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetMotd" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_SetMotd" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_SetMotd" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetMotd((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddMotd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddMotd",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddMotd" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddMotd" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddMotd" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddMotd((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ClearMotd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_ClearMotd",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ClearMotd" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ClearMotd(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetMotd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; VCString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetMotd",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetMotd" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (VCString *) &((CZNC const *)arg1)->GetMotd(); resultobj = swig::from(static_cast< std::vector > >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_AddServerThrottle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddServerThrottle",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddServerThrottle" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CZNC_AddServerThrottle" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->AddServerThrottle(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetServerThrottle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CString arg2 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_GetServerThrottle",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetServerThrottle" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CZNC_GetServerThrottle" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->GetServerThrottle(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetServerThrottle(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_GetServerThrottle__SWIG_0(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CZNC_GetServerThrottle__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CZNC_GetServerThrottle'.\n" " Possible C/C++ prototypes are:\n" " CZNC::GetServerThrottle() const\n" " CZNC::GetServerThrottle(CString)\n"); return 0; } SWIGINTERN PyObject *_wrap_CZNC_AddNetworkToQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_AddNetworkToQueue",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddNetworkToQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddNetworkToQueue" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->AddNetworkToQueue(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetConnectionQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::list< CIRCNetwork *,std::allocator< CIRCNetwork * > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetConnectionQueue",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConnectionQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (std::list< CIRCNetwork *,std::allocator< CIRCNetwork * > > *) &(arg1)->GetConnectionQueue(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_EnableConnectQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_EnableConnectQueue",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_EnableConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->EnableConnectQueue(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_DisableConnectQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_DisableConnectQueue",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DisableConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->DisableConnectQueue(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_PauseConnectQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_PauseConnectQueue",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_PauseConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->PauseConnectQueue(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_ResumeConnectQueue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_ResumeConnectQueue",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ResumeConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ResumeConnectQueue(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_LeakConnectQueueTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; CConnectQueueTimer *arg2 = (CConnectQueueTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CZNC_LeakConnectQueueTimer",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_LeakConnectQueueTimer" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CConnectQueueTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_LeakConnectQueueTimer" "', argument " "2"" of type '" "CConnectQueueTimer *""'"); } arg2 = reinterpret_cast< CConnectQueueTimer * >(argp2); (arg1)->LeakConnectQueueTimer(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_DumpConfig(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_DumpConfig",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DumpConfig" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); CZNC::DumpConfig((CConfig const *)arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CZNC_GetUserMap_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CZNC_GetUserMap_",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUserMap_" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (PyObject *)CZNC_GetUserMap_(arg1); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *CZNC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CZNC, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CServer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CServer",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CServer" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CServer" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (CServer *)new CServer((CString const &)*arg1,arg2,(CString const &)*arg3,arg4); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_new_CServer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned short arg2 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CServer",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CServer" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CServer *)new CServer((CString const &)*arg1,arg2,(CString const &)*arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_new_CServer__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; unsigned short arg2 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CServer",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CServer" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); result = (CServer *)new CServer((CString const &)*arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CServer__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CServer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CServer",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CServer *)new CServer((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CServer(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CServer__SWIG_3(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CServer__SWIG_2(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CServer__SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_short(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[3], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CServer__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CServer'.\n" " Possible C/C++ prototypes are:\n" " CServer::CServer(CString const &,unsigned short,CString const &,bool)\n" " CServer::CServer(CString const &,unsigned short,CString const &)\n" " CServer::CServer(CString const &,unsigned short)\n" " CServer::CServer(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CServer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CServer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CServer" "', argument " "1"" of type '" "CServer *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CServer_GetName",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetName" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (CString *) &((CServer const *)arg1)->GetName(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_GetPort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned short result; if (!PyArg_ParseTuple(args,(char *)"O:CServer_GetPort",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetPort" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (unsigned short)((CServer const *)arg1)->GetPort(); resultobj = SWIG_From_unsigned_SS_short(static_cast< unsigned short >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_GetPass(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CServer_GetPass",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetPass" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (CString *) &((CServer const *)arg1)->GetPass(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_IsSSL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CServer_IsSSL",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_IsSSL" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (bool)((CServer const *)arg1)->IsSSL(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_GetString__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OO:CServer_GetString",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetString" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CServer_GetString" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = ((CServer const *)arg1)->GetString(arg2); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_GetString__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CServer_GetString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetString" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = ((CServer const *)arg1)->GetString(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CServer_GetString(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 1) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CServer, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CServer_GetString__SWIG_1(self, args); } } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CServer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_bool(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CServer_GetString__SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CServer_GetString'.\n" " Possible C/C++ prototypes are:\n" " CServer::GetString(bool) const\n" " CServer::GetString() const\n"); return 0; } SWIGINTERN PyObject *_wrap_CServer_IsValidHostName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CServer_IsValidHostName",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_IsValidHostName" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CServer_IsValidHostName" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CServer::IsValidHostName((CString const &)*arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *CServer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CServer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CDebug_SetStdoutIsTTY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CDebug_SetStdoutIsTTY",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CDebug_SetStdoutIsTTY" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); CDebug::SetStdoutIsTTY(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDebug_StdoutIsTTY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":CDebug_StdoutIsTTY")) SWIG_fail; result = (bool)CDebug::StdoutIsTTY(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDebug_SetDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool arg1 ; bool val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CDebug_SetDebug",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_bool(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CDebug_SetDebug" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); CDebug::SetDebug(arg1); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CDebug_Debug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":CDebug_Debug")) SWIG_fail; result = (bool)CDebug::Debug(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDebug *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CDebug")) SWIG_fail; result = (CDebug *)new CDebug(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDebug, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDebug *arg1 = (CDebug *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CDebug",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDebug, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CDebug" "', argument " "1"" of type '" "CDebug *""'"); } arg1 = reinterpret_cast< CDebug * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CDebug_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CDebug, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_delete_CDebugStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDebugStream *arg1 = (CDebugStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CDebugStream",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CDebugStream, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CDebugStream" "', argument " "1"" of type '" "CDebugStream *""'"); } arg1 = reinterpret_cast< CDebugStream * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CDebugStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CDebugStream *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CDebugStream")) SWIG_fail; result = (CDebugStream *)new CDebugStream(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDebugStream, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CDebugStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CDebugStream, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CExecSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CExecSock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CExecSock")) SWIG_fail; result = (CExecSock *)new CExecSock(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CExecSock, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CExecSock_Execute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CExecSock *arg1 = (CExecSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OO:CExecSock_Execute",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_Execute" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CExecSock_Execute" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_Execute" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (int)(arg1)->Execute((CString const &)*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CExecSock_Kill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CExecSock *arg1 = (CExecSock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CExecSock_Kill",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_Kill" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CExecSock_Kill" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->Kill(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CExecSock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CExecSock *arg1 = (CExecSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CExecSock",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CExecSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CExecSock" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CExecSock_popen2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CExecSock *arg1 = (CExecSock *) 0 ; int *arg2 = 0 ; int *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; int result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CExecSock_popen2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_popen2" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CExecSock_popen2" "', argument " "2"" of type '" "int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_popen2" "', argument " "2"" of type '" "int &""'"); } arg2 = reinterpret_cast< int * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_int, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CExecSock_popen2" "', argument " "3"" of type '" "int &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_popen2" "', argument " "3"" of type '" "int &""'"); } arg3 = reinterpret_cast< int * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CExecSock_popen2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_popen2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (int)(arg1)->popen2(*arg2,*arg3,(CString const &)*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CExecSock_close2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CExecSock *arg1 = (CExecSock *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CExecSock_close2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_close2" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); ecode2 = SWIG_AsVal_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CExecSock_close2" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CExecSock_close2" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CExecSock_close2" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); (arg1)->close2(arg2,arg3,arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CExecSock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CExecSock, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CBufLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CBufLine")) SWIG_fail; result = (CBufLine *)new CBufLine(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CBufLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; timeval *arg3 = (timeval *) 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CBufLine *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:new_CBufLine",&obj0,&obj1,&obj2)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CBufLine" "', argument " "3"" of type '" "timeval const *""'"); } arg3 = reinterpret_cast< timeval * >(argp3); result = (CBufLine *)new CBufLine((CString const &)*arg1,(CString const &)*arg2,(timeval const *)arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CBufLine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CBufLine *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CBufLine",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CBufLine *)new CBufLine((CString const &)*arg1,(CString const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_CBufLine__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; CBufLine *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CBufLine",&obj0)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CBufLine *)new CBufLine((CString const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_CBufLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CBufLine__SWIG_0(self, args); } if (argc == 1) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CBufLine__SWIG_3(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CBufLine__SWIG_2(self, args); } } } if (argc == 3) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_CBufLine__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CBufLine'.\n" " Possible C/C++ prototypes are:\n" " CBufLine::CBufLine()\n" " CBufLine::CBufLine(CString const &,CString const &,timeval const *)\n" " CBufLine::CBufLine(CString const &,CString const &)\n" " CBufLine::CBufLine(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CBufLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CBufLine",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CBufLine" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_GetLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; CClient *arg2 = 0 ; MCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CBufLine_GetLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetLine" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CClient, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_GetLine" "', argument " "2"" of type '" "CClient const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_GetLine" "', argument " "2"" of type '" "CClient const &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_MCString, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBufLine_GetLine" "', argument " "3"" of type '" "MCString const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_GetLine" "', argument " "3"" of type '" "MCString const &""'"); } arg3 = reinterpret_cast< MCString * >(argp3); result = ((CBufLine const *)arg1)->GetLine((CClient const &)*arg2,(MCString const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_UpdateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CBufLine_UpdateTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_UpdateTime" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); (arg1)->UpdateTime(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_SetFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CBufLine_SetFormat",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_SetFormat" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_SetFormat" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_SetFormat" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetFormat((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CBufLine_SetText",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_SetText" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_SetText" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_SetText" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetText((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_SetTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; timeval *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CBufLine_SetTime",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_SetTime" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_timeval, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_SetTime" "', argument " "2"" of type '" "timeval const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_SetTime" "', argument " "2"" of type '" "timeval const &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); (arg1)->SetTime((timeval const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_GetFormat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CBufLine_GetFormat",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetFormat" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); result = (CString *) &((CBufLine const *)arg1)->GetFormat(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CBufLine_GetText",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetText" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); result = (CString *) &((CBufLine const *)arg1)->GetText(); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBufLine_GetTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; timeval result; if (!PyArg_ParseTuple(args,(char *)"O:CBufLine_GetTime",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetTime" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); result = ((CBufLine const *)arg1)->GetTime(); resultobj = SWIG_NewPointerObj((new timeval(static_cast< const timeval& >(result))), SWIGTYPE_p_timeval, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CBufLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CBufLine, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CBuffer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; CBuffer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CBuffer",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_unsigned_SS_int(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CBuffer" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (CBuffer *)new CBuffer(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBuffer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CBuffer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_CBuffer")) SWIG_fail; result = (CBuffer *)new CBuffer(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBuffer, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_CBuffer(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_CBuffer__SWIG_1(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_unsigned_SS_int(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_CBuffer__SWIG_0(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_CBuffer'.\n" " Possible C/C++ prototypes are:\n" " CBuffer::CBuffer(unsigned int)\n" " CBuffer::CBuffer()\n"); return 0; } SWIGINTERN PyObject *_wrap_delete_CBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CBuffer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CBuffer" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_AddLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = (timeval *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CBuffer_AddLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_AddLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CBuffer_AddLine" "', argument " "4"" of type '" "timeval const *""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (arg1)->AddLine((CString const &)*arg2,(CString const &)*arg3,(timeval const *)arg4); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_AddLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OOO:CBuffer_AddLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_AddLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->AddLine((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_AddLine__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:CBuffer_AddLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_AddLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddLine((CString const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_AddLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_AddLine__SWIG_2(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_AddLine__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { void *vptr = 0; int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_AddLine__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CBuffer_AddLine'.\n" " Possible C/C++ prototypes are:\n" " CBuffer::AddLine(CString const &,CString const &,timeval const *)\n" " CBuffer::AddLine(CString const &,CString const &)\n" " CBuffer::AddLine(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CBuffer_UpdateLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CBuffer_UpdateLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CBuffer_UpdateLine" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (arg1)->UpdateLine((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_UpdateLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OOO:CBuffer_UpdateLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->UpdateLine((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_UpdateLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_UpdateLine__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[3], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_UpdateLine__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CBuffer_UpdateLine'.\n" " Possible C/C++ prototypes are:\n" " CBuffer::UpdateLine(CString const &,CString const &,CString const &)\n" " CBuffer::UpdateLine(CString const &,CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CBuffer_UpdateExactLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OOO:CBuffer_UpdateExactLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateExactLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_UpdateExactLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateExactLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->UpdateExactLine((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_UpdateExactLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"OO:CBuffer_UpdateExactLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateExactLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->UpdateExactLine((CString const &)*arg2); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_UpdateExactLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_UpdateExactLine__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[2], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_UpdateExactLine__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CBuffer_UpdateExactLine'.\n" " Possible C/C++ prototypes are:\n" " CBuffer::UpdateExactLine(CString const &,CString const &)\n" " CBuffer::UpdateExactLine(CString const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_CBuffer_GetBufLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CBufLine *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CBuffer_GetBufLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetBufLine" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_GetBufLine" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (CBufLine *) &((CBuffer const *)arg1)->GetBufLine(arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_GetLine__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; std::deque< CBufLine >::size_type arg2 ; CClient *arg3 = 0 ; MCString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CBuffer_GetLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetLine" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_GetLine" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_MCString, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CBuffer_GetLine" "', argument " "4"" of type '" "MCString const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_GetLine" "', argument " "4"" of type '" "MCString const &""'"); } arg4 = reinterpret_cast< MCString * >(argp4); result = ((CBuffer const *)arg1)->GetLine(arg2,(CClient const &)*arg3,(MCString const &)*arg4); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_GetLine__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; std::deque< CBufLine >::size_type arg2 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"OOO:CBuffer_GetLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetLine" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_GetLine" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = ((CBuffer const *)arg1)->GetLine(arg2,(CClient const &)*arg3); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_GetLine(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_GetLine__SWIG_1(self, args); } } } } if (argc == 4) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_MCString, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_CBuffer_GetLine__SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CBuffer_GetLine'.\n" " Possible C/C++ prototypes are:\n" " CBuffer::GetLine(std::deque< CBufLine >::size_type,CClient const &,MCString const &) const\n" " CBuffer::GetLine(std::deque< CBufLine >::size_type,CClient const &) const\n"); return 0; } SWIGINTERN PyObject *_wrap_CBuffer_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::deque< CBufLine >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:CBuffer_Size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_Size" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); result = ((CBuffer const *)arg1)->Size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CBuffer_IsEmpty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_IsEmpty" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); result = (bool)((CBuffer const *)arg1)->IsEmpty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CBuffer_Clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_Clear" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); (arg1)->Clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_SetLineCount__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CBuffer_SetLineCount",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_SetLineCount" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_SetLineCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CBuffer_SetLineCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->SetLineCount(arg2,arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_SetLineCount__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CBuffer_SetLineCount",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_SetLineCount" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_SetLineCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (bool)(arg1)->SetLineCount(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CBuffer_SetLineCount(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CBuffer_SetLineCount__SWIG_1(self, args); } } } if (argc == 3) { int _v; void *vptr = 0; int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_unsigned_SS_int(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_bool(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_CBuffer_SetLineCount__SWIG_0(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'CBuffer_SetLineCount'.\n" " Possible C/C++ prototypes are:\n" " CBuffer::SetLineCount(unsigned int,bool)\n" " CBuffer::SetLineCount(unsigned int)\n"); return 0; } SWIGINTERN PyObject *_wrap_CBuffer_GetLineCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; unsigned int result; if (!PyArg_ParseTuple(args,(char *)"O:CBuffer_GetLineCount",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetLineCount" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); result = (unsigned int)((CBuffer const *)arg1)->GetLineCount(); resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CBuffer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CBuffer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_String_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; String *arg1 = (String *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:String_s_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_String, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "String_s_set" "', argument " "1"" of type '" "String *""'"); } arg1 = reinterpret_cast< String * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "String_s_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "String_s_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } if (arg1) (arg1)->s = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_String_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; String *arg1 = (String *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:String_s_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_String, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "String_s_get" "', argument " "1"" of type '" "String *""'"); } arg1 = reinterpret_cast< String * >(argp1); result = (CString *) & ((arg1)->s); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_String___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; String *arg1 = (String *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:String___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_String, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "String___str__" "', argument " "1"" of type '" "String *""'"); } arg1 = reinterpret_cast< String * >(argp1); result = String___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; String *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_String")) SWIG_fail; result = (String *)new String(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_String(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; String *arg1 = (String *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_String",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_String, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_String" "', argument " "1"" of type '" "String *""'"); } arg1 = reinterpret_cast< String * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *String_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_String, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CPyModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; PyObject *arg5 = (PyObject *) 0 ; CModPython *arg6 = (CModPython *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CPyModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_CPyModule",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CPyModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CPyModule" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CPyModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPyModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CPyModule" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPyModule" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } arg5 = obj4; res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CModPython, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_CPyModule" "', argument " "6"" of type '" "CModPython *""'"); } arg6 = reinterpret_cast< CModPython * >(argp6); result = (CPyModule *)new CPyModule(arg1,arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPyModule, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_GetPyObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_GetPyObj",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_GetPyObj" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (PyObject *)(arg1)->GetPyObj(); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_GetNewPyObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_GetNewPyObj",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_GetNewPyObj" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (PyObject *)(arg1)->GetNewPyObj(); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_DeletePyModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_DeletePyModule",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_DeletePyModule" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->DeletePyModule(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_GetPyExceptionStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_GetPyExceptionStr",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_GetPyExceptionStr" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (arg1)->GetPyExceptionStr(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_GetModPython(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModPython *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_GetModPython",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_GetModPython" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (CModPython *)(arg1)->GetModPython(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModPython, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnBoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnBoot",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnBoot" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (bool)(arg1)->OnBoot(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_WebRequiresLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_WebRequiresLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_WebRequiresLogin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (bool)(arg1)->WebRequiresLogin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_WebRequiresAdmin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_WebRequiresAdmin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_WebRequiresAdmin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (bool)(arg1)->WebRequiresAdmin(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_GetWebMenuTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_GetWebMenuTitle",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_GetWebMenuTitle" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (arg1)->GetWebMenuTitle(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnWebPreRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnWebPreRequest",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnWebPreRequest" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnWebPreRequest(*arg2,(CString const &)*arg3); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnWebRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnWebRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnWebRequest" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnWebRequest(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_GetSubPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; VWebSubPages *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_GetSubPages",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_GetSubPages" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); result = (VWebSubPages *) &(arg1)->GetSubPages(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPreRehash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnPreRehash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPreRehash" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->OnPreRehash(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPostRehash(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnPostRehash",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPostRehash" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->OnPostRehash(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnIRCDisconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnIRCDisconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnIRCDisconnected" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->OnIRCDisconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnIRCConnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnIRCConnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnIRCConnected" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->OnIRCConnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnIRCConnecting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnIRCConnecting",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnIRCConnecting" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnIRCConnecting" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (CModule::EModRet)(arg1)->OnIRCConnecting(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnIRCConnectionError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnIRCConnectionError",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnIRCConnectionError" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnIRCConnectionError" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); (arg1)->OnIRCConnectionError(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnIRCRegistration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnIRCRegistration",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnIRCRegistration" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sPass"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sNick"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sIdent"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sRealName"); } } result = (CModule::EModRet)(arg1)->OnIRCRegistration(*arg2,*arg3,*arg4,*arg5); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnBroadcast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnBroadcast",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnBroadcast" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sMessage"); } } result = (CModule::EModRet)(arg1)->OnBroadcast(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanPermission2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CPyModule_OnChanPermission2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanPermission2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanPermission2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPyModule_OnChanPermission2" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CPyModule_OnChanPermission2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CPyModule_OnChanPermission2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnChanPermission2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnOp2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnOp2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnOp2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnOp2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPyModule_OnOp2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnOp2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnDeop2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnDeop2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnDeop2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnDeop2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPyModule_OnDeop2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDeop2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnVoice2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnVoice2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnVoice2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnVoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPyModule_OnVoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnVoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnDevoice2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnDevoice2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnDevoice2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnDevoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool(obj4, &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPyModule_OnDevoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDevoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnMode2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; PyObject * obj6 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:CPyModule_OnMode2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnMode2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CPyModule_OnMode2" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPyModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool(obj5, &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CPyModule_OnMode2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool(obj6, &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CPyModule_OnMode2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnMode2((CNick const *)arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnRawMode2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnRawMode2",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnRawMode2" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnRawMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPyModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnRawMode2((CNick const *)arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnRaw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnRaw" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (CModule::EModRet)(arg1)->OnRaw(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnStatusCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnStatusCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnStatusCommand" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sCommand"); } } result = (CModule::EModRet)(arg1)->OnStatusCommand(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnModCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnModCommand",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnModCommand" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCommand((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnModNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnModNotice",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnModNotice" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModNotice((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnModCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnModCTCP",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnModCTCP" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCTCP((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnQuit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnQuit",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnQuit" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnQuit" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnQuit" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } (arg1)->OnQuit((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnNick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan *,std::allocator< CChan * > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnNick",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnNick" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { std::vector > *ptr = (std::vector > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnNick" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnNick" "', argument " "4"" of type '" "std::vector< CChan *,std::allocator< CChan * > > const &""'"); } arg4 = ptr; } (arg1)->OnNick((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan *,std::allocator< CChan * > > const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnKick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CChan *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnKick",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnKick" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPyModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnKick((CNick const &)*arg2,(CString const &)*arg3,*arg4,(CString const &)*arg5); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnJoining(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnJoining",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnJoining" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnJoining(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnJoin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnJoin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); (arg1)->OnJoin((CNick const &)*arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnPart",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPart" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->OnPart((CNick const &)*arg2,*arg3,(CString const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanBufferStarting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnChanBufferStarting",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanBufferStarting" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferStarting(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanBufferEnding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnChanBufferEnding",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanBufferEnding" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferEnding(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanBufferPlayLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnChanBufferPlayLine",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanBufferPlayLine" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sLine"); } } result = (CModule::EModRet)(arg1)->OnChanBufferPlayLine(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPrivBufferPlayLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnPrivBufferPlayLine",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPrivBufferPlayLine" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (CModule::EModRet)(arg1)->OnPrivBufferPlayLine(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnClientLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnClientLogin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnClientLogin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->OnClientLogin(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnClientDisconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyModule_OnClientDisconnect",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnClientDisconnect" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); (arg1)->OnClientDisconnect(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnUserRaw",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserRaw" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (CModule::EModRet)(arg1)->OnUserRaw(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserCTCPReply" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserCTCPReply(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserCTCP" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserCTCP(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserAction",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserAction" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserAction(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserMsg" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserMsg(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserNotice" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sTarget"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserNotice(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserJoin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserJoin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sKey"); } } result = (CModule::EModRet)(arg1)->OnUserJoin(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserPart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserPart",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserPart" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnUserPart(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUserTopic",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserTopic" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sTopic"); } } result = (CModule::EModRet)(arg1)->OnUserTopic(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUserTopicRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnUserTopicRequest",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUserTopicRequest" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sChannel"); } } result = (CModule::EModRet)(arg1)->OnUserTopicRequest(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnCTCPReply(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnCTCPReply",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnCTCPReply" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnCTCPReply(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPrivCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnPrivCTCP",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPrivCTCP" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivCTCP(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanCTCP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnChanCTCP",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanCTCP" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanCTCP(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPrivAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnPrivAction",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPrivAction" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivAction(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnChanAction",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanAction" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanAction(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPrivMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnPrivMsg",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPrivMsg" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivMsg(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanMsg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnChanMsg",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanMsg" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanMsg(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnPrivNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnPrivNotice",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnPrivNotice" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sMessage"); } } result = (CModule::EModRet)(arg1)->OnPrivNotice(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnChanNotice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnChanNotice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnChanNotice" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sMessage"); } } result = (CModule::EModRet)(arg1)->OnChanNotice(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnTopic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnTopic",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnTopic" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sTopic"); } } result = (CModule::EModRet)(arg1)->OnTopic(*arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnServerCapAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnServerCapAvailable",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnServerCapAvailable" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnServerCapResult(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnServerCapResult",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnServerCapResult" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPyModule_OnServerCapResult" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->OnServerCapResult((CString const &)*arg2,arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnTimerAutoJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnTimerAutoJoin",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnTimerAutoJoin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnTimerAutoJoin(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnEmbeddedWebRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnEmbeddedWebRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnEmbeddedWebRequest(*arg2,(CString const &)*arg3,*arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnAddNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CIRCNetwork *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnAddNetwork",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnAddNetwork" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (CModule::EModRet)(arg1)->OnAddNetwork(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnDeleteNetwork(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnDeleteNetwork",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnDeleteNetwork" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteNetwork(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnSendToClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnSendToClient",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnSendToClient" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnSendToClient(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnSendToIRC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnSendToIRC",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnSendToIRC" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj1, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg2 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 2 sLine"); } } result = (CModule::EModRet)(arg1)->OnSendToIRC(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnAddUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnAddUser",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnAddUser" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sErrorRet"); } } result = (CModule::EModRet)(arg1)->OnAddUser(*arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnDeleteUser(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnDeleteUser",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnDeleteUser" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteUser(*arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnClientConnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CZNCSock *arg2 = (CZNCSock *) 0 ; CString *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned short val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnClientConnect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnClientConnect" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnClientConnect" "', argument " "2"" of type '" "CZNCSock *""'"); } arg2 = reinterpret_cast< CZNCSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_short(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CPyModule_OnClientConnect" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); (arg1)->OnClientConnect(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnFailedLogin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnFailedLogin",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnFailedLogin" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->OnFailedLogin((CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnUnknownUserRaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnUnknownUserRaw",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnUnknownUserRaw" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnUnknownUserRaw" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj2, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg3 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 3 sLine"); } } result = (CModule::EModRet)(arg1)->OnUnknownUserRaw(arg2,*arg3); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_IsClientCapSupported(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_IsClientCapSupported",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_IsClientCapSupported" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_IsClientCapSupported" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CPyModule_IsClientCapSupported" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->IsClientCapSupported(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_From_bool(static_cast< bool >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnClientCapRequest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnClientCapRequest",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnClientCapRequest" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnClientCapRequest" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CPyModule_OnClientCapRequest" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->OnClientCapRequest(arg2,(CString const &)*arg3,arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnModuleLoading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; bool *arg5 = 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CPyModule_OnModuleLoading",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnModuleLoading" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CPyModule_OnModuleLoading" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPyModule_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } arg5 = reinterpret_cast< bool * >(argp5); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj5, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg6 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 6 sRetMsg"); } } result = (CModule::EModRet)(arg1)->OnModuleLoading((CString const &)*arg2,(CString const &)*arg3,arg4,*arg5,*arg6); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnModuleUnloading(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CModule *arg2 = (CModule *) 0 ; bool *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CPyModule_OnModuleUnloading",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnModuleUnloading" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnModuleUnloading" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj3, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg4 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 4 sRetMsg"); } } result = (CModule::EModRet)(arg1)->OnModuleUnloading(arg2,*arg3,*arg4); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnGetModInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CModInfo *arg2 = 0 ; CString *arg3 = 0 ; bool *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OOOOO:CPyModule_OnGetModInfo",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnGetModInfo" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPyModule_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } arg4 = reinterpret_cast< bool * >(argp4); { String* p; int res = SWIG_IsOK(SWIG_ConvertPtr(obj4, (void**)&p, SWIG_TypeQuery("String*"), 0)); if (SWIG_IsOK(res)) { arg5 = &p->s; } else { SWIG_exception_fail(SWIG_ArgError(res), "need znc.String object as argument 5 sRetMsg"); } } result = (CModule::EModRet)(arg1)->OnGetModInfo(*arg2,(CString const &)*arg3,*arg4,*arg5); resultobj = SWIG_From_int(static_cast< int >(result)); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnGetAvailableMods(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *arg2 = 0 ; CModInfo::EModuleType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnGetAvailableMods",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnGetAvailableMods" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > * >(argp2); ecode3 = SWIG_AsVal_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPyModule_OnGetAvailableMods" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); (arg1)->OnGetAvailableMods(*arg2,arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnClientCapLs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; CClient *arg2 = (CClient *) 0 ; SCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPyModule_OnClientCapLs",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnClientCapLs" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnClientCapLs" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPyModule_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyModule_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } arg3 = reinterpret_cast< SCString * >(argp3); (arg1)->OnClientCapLs(arg2,*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyModule_OnLoginAttempt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; std::shared_ptr< CAuthBase > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CModule::EModRet result; if (!PyArg_ParseTuple(args,(char *)"OO:CPyModule_OnLoginAttempt",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyModule_OnLoginAttempt" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); { int newmem = 0; res2 = SWIG_ConvertPtrAndOwn(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 , &newmem); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyModule_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2); } result = (CModule::EModRet)(arg1)->OnLoginAttempt(arg2); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CPyModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CPyModule",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPyModule" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CPyModule_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CPyModule, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_AsPyModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CPyModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:AsPyModule",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AsPyModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CPyModule *)AsPyModule(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPyModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CreatePyModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; PyObject *arg5 = (PyObject *) 0 ; CModPython *arg6 = (CModPython *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp6 = 0 ; int res6 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CPyModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CreatePyModule",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreatePyModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CreatePyModule" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CreatePyModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreatePyModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CreatePyModule" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreatePyModule" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } arg5 = obj4; res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CModPython, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CreatePyModule" "', argument " "6"" of type '" "CModPython *""'"); } arg6 = reinterpret_cast< CModPython * >(argp6); result = (CPyModule *)CreatePyModule(arg1,arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPyModule, 0 | 0 ); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_new_CPyTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; PyObject *arg6 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CPyTimer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_CPyTimer",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CPyTimer" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CPyTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CPyTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CPyTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPyTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CPyTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPyTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } arg6 = obj5; result = (CPyTimer *)new CPyTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5,arg6); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPyTimer, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_CPyTimer_RunJob(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyTimer *arg1 = (CPyTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyTimer_RunJob",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyTimer_RunJob" "', argument " "1"" of type '" "CPyTimer *""'"); } arg1 = reinterpret_cast< CPyTimer * >(argp1); (arg1)->RunJob(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyTimer_GetPyObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyTimer *arg1 = (CPyTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyTimer_GetPyObj",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyTimer_GetPyObj" "', argument " "1"" of type '" "CPyTimer *""'"); } arg1 = reinterpret_cast< CPyTimer * >(argp1); result = (PyObject *)(arg1)->GetPyObj(); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyTimer_GetNewPyObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyTimer *arg1 = (CPyTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyTimer_GetNewPyObj",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyTimer_GetNewPyObj" "', argument " "1"" of type '" "CPyTimer *""'"); } arg1 = reinterpret_cast< CPyTimer * >(argp1); result = (PyObject *)(arg1)->GetNewPyObj(); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CPyTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyTimer *arg1 = (CPyTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CPyTimer",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyTimer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPyTimer" "', argument " "1"" of type '" "CPyTimer *""'"); } arg1 = reinterpret_cast< CPyTimer * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CPyTimer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CPyTimer, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CreatePyTimer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; PyObject *arg6 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; PyObject * obj4 = 0 ; PyObject * obj5 = 0 ; CPyTimer *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOOOO:CreatePyTimer",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreatePyTimer" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreatePyTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CreatePyTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CreatePyTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreatePyTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString(obj4, &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CreatePyTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreatePyTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } arg6 = obj5; result = (CPyTimer *)CreatePyTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5,arg6); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPyTimer, 0 | 0 ); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; return NULL; } SWIGINTERN PyObject *_wrap_new_CPySocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; PyObject *arg2 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CPySocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_CPySocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CPySocket" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); arg2 = obj1; result = (CPySocket *)new CPySocket(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPySocket, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_GetPyObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPySocket_GetPyObj",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_GetPyObj" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); result = (PyObject *)(arg1)->GetPyObj(); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_GetNewPyObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPySocket_GetNewPyObj",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_GetNewPyObj" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); result = (PyObject *)(arg1)->GetNewPyObj(); resultobj = result; return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CPySocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CPySocket",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPySocket" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_Connected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPySocket_Connected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_Connected" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); (arg1)->Connected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_Disconnected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPySocket_Disconnected",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_Disconnected" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); (arg1)->Disconnected(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_Timeout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPySocket_Timeout",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_Timeout" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); (arg1)->Timeout(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_ConnectionRefused(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPySocket_ConnectionRefused",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_ConnectionRefused" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); (arg1)->ConnectionRefused(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_ReadData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPySocket_ReadData",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_ReadData" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPySocket_ReadData" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPySocket_ReadData" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->ReadData((char const *)arg2,arg3); resultobj = SWIG_Py_Void(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return resultobj; fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_ReadLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPySocket_ReadLine",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_ReadLine" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPySocket_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPySocket_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPySocket_GetSockObj(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPySocket *arg1 = (CPySocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; Csock *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:CPySocket_GetSockObj",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPySocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPySocket_GetSockObj" "', argument " "1"" of type '" "CPySocket *""'"); } arg1 = reinterpret_cast< CPySocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPySocket_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPySocket_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPySocket_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *CPySocket_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CPySocket, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CreatePySocket(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyModule *arg1 = (CPyModule *) 0 ; PyObject *arg2 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; CPySocket *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CreatePySocket",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreatePySocket" "', argument " "1"" of type '" "CPyModule *""'"); } arg1 = reinterpret_cast< CPyModule * >(argp1); arg2 = obj1; result = (CPySocket *)CreatePySocket(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPySocket, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HaveIPv6_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":HaveIPv6_")) SWIG_fail; result = (bool)HaveIPv6_(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HaveSSL_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":HaveSSL_")) SWIG_fail; result = (bool)HaveSSL_(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_HaveCharset_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; bool result; if (!PyArg_ParseTuple(args,(char *)":HaveCharset_")) SWIG_fail; result = (bool)HaveCharset_(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_GetSOMAXCONN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":GetSOMAXCONN")) SWIG_fail; result = (int)GetSOMAXCONN(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_GetVersionMajor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":GetVersionMajor")) SWIG_fail; result = (int)GetVersionMajor(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_GetVersionMinor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; int result; if (!PyArg_ParseTuple(args,(char *)":GetVersionMinor")) SWIG_fail; result = (int)GetVersionMinor(); resultobj = SWIG_From_int(static_cast< int >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; double result; if (!PyArg_ParseTuple(args,(char *)":GetVersion")) SWIG_fail; result = (double)GetVersion(); resultobj = SWIG_From_double(static_cast< double >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_GetVersionExtra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString result; if (!PyArg_ParseTuple(args,(char *)":GetVersionExtra")) SWIG_fail; result = GetVersionExtra(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_MCString_iter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_MCString_iter")) SWIG_fail; result = (MCString_iter *)new MCString_iter(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString_iter, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MCString_iter_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *arg1 = (MCString_iter *) 0 ; MCString::iterator *arg2 = (MCString::iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:MCString_iter_x_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString_iter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MCString_iter_x_set" "', argument " "1"" of type '" "MCString_iter *""'"); } arg1 = reinterpret_cast< MCString_iter * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MCString_iter_x_set" "', argument " "2"" of type '" "MCString::iterator *""'"); } arg2 = reinterpret_cast< MCString::iterator * >(argp2); if (arg1) (arg1)->x = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MCString_iter_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *arg1 = (MCString_iter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; MCString::iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MCString_iter_x_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString_iter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MCString_iter_x_get" "', argument " "1"" of type '" "MCString_iter *""'"); } arg1 = reinterpret_cast< MCString_iter * >(argp1); result = (MCString::iterator *)& ((arg1)->x); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_MCString_iter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString::iterator arg1 ; swig::SwigPyIterator *iter1 = 0 ; int res1 ; PyObject * obj0 = 0 ; MCString_iter *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_MCString_iter",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&iter1), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res1) || !iter1) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_MCString_iter" "', argument " "1"" of type '" "MCString::iterator""'"); } else { swig::SwigPyIterator_T *iter_t = dynamic_cast *>(iter1); if (iter_t) { arg1 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_MCString_iter" "', argument " "1"" of type '" "MCString::iterator""'"); } } result = (MCString_iter *)new MCString_iter(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString_iter, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_MCString_iter(PyObject *self, PyObject *args) { int argc; PyObject *argv[2]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 1) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_MCString_iter__SWIG_0(self, args); } if (argc == 1) { int _v; swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[0], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast *>(iter) != 0)); if (_v) { return _wrap_new_MCString_iter__SWIG_1(self, args); } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_MCString_iter'.\n" " Possible C/C++ prototypes are:\n" " MCString_iter::MCString_iter()\n" " MCString_iter::MCString_iter(MCString::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_MCString_iter_plusplus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *arg1 = (MCString_iter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:MCString_iter_plusplus",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString_iter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MCString_iter_plusplus" "', argument " "1"" of type '" "MCString_iter *""'"); } arg1 = reinterpret_cast< MCString_iter * >(argp1); (arg1)->plusplus(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MCString_iter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *arg1 = (MCString_iter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:MCString_iter_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString_iter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MCString_iter_get" "', argument " "1"" of type '" "MCString_iter *""'"); } arg1 = reinterpret_cast< MCString_iter * >(argp1); result = (arg1)->get(); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_MCString_iter_is_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *arg1 = (MCString_iter *) 0 ; CModule *arg2 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"OO:MCString_iter_is_end",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString_iter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MCString_iter_is_end" "', argument " "1"" of type '" "MCString_iter *""'"); } arg1 = reinterpret_cast< MCString_iter * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MCString_iter_is_end" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); result = (bool)(arg1)->is_end(arg2); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_MCString_iter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; MCString_iter *arg1 = (MCString_iter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_MCString_iter",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_MCString_iter, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCString_iter" "', argument " "1"" of type '" "MCString_iter *""'"); } arg1 = reinterpret_cast< MCString_iter * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *MCString_iter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_MCString_iter, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_CModulesIter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModulesIter *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_CModulesIter",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModulesIter" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CModulesIter *)new CModulesIter(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModulesIter, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_plusplus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModulesIter_plusplus",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_plusplus" "', argument " "1"" of type '" "CModulesIter *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); (arg1)->plusplus(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModule *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModulesIter_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_get" "', argument " "1"" of type '" "CModulesIter const *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); result = (CModule *)((CModulesIter const *)arg1)->get(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_is_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CModulesIter_is_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_is_end" "', argument " "1"" of type '" "CModulesIter const *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); result = (bool)((CModulesIter const *)arg1)->is_end(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_m_pModules_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; CModules *arg2 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModulesIter_m_pModules_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_m_pModules_set" "', argument " "1"" of type '" "CModulesIter *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CModules, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModulesIter_m_pModules_set" "', argument " "2"" of type '" "CModules *""'"); } arg2 = reinterpret_cast< CModules * >(argp2); if (arg1) (arg1)->m_pModules = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_m_pModules_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModulesIter_m_pModules_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_m_pModules_get" "', argument " "1"" of type '" "CModulesIter *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); result = (CModules *) ((arg1)->m_pModules); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_m_it_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; CModules::const_iterator *arg2 = (CModules::const_iterator *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CModulesIter_m_it_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_m_it_set" "', argument " "1"" of type '" "CModulesIter *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModulesIter_m_it_set" "', argument " "2"" of type '" "CModules::const_iterator *""'"); } arg2 = reinterpret_cast< CModules::const_iterator * >(argp2); if (arg1) (arg1)->m_it = *arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CModulesIter_m_it_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CModules::const_iterator *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CModulesIter_m_it_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModulesIter_m_it_get" "', argument " "1"" of type '" "CModulesIter *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); result = (CModules::const_iterator *)& ((arg1)->m_it); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CModulesIter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CModulesIter *arg1 = (CModulesIter *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CModulesIter",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CModulesIter, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModulesIter" "', argument " "1"" of type '" "CModulesIter *""'"); } arg1 = reinterpret_cast< CModulesIter * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CModulesIter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CModulesIter, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CPyRetString_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetString *arg1 = (CPyRetString *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPyRetString_s_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetString, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyRetString_s_set" "', argument " "1"" of type '" "CPyRetString *""'"); } arg1 = reinterpret_cast< CPyRetString * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPyRetString_s_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPyRetString_s_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } if (arg1) (arg1)->s = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_CPyRetString_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetString *arg1 = (CPyRetString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:CPyRetString_s_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetString, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyRetString_s_get" "', argument " "1"" of type '" "CPyRetString *""'"); } arg1 = reinterpret_cast< CPyRetString * >(argp1); result = (CString *) & ((arg1)->s); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyRetString___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetString *arg1 = (CPyRetString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString result; if (!PyArg_ParseTuple(args,(char *)"O:CPyRetString___str__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetString, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyRetString___str__" "', argument " "1"" of type '" "CPyRetString *""'"); } arg1 = reinterpret_cast< CPyRetString * >(argp1); result = CPyRetString___str__(arg1); resultobj = SWIG_From_CString(static_cast< CString >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CPyRetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetString *arg1 = (CPyRetString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CPyRetString",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetString, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPyRetString" "', argument " "1"" of type '" "CPyRetString *""'"); } arg1 = reinterpret_cast< CPyRetString * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CPyRetString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CPyRetString, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_CPyRetBool_b_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetBool *arg1 = (CPyRetBool *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:CPyRetBool_b_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetBool, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyRetBool_b_set" "', argument " "1"" of type '" "CPyRetBool *""'"); } arg1 = reinterpret_cast< CPyRetBool * >(argp1); ecode2 = SWIG_AsVal_bool(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CPyRetBool_b_set" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); if (arg1) (arg1)->b = arg2; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyRetBool_b_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetBool *arg1 = (CPyRetBool *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CPyRetBool_b_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetBool, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyRetBool_b_get" "', argument " "1"" of type '" "CPyRetBool *""'"); } arg1 = reinterpret_cast< CPyRetBool * >(argp1); result = (bool) ((arg1)->b); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_CPyRetBool___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetBool *arg1 = (CPyRetBool *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:CPyRetBool___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetBool, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPyRetBool___bool__" "', argument " "1"" of type '" "CPyRetBool *""'"); } arg1 = reinterpret_cast< CPyRetBool * >(argp1); result = (bool)CPyRetBool___bool__(arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_CPyRetBool(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CPyRetBool *arg1 = (CPyRetBool *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_CPyRetBool",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CPyRetBool, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPyRetBool" "', argument " "1"" of type '" "CPyRetBool *""'"); } arg1 = reinterpret_cast< CPyRetBool * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *CPyRetBool_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CPyRetBool, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *CModPython_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_CModPython, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_new_StrPair__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_StrPair")) SWIG_fail; result = (std::pair< CString,CString > *)new std::pair< CString,CString >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_StrPair__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString arg1 ; CString arg2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::pair< CString,CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_StrPair",&obj0,&obj1)) SWIG_fail; { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_StrPair" "', argument " "1"" of type '" "CString""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_StrPair" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (std::pair< CString,CString > *)new std::pair< CString,CString >(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_StrPair__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::pair< CString,CString > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_StrPair",&obj0)) SWIG_fail; { std::pair *ptr = (std::pair *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrPair" "', argument " "1"" of type '" "std::pair< CString,CString > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StrPair" "', argument " "1"" of type '" "std::pair< CString,CString > const &""'"); } arg1 = ptr; } result = (std::pair< CString,CString > *)new std::pair< CString,CString >((std::pair< CString,CString > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_new_StrPair(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_StrPair__SWIG_0(self, args); } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::pair**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_StrPair__SWIG_2(self, args); } } if (argc == 2) { int _v; int res = SWIG_AsPtr_CString(argv[0], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { int res = SWIG_AsPtr_CString(argv[1], (CString**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_StrPair__SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_StrPair'.\n" " Possible C/C++ prototypes are:\n" " std::pair< CString,CString >::pair()\n" " std::pair< CString,CString >::pair(CString,CString)\n" " std::pair< CString,CString >::pair(std::pair< CString,CString > const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_StrPair_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:StrPair_first_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_first_set" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrPair_first_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrPair_first_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } if (arg1) (arg1)->first = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_StrPair_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:StrPair_first_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_first_get" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); result = (CString *) & ((arg1)->first); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_StrPair_second_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:StrPair_second_set",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_second_set" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrPair_second_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrPair_second_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } if (arg1) (arg1)->second = *arg2; resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_StrPair_second_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; CString *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:StrPair_second_get",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_second_get" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); result = (CString *) & ((arg1)->second); resultobj = SWIG_From_CString(static_cast< CString >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_StrPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_StrPair",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StrPair" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *StrPair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VPair_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VPair_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_iterator" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VPair___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___nonzero__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (bool)std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____nonzero__((std::vector< std::pair< CString,CString > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VPair___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___bool__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (bool)std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____bool__((std::vector< std::pair< CString,CString > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VPair___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___len__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____len__((std::vector< std::pair< CString,CString > > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::value_type result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_pop" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); try { result = std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = swig::from(static_cast< std::pair >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; std::vector< std::pair< CString,CString > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___getslice__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___getslice__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VPair___getslice__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg3 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val3); try { result = (std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *)std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; std::vector< std::pair< CString,CString > >::difference_type arg3 ; std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VPair___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___setslice__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___setslice__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VPair___setslice__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg3 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val3); { std::vector,std::allocator< std::pair< CString,CString > > > *ptr = (std::vector,std::allocator< std::pair< CString,CString > > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VPair___setslice__" "', argument " "4"" of type '" "std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair___setslice__" "', argument " "4"" of type '" "std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VPair___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; std::vector< std::pair< CString,CString > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___setslice__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___setslice__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VPair___setslice__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg3 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val3); try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VPair___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VPair___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::__setslice__(std::vector< std::pair< CString,CString > >::difference_type,std::vector< std::pair< CString,CString > >::difference_type,std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &)\n" " std::vector< std::pair< CString,CString > >::__setslice__(std::vector< std::pair< CString,CString > >::difference_type,std::vector< std::pair< CString,CString > >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; std::vector< std::pair< CString,CString > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___delslice__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___delslice__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VPair___delslice__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg3 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val3); try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___delitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___delitem__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___getitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *)std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___setitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector,std::allocator< std::pair< CString,CString > > > *ptr = (std::vector,std::allocator< std::pair< CString,CString > > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VPair___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___setitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___delitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VPair___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VPair___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::__delitem__(std::vector< std::pair< CString,CString > >::difference_type)\n" " std::vector< std::pair< CString,CString > >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::pair< CString,CString > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___getitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___getitem__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); try { result = (std::vector< std::pair< CString,CString > >::value_type *) &std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____getitem____SWIG_1((std::vector< std::pair< CString,CString > > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = swig::from(static_cast< std::pair >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VPair___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VPair___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::__getitem__(PySliceObject *)\n" " std::vector< std::pair< CString,CString > >::__getitem__(std::vector< std::pair< CString,CString > >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::difference_type arg2 ; std::vector< std::pair< CString,CString > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair___setitem__" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair___setitem__" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::difference_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::difference_type >(val2); { std::pair *ptr = (std::pair *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair___setitem__" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg3 = ptr; } try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg____setitem____SWIG_2(arg1,arg2,(std::pair< CString,CString > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VPair___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VPair___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VPair___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[2], (std::pair**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VPair___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::__setitem__(PySliceObject *,std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &)\n" " std::vector< std::pair< CString,CString > >::__setitem__(PySliceObject *)\n" " std::vector< std::pair< CString,CString > >::__setitem__(std::vector< std::pair< CString,CString > >::difference_type,std::vector< std::pair< CString,CString > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_append" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); { std::pair *ptr = (std::pair *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VPair_append" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_append" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg2 = ptr; } std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__append(arg1,(std::pair< CString,CString > const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_VPair__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VPair")) SWIG_fail; result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VPair__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VPair",&obj0)) SWIG_fail; { std::vector,std::allocator< std::pair< CString,CString > > > *ptr = (std::vector,std::allocator< std::pair< CString,CString > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VPair" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VPair" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const &""'"); } arg1 = ptr; } result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >((std::vector< std::pair< CString,CString > > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VPair_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_empty" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (bool)((std::vector< std::pair< CString,CString > > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_size" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = ((std::vector< std::pair< CString,CString > > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VPair_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_clear" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_swap" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VPair_swap" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_swap" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > > &""'"); } arg2 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::pair< CString,CString > > > result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_get_allocator" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = ((std::vector< std::pair< CString,CString > > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< std::pair< CString,CString > >::allocator_type(static_cast< const std::vector< std::pair< CString,CString > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__pairT_CString_CString_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_begin" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_end" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_rbegin" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::reverse_iterator result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_rend" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VPair__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VPair",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VPair" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg1 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val1); result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VPair_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_pop_back" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_resize" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair_resize" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::pair< CString,CString > >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OO:VPair_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_erase" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_erase" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_erase" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } } result = std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::iterator arg2 ; std::vector< std::pair< CString,CString > >::iterator arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::pair< CString,CString > >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_erase" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_erase" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_erase" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_erase" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_erase" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } } result = std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { return _wrap_VPair_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { return _wrap_VPair_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::erase(std::vector< std::pair< CString,CString > >::iterator)\n" " std::vector< std::pair< CString,CString > >::erase(std::vector< std::pair< CString,CString > >::iterator,std::vector< std::pair< CString,CString > >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VPair__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > >::size_type arg1 ; std::vector< std::pair< CString,CString > >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::pair< CString,CString > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VPair",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VPair" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg1 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val1); { std::pair *ptr = (std::pair *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VPair" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VPair" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg2 = ptr; } result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >(arg1,(std::vector< std::pair< CString,CString > >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_new_VPair(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VPair__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VPair__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VPair__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[1], (std::pair**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VPair__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VPair'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::vector()\n" " std::vector< std::pair< CString,CString > >::vector(std::vector< std::pair< CString,CString > > const &)\n" " std::vector< std::pair< CString,CString > >::vector(std::vector< std::pair< CString,CString > >::size_type)\n" " std::vector< std::pair< CString,CString > >::vector(std::vector< std::pair< CString,CString > >::size_type,std::vector< std::pair< CString,CString > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_push_back" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); { std::pair *ptr = (std::pair *)0; res2 = swig::asptr(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VPair_push_back" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_push_back" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg2 = ptr; } (arg1)->push_back((std::vector< std::pair< CString,CString > >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; return NULL; } SWIGINTERN PyObject *_wrap_VPair_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VPair_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_front" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (std::vector< std::pair< CString,CString > >::value_type *) &((std::vector< std::pair< CString,CString > > const *)arg1)->front(); resultobj = swig::from(static_cast< std::pair >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VPair_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_back" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = (std::vector< std::pair< CString,CString > >::value_type *) &((std::vector< std::pair< CString,CString > > const *)arg1)->back(); resultobj = swig::from(static_cast< std::pair >(*result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::size_type arg2 ; std::vector< std::pair< CString,CString > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_assign" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair_assign" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val2); { std::pair *ptr = (std::pair *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair_assign" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_assign" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg3 = ptr; } (arg1)->assign(arg2,(std::vector< std::pair< CString,CString > >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VPair_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::size_type arg2 ; std::vector< std::pair< CString,CString > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_resize" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair_resize" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val2); { std::pair *ptr = (std::pair *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair_resize" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_resize" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg3 = ptr; } (arg1)->resize(arg2,(std::vector< std::pair< CString,CString > >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VPair_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VPair_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[2], (std::pair**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VPair_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::resize(std::vector< std::pair< CString,CString > >::size_type)\n" " std::vector< std::pair< CString,CString > >::resize(std::vector< std::pair< CString,CString > >::size_type,std::vector< std::pair< CString,CString > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::iterator arg2 ; std::vector< std::pair< CString,CString > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::pair< CString,CString > >::iterator result; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_insert" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_insert" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_insert" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } } { std::pair *ptr = (std::pair *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair_insert" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_insert" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg3 = ptr; } result = std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__insert__SWIG_0(arg1,arg2,(std::pair< CString,CString > const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::pair< CString,CString > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VPair_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::iterator arg2 ; std::vector< std::pair< CString,CString > >::size_type arg3 ; std::vector< std::pair< CString,CString > >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VPair_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_insert" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_insert" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VPair_insert" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VPair_insert" "', argument " "3"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg3 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val3); { std::pair *ptr = (std::pair *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VPair_insert" "', argument " "4"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_insert" "', argument " "4"" of type '" "std::vector< std::pair< CString,CString > >::value_type const &""'"); } arg4 = ptr; } std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__insert__SWIG_1(arg1,arg2,arg3,(std::pair< CString,CString > const &)*arg4); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VPair_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { int res = swig::asptr(argv[2], (std::pair**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VPair_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::pair< CString,CString > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::pair**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VPair_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VPair_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< std::pair< CString,CString > >::insert(std::vector< std::pair< CString,CString > >::iterator,std::vector< std::pair< CString,CString > >::value_type const &)\n" " std::vector< std::pair< CString,CString > >::insert(std::vector< std::pair< CString,CString > >::iterator,std::vector< std::pair< CString,CString > >::size_type,std::vector< std::pair< CString,CString > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VPair_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VPair_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_reserve" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair_reserve" "', argument " "2"" of type '" "std::vector< std::pair< CString,CString > >::size_type""'"); } arg2 = static_cast< std::vector< std::pair< CString,CString > >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VPair_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::pair< CString,CString > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VPair_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_capacity" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > const *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); result = ((std::vector< std::pair< CString,CString > > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VPair(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VPair",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VPair" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VPair_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VWebSubPages_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; PyObject **arg2 = (PyObject **) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; swig::SwigPyIterator *result = 0 ; arg2 = &obj0; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_iterator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_iterator" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (swig::SwigPyIterator *)std_vector_Sl_TWebSubPage_Sg__iterator(arg1,arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages___nonzero__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___nonzero__" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (bool)std_vector_Sl_TWebSubPage_Sg____nonzero__((std::vector< std::shared_ptr< CWebSubPage > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages___bool__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___bool__" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (bool)std_vector_Sl_TWebSubPage_Sg____bool__((std::vector< std::shared_ptr< CWebSubPage > > const *)arg1); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages___len__",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___len__" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = std_vector_Sl_TWebSubPage_Sg____len__((std::vector< std::shared_ptr< CWebSubPage > > const *)arg1); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::shared_ptr< CWebSubPage > > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_pop",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_pop" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); try { result = std_vector_Sl_TWebSubPage_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< CWebSubPage > >::value_type(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::value_type& >(result))), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages___getslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___getslice__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VWebSubPages___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val3); try { result = (std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *)std_vector_Sl_TWebSubPage_Sg____getslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___setslice____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg3 ; std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VWebSubPages___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___setslice__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VWebSubPages___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val3); { std::vector,std::allocator< std::shared_ptr< CWebSubPage > > > *ptr = (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > > *)0; res4 = swig::asptr(obj3, &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VWebSubPages___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &""'"); } arg4 = ptr; } try { std_vector_Sl_TWebSubPage_Sg____setslice____SWIG_0(arg1,arg2,arg3,(std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &)*arg4); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res4)) delete arg4; return resultobj; fail: if (SWIG_IsNewObj(res4)) delete arg4; return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___setslice____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages___setslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___setslice__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VWebSubPages___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val3); try { std_vector_Sl_TWebSubPage_Sg____setslice____SWIG_0(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___setslice__(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VWebSubPages___setslice____SWIG_1(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = swig::asptr(argv[3], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VWebSubPages___setslice____SWIG_0(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages___setslice__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::__setslice__(std::vector< std::shared_ptr< CWebSubPage > >::difference_type,std::vector< std::shared_ptr< CWebSubPage > >::difference_type,std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &)\n" " std::vector< TWebSubPage >::__setslice__(std::vector< std::shared_ptr< CWebSubPage > >::difference_type,std::vector< std::shared_ptr< CWebSubPage > >::difference_type)\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg3 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; ptrdiff_t val3 ; int ecode3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages___delslice__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___delslice__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VWebSubPages___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg3 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val3); try { std_vector_Sl_TWebSubPage_Sg____delslice__(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___delitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); try { std_vector_Sl_TWebSubPage_Sg____delitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___getitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages___getitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { result = (std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *)std_vector_Sl_TWebSubPage_Sg____getitem____SWIG_0(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___setitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } { std::vector,std::allocator< std::shared_ptr< CWebSubPage > > > *ptr = (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &""'"); } arg3 = ptr; } try { std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages___setitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___setitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages___setitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; PySliceObject *arg2 = (PySliceObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages___delitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___delitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); { if (!PySlice_Check(obj1)) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages___delitem__" "', argument " "2"" of type '" "PySliceObject *""'"); } arg2 = (PySliceObject *) obj1; } try { std_vector_Sl_TWebSubPage_Sg____delitem____SWIG_1(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } catch(std::invalid_argument &_e) { SWIG_exception_fail(SWIG_ValueError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___delitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VWebSubPages___delitem____SWIG_1(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VWebSubPages___delitem____SWIG_0(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages___delitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::__delitem__(std::vector< std::shared_ptr< CWebSubPage > >::difference_type)\n" " std::vector< TWebSubPage >::__delitem__(PySliceObject *)\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages___getitem__",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___getitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); try { result = (std::vector< std::shared_ptr< CWebSubPage > >::value_type *) &std_vector_Sl_TWebSubPage_Sg____getitem____SWIG_1((std::vector< std::shared_ptr< CWebSubPage > > const *)arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___getitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VWebSubPages___getitem____SWIG_0(self, args); } } } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VWebSubPages___getitem____SWIG_1(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages___getitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::__getitem__(PySliceObject *)\n" " std::vector< TWebSubPage >::__getitem__(std::vector< std::shared_ptr< CWebSubPage > >::difference_type) const\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::difference_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; ptrdiff_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages___setitem__",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages___setitem__" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::difference_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::difference_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp3); try { std_vector_Sl_TWebSubPage_Sg____setitem____SWIG_2(arg1,arg2,(std::shared_ptr< CWebSubPage > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages___setitem__(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { return _wrap_VWebSubPages___setitem____SWIG_1(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { _v = PySlice_Check(argv[1]); } if (_v) { int res = swig::asptr(argv[2], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_VWebSubPages___setitem____SWIG_0(self, args); } } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VWebSubPages___setitem____SWIG_2(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages___setitem__'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::__setitem__(PySliceObject *,std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > const &)\n" " std::vector< TWebSubPage >::__setitem__(PySliceObject *)\n" " std::vector< TWebSubPage >::__setitem__(std::vector< std::shared_ptr< CWebSubPage > >::difference_type,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_append",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_append" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VWebSubPages_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg2 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp2); std_vector_Sl_TWebSubPage_Sg__append(arg1,(std::shared_ptr< CWebSubPage > const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VWebSubPages__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)":new_VWebSubPages")) SWIG_fail; result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VWebSubPages__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; std::vector< TWebSubPage > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VWebSubPages",&obj0)) SWIG_fail; { std::vector,std::allocator< std::shared_ptr< CWebSubPage > > > *ptr = (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > > *)0; res1 = swig::asptr(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VWebSubPages" "', argument " "1"" of type '" "std::vector< TWebSubPage > const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VWebSubPages" "', argument " "1"" of type '" "std::vector< TWebSubPage > const &""'"); } arg1 = ptr; } result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >((std::vector< TWebSubPage > const &)*arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_NEW | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; bool result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_empty",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_empty" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (bool)((std::vector< TWebSubPage > const *)arg1)->empty(); resultobj = SWIG_From_bool(static_cast< bool >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_size",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_size" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = ((std::vector< TWebSubPage > const *)arg1)->size(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_clear",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_clear" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); (arg1)->clear(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< TWebSubPage > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_swap",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_swap" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VWebSubPages_swap" "', argument " "2"" of type '" "std::vector< TWebSubPage > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_swap" "', argument " "2"" of type '" "std::vector< TWebSubPage > &""'"); } arg2 = reinterpret_cast< std::vector< TWebSubPage > * >(argp2); (arg1)->swap(*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::allocator< std::shared_ptr< CWebSubPage > > > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_get_allocator",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_get_allocator" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = ((std::vector< TWebSubPage > const *)arg1)->get_allocator(); resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< CWebSubPage > >::allocator_type(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::allocator_type& >(result))), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t, SWIG_POINTER_OWN | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_begin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_begin" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (arg1)->begin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_end",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_end" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (arg1)->end(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_rbegin",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_rbegin" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (arg1)->rbegin(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::reverse_iterator > result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_rend",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_rend" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (arg1)->rend(); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::reverse_iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VWebSubPages__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; PyObject * obj0 = 0 ; std::vector< TWebSubPage > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:new_VWebSubPages",&obj0)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VWebSubPages" "', argument " "1"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg1 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val1); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_pop_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_pop_back" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); (arg1)->pop_back(); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_resize",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_resize" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val2); (arg1)->resize(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > arg2 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_erase",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_erase" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } } result = std_vector_Sl_TWebSubPage_Sg__erase__SWIG_0(arg1,arg2); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > arg2 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > arg3 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; swig::SwigPyIterator *iter3 = 0 ; int res3 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages_erase",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_erase" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res3) || !iter3) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter3); if (iter_t) { arg3 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } } result = std_vector_Sl_TWebSubPage_Sg__erase__SWIG_1(arg1,arg2,arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_erase(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { return _wrap_VWebSubPages_erase__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { return _wrap_VWebSubPages_erase__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages_erase'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::erase(std::vector< std::shared_ptr< CWebSubPage > >::iterator)\n" " std::vector< TWebSubPage >::erase(std::vector< std::shared_ptr< CWebSubPage > >::iterator,std::vector< std::shared_ptr< CWebSubPage > >::iterator)\n"); return 0; } SWIGINTERN PyObject *_wrap_new_VWebSubPages__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg1 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg2 = 0 ; size_t val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; std::vector< TWebSubPage > *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:new_VWebSubPages",&obj0,&obj1)) SWIG_fail; ecode1 = SWIG_AsVal_size_t(obj0, &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VWebSubPages" "', argument " "1"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg1 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg2 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp2); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1,(std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)*arg2); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_NEW | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_new_VWebSubPages(PyObject *self, PyObject *args) { int argc; PyObject *argv[3]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 2) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 0) { return _wrap_new_VWebSubPages__SWIG_0(self, args); } if (argc == 1) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_new_VWebSubPages__SWIG_2(self, args); } } if (argc == 1) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VWebSubPages__SWIG_1(self, args); } } if (argc == 2) { int _v; { int res = SWIG_AsVal_size_t(argv[0], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_new_VWebSubPages__SWIG_3(self, args); } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_VWebSubPages'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::vector()\n" " std::vector< TWebSubPage >::vector(std::vector< TWebSubPage > const &)\n" " std::vector< TWebSubPage >::vector(std::vector< std::shared_ptr< CWebSubPage > >::size_type)\n" " std::vector< TWebSubPage >::vector(std::vector< std::shared_ptr< CWebSubPage > >::size_type,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_push_back",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_push_back" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VWebSubPages_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg2 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp2); (arg1)->push_back((std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)*arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_front",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_front" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (std::vector< std::shared_ptr< CWebSubPage > >::value_type *) &((std::vector< TWebSubPage > const *)arg1)->front(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *result = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_back",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_back" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = (std::vector< std::shared_ptr< CWebSubPage > >::value_type *) &((std::vector< TWebSubPage > const *)arg1)->back(); resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0 ); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages_assign",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_assign" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp3); (arg1)->assign(arg2,(std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages_resize",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_resize" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val2); res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp3); (arg1)->resize(arg2,(std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)*arg3); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_resize(PyObject *self, PyObject *args) { int argc; PyObject *argv[4]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 3) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 2) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { return _wrap_VWebSubPages_resize__SWIG_0(self, args); } } } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { { int res = SWIG_AsVal_size_t(argv[1], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VWebSubPages_resize__SWIG_1(self, args); } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages_resize'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::resize(std::vector< std::shared_ptr< CWebSubPage > >::size_type)\n" " std::vector< TWebSubPage >::resize(std::vector< std::shared_ptr< CWebSubPage > >::size_type,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; void *argp3 = 0 ; int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > result; if (!PyArg_ParseTuple(args,(char *)"OOO:VWebSubPages_insert",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_insert" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } } res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg3 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp3); result = std_vector_Sl_TWebSubPage_Sg__insert__SWIG_0(arg1,arg2,(std::shared_ptr< CWebSubPage > const &)*arg3); resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< CWebSubPage > >::iterator & >(result)), swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; SwigValueWrapper< std::vector< std::shared_ptr< CWebSubPage > >::iterator > arg2 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg3 ; std::vector< std::shared_ptr< CWebSubPage > >::value_type *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; swig::SwigPyIterator *iter2 = 0 ; int res2 ; size_t val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOOO:VWebSubPages_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_insert" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0); if (!SWIG_IsOK(res2) || !iter2) { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } else { swig::SwigPyIterator_T >::iterator > *iter_t = dynamic_cast >::iterator > *>(iter2); if (iter_t) { arg2 = iter_t->get_current(); } else { SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VWebSubPages_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::iterator""'"); } } ecode3 = SWIG_AsVal_size_t(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VWebSubPages_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg3 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val3); res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VWebSubPages_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::value_type const &""'"); } arg4 = reinterpret_cast< std::vector< std::shared_ptr< CWebSubPage > >::value_type * >(argp4); std_vector_Sl_TWebSubPage_Sg__insert__SWIG_1(arg1,arg2,arg3,(std::shared_ptr< CWebSubPage > const &)*arg4); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_insert(PyObject *self, PyObject *args) { int argc; PyObject *argv[5]; int ii; if (!PyTuple_Check(args)) SWIG_fail; argc = args ? (int)PyObject_Length(args) : 0; for (ii = 0; (ii < 4) && (ii < argc); ii++) { argv[ii] = PyTuple_GET_ITEM(args,ii); } if (argc == 3) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VWebSubPages_insert__SWIG_0(self, args); } } } } if (argc == 4) { int _v; int res = swig::asptr(argv[0], (std::vector,std::allocator< std::shared_ptr< CWebSubPage > > >**)(0)); _v = SWIG_CheckState(res); if (_v) { swig::SwigPyIterator *iter = 0; int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0); _v = (SWIG_IsOK(res) && iter && (dynamic_cast >::iterator > *>(iter) != 0)); if (_v) { { int res = SWIG_AsVal_size_t(argv[2], NULL); _v = SWIG_CheckState(res); } if (_v) { int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0); _v = SWIG_CheckState(res); if (_v) { return _wrap_VWebSubPages_insert__SWIG_1(self, args); } } } } } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'VWebSubPages_insert'.\n" " Possible C/C++ prototypes are:\n" " std::vector< TWebSubPage >::insert(std::vector< std::shared_ptr< CWebSubPage > >::iterator,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)\n" " std::vector< TWebSubPage >::insert(std::vector< std::shared_ptr< CWebSubPage > >::iterator,std::vector< std::shared_ptr< CWebSubPage > >::size_type,std::vector< std::shared_ptr< CWebSubPage > >::value_type const &)\n"); return 0; } SWIGINTERN PyObject *_wrap_VWebSubPages_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OO:VWebSubPages_reserve",&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_reserve" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_size_t(obj1, &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< CWebSubPage > >::size_type""'"); } arg2 = static_cast< std::vector< std::shared_ptr< CWebSubPage > >::size_type >(val2); (arg1)->reserve(arg2); resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_VWebSubPages_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; std::vector< std::shared_ptr< CWebSubPage > >::size_type result; if (!PyArg_ParseTuple(args,(char *)"O:VWebSubPages_capacity",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_capacity" "', argument " "1"" of type '" "std::vector< TWebSubPage > const *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); result = ((std::vector< TWebSubPage > const *)arg1)->capacity(); resultobj = SWIG_From_size_t(static_cast< size_t >(result)); return resultobj; fail: return NULL; } SWIGINTERN PyObject *_wrap_delete_VWebSubPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; PyObject * obj0 = 0 ; if (!PyArg_ParseTuple(args,(char *)"O:delete_VWebSubPages",&obj0)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VWebSubPages" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); delete arg1; resultobj = SWIG_Py_Void(); return resultobj; fail: return NULL; } SWIGINTERN PyObject *VWebSubPages_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *obj; if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL; SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, SWIG_NewClientData(obj)); return SWIG_Py_Void(); } SWIGINTERN PyObject *_wrap_VPair_Add2Str_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; VPair *arg1 = (VPair *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; if (!PyArg_ParseTuple(args,(char *)"OOO:VPair_Add2Str_",&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_Add2Str_" "', argument " "1"" of type '" "VPair *""'"); } arg1 = reinterpret_cast< VPair * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VPair_Add2Str_" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_Add2Str_" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair_Add2Str_" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_Add2Str_" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } VPair_Add2Str_(arg1,(CString const &)*arg2,(CString const &)*arg3); resultobj = SWIG_Py_Void(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } SWIGINTERN PyObject *_wrap_CreateWebSubPage_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; CString *arg1 = 0 ; CString *arg2 = 0 ; VPair *arg3 = 0 ; unsigned int arg4 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; PyObject * obj3 = 0 ; SwigValueWrapper< std::shared_ptr< CWebSubPage > > result; if (!PyArg_ParseTuple(args,(char *)"OOOO:CreateWebSubPage_",&obj0,&obj1,&obj2,&obj3)) SWIG_fail; { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString(obj0, &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreateWebSubPage_" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreateWebSubPage_" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString(obj1, &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CreateWebSubPage_" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreateWebSubPage_" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { std::vector,std::allocator< std::pair< CString,CString > > > *ptr = (std::vector,std::allocator< std::pair< CString,CString > > > *)0; res3 = swig::asptr(obj2, &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CreateWebSubPage_" "', argument " "3"" of type '" "VPair const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreateWebSubPage_" "', argument " "3"" of type '" "VPair const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CreateWebSubPage_" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = CreateWebSubPage_((CString const &)*arg1,(CString const &)*arg2,(std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > const &)*arg3,arg4); resultobj = SWIG_NewPointerObj((new TWebSubPage(static_cast< const TWebSubPage& >(result))), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, SWIG_POINTER_OWN | 0 ); if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return resultobj; fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; return NULL; } static PyMethodDef SwigMethods[] = { { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL}, { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL}, { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL}, { (char *)"SHARED_PTR_DISOWN_swigconstant", SHARED_PTR_DISOWN_swigconstant, METH_VARARGS, NULL}, { (char *)"_stringlist_iterator", _wrap__stringlist_iterator, METH_VARARGS, NULL}, { (char *)"_stringlist___nonzero__", _wrap__stringlist___nonzero__, METH_VARARGS, NULL}, { (char *)"_stringlist___bool__", _wrap__stringlist___bool__, METH_VARARGS, NULL}, { (char *)"_stringlist___len__", _wrap__stringlist___len__, METH_VARARGS, NULL}, { (char *)"_stringlist_pop", _wrap__stringlist_pop, METH_VARARGS, NULL}, { (char *)"_stringlist___getslice__", _wrap__stringlist___getslice__, METH_VARARGS, NULL}, { (char *)"_stringlist___setslice__", _wrap__stringlist___setslice__, METH_VARARGS, NULL}, { (char *)"_stringlist___delslice__", _wrap__stringlist___delslice__, METH_VARARGS, NULL}, { (char *)"_stringlist___delitem__", _wrap__stringlist___delitem__, METH_VARARGS, NULL}, { (char *)"_stringlist___getitem__", _wrap__stringlist___getitem__, METH_VARARGS, NULL}, { (char *)"_stringlist___setitem__", _wrap__stringlist___setitem__, METH_VARARGS, NULL}, { (char *)"_stringlist_append", _wrap__stringlist_append, METH_VARARGS, NULL}, { (char *)"_stringlist_empty", _wrap__stringlist_empty, METH_VARARGS, NULL}, { (char *)"_stringlist_size", _wrap__stringlist_size, METH_VARARGS, NULL}, { (char *)"_stringlist_clear", _wrap__stringlist_clear, METH_VARARGS, NULL}, { (char *)"_stringlist_swap", _wrap__stringlist_swap, METH_VARARGS, NULL}, { (char *)"_stringlist_get_allocator", _wrap__stringlist_get_allocator, METH_VARARGS, NULL}, { (char *)"_stringlist_begin", _wrap__stringlist_begin, METH_VARARGS, NULL}, { (char *)"_stringlist_end", _wrap__stringlist_end, METH_VARARGS, NULL}, { (char *)"_stringlist_rbegin", _wrap__stringlist_rbegin, METH_VARARGS, NULL}, { (char *)"_stringlist_rend", _wrap__stringlist_rend, METH_VARARGS, NULL}, { (char *)"_stringlist_pop_back", _wrap__stringlist_pop_back, METH_VARARGS, NULL}, { (char *)"_stringlist_erase", _wrap__stringlist_erase, METH_VARARGS, NULL}, { (char *)"new__stringlist", _wrap_new__stringlist, METH_VARARGS, NULL}, { (char *)"_stringlist_push_back", _wrap__stringlist_push_back, METH_VARARGS, NULL}, { (char *)"_stringlist_front", _wrap__stringlist_front, METH_VARARGS, NULL}, { (char *)"_stringlist_back", _wrap__stringlist_back, METH_VARARGS, NULL}, { (char *)"_stringlist_assign", _wrap__stringlist_assign, METH_VARARGS, NULL}, { (char *)"_stringlist_resize", _wrap__stringlist_resize, METH_VARARGS, NULL}, { (char *)"_stringlist_insert", _wrap__stringlist_insert, METH_VARARGS, NULL}, { (char *)"_stringlist_pop_front", _wrap__stringlist_pop_front, METH_VARARGS, NULL}, { (char *)"_stringlist_push_front", _wrap__stringlist_push_front, METH_VARARGS, NULL}, { (char *)"_stringlist_reverse", _wrap__stringlist_reverse, METH_VARARGS, NULL}, { (char *)"delete__stringlist", _wrap_delete__stringlist, METH_VARARGS, NULL}, { (char *)"_stringlist_swigregister", _stringlist_swigregister, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_iterator", _wrap_VIRCNetworks_iterator, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___nonzero__", _wrap_VIRCNetworks___nonzero__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___bool__", _wrap_VIRCNetworks___bool__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___len__", _wrap_VIRCNetworks___len__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_pop", _wrap_VIRCNetworks_pop, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___getslice__", _wrap_VIRCNetworks___getslice__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___setslice__", _wrap_VIRCNetworks___setslice__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___delslice__", _wrap_VIRCNetworks___delslice__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___delitem__", _wrap_VIRCNetworks___delitem__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___getitem__", _wrap_VIRCNetworks___getitem__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks___setitem__", _wrap_VIRCNetworks___setitem__, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_append", _wrap_VIRCNetworks_append, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_empty", _wrap_VIRCNetworks_empty, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_size", _wrap_VIRCNetworks_size, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_clear", _wrap_VIRCNetworks_clear, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_swap", _wrap_VIRCNetworks_swap, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_get_allocator", _wrap_VIRCNetworks_get_allocator, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_begin", _wrap_VIRCNetworks_begin, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_end", _wrap_VIRCNetworks_end, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_rbegin", _wrap_VIRCNetworks_rbegin, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_rend", _wrap_VIRCNetworks_rend, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_pop_back", _wrap_VIRCNetworks_pop_back, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_erase", _wrap_VIRCNetworks_erase, METH_VARARGS, NULL}, { (char *)"new_VIRCNetworks", _wrap_new_VIRCNetworks, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_push_back", _wrap_VIRCNetworks_push_back, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_front", _wrap_VIRCNetworks_front, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_back", _wrap_VIRCNetworks_back, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_assign", _wrap_VIRCNetworks_assign, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_resize", _wrap_VIRCNetworks_resize, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_insert", _wrap_VIRCNetworks_insert, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_reserve", _wrap_VIRCNetworks_reserve, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_capacity", _wrap_VIRCNetworks_capacity, METH_VARARGS, NULL}, { (char *)"delete_VIRCNetworks", _wrap_delete_VIRCNetworks, METH_VARARGS, NULL}, { (char *)"VIRCNetworks_swigregister", VIRCNetworks_swigregister, METH_VARARGS, NULL}, { (char *)"VChannels_iterator", _wrap_VChannels_iterator, METH_VARARGS, NULL}, { (char *)"VChannels___nonzero__", _wrap_VChannels___nonzero__, METH_VARARGS, NULL}, { (char *)"VChannels___bool__", _wrap_VChannels___bool__, METH_VARARGS, NULL}, { (char *)"VChannels___len__", _wrap_VChannels___len__, METH_VARARGS, NULL}, { (char *)"VChannels_pop", _wrap_VChannels_pop, METH_VARARGS, NULL}, { (char *)"VChannels___getslice__", _wrap_VChannels___getslice__, METH_VARARGS, NULL}, { (char *)"VChannels___setslice__", _wrap_VChannels___setslice__, METH_VARARGS, NULL}, { (char *)"VChannels___delslice__", _wrap_VChannels___delslice__, METH_VARARGS, NULL}, { (char *)"VChannels___delitem__", _wrap_VChannels___delitem__, METH_VARARGS, NULL}, { (char *)"VChannels___getitem__", _wrap_VChannels___getitem__, METH_VARARGS, NULL}, { (char *)"VChannels___setitem__", _wrap_VChannels___setitem__, METH_VARARGS, NULL}, { (char *)"VChannels_append", _wrap_VChannels_append, METH_VARARGS, NULL}, { (char *)"VChannels_empty", _wrap_VChannels_empty, METH_VARARGS, NULL}, { (char *)"VChannels_size", _wrap_VChannels_size, METH_VARARGS, NULL}, { (char *)"VChannels_clear", _wrap_VChannels_clear, METH_VARARGS, NULL}, { (char *)"VChannels_swap", _wrap_VChannels_swap, METH_VARARGS, NULL}, { (char *)"VChannels_get_allocator", _wrap_VChannels_get_allocator, METH_VARARGS, NULL}, { (char *)"VChannels_begin", _wrap_VChannels_begin, METH_VARARGS, NULL}, { (char *)"VChannels_end", _wrap_VChannels_end, METH_VARARGS, NULL}, { (char *)"VChannels_rbegin", _wrap_VChannels_rbegin, METH_VARARGS, NULL}, { (char *)"VChannels_rend", _wrap_VChannels_rend, METH_VARARGS, NULL}, { (char *)"VChannels_pop_back", _wrap_VChannels_pop_back, METH_VARARGS, NULL}, { (char *)"VChannels_erase", _wrap_VChannels_erase, METH_VARARGS, NULL}, { (char *)"new_VChannels", _wrap_new_VChannels, METH_VARARGS, NULL}, { (char *)"VChannels_push_back", _wrap_VChannels_push_back, METH_VARARGS, NULL}, { (char *)"VChannels_front", _wrap_VChannels_front, METH_VARARGS, NULL}, { (char *)"VChannels_back", _wrap_VChannels_back, METH_VARARGS, NULL}, { (char *)"VChannels_assign", _wrap_VChannels_assign, METH_VARARGS, NULL}, { (char *)"VChannels_resize", _wrap_VChannels_resize, METH_VARARGS, NULL}, { (char *)"VChannels_insert", _wrap_VChannels_insert, METH_VARARGS, NULL}, { (char *)"VChannels_reserve", _wrap_VChannels_reserve, METH_VARARGS, NULL}, { (char *)"VChannels_capacity", _wrap_VChannels_capacity, METH_VARARGS, NULL}, { (char *)"delete_VChannels", _wrap_delete_VChannels, METH_VARARGS, NULL}, { (char *)"VChannels_swigregister", VChannels_swigregister, METH_VARARGS, NULL}, { (char *)"MNicks_iterator", _wrap_MNicks_iterator, METH_VARARGS, NULL}, { (char *)"MNicks___nonzero__", _wrap_MNicks___nonzero__, METH_VARARGS, NULL}, { (char *)"MNicks___bool__", _wrap_MNicks___bool__, METH_VARARGS, NULL}, { (char *)"MNicks___len__", _wrap_MNicks___len__, METH_VARARGS, NULL}, { (char *)"MNicks___getitem__", _wrap_MNicks___getitem__, METH_VARARGS, NULL}, { (char *)"MNicks___delitem__", _wrap_MNicks___delitem__, METH_VARARGS, NULL}, { (char *)"MNicks_has_key", _wrap_MNicks_has_key, METH_VARARGS, NULL}, { (char *)"MNicks_keys", _wrap_MNicks_keys, METH_VARARGS, NULL}, { (char *)"MNicks_values", _wrap_MNicks_values, METH_VARARGS, NULL}, { (char *)"MNicks_items", _wrap_MNicks_items, METH_VARARGS, NULL}, { (char *)"MNicks___contains__", _wrap_MNicks___contains__, METH_VARARGS, NULL}, { (char *)"MNicks_key_iterator", _wrap_MNicks_key_iterator, METH_VARARGS, NULL}, { (char *)"MNicks_value_iterator", _wrap_MNicks_value_iterator, METH_VARARGS, NULL}, { (char *)"MNicks___setitem__", _wrap_MNicks___setitem__, METH_VARARGS, NULL}, { (char *)"MNicks_asdict", _wrap_MNicks_asdict, METH_VARARGS, NULL}, { (char *)"new_MNicks", _wrap_new_MNicks, METH_VARARGS, NULL}, { (char *)"MNicks_empty", _wrap_MNicks_empty, METH_VARARGS, NULL}, { (char *)"MNicks_size", _wrap_MNicks_size, METH_VARARGS, NULL}, { (char *)"MNicks_clear", _wrap_MNicks_clear, METH_VARARGS, NULL}, { (char *)"MNicks_swap", _wrap_MNicks_swap, METH_VARARGS, NULL}, { (char *)"MNicks_get_allocator", _wrap_MNicks_get_allocator, METH_VARARGS, NULL}, { (char *)"MNicks_begin", _wrap_MNicks_begin, METH_VARARGS, NULL}, { (char *)"MNicks_end", _wrap_MNicks_end, METH_VARARGS, NULL}, { (char *)"MNicks_rbegin", _wrap_MNicks_rbegin, METH_VARARGS, NULL}, { (char *)"MNicks_rend", _wrap_MNicks_rend, METH_VARARGS, NULL}, { (char *)"MNicks_count", _wrap_MNicks_count, METH_VARARGS, NULL}, { (char *)"MNicks_erase", _wrap_MNicks_erase, METH_VARARGS, NULL}, { (char *)"MNicks_find", _wrap_MNicks_find, METH_VARARGS, NULL}, { (char *)"MNicks_lower_bound", _wrap_MNicks_lower_bound, METH_VARARGS, NULL}, { (char *)"MNicks_upper_bound", _wrap_MNicks_upper_bound, METH_VARARGS, NULL}, { (char *)"delete_MNicks", _wrap_delete_MNicks, METH_VARARGS, NULL}, { (char *)"MNicks_swigregister", MNicks_swigregister, METH_VARARGS, NULL}, { (char *)"SModInfo_iterator", _wrap_SModInfo_iterator, METH_VARARGS, NULL}, { (char *)"SModInfo___nonzero__", _wrap_SModInfo___nonzero__, METH_VARARGS, NULL}, { (char *)"SModInfo___bool__", _wrap_SModInfo___bool__, METH_VARARGS, NULL}, { (char *)"SModInfo___len__", _wrap_SModInfo___len__, METH_VARARGS, NULL}, { (char *)"SModInfo_append", _wrap_SModInfo_append, METH_VARARGS, NULL}, { (char *)"SModInfo___contains__", _wrap_SModInfo___contains__, METH_VARARGS, NULL}, { (char *)"SModInfo___getitem__", _wrap_SModInfo___getitem__, METH_VARARGS, NULL}, { (char *)"SModInfo_add", _wrap_SModInfo_add, METH_VARARGS, NULL}, { (char *)"SModInfo_discard", _wrap_SModInfo_discard, METH_VARARGS, NULL}, { (char *)"new_SModInfo", _wrap_new_SModInfo, METH_VARARGS, NULL}, { (char *)"SModInfo_empty", _wrap_SModInfo_empty, METH_VARARGS, NULL}, { (char *)"SModInfo_size", _wrap_SModInfo_size, METH_VARARGS, NULL}, { (char *)"SModInfo_clear", _wrap_SModInfo_clear, METH_VARARGS, NULL}, { (char *)"SModInfo_swap", _wrap_SModInfo_swap, METH_VARARGS, NULL}, { (char *)"SModInfo_count", _wrap_SModInfo_count, METH_VARARGS, NULL}, { (char *)"SModInfo_begin", _wrap_SModInfo_begin, METH_VARARGS, NULL}, { (char *)"SModInfo_end", _wrap_SModInfo_end, METH_VARARGS, NULL}, { (char *)"SModInfo_rbegin", _wrap_SModInfo_rbegin, METH_VARARGS, NULL}, { (char *)"SModInfo_rend", _wrap_SModInfo_rend, METH_VARARGS, NULL}, { (char *)"SModInfo_erase", _wrap_SModInfo_erase, METH_VARARGS, NULL}, { (char *)"SModInfo_find", _wrap_SModInfo_find, METH_VARARGS, NULL}, { (char *)"SModInfo_lower_bound", _wrap_SModInfo_lower_bound, METH_VARARGS, NULL}, { (char *)"SModInfo_upper_bound", _wrap_SModInfo_upper_bound, METH_VARARGS, NULL}, { (char *)"SModInfo_equal_range", _wrap_SModInfo_equal_range, METH_VARARGS, NULL}, { (char *)"SModInfo_insert", _wrap_SModInfo_insert, METH_VARARGS, NULL}, { (char *)"delete_SModInfo", _wrap_delete_SModInfo, METH_VARARGS, NULL}, { (char *)"SModInfo_swigregister", SModInfo_swigregister, METH_VARARGS, NULL}, { (char *)"SCString_iterator", _wrap_SCString_iterator, METH_VARARGS, NULL}, { (char *)"SCString___nonzero__", _wrap_SCString___nonzero__, METH_VARARGS, NULL}, { (char *)"SCString___bool__", _wrap_SCString___bool__, METH_VARARGS, NULL}, { (char *)"SCString___len__", _wrap_SCString___len__, METH_VARARGS, NULL}, { (char *)"SCString_append", _wrap_SCString_append, METH_VARARGS, NULL}, { (char *)"SCString___contains__", _wrap_SCString___contains__, METH_VARARGS, NULL}, { (char *)"SCString___getitem__", _wrap_SCString___getitem__, METH_VARARGS, NULL}, { (char *)"SCString_add", _wrap_SCString_add, METH_VARARGS, NULL}, { (char *)"SCString_discard", _wrap_SCString_discard, METH_VARARGS, NULL}, { (char *)"new_SCString", _wrap_new_SCString, METH_VARARGS, NULL}, { (char *)"SCString_empty", _wrap_SCString_empty, METH_VARARGS, NULL}, { (char *)"SCString_size", _wrap_SCString_size, METH_VARARGS, NULL}, { (char *)"SCString_clear", _wrap_SCString_clear, METH_VARARGS, NULL}, { (char *)"SCString_swap", _wrap_SCString_swap, METH_VARARGS, NULL}, { (char *)"SCString_count", _wrap_SCString_count, METH_VARARGS, NULL}, { (char *)"SCString_begin", _wrap_SCString_begin, METH_VARARGS, NULL}, { (char *)"SCString_end", _wrap_SCString_end, METH_VARARGS, NULL}, { (char *)"SCString_rbegin", _wrap_SCString_rbegin, METH_VARARGS, NULL}, { (char *)"SCString_rend", _wrap_SCString_rend, METH_VARARGS, NULL}, { (char *)"SCString_erase", _wrap_SCString_erase, METH_VARARGS, NULL}, { (char *)"SCString_find", _wrap_SCString_find, METH_VARARGS, NULL}, { (char *)"SCString_lower_bound", _wrap_SCString_lower_bound, METH_VARARGS, NULL}, { (char *)"SCString_upper_bound", _wrap_SCString_upper_bound, METH_VARARGS, NULL}, { (char *)"SCString_equal_range", _wrap_SCString_equal_range, METH_VARARGS, NULL}, { (char *)"SCString_insert", _wrap_SCString_insert, METH_VARARGS, NULL}, { (char *)"delete_SCString", _wrap_delete_SCString, METH_VARARGS, NULL}, { (char *)"SCString_swigregister", SCString_swigregister, METH_VARARGS, NULL}, { (char *)"VCString_iterator", _wrap_VCString_iterator, METH_VARARGS, NULL}, { (char *)"VCString___nonzero__", _wrap_VCString___nonzero__, METH_VARARGS, NULL}, { (char *)"VCString___bool__", _wrap_VCString___bool__, METH_VARARGS, NULL}, { (char *)"VCString___len__", _wrap_VCString___len__, METH_VARARGS, NULL}, { (char *)"VCString_pop", _wrap_VCString_pop, METH_VARARGS, NULL}, { (char *)"VCString___getslice__", _wrap_VCString___getslice__, METH_VARARGS, NULL}, { (char *)"VCString___setslice__", _wrap_VCString___setslice__, METH_VARARGS, NULL}, { (char *)"VCString___delslice__", _wrap_VCString___delslice__, METH_VARARGS, NULL}, { (char *)"VCString___delitem__", _wrap_VCString___delitem__, METH_VARARGS, NULL}, { (char *)"VCString___getitem__", _wrap_VCString___getitem__, METH_VARARGS, NULL}, { (char *)"VCString___setitem__", _wrap_VCString___setitem__, METH_VARARGS, NULL}, { (char *)"VCString_append", _wrap_VCString_append, METH_VARARGS, NULL}, { (char *)"VCString_empty", _wrap_VCString_empty, METH_VARARGS, NULL}, { (char *)"VCString_size", _wrap_VCString_size, METH_VARARGS, NULL}, { (char *)"VCString_clear", _wrap_VCString_clear, METH_VARARGS, NULL}, { (char *)"VCString_swap", _wrap_VCString_swap, METH_VARARGS, NULL}, { (char *)"VCString_get_allocator", _wrap_VCString_get_allocator, METH_VARARGS, NULL}, { (char *)"VCString_begin", _wrap_VCString_begin, METH_VARARGS, NULL}, { (char *)"VCString_end", _wrap_VCString_end, METH_VARARGS, NULL}, { (char *)"VCString_rbegin", _wrap_VCString_rbegin, METH_VARARGS, NULL}, { (char *)"VCString_rend", _wrap_VCString_rend, METH_VARARGS, NULL}, { (char *)"VCString_pop_back", _wrap_VCString_pop_back, METH_VARARGS, NULL}, { (char *)"VCString_erase", _wrap_VCString_erase, METH_VARARGS, NULL}, { (char *)"new_VCString", _wrap_new_VCString, METH_VARARGS, NULL}, { (char *)"VCString_push_back", _wrap_VCString_push_back, METH_VARARGS, NULL}, { (char *)"VCString_front", _wrap_VCString_front, METH_VARARGS, NULL}, { (char *)"VCString_back", _wrap_VCString_back, METH_VARARGS, NULL}, { (char *)"VCString_assign", _wrap_VCString_assign, METH_VARARGS, NULL}, { (char *)"VCString_resize", _wrap_VCString_resize, METH_VARARGS, NULL}, { (char *)"VCString_insert", _wrap_VCString_insert, METH_VARARGS, NULL}, { (char *)"VCString_reserve", _wrap_VCString_reserve, METH_VARARGS, NULL}, { (char *)"VCString_capacity", _wrap_VCString_capacity, METH_VARARGS, NULL}, { (char *)"delete_VCString", _wrap_delete_VCString, METH_VARARGS, NULL}, { (char *)"VCString_swigregister", VCString_swigregister, METH_VARARGS, NULL}, { (char *)"PyMCString_iterator", _wrap_PyMCString_iterator, METH_VARARGS, NULL}, { (char *)"PyMCString___nonzero__", _wrap_PyMCString___nonzero__, METH_VARARGS, NULL}, { (char *)"PyMCString___bool__", _wrap_PyMCString___bool__, METH_VARARGS, NULL}, { (char *)"PyMCString___len__", _wrap_PyMCString___len__, METH_VARARGS, NULL}, { (char *)"PyMCString___getitem__", _wrap_PyMCString___getitem__, METH_VARARGS, NULL}, { (char *)"PyMCString___delitem__", _wrap_PyMCString___delitem__, METH_VARARGS, NULL}, { (char *)"PyMCString_has_key", _wrap_PyMCString_has_key, METH_VARARGS, NULL}, { (char *)"PyMCString_keys", _wrap_PyMCString_keys, METH_VARARGS, NULL}, { (char *)"PyMCString_values", _wrap_PyMCString_values, METH_VARARGS, NULL}, { (char *)"PyMCString_items", _wrap_PyMCString_items, METH_VARARGS, NULL}, { (char *)"PyMCString___contains__", _wrap_PyMCString___contains__, METH_VARARGS, NULL}, { (char *)"PyMCString_key_iterator", _wrap_PyMCString_key_iterator, METH_VARARGS, NULL}, { (char *)"PyMCString_value_iterator", _wrap_PyMCString_value_iterator, METH_VARARGS, NULL}, { (char *)"PyMCString___setitem__", _wrap_PyMCString___setitem__, METH_VARARGS, NULL}, { (char *)"PyMCString_asdict", _wrap_PyMCString_asdict, METH_VARARGS, NULL}, { (char *)"new_PyMCString", _wrap_new_PyMCString, METH_VARARGS, NULL}, { (char *)"PyMCString_empty", _wrap_PyMCString_empty, METH_VARARGS, NULL}, { (char *)"PyMCString_size", _wrap_PyMCString_size, METH_VARARGS, NULL}, { (char *)"PyMCString_clear", _wrap_PyMCString_clear, METH_VARARGS, NULL}, { (char *)"PyMCString_swap", _wrap_PyMCString_swap, METH_VARARGS, NULL}, { (char *)"PyMCString_get_allocator", _wrap_PyMCString_get_allocator, METH_VARARGS, NULL}, { (char *)"PyMCString_begin", _wrap_PyMCString_begin, METH_VARARGS, NULL}, { (char *)"PyMCString_end", _wrap_PyMCString_end, METH_VARARGS, NULL}, { (char *)"PyMCString_rbegin", _wrap_PyMCString_rbegin, METH_VARARGS, NULL}, { (char *)"PyMCString_rend", _wrap_PyMCString_rend, METH_VARARGS, NULL}, { (char *)"PyMCString_count", _wrap_PyMCString_count, METH_VARARGS, NULL}, { (char *)"PyMCString_erase", _wrap_PyMCString_erase, METH_VARARGS, NULL}, { (char *)"PyMCString_find", _wrap_PyMCString_find, METH_VARARGS, NULL}, { (char *)"PyMCString_lower_bound", _wrap_PyMCString_lower_bound, METH_VARARGS, NULL}, { (char *)"PyMCString_upper_bound", _wrap_PyMCString_upper_bound, METH_VARARGS, NULL}, { (char *)"delete_PyMCString", _wrap_delete_PyMCString, METH_VARARGS, NULL}, { (char *)"PyMCString_swigregister", PyMCString_swigregister, METH_VARARGS, NULL}, { (char *)"PyMStringVString_iterator", _wrap_PyMStringVString_iterator, METH_VARARGS, NULL}, { (char *)"PyMStringVString___nonzero__", _wrap_PyMStringVString___nonzero__, METH_VARARGS, NULL}, { (char *)"PyMStringVString___bool__", _wrap_PyMStringVString___bool__, METH_VARARGS, NULL}, { (char *)"PyMStringVString___len__", _wrap_PyMStringVString___len__, METH_VARARGS, NULL}, { (char *)"PyMStringVString___getitem__", _wrap_PyMStringVString___getitem__, METH_VARARGS, NULL}, { (char *)"PyMStringVString___delitem__", _wrap_PyMStringVString___delitem__, METH_VARARGS, NULL}, { (char *)"PyMStringVString_has_key", _wrap_PyMStringVString_has_key, METH_VARARGS, NULL}, { (char *)"PyMStringVString_keys", _wrap_PyMStringVString_keys, METH_VARARGS, NULL}, { (char *)"PyMStringVString_values", _wrap_PyMStringVString_values, METH_VARARGS, NULL}, { (char *)"PyMStringVString_items", _wrap_PyMStringVString_items, METH_VARARGS, NULL}, { (char *)"PyMStringVString___contains__", _wrap_PyMStringVString___contains__, METH_VARARGS, NULL}, { (char *)"PyMStringVString_key_iterator", _wrap_PyMStringVString_key_iterator, METH_VARARGS, NULL}, { (char *)"PyMStringVString_value_iterator", _wrap_PyMStringVString_value_iterator, METH_VARARGS, NULL}, { (char *)"PyMStringVString___setitem__", _wrap_PyMStringVString___setitem__, METH_VARARGS, NULL}, { (char *)"PyMStringVString_asdict", _wrap_PyMStringVString_asdict, METH_VARARGS, NULL}, { (char *)"new_PyMStringVString", _wrap_new_PyMStringVString, METH_VARARGS, NULL}, { (char *)"PyMStringVString_empty", _wrap_PyMStringVString_empty, METH_VARARGS, NULL}, { (char *)"PyMStringVString_size", _wrap_PyMStringVString_size, METH_VARARGS, NULL}, { (char *)"PyMStringVString_clear", _wrap_PyMStringVString_clear, METH_VARARGS, NULL}, { (char *)"PyMStringVString_swap", _wrap_PyMStringVString_swap, METH_VARARGS, NULL}, { (char *)"PyMStringVString_get_allocator", _wrap_PyMStringVString_get_allocator, METH_VARARGS, NULL}, { (char *)"PyMStringVString_begin", _wrap_PyMStringVString_begin, METH_VARARGS, NULL}, { (char *)"PyMStringVString_end", _wrap_PyMStringVString_end, METH_VARARGS, NULL}, { (char *)"PyMStringVString_rbegin", _wrap_PyMStringVString_rbegin, METH_VARARGS, NULL}, { (char *)"PyMStringVString_rend", _wrap_PyMStringVString_rend, METH_VARARGS, NULL}, { (char *)"PyMStringVString_count", _wrap_PyMStringVString_count, METH_VARARGS, NULL}, { (char *)"PyMStringVString_erase", _wrap_PyMStringVString_erase, METH_VARARGS, NULL}, { (char *)"PyMStringVString_find", _wrap_PyMStringVString_find, METH_VARARGS, NULL}, { (char *)"PyMStringVString_lower_bound", _wrap_PyMStringVString_lower_bound, METH_VARARGS, NULL}, { (char *)"PyMStringVString_upper_bound", _wrap_PyMStringVString_upper_bound, METH_VARARGS, NULL}, { (char *)"delete_PyMStringVString", _wrap_delete_PyMStringVString, METH_VARARGS, NULL}, { (char *)"PyMStringVString_swigregister", PyMStringVString_swigregister, METH_VARARGS, NULL}, { (char *)"new_MCString", _wrap_new_MCString, METH_VARARGS, NULL}, { (char *)"delete_MCString", _wrap_delete_MCString, METH_VARARGS, NULL}, { (char *)"MCString_swigregister", MCString_swigregister, METH_VARARGS, NULL}, { (char *)"PyModulesVector_iterator", _wrap_PyModulesVector_iterator, METH_VARARGS, NULL}, { (char *)"PyModulesVector___nonzero__", _wrap_PyModulesVector___nonzero__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___bool__", _wrap_PyModulesVector___bool__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___len__", _wrap_PyModulesVector___len__, METH_VARARGS, NULL}, { (char *)"PyModulesVector_pop", _wrap_PyModulesVector_pop, METH_VARARGS, NULL}, { (char *)"PyModulesVector___getslice__", _wrap_PyModulesVector___getslice__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___setslice__", _wrap_PyModulesVector___setslice__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___delslice__", _wrap_PyModulesVector___delslice__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___delitem__", _wrap_PyModulesVector___delitem__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___getitem__", _wrap_PyModulesVector___getitem__, METH_VARARGS, NULL}, { (char *)"PyModulesVector___setitem__", _wrap_PyModulesVector___setitem__, METH_VARARGS, NULL}, { (char *)"PyModulesVector_append", _wrap_PyModulesVector_append, METH_VARARGS, NULL}, { (char *)"PyModulesVector_empty", _wrap_PyModulesVector_empty, METH_VARARGS, NULL}, { (char *)"PyModulesVector_size", _wrap_PyModulesVector_size, METH_VARARGS, NULL}, { (char *)"PyModulesVector_clear", _wrap_PyModulesVector_clear, METH_VARARGS, NULL}, { (char *)"PyModulesVector_swap", _wrap_PyModulesVector_swap, METH_VARARGS, NULL}, { (char *)"PyModulesVector_get_allocator", _wrap_PyModulesVector_get_allocator, METH_VARARGS, NULL}, { (char *)"PyModulesVector_begin", _wrap_PyModulesVector_begin, METH_VARARGS, NULL}, { (char *)"PyModulesVector_end", _wrap_PyModulesVector_end, METH_VARARGS, NULL}, { (char *)"PyModulesVector_rbegin", _wrap_PyModulesVector_rbegin, METH_VARARGS, NULL}, { (char *)"PyModulesVector_rend", _wrap_PyModulesVector_rend, METH_VARARGS, NULL}, { (char *)"PyModulesVector_pop_back", _wrap_PyModulesVector_pop_back, METH_VARARGS, NULL}, { (char *)"PyModulesVector_erase", _wrap_PyModulesVector_erase, METH_VARARGS, NULL}, { (char *)"new_PyModulesVector", _wrap_new_PyModulesVector, METH_VARARGS, NULL}, { (char *)"PyModulesVector_push_back", _wrap_PyModulesVector_push_back, METH_VARARGS, NULL}, { (char *)"PyModulesVector_front", _wrap_PyModulesVector_front, METH_VARARGS, NULL}, { (char *)"PyModulesVector_back", _wrap_PyModulesVector_back, METH_VARARGS, NULL}, { (char *)"PyModulesVector_assign", _wrap_PyModulesVector_assign, METH_VARARGS, NULL}, { (char *)"PyModulesVector_resize", _wrap_PyModulesVector_resize, METH_VARARGS, NULL}, { (char *)"PyModulesVector_insert", _wrap_PyModulesVector_insert, METH_VARARGS, NULL}, { (char *)"PyModulesVector_reserve", _wrap_PyModulesVector_reserve, METH_VARARGS, NULL}, { (char *)"PyModulesVector_capacity", _wrap_PyModulesVector_capacity, METH_VARARGS, NULL}, { (char *)"delete_PyModulesVector", _wrap_delete_PyModulesVector, METH_VARARGS, NULL}, { (char *)"PyModulesVector_swigregister", PyModulesVector_swigregister, METH_VARARGS, NULL}, { (char *)"VListeners_iterator", _wrap_VListeners_iterator, METH_VARARGS, NULL}, { (char *)"VListeners___nonzero__", _wrap_VListeners___nonzero__, METH_VARARGS, NULL}, { (char *)"VListeners___bool__", _wrap_VListeners___bool__, METH_VARARGS, NULL}, { (char *)"VListeners___len__", _wrap_VListeners___len__, METH_VARARGS, NULL}, { (char *)"VListeners_pop", _wrap_VListeners_pop, METH_VARARGS, NULL}, { (char *)"VListeners___getslice__", _wrap_VListeners___getslice__, METH_VARARGS, NULL}, { (char *)"VListeners___setslice__", _wrap_VListeners___setslice__, METH_VARARGS, NULL}, { (char *)"VListeners___delslice__", _wrap_VListeners___delslice__, METH_VARARGS, NULL}, { (char *)"VListeners___delitem__", _wrap_VListeners___delitem__, METH_VARARGS, NULL}, { (char *)"VListeners___getitem__", _wrap_VListeners___getitem__, METH_VARARGS, NULL}, { (char *)"VListeners___setitem__", _wrap_VListeners___setitem__, METH_VARARGS, NULL}, { (char *)"VListeners_append", _wrap_VListeners_append, METH_VARARGS, NULL}, { (char *)"VListeners_empty", _wrap_VListeners_empty, METH_VARARGS, NULL}, { (char *)"VListeners_size", _wrap_VListeners_size, METH_VARARGS, NULL}, { (char *)"VListeners_clear", _wrap_VListeners_clear, METH_VARARGS, NULL}, { (char *)"VListeners_swap", _wrap_VListeners_swap, METH_VARARGS, NULL}, { (char *)"VListeners_get_allocator", _wrap_VListeners_get_allocator, METH_VARARGS, NULL}, { (char *)"VListeners_begin", _wrap_VListeners_begin, METH_VARARGS, NULL}, { (char *)"VListeners_end", _wrap_VListeners_end, METH_VARARGS, NULL}, { (char *)"VListeners_rbegin", _wrap_VListeners_rbegin, METH_VARARGS, NULL}, { (char *)"VListeners_rend", _wrap_VListeners_rend, METH_VARARGS, NULL}, { (char *)"VListeners_pop_back", _wrap_VListeners_pop_back, METH_VARARGS, NULL}, { (char *)"VListeners_erase", _wrap_VListeners_erase, METH_VARARGS, NULL}, { (char *)"new_VListeners", _wrap_new_VListeners, METH_VARARGS, NULL}, { (char *)"VListeners_push_back", _wrap_VListeners_push_back, METH_VARARGS, NULL}, { (char *)"VListeners_front", _wrap_VListeners_front, METH_VARARGS, NULL}, { (char *)"VListeners_back", _wrap_VListeners_back, METH_VARARGS, NULL}, { (char *)"VListeners_assign", _wrap_VListeners_assign, METH_VARARGS, NULL}, { (char *)"VListeners_resize", _wrap_VListeners_resize, METH_VARARGS, NULL}, { (char *)"VListeners_insert", _wrap_VListeners_insert, METH_VARARGS, NULL}, { (char *)"VListeners_reserve", _wrap_VListeners_reserve, METH_VARARGS, NULL}, { (char *)"VListeners_capacity", _wrap_VListeners_capacity, METH_VARARGS, NULL}, { (char *)"delete_VListeners", _wrap_delete_VListeners, METH_VARARGS, NULL}, { (char *)"VListeners_swigregister", VListeners_swigregister, METH_VARARGS, NULL}, { (char *)"BufLines_iterator", _wrap_BufLines_iterator, METH_VARARGS, NULL}, { (char *)"BufLines___nonzero__", _wrap_BufLines___nonzero__, METH_VARARGS, NULL}, { (char *)"BufLines___bool__", _wrap_BufLines___bool__, METH_VARARGS, NULL}, { (char *)"BufLines___len__", _wrap_BufLines___len__, METH_VARARGS, NULL}, { (char *)"BufLines_pop", _wrap_BufLines_pop, METH_VARARGS, NULL}, { (char *)"BufLines___getslice__", _wrap_BufLines___getslice__, METH_VARARGS, NULL}, { (char *)"BufLines___setslice__", _wrap_BufLines___setslice__, METH_VARARGS, NULL}, { (char *)"BufLines___delslice__", _wrap_BufLines___delslice__, METH_VARARGS, NULL}, { (char *)"BufLines___delitem__", _wrap_BufLines___delitem__, METH_VARARGS, NULL}, { (char *)"BufLines___getitem__", _wrap_BufLines___getitem__, METH_VARARGS, NULL}, { (char *)"BufLines___setitem__", _wrap_BufLines___setitem__, METH_VARARGS, NULL}, { (char *)"BufLines_append", _wrap_BufLines_append, METH_VARARGS, NULL}, { (char *)"BufLines_empty", _wrap_BufLines_empty, METH_VARARGS, NULL}, { (char *)"BufLines_size", _wrap_BufLines_size, METH_VARARGS, NULL}, { (char *)"BufLines_clear", _wrap_BufLines_clear, METH_VARARGS, NULL}, { (char *)"BufLines_swap", _wrap_BufLines_swap, METH_VARARGS, NULL}, { (char *)"BufLines_get_allocator", _wrap_BufLines_get_allocator, METH_VARARGS, NULL}, { (char *)"BufLines_begin", _wrap_BufLines_begin, METH_VARARGS, NULL}, { (char *)"BufLines_end", _wrap_BufLines_end, METH_VARARGS, NULL}, { (char *)"BufLines_rbegin", _wrap_BufLines_rbegin, METH_VARARGS, NULL}, { (char *)"BufLines_rend", _wrap_BufLines_rend, METH_VARARGS, NULL}, { (char *)"BufLines_pop_back", _wrap_BufLines_pop_back, METH_VARARGS, NULL}, { (char *)"BufLines_erase", _wrap_BufLines_erase, METH_VARARGS, NULL}, { (char *)"new_BufLines", _wrap_new_BufLines, METH_VARARGS, NULL}, { (char *)"BufLines_push_back", _wrap_BufLines_push_back, METH_VARARGS, NULL}, { (char *)"BufLines_front", _wrap_BufLines_front, METH_VARARGS, NULL}, { (char *)"BufLines_back", _wrap_BufLines_back, METH_VARARGS, NULL}, { (char *)"BufLines_assign", _wrap_BufLines_assign, METH_VARARGS, NULL}, { (char *)"BufLines_resize", _wrap_BufLines_resize, METH_VARARGS, NULL}, { (char *)"BufLines_insert", _wrap_BufLines_insert, METH_VARARGS, NULL}, { (char *)"BufLines_pop_front", _wrap_BufLines_pop_front, METH_VARARGS, NULL}, { (char *)"BufLines_push_front", _wrap_BufLines_push_front, METH_VARARGS, NULL}, { (char *)"delete_BufLines", _wrap_delete_BufLines, METH_VARARGS, NULL}, { (char *)"BufLines_swigregister", BufLines_swigregister, METH_VARARGS, NULL}, { (char *)"VVString_iterator", _wrap_VVString_iterator, METH_VARARGS, NULL}, { (char *)"VVString___nonzero__", _wrap_VVString___nonzero__, METH_VARARGS, NULL}, { (char *)"VVString___bool__", _wrap_VVString___bool__, METH_VARARGS, NULL}, { (char *)"VVString___len__", _wrap_VVString___len__, METH_VARARGS, NULL}, { (char *)"VVString_pop", _wrap_VVString_pop, METH_VARARGS, NULL}, { (char *)"VVString___getslice__", _wrap_VVString___getslice__, METH_VARARGS, NULL}, { (char *)"VVString___setslice__", _wrap_VVString___setslice__, METH_VARARGS, NULL}, { (char *)"VVString___delslice__", _wrap_VVString___delslice__, METH_VARARGS, NULL}, { (char *)"VVString___delitem__", _wrap_VVString___delitem__, METH_VARARGS, NULL}, { (char *)"VVString___getitem__", _wrap_VVString___getitem__, METH_VARARGS, NULL}, { (char *)"VVString___setitem__", _wrap_VVString___setitem__, METH_VARARGS, NULL}, { (char *)"VVString_append", _wrap_VVString_append, METH_VARARGS, NULL}, { (char *)"VVString_empty", _wrap_VVString_empty, METH_VARARGS, NULL}, { (char *)"VVString_size", _wrap_VVString_size, METH_VARARGS, NULL}, { (char *)"VVString_clear", _wrap_VVString_clear, METH_VARARGS, NULL}, { (char *)"VVString_swap", _wrap_VVString_swap, METH_VARARGS, NULL}, { (char *)"VVString_get_allocator", _wrap_VVString_get_allocator, METH_VARARGS, NULL}, { (char *)"VVString_begin", _wrap_VVString_begin, METH_VARARGS, NULL}, { (char *)"VVString_end", _wrap_VVString_end, METH_VARARGS, NULL}, { (char *)"VVString_rbegin", _wrap_VVString_rbegin, METH_VARARGS, NULL}, { (char *)"VVString_rend", _wrap_VVString_rend, METH_VARARGS, NULL}, { (char *)"VVString_pop_back", _wrap_VVString_pop_back, METH_VARARGS, NULL}, { (char *)"VVString_erase", _wrap_VVString_erase, METH_VARARGS, NULL}, { (char *)"new_VVString", _wrap_new_VVString, METH_VARARGS, NULL}, { (char *)"VVString_push_back", _wrap_VVString_push_back, METH_VARARGS, NULL}, { (char *)"VVString_front", _wrap_VVString_front, METH_VARARGS, NULL}, { (char *)"VVString_back", _wrap_VVString_back, METH_VARARGS, NULL}, { (char *)"VVString_assign", _wrap_VVString_assign, METH_VARARGS, NULL}, { (char *)"VVString_resize", _wrap_VVString_resize, METH_VARARGS, NULL}, { (char *)"VVString_insert", _wrap_VVString_insert, METH_VARARGS, NULL}, { (char *)"VVString_reserve", _wrap_VVString_reserve, METH_VARARGS, NULL}, { (char *)"VVString_capacity", _wrap_VVString_capacity, METH_VARARGS, NULL}, { (char *)"delete_VVString", _wrap_delete_VVString, METH_VARARGS, NULL}, { (char *)"VVString_swigregister", VVString_swigregister, METH_VARARGS, NULL}, { (char *)"VClients_iterator", _wrap_VClients_iterator, METH_VARARGS, NULL}, { (char *)"VClients___nonzero__", _wrap_VClients___nonzero__, METH_VARARGS, NULL}, { (char *)"VClients___bool__", _wrap_VClients___bool__, METH_VARARGS, NULL}, { (char *)"VClients___len__", _wrap_VClients___len__, METH_VARARGS, NULL}, { (char *)"VClients_pop", _wrap_VClients_pop, METH_VARARGS, NULL}, { (char *)"VClients___getslice__", _wrap_VClients___getslice__, METH_VARARGS, NULL}, { (char *)"VClients___setslice__", _wrap_VClients___setslice__, METH_VARARGS, NULL}, { (char *)"VClients___delslice__", _wrap_VClients___delslice__, METH_VARARGS, NULL}, { (char *)"VClients___delitem__", _wrap_VClients___delitem__, METH_VARARGS, NULL}, { (char *)"VClients___getitem__", _wrap_VClients___getitem__, METH_VARARGS, NULL}, { (char *)"VClients___setitem__", _wrap_VClients___setitem__, METH_VARARGS, NULL}, { (char *)"VClients_append", _wrap_VClients_append, METH_VARARGS, NULL}, { (char *)"VClients_empty", _wrap_VClients_empty, METH_VARARGS, NULL}, { (char *)"VClients_size", _wrap_VClients_size, METH_VARARGS, NULL}, { (char *)"VClients_clear", _wrap_VClients_clear, METH_VARARGS, NULL}, { (char *)"VClients_swap", _wrap_VClients_swap, METH_VARARGS, NULL}, { (char *)"VClients_get_allocator", _wrap_VClients_get_allocator, METH_VARARGS, NULL}, { (char *)"VClients_begin", _wrap_VClients_begin, METH_VARARGS, NULL}, { (char *)"VClients_end", _wrap_VClients_end, METH_VARARGS, NULL}, { (char *)"VClients_rbegin", _wrap_VClients_rbegin, METH_VARARGS, NULL}, { (char *)"VClients_rend", _wrap_VClients_rend, METH_VARARGS, NULL}, { (char *)"VClients_pop_back", _wrap_VClients_pop_back, METH_VARARGS, NULL}, { (char *)"VClients_erase", _wrap_VClients_erase, METH_VARARGS, NULL}, { (char *)"new_VClients", _wrap_new_VClients, METH_VARARGS, NULL}, { (char *)"VClients_push_back", _wrap_VClients_push_back, METH_VARARGS, NULL}, { (char *)"VClients_front", _wrap_VClients_front, METH_VARARGS, NULL}, { (char *)"VClients_back", _wrap_VClients_back, METH_VARARGS, NULL}, { (char *)"VClients_assign", _wrap_VClients_assign, METH_VARARGS, NULL}, { (char *)"VClients_resize", _wrap_VClients_resize, METH_VARARGS, NULL}, { (char *)"VClients_insert", _wrap_VClients_insert, METH_VARARGS, NULL}, { (char *)"VClients_reserve", _wrap_VClients_reserve, METH_VARARGS, NULL}, { (char *)"VClients_capacity", _wrap_VClients_capacity, METH_VARARGS, NULL}, { (char *)"delete_VClients", _wrap_delete_VClients, METH_VARARGS, NULL}, { (char *)"VClients_swigregister", VClients_swigregister, METH_VARARGS, NULL}, { (char *)"SetFdCloseOnExec", _wrap_SetFdCloseOnExec, METH_VARARGS, NULL}, { (char *)"new_CUtils", _wrap_new_CUtils, METH_VARARGS, NULL}, { (char *)"delete_CUtils", _wrap_delete_CUtils, METH_VARARGS, NULL}, { (char *)"CUtils_GetIP", _wrap_CUtils_GetIP, METH_VARARGS, NULL}, { (char *)"CUtils_GetLongIP", _wrap_CUtils_GetLongIP, METH_VARARGS, NULL}, { (char *)"CUtils_PrintError", _wrap_CUtils_PrintError, METH_VARARGS, NULL}, { (char *)"CUtils_PrintMessage", _wrap_CUtils_PrintMessage, METH_VARARGS, NULL}, { (char *)"CUtils_PrintPrompt", _wrap_CUtils_PrintPrompt, METH_VARARGS, NULL}, { (char *)"CUtils_PrintAction", _wrap_CUtils_PrintAction, METH_VARARGS, NULL}, { (char *)"CUtils_PrintStatus", _wrap_CUtils_PrintStatus, METH_VARARGS, NULL}, { (char *)"CUtils_GetSaltedHashPass", _wrap_CUtils_GetSaltedHashPass, METH_VARARGS, NULL}, { (char *)"CUtils_GetSalt", _wrap_CUtils_GetSalt, METH_VARARGS, NULL}, { (char *)"CUtils_SaltedMD5Hash", _wrap_CUtils_SaltedMD5Hash, METH_VARARGS, NULL}, { (char *)"CUtils_SaltedSHA256Hash", _wrap_CUtils_SaltedSHA256Hash, METH_VARARGS, NULL}, { (char *)"CUtils_GetPass", _wrap_CUtils_GetPass, METH_VARARGS, NULL}, { (char *)"CUtils_GetInput", _wrap_CUtils_GetInput, METH_VARARGS, NULL}, { (char *)"CUtils_GetBoolInput", _wrap_CUtils_GetBoolInput, METH_VARARGS, NULL}, { (char *)"CUtils_GetNumInput", _wrap_CUtils_GetNumInput, METH_VARARGS, NULL}, { (char *)"CUtils_GetMillTime", _wrap_CUtils_GetMillTime, METH_VARARGS, NULL}, { (char *)"CUtils_CTime", _wrap_CUtils_CTime, METH_VARARGS, NULL}, { (char *)"CUtils_FormatTime", _wrap_CUtils_FormatTime, METH_VARARGS, NULL}, { (char *)"CUtils_FormatServerTime", _wrap_CUtils_FormatServerTime, METH_VARARGS, NULL}, { (char *)"CUtils_GetTimezones", _wrap_CUtils_GetTimezones, METH_VARARGS, NULL}, { (char *)"CUtils_GetEncodings", _wrap_CUtils_GetEncodings, METH_VARARGS, NULL}, { (char *)"CUtils_GetMessageTags", _wrap_CUtils_GetMessageTags, METH_VARARGS, NULL}, { (char *)"CUtils_SetMessageTags", _wrap_CUtils_SetMessageTags, METH_VARARGS, NULL}, { (char *)"CUtils_swigregister", CUtils_swigregister, METH_VARARGS, NULL}, { (char *)"new_CException", _wrap_new_CException, METH_VARARGS, NULL}, { (char *)"delete_CException", _wrap_delete_CException, METH_VARARGS, NULL}, { (char *)"CException_GetType", _wrap_CException_GetType, METH_VARARGS, NULL}, { (char *)"CException_swigregister", CException_swigregister, METH_VARARGS, NULL}, { (char *)"new_CTable", _wrap_new_CTable, METH_VARARGS, NULL}, { (char *)"delete_CTable", _wrap_delete_CTable, METH_VARARGS, NULL}, { (char *)"CTable_AddColumn", _wrap_CTable_AddColumn, METH_VARARGS, NULL}, { (char *)"CTable_AddRow", _wrap_CTable_AddRow, METH_VARARGS, NULL}, { (char *)"CTable_SetCell", _wrap_CTable_SetCell, METH_VARARGS, NULL}, { (char *)"CTable_GetLine", _wrap_CTable_GetLine, METH_VARARGS, NULL}, { (char *)"CTable_GetColumnWidth", _wrap_CTable_GetColumnWidth, METH_VARARGS, NULL}, { (char *)"CTable_Clear", _wrap_CTable_Clear, METH_VARARGS, NULL}, { (char *)"CTable_size", _wrap_CTable_size, METH_VARARGS, NULL}, { (char *)"CTable_empty", _wrap_CTable_empty, METH_VARARGS, NULL}, { (char *)"CTable_swigregister", CTable_swigregister, METH_VARARGS, NULL}, { (char *)"new_CConfigEntry", _wrap_new_CConfigEntry, METH_VARARGS, NULL}, { (char *)"delete_CConfigEntry", _wrap_delete_CConfigEntry, METH_VARARGS, NULL}, { (char *)"CConfigEntry_m_pSubConfig_set", _wrap_CConfigEntry_m_pSubConfig_set, METH_VARARGS, NULL}, { (char *)"CConfigEntry_m_pSubConfig_get", _wrap_CConfigEntry_m_pSubConfig_get, METH_VARARGS, NULL}, { (char *)"CConfigEntry_swigregister", CConfigEntry_swigregister, METH_VARARGS, NULL}, { (char *)"CConfig_BeginEntries", _wrap_CConfig_BeginEntries, METH_VARARGS, NULL}, { (char *)"CConfig_EndEntries", _wrap_CConfig_EndEntries, METH_VARARGS, NULL}, { (char *)"CConfig_BeginSubConfigs", _wrap_CConfig_BeginSubConfigs, METH_VARARGS, NULL}, { (char *)"CConfig_EndSubConfigs", _wrap_CConfig_EndSubConfigs, METH_VARARGS, NULL}, { (char *)"CConfig_AddKeyValuePair", _wrap_CConfig_AddKeyValuePair, METH_VARARGS, NULL}, { (char *)"CConfig_AddSubConfig", _wrap_CConfig_AddSubConfig, METH_VARARGS, NULL}, { (char *)"CConfig_FindStringVector", _wrap_CConfig_FindStringVector, METH_VARARGS, NULL}, { (char *)"CConfig_FindStringEntry", _wrap_CConfig_FindStringEntry, METH_VARARGS, NULL}, { (char *)"CConfig_FindBoolEntry", _wrap_CConfig_FindBoolEntry, METH_VARARGS, NULL}, { (char *)"CConfig_FindUIntEntry", _wrap_CConfig_FindUIntEntry, METH_VARARGS, NULL}, { (char *)"CConfig_FindUShortEntry", _wrap_CConfig_FindUShortEntry, METH_VARARGS, NULL}, { (char *)"CConfig_FindDoubleEntry", _wrap_CConfig_FindDoubleEntry, METH_VARARGS, NULL}, { (char *)"CConfig_FindSubConfig", _wrap_CConfig_FindSubConfig, METH_VARARGS, NULL}, { (char *)"CConfig_empty", _wrap_CConfig_empty, METH_VARARGS, NULL}, { (char *)"CConfig_Parse", _wrap_CConfig_Parse, METH_VARARGS, NULL}, { (char *)"CConfig_Write", _wrap_CConfig_Write, METH_VARARGS, NULL}, { (char *)"new_CConfig", _wrap_new_CConfig, METH_VARARGS, NULL}, { (char *)"delete_CConfig", _wrap_delete_CConfig, METH_VARARGS, NULL}, { (char *)"CConfig_swigregister", CConfig_swigregister, METH_VARARGS, NULL}, { (char *)"CS_INVALID_SOCK_swigconstant", CS_INVALID_SOCK_swigconstant, METH_VARARGS, NULL}, { (char *)"new_CSCharBuffer", _wrap_new_CSCharBuffer, METH_VARARGS, NULL}, { (char *)"delete_CSCharBuffer", _wrap_delete_CSCharBuffer, METH_VARARGS, NULL}, { (char *)"CSCharBuffer___call__", _wrap_CSCharBuffer___call__, METH_VARARGS, NULL}, { (char *)"CSCharBuffer_swigregister", CSCharBuffer_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSSockAddr", _wrap_new_CSSockAddr, METH_VARARGS, NULL}, { (char *)"delete_CSSockAddr", _wrap_delete_CSSockAddr, METH_VARARGS, NULL}, { (char *)"CSSockAddr_SinFamily", _wrap_CSSockAddr_SinFamily, METH_VARARGS, NULL}, { (char *)"CSSockAddr_SinPort", _wrap_CSSockAddr_SinPort, METH_VARARGS, NULL}, { (char *)"CSSockAddr_SetIPv6", _wrap_CSSockAddr_SetIPv6, METH_VARARGS, NULL}, { (char *)"CSSockAddr_GetIPv6", _wrap_CSSockAddr_GetIPv6, METH_VARARGS, NULL}, { (char *)"CSSockAddr_GetSockAddrLen", _wrap_CSSockAddr_GetSockAddrLen, METH_VARARGS, NULL}, { (char *)"CSSockAddr_GetSockAddr", _wrap_CSSockAddr_GetSockAddr, METH_VARARGS, NULL}, { (char *)"CSSockAddr_GetAddr", _wrap_CSSockAddr_GetAddr, METH_VARARGS, NULL}, { (char *)"CSSockAddr_SetAFRequire", _wrap_CSSockAddr_SetAFRequire, METH_VARARGS, NULL}, { (char *)"CSSockAddr_GetAFRequire", _wrap_CSSockAddr_GetAFRequire, METH_VARARGS, NULL}, { (char *)"CSSockAddr_swigregister", CSSockAddr_swigregister, METH_VARARGS, NULL}, { (char *)"new_CGetAddrInfo", _wrap_new_CGetAddrInfo, METH_VARARGS, NULL}, { (char *)"delete_CGetAddrInfo", _wrap_delete_CGetAddrInfo, METH_VARARGS, NULL}, { (char *)"CGetAddrInfo_Init", _wrap_CGetAddrInfo_Init, METH_VARARGS, NULL}, { (char *)"CGetAddrInfo_Process", _wrap_CGetAddrInfo_Process, METH_VARARGS, NULL}, { (char *)"CGetAddrInfo_Finish", _wrap_CGetAddrInfo_Finish, METH_VARARGS, NULL}, { (char *)"CGetAddrInfo_swigregister", CGetAddrInfo_swigregister, METH_VARARGS, NULL}, { (char *)"GetAddrInfo", _wrap_GetAddrInfo, METH_VARARGS, NULL}, { (char *)"GetCsockSSLIdx", _wrap_GetCsockSSLIdx, METH_VARARGS, NULL}, { (char *)"InitCsocket", _wrap_InitCsocket, METH_VARARGS, NULL}, { (char *)"ShutdownCsocket", _wrap_ShutdownCsocket, METH_VARARGS, NULL}, { (char *)"GetSockError", _wrap_GetSockError, METH_VARARGS, NULL}, { (char *)"TFD_ZERO", _wrap_TFD_ZERO, METH_VARARGS, NULL}, { (char *)"TFD_SET", _wrap_TFD_SET, METH_VARARGS, NULL}, { (char *)"TFD_ISSET", _wrap_TFD_ISSET, METH_VARARGS, NULL}, { (char *)"TFD_CLR", _wrap_TFD_CLR, METH_VARARGS, NULL}, { (char *)"__Perror", _wrap___Perror, METH_VARARGS, NULL}, { (char *)"millitime", _wrap_millitime, METH_VARARGS, NULL}, { (char *)"new_CCron", _wrap_new_CCron, METH_VARARGS, NULL}, { (char *)"delete_CCron", _wrap_delete_CCron, METH_VARARGS, NULL}, { (char *)"CCron_run", _wrap_CCron_run, METH_VARARGS, NULL}, { (char *)"CCron_StartMaxCycles", _wrap_CCron_StartMaxCycles, METH_VARARGS, NULL}, { (char *)"CCron_Start", _wrap_CCron_Start, METH_VARARGS, NULL}, { (char *)"CCron_Stop", _wrap_CCron_Stop, METH_VARARGS, NULL}, { (char *)"CCron_Pause", _wrap_CCron_Pause, METH_VARARGS, NULL}, { (char *)"CCron_UnPause", _wrap_CCron_UnPause, METH_VARARGS, NULL}, { (char *)"CCron_Reset", _wrap_CCron_Reset, METH_VARARGS, NULL}, { (char *)"CCron_GetInterval", _wrap_CCron_GetInterval, METH_VARARGS, NULL}, { (char *)"CCron_GetMaxCycles", _wrap_CCron_GetMaxCycles, METH_VARARGS, NULL}, { (char *)"CCron_GetCyclesLeft", _wrap_CCron_GetCyclesLeft, METH_VARARGS, NULL}, { (char *)"CCron_isValid", _wrap_CCron_isValid, METH_VARARGS, NULL}, { (char *)"CCron_GetName", _wrap_CCron_GetName, METH_VARARGS, NULL}, { (char *)"CCron_SetName", _wrap_CCron_SetName, METH_VARARGS, NULL}, { (char *)"CCron_GetNextRun", _wrap_CCron_GetNextRun, METH_VARARGS, NULL}, { (char *)"CCron_RunJob", _wrap_CCron_RunJob, METH_VARARGS, NULL}, { (char *)"CCron_swigregister", CCron_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSMonitorFD", _wrap_new_CSMonitorFD, METH_VARARGS, NULL}, { (char *)"delete_CSMonitorFD", _wrap_delete_CSMonitorFD, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_GatherFDsForSelect", _wrap_CSMonitorFD_GatherFDsForSelect, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_FDsThatTriggered", _wrap_CSMonitorFD_FDsThatTriggered, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_CheckFDs", _wrap_CSMonitorFD_CheckFDs, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_Add", _wrap_CSMonitorFD_Add, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_Remove", _wrap_CSMonitorFD_Remove, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_DisableMonitor", _wrap_CSMonitorFD_DisableMonitor, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_IsEnabled", _wrap_CSMonitorFD_IsEnabled, METH_VARARGS, NULL}, { (char *)"CSMonitorFD_swigregister", CSMonitorFD_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSockCommon", _wrap_new_CSockCommon, METH_VARARGS, NULL}, { (char *)"delete_CSockCommon", _wrap_delete_CSockCommon, METH_VARARGS, NULL}, { (char *)"CSockCommon_CleanupCrons", _wrap_CSockCommon_CleanupCrons, METH_VARARGS, NULL}, { (char *)"CSockCommon_CleanupFDMonitors", _wrap_CSockCommon_CleanupFDMonitors, METH_VARARGS, NULL}, { (char *)"CSockCommon_GetCrons", _wrap_CSockCommon_GetCrons, METH_VARARGS, NULL}, { (char *)"CSockCommon_Cron", _wrap_CSockCommon_Cron, METH_VARARGS, NULL}, { (char *)"CSockCommon_AddCron", _wrap_CSockCommon_AddCron, METH_VARARGS, NULL}, { (char *)"CSockCommon_DelCron", _wrap_CSockCommon_DelCron, METH_VARARGS, NULL}, { (char *)"CSockCommon_DelCronByAddr", _wrap_CSockCommon_DelCronByAddr, METH_VARARGS, NULL}, { (char *)"CSockCommon_CheckFDs", _wrap_CSockCommon_CheckFDs, METH_VARARGS, NULL}, { (char *)"CSockCommon_AssignFDs", _wrap_CSockCommon_AssignFDs, METH_VARARGS, NULL}, { (char *)"CSockCommon_MonitorFD", _wrap_CSockCommon_MonitorFD, METH_VARARGS, NULL}, { (char *)"CSockCommon_swigregister", CSockCommon_swigregister, METH_VARARGS, NULL}, { (char *)"new_Csock", _wrap_new_Csock, METH_VARARGS, NULL}, { (char *)"Csock_GetSockObj", _wrap_Csock_GetSockObj, METH_VARARGS, NULL}, { (char *)"delete_Csock", _wrap_delete_Csock, METH_VARARGS, NULL}, { (char *)"Csock_Dereference", _wrap_Csock_Dereference, METH_VARARGS, NULL}, { (char *)"Csock_Copy", _wrap_Csock_Copy, METH_VARARGS, NULL}, { (char *)"Csock___lshift__", _wrap_Csock___lshift__, METH_VARARGS, NULL}, { (char *)"Csock_Connect", _wrap_Csock_Connect, METH_VARARGS, NULL}, { (char *)"Csock_Listen", _wrap_Csock_Listen, METH_VARARGS, NULL}, { (char *)"Csock_Accept", _wrap_Csock_Accept, METH_VARARGS, NULL}, { (char *)"Csock_AcceptSSL", _wrap_Csock_AcceptSSL, METH_VARARGS, NULL}, { (char *)"Csock_SSLClientSetup", _wrap_Csock_SSLClientSetup, METH_VARARGS, NULL}, { (char *)"Csock_SSLServerSetup", _wrap_Csock_SSLServerSetup, METH_VARARGS, NULL}, { (char *)"Csock_ConnectSSL", _wrap_Csock_ConnectSSL, METH_VARARGS, NULL}, { (char *)"Csock_StartTLS", _wrap_Csock_StartTLS, METH_VARARGS, NULL}, { (char *)"Csock_Write", _wrap_Csock_Write, METH_VARARGS, NULL}, { (char *)"Csock_Read", _wrap_Csock_Read, METH_VARARGS, NULL}, { (char *)"Csock_GetLocalIP", _wrap_Csock_GetLocalIP, METH_VARARGS, NULL}, { (char *)"Csock_GetRemoteIP", _wrap_Csock_GetRemoteIP, METH_VARARGS, NULL}, { (char *)"Csock_IsConnected", _wrap_Csock_IsConnected, METH_VARARGS, NULL}, { (char *)"Csock_SetIsConnected", _wrap_Csock_SetIsConnected, METH_VARARGS, NULL}, { (char *)"Csock_GetRSock", _wrap_Csock_GetRSock, METH_VARARGS, NULL}, { (char *)"Csock_SetRSock", _wrap_Csock_SetRSock, METH_VARARGS, NULL}, { (char *)"Csock_GetWSock", _wrap_Csock_GetWSock, METH_VARARGS, NULL}, { (char *)"Csock_SetWSock", _wrap_Csock_SetWSock, METH_VARARGS, NULL}, { (char *)"Csock_SetSock", _wrap_Csock_SetSock, METH_VARARGS, NULL}, { (char *)"Csock_GetSock", _wrap_Csock_GetSock, METH_VARARGS, NULL}, { (char *)"Csock_CallSockError", _wrap_Csock_CallSockError, METH_VARARGS, NULL}, { (char *)"Csock_ResetTimer", _wrap_Csock_ResetTimer, METH_VARARGS, NULL}, { (char *)"Csock_PauseRead", _wrap_Csock_PauseRead, METH_VARARGS, NULL}, { (char *)"Csock_UnPauseRead", _wrap_Csock_UnPauseRead, METH_VARARGS, NULL}, { (char *)"Csock_IsReadPaused", _wrap_Csock_IsReadPaused, METH_VARARGS, NULL}, { (char *)"Csock_SetTimeout", _wrap_Csock_SetTimeout, METH_VARARGS, NULL}, { (char *)"Csock_SetTimeoutType", _wrap_Csock_SetTimeoutType, METH_VARARGS, NULL}, { (char *)"Csock_GetTimeout", _wrap_Csock_GetTimeout, METH_VARARGS, NULL}, { (char *)"Csock_GetTimeoutType", _wrap_Csock_GetTimeoutType, METH_VARARGS, NULL}, { (char *)"Csock_CheckTimeout", _wrap_Csock_CheckTimeout, METH_VARARGS, NULL}, { (char *)"Csock_PushBuff", _wrap_Csock_PushBuff, METH_VARARGS, NULL}, { (char *)"Csock_GetInternalReadBuffer", _wrap_Csock_GetInternalReadBuffer, METH_VARARGS, NULL}, { (char *)"Csock_GetInternalWriteBuffer", _wrap_Csock_GetInternalWriteBuffer, METH_VARARGS, NULL}, { (char *)"Csock_SetMaxBufferThreshold", _wrap_Csock_SetMaxBufferThreshold, METH_VARARGS, NULL}, { (char *)"Csock_GetMaxBufferThreshold", _wrap_Csock_GetMaxBufferThreshold, METH_VARARGS, NULL}, { (char *)"Csock_GetType", _wrap_Csock_GetType, METH_VARARGS, NULL}, { (char *)"Csock_SetType", _wrap_Csock_SetType, METH_VARARGS, NULL}, { (char *)"Csock_GetSockName", _wrap_Csock_GetSockName, METH_VARARGS, NULL}, { (char *)"Csock_SetSockName", _wrap_Csock_SetSockName, METH_VARARGS, NULL}, { (char *)"Csock_GetHostName", _wrap_Csock_GetHostName, METH_VARARGS, NULL}, { (char *)"Csock_SetHostName", _wrap_Csock_SetHostName, METH_VARARGS, NULL}, { (char *)"Csock_GetStartTime", _wrap_Csock_GetStartTime, METH_VARARGS, NULL}, { (char *)"Csock_ResetStartTime", _wrap_Csock_ResetStartTime, METH_VARARGS, NULL}, { (char *)"Csock_GetBytesRead", _wrap_Csock_GetBytesRead, METH_VARARGS, NULL}, { (char *)"Csock_ResetBytesRead", _wrap_Csock_ResetBytesRead, METH_VARARGS, NULL}, { (char *)"Csock_GetBytesWritten", _wrap_Csock_GetBytesWritten, METH_VARARGS, NULL}, { (char *)"Csock_ResetBytesWritten", _wrap_Csock_ResetBytesWritten, METH_VARARGS, NULL}, { (char *)"Csock_GetAvgRead", _wrap_Csock_GetAvgRead, METH_VARARGS, NULL}, { (char *)"Csock_GetAvgWrite", _wrap_Csock_GetAvgWrite, METH_VARARGS, NULL}, { (char *)"Csock_GetRemotePort", _wrap_Csock_GetRemotePort, METH_VARARGS, NULL}, { (char *)"Csock_GetLocalPort", _wrap_Csock_GetLocalPort, METH_VARARGS, NULL}, { (char *)"Csock_GetPort", _wrap_Csock_GetPort, METH_VARARGS, NULL}, { (char *)"Csock_SetPort", _wrap_Csock_SetPort, METH_VARARGS, NULL}, { (char *)"Csock_Close", _wrap_Csock_Close, METH_VARARGS, NULL}, { (char *)"Csock_GetCloseType", _wrap_Csock_GetCloseType, METH_VARARGS, NULL}, { (char *)"Csock_IsClosed", _wrap_Csock_IsClosed, METH_VARARGS, NULL}, { (char *)"Csock_NonBlockingIO", _wrap_Csock_NonBlockingIO, METH_VARARGS, NULL}, { (char *)"Csock_GetSSL", _wrap_Csock_GetSSL, METH_VARARGS, NULL}, { (char *)"Csock_SetSSL", _wrap_Csock_SetSSL, METH_VARARGS, NULL}, { (char *)"Csock_HasWriteBuffer", _wrap_Csock_HasWriteBuffer, METH_VARARGS, NULL}, { (char *)"Csock_ClearWriteBuffer", _wrap_Csock_ClearWriteBuffer, METH_VARARGS, NULL}, { (char *)"Csock_SslIsEstablished", _wrap_Csock_SslIsEstablished, METH_VARARGS, NULL}, { (char *)"Csock_ConnectInetd", _wrap_Csock_ConnectInetd, METH_VARARGS, NULL}, { (char *)"Csock_ConnectFD", _wrap_Csock_ConnectFD, METH_VARARGS, NULL}, { (char *)"Csock_SetParentSockName", _wrap_Csock_SetParentSockName, METH_VARARGS, NULL}, { (char *)"Csock_GetParentSockName", _wrap_Csock_GetParentSockName, METH_VARARGS, NULL}, { (char *)"Csock_SetRate", _wrap_Csock_SetRate, METH_VARARGS, NULL}, { (char *)"Csock_GetRateBytes", _wrap_Csock_GetRateBytes, METH_VARARGS, NULL}, { (char *)"Csock_GetRateTime", _wrap_Csock_GetRateTime, METH_VARARGS, NULL}, { (char *)"Csock_Connected", _wrap_Csock_Connected, METH_VARARGS, NULL}, { (char *)"Csock_Disconnected", _wrap_Csock_Disconnected, METH_VARARGS, NULL}, { (char *)"Csock_Timeout", _wrap_Csock_Timeout, METH_VARARGS, NULL}, { (char *)"Csock_ReadData", _wrap_Csock_ReadData, METH_VARARGS, NULL}, { (char *)"Csock_ReadLine", _wrap_Csock_ReadLine, METH_VARARGS, NULL}, { (char *)"Csock_EnableReadLine", _wrap_Csock_EnableReadLine, METH_VARARGS, NULL}, { (char *)"Csock_DisableReadLine", _wrap_Csock_DisableReadLine, METH_VARARGS, NULL}, { (char *)"Csock_HasReadLine", _wrap_Csock_HasReadLine, METH_VARARGS, NULL}, { (char *)"Csock_ReachedMaxBuffer", _wrap_Csock_ReachedMaxBuffer, METH_VARARGS, NULL}, { (char *)"Csock_SockError", _wrap_Csock_SockError, METH_VARARGS, NULL}, { (char *)"Csock_ConnectionFrom", _wrap_Csock_ConnectionFrom, METH_VARARGS, NULL}, { (char *)"Csock_Listening", _wrap_Csock_Listening, METH_VARARGS, NULL}, { (char *)"Csock_ConnectionRefused", _wrap_Csock_ConnectionRefused, METH_VARARGS, NULL}, { (char *)"Csock_ReadPaused", _wrap_Csock_ReadPaused, METH_VARARGS, NULL}, { (char *)"Csock_GetTimeSinceLastDataTransaction", _wrap_Csock_GetTimeSinceLastDataTransaction, METH_VARARGS, NULL}, { (char *)"Csock_GetLastCheckTimeout", _wrap_Csock_GetLastCheckTimeout, METH_VARARGS, NULL}, { (char *)"Csock_GetNextCheckTimeout", _wrap_Csock_GetNextCheckTimeout, METH_VARARGS, NULL}, { (char *)"Csock_GetPending", _wrap_Csock_GetPending, METH_VARARGS, NULL}, { (char *)"Csock_GetConState", _wrap_Csock_GetConState, METH_VARARGS, NULL}, { (char *)"Csock_SetConState", _wrap_Csock_SetConState, METH_VARARGS, NULL}, { (char *)"Csock_CreateSocksFD", _wrap_Csock_CreateSocksFD, METH_VARARGS, NULL}, { (char *)"Csock_CloseSocksFD", _wrap_Csock_CloseSocksFD, METH_VARARGS, NULL}, { (char *)"Csock_GetBindHost", _wrap_Csock_GetBindHost, METH_VARARGS, NULL}, { (char *)"Csock_SetBindHost", _wrap_Csock_SetBindHost, METH_VARARGS, NULL}, { (char *)"Csock_DNSLookup", _wrap_Csock_DNSLookup, METH_VARARGS, NULL}, { (char *)"Csock_SetupVHost", _wrap_Csock_SetupVHost, METH_VARARGS, NULL}, { (char *)"Csock_GetIPv6", _wrap_Csock_GetIPv6, METH_VARARGS, NULL}, { (char *)"Csock_SetIPv6", _wrap_Csock_SetIPv6, METH_VARARGS, NULL}, { (char *)"Csock_SetAFRequire", _wrap_Csock_SetAFRequire, METH_VARARGS, NULL}, { (char *)"Csock_AllowWrite", _wrap_Csock_AllowWrite, METH_VARARGS, NULL}, { (char *)"Csock_SetSkipConnect", _wrap_Csock_SetSkipConnect, METH_VARARGS, NULL}, { (char *)"Csock_GetAddrInfo", _wrap_Csock_GetAddrInfo, METH_VARARGS, NULL}, { (char *)"Csock_ConvertAddress", _wrap_Csock_ConvertAddress, METH_VARARGS, NULL}, { (char *)"Csock_GetMaxConns", _wrap_Csock_GetMaxConns, METH_VARARGS, NULL}, { (char *)"Csock_WriteBytes", _wrap_Csock_WriteBytes, METH_VARARGS, NULL}, { (char *)"Csock_swigregister", Csock_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSConnection", _wrap_new_CSConnection, METH_VARARGS, NULL}, { (char *)"delete_CSConnection", _wrap_delete_CSConnection, METH_VARARGS, NULL}, { (char *)"CSConnection_GetHostname", _wrap_CSConnection_GetHostname, METH_VARARGS, NULL}, { (char *)"CSConnection_GetSockName", _wrap_CSConnection_GetSockName, METH_VARARGS, NULL}, { (char *)"CSConnection_GetBindHost", _wrap_CSConnection_GetBindHost, METH_VARARGS, NULL}, { (char *)"CSConnection_GetPort", _wrap_CSConnection_GetPort, METH_VARARGS, NULL}, { (char *)"CSConnection_GetTimeout", _wrap_CSConnection_GetTimeout, METH_VARARGS, NULL}, { (char *)"CSConnection_GetIsSSL", _wrap_CSConnection_GetIsSSL, METH_VARARGS, NULL}, { (char *)"CSConnection_GetAFRequire", _wrap_CSConnection_GetAFRequire, METH_VARARGS, NULL}, { (char *)"CSConnection_SetHostname", _wrap_CSConnection_SetHostname, METH_VARARGS, NULL}, { (char *)"CSConnection_SetSockName", _wrap_CSConnection_SetSockName, METH_VARARGS, NULL}, { (char *)"CSConnection_SetBindHost", _wrap_CSConnection_SetBindHost, METH_VARARGS, NULL}, { (char *)"CSConnection_SetPort", _wrap_CSConnection_SetPort, METH_VARARGS, NULL}, { (char *)"CSConnection_SetTimeout", _wrap_CSConnection_SetTimeout, METH_VARARGS, NULL}, { (char *)"CSConnection_SetIsSSL", _wrap_CSConnection_SetIsSSL, METH_VARARGS, NULL}, { (char *)"CSConnection_SetAFRequire", _wrap_CSConnection_SetAFRequire, METH_VARARGS, NULL}, { (char *)"CSConnection_swigregister", CSConnection_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSSSLConnection", _wrap_new_CSSSLConnection, METH_VARARGS, NULL}, { (char *)"delete_CSSSLConnection", _wrap_delete_CSSSLConnection, METH_VARARGS, NULL}, { (char *)"CSSSLConnection_swigregister", CSSSLConnection_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSListener", _wrap_new_CSListener, METH_VARARGS, NULL}, { (char *)"delete_CSListener", _wrap_delete_CSListener, METH_VARARGS, NULL}, { (char *)"CSListener_SetDetach", _wrap_CSListener_SetDetach, METH_VARARGS, NULL}, { (char *)"CSListener_GetDetach", _wrap_CSListener_GetDetach, METH_VARARGS, NULL}, { (char *)"CSListener_GetPort", _wrap_CSListener_GetPort, METH_VARARGS, NULL}, { (char *)"CSListener_GetSockName", _wrap_CSListener_GetSockName, METH_VARARGS, NULL}, { (char *)"CSListener_GetBindHost", _wrap_CSListener_GetBindHost, METH_VARARGS, NULL}, { (char *)"CSListener_GetIsSSL", _wrap_CSListener_GetIsSSL, METH_VARARGS, NULL}, { (char *)"CSListener_GetMaxConns", _wrap_CSListener_GetMaxConns, METH_VARARGS, NULL}, { (char *)"CSListener_GetTimeout", _wrap_CSListener_GetTimeout, METH_VARARGS, NULL}, { (char *)"CSListener_GetAFRequire", _wrap_CSListener_GetAFRequire, METH_VARARGS, NULL}, { (char *)"CSListener_SetPort", _wrap_CSListener_SetPort, METH_VARARGS, NULL}, { (char *)"CSListener_SetSockName", _wrap_CSListener_SetSockName, METH_VARARGS, NULL}, { (char *)"CSListener_SetBindHost", _wrap_CSListener_SetBindHost, METH_VARARGS, NULL}, { (char *)"CSListener_SetIsSSL", _wrap_CSListener_SetIsSSL, METH_VARARGS, NULL}, { (char *)"CSListener_SetMaxConns", _wrap_CSListener_SetMaxConns, METH_VARARGS, NULL}, { (char *)"CSListener_SetTimeout", _wrap_CSListener_SetTimeout, METH_VARARGS, NULL}, { (char *)"CSListener_SetAFRequire", _wrap_CSListener_SetAFRequire, METH_VARARGS, NULL}, { (char *)"CSListener_swigregister", CSListener_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSocketManager", _wrap_new_CSocketManager, METH_VARARGS, NULL}, { (char *)"delete_CSocketManager", _wrap_delete_CSocketManager, METH_VARARGS, NULL}, { (char *)"CSocketManager_clear", _wrap_CSocketManager_clear, METH_VARARGS, NULL}, { (char *)"CSocketManager_Cleanup", _wrap_CSocketManager_Cleanup, METH_VARARGS, NULL}, { (char *)"CSocketManager_GetSockObj", _wrap_CSocketManager_GetSockObj, METH_VARARGS, NULL}, { (char *)"CSocketManager_Connect", _wrap_CSocketManager_Connect, METH_VARARGS, NULL}, { (char *)"CSocketManager_Listen", _wrap_CSocketManager_Listen, METH_VARARGS, NULL}, { (char *)"CSocketManager_HasFDs", _wrap_CSocketManager_HasFDs, METH_VARARGS, NULL}, { (char *)"CSocketManager_Loop", _wrap_CSocketManager_Loop, METH_VARARGS, NULL}, { (char *)"CSocketManager_DynamicSelectLoop", _wrap_CSocketManager_DynamicSelectLoop, METH_VARARGS, NULL}, { (char *)"CSocketManager_AddSock", _wrap_CSocketManager_AddSock, METH_VARARGS, NULL}, { (char *)"CSocketManager_FindSockByRemotePort", _wrap_CSocketManager_FindSockByRemotePort, METH_VARARGS, NULL}, { (char *)"CSocketManager_FindSockByLocalPort", _wrap_CSocketManager_FindSockByLocalPort, METH_VARARGS, NULL}, { (char *)"CSocketManager_FindSockByName", _wrap_CSocketManager_FindSockByName, METH_VARARGS, NULL}, { (char *)"CSocketManager_FindSockByFD", _wrap_CSocketManager_FindSockByFD, METH_VARARGS, NULL}, { (char *)"CSocketManager_FindSocksByName", _wrap_CSocketManager_FindSocksByName, METH_VARARGS, NULL}, { (char *)"CSocketManager_FindSocksByRemoteHost", _wrap_CSocketManager_FindSocksByRemoteHost, METH_VARARGS, NULL}, { (char *)"CSocketManager_GetErrno", _wrap_CSocketManager_GetErrno, METH_VARARGS, NULL}, { (char *)"CSocketManager_GetSelectTimeout", _wrap_CSocketManager_GetSelectTimeout, METH_VARARGS, NULL}, { (char *)"CSocketManager_SetSelectTimeout", _wrap_CSocketManager_SetSelectTimeout, METH_VARARGS, NULL}, { (char *)"CSocketManager_DelSockByAddr", _wrap_CSocketManager_DelSockByAddr, METH_VARARGS, NULL}, { (char *)"CSocketManager_DelSock", _wrap_CSocketManager_DelSock, METH_VARARGS, NULL}, { (char *)"CSocketManager_SwapSockByIdx", _wrap_CSocketManager_SwapSockByIdx, METH_VARARGS, NULL}, { (char *)"CSocketManager_SwapSockByAddr", _wrap_CSocketManager_SwapSockByAddr, METH_VARARGS, NULL}, { (char *)"CSocketManager_GetBytesRead", _wrap_CSocketManager_GetBytesRead, METH_VARARGS, NULL}, { (char *)"CSocketManager_GetBytesWritten", _wrap_CSocketManager_GetBytesWritten, METH_VARARGS, NULL}, { (char *)"CSocketManager_FDSetCheck", _wrap_CSocketManager_FDSetCheck, METH_VARARGS, NULL}, { (char *)"CSocketManager_FDHasCheck", _wrap_CSocketManager_FDHasCheck, METH_VARARGS, NULL}, { (char *)"CSocketManager_swigregister", CSocketManager_swigregister, METH_VARARGS, NULL}, { (char *)"new_ZNCSocketManager", _wrap_new_ZNCSocketManager, METH_VARARGS, NULL}, { (char *)"delete_ZNCSocketManager", _wrap_delete_ZNCSocketManager, METH_VARARGS, NULL}, { (char *)"ZNCSocketManager_GetSockObj", _wrap_ZNCSocketManager_GetSockObj, METH_VARARGS, NULL}, { (char *)"ZNCSocketManager_swigregister", ZNCSocketManager_swigregister, METH_VARARGS, NULL}, { (char *)"new_CZNCSock", _wrap_new_CZNCSock, METH_VARARGS, NULL}, { (char *)"delete_CZNCSock", _wrap_delete_CZNCSock, METH_VARARGS, NULL}, { (char *)"CZNCSock_ConvertAddress", _wrap_CZNCSock_ConvertAddress, METH_VARARGS, NULL}, { (char *)"CZNCSock_SetHostToVerifySSL", _wrap_CZNCSock_SetHostToVerifySSL, METH_VARARGS, NULL}, { (char *)"CZNCSock_GetSSLPeerFingerprint", _wrap_CZNCSock_GetSSLPeerFingerprint, METH_VARARGS, NULL}, { (char *)"CZNCSock_SetSSLTrustedPeerFingerprints", _wrap_CZNCSock_SetSSLTrustedPeerFingerprints, METH_VARARGS, NULL}, { (char *)"CZNCSock_SetEncoding", _wrap_CZNCSock_SetEncoding, METH_VARARGS, NULL}, { (char *)"CZNCSock_GetRemoteIP", _wrap_CZNCSock_GetRemoteIP, METH_VARARGS, NULL}, { (char *)"CZNCSock_swigregister", CZNCSock_swigregister, METH_VARARGS, NULL}, { (char *)"ADDR_IPV4ONLY_swigconstant", ADDR_IPV4ONLY_swigconstant, METH_VARARGS, NULL}, { (char *)"ADDR_IPV6ONLY_swigconstant", ADDR_IPV6ONLY_swigconstant, METH_VARARGS, NULL}, { (char *)"ADDR_ALL_swigconstant", ADDR_ALL_swigconstant, METH_VARARGS, NULL}, { (char *)"new_CSockManager", _wrap_new_CSockManager, METH_VARARGS, NULL}, { (char *)"delete_CSockManager", _wrap_delete_CSockManager, METH_VARARGS, NULL}, { (char *)"CSockManager_ListenHost", _wrap_CSockManager_ListenHost, METH_VARARGS, NULL}, { (char *)"CSockManager_ListenAll", _wrap_CSockManager_ListenAll, METH_VARARGS, NULL}, { (char *)"CSockManager_ListenRand", _wrap_CSockManager_ListenRand, METH_VARARGS, NULL}, { (char *)"CSockManager_ListenAllRand", _wrap_CSockManager_ListenAllRand, METH_VARARGS, NULL}, { (char *)"CSockManager_Connect", _wrap_CSockManager_Connect, METH_VARARGS, NULL}, { (char *)"CSockManager_GetAnonConnectionCount", _wrap_CSockManager_GetAnonConnectionCount, METH_VARARGS, NULL}, { (char *)"CSockManager_swigregister", CSockManager_swigregister, METH_VARARGS, NULL}, { (char *)"new_CSocket", _wrap_new_CSocket, METH_VARARGS, NULL}, { (char *)"delete_CSocket", _wrap_delete_CSocket, METH_VARARGS, NULL}, { (char *)"CSocket_ReachedMaxBuffer", _wrap_CSocket_ReachedMaxBuffer, METH_VARARGS, NULL}, { (char *)"CSocket_SockError", _wrap_CSocket_SockError, METH_VARARGS, NULL}, { (char *)"CSocket_ConnectionFrom", _wrap_CSocket_ConnectionFrom, METH_VARARGS, NULL}, { (char *)"CSocket_Connect", _wrap_CSocket_Connect, METH_VARARGS, NULL}, { (char *)"CSocket_Listen", _wrap_CSocket_Listen, METH_VARARGS, NULL}, { (char *)"CSocket_GetModule", _wrap_CSocket_GetModule, METH_VARARGS, NULL}, { (char *)"CSocket_swigregister", CSocket_swigregister, METH_VARARGS, NULL}, { (char *)"new_CIRCSocket", _wrap_new_CIRCSocket, METH_VARARGS, NULL}, { (char *)"delete_CIRCSocket", _wrap_delete_CIRCSocket, METH_VARARGS, NULL}, { (char *)"CIRCSocket_swigregister", CIRCSocket_swigregister, METH_VARARGS, NULL}, { (char *)"new_CFile", _wrap_new_CFile, METH_VARARGS, NULL}, { (char *)"delete_CFile", _wrap_delete_CFile, METH_VARARGS, NULL}, { (char *)"CFile_SetFileName", _wrap_CFile_SetFileName, METH_VARARGS, NULL}, { (char *)"CFile_IsReg", _wrap_CFile_IsReg, METH_VARARGS, NULL}, { (char *)"CFile_IsDir", _wrap_CFile_IsDir, METH_VARARGS, NULL}, { (char *)"CFile_IsChr", _wrap_CFile_IsChr, METH_VARARGS, NULL}, { (char *)"CFile_IsBlk", _wrap_CFile_IsBlk, METH_VARARGS, NULL}, { (char *)"CFile_IsFifo", _wrap_CFile_IsFifo, METH_VARARGS, NULL}, { (char *)"CFile_IsLnk", _wrap_CFile_IsLnk, METH_VARARGS, NULL}, { (char *)"CFile_IsSock", _wrap_CFile_IsSock, METH_VARARGS, NULL}, { (char *)"CFile_FType", _wrap_CFile_FType, METH_VARARGS, NULL}, { (char *)"CFile_Exists", _wrap_CFile_Exists, METH_VARARGS, NULL}, { (char *)"CFile_GetSize", _wrap_CFile_GetSize, METH_VARARGS, NULL}, { (char *)"CFile_GetATime", _wrap_CFile_GetATime, METH_VARARGS, NULL}, { (char *)"CFile_GetMTime", _wrap_CFile_GetMTime, METH_VARARGS, NULL}, { (char *)"CFile_GetCTime", _wrap_CFile_GetCTime, METH_VARARGS, NULL}, { (char *)"CFile_GetUID", _wrap_CFile_GetUID, METH_VARARGS, NULL}, { (char *)"CFile_GetGID", _wrap_CFile_GetGID, METH_VARARGS, NULL}, { (char *)"CFile_GetInfo", _wrap_CFile_GetInfo, METH_VARARGS, NULL}, { (char *)"CFile_Delete", _wrap_CFile_Delete, METH_VARARGS, NULL}, { (char *)"CFile_Move", _wrap_CFile_Move, METH_VARARGS, NULL}, { (char *)"CFile_Copy", _wrap_CFile_Copy, METH_VARARGS, NULL}, { (char *)"CFile_Chmod", _wrap_CFile_Chmod, METH_VARARGS, NULL}, { (char *)"CFile_Seek", _wrap_CFile_Seek, METH_VARARGS, NULL}, { (char *)"CFile_Truncate", _wrap_CFile_Truncate, METH_VARARGS, NULL}, { (char *)"CFile_Sync", _wrap_CFile_Sync, METH_VARARGS, NULL}, { (char *)"CFile_Open", _wrap_CFile_Open, METH_VARARGS, NULL}, { (char *)"CFile_Read", _wrap_CFile_Read, METH_VARARGS, NULL}, { (char *)"CFile_ReadLine", _wrap_CFile_ReadLine, METH_VARARGS, NULL}, { (char *)"CFile_ReadFile", _wrap_CFile_ReadFile, METH_VARARGS, NULL}, { (char *)"CFile_Write", _wrap_CFile_Write, METH_VARARGS, NULL}, { (char *)"CFile_Close", _wrap_CFile_Close, METH_VARARGS, NULL}, { (char *)"CFile_ClearBuffer", _wrap_CFile_ClearBuffer, METH_VARARGS, NULL}, { (char *)"CFile_TryExLock", _wrap_CFile_TryExLock, METH_VARARGS, NULL}, { (char *)"CFile_ExLock", _wrap_CFile_ExLock, METH_VARARGS, NULL}, { (char *)"CFile_UnLock", _wrap_CFile_UnLock, METH_VARARGS, NULL}, { (char *)"CFile_IsOpen", _wrap_CFile_IsOpen, METH_VARARGS, NULL}, { (char *)"CFile_GetLongName", _wrap_CFile_GetLongName, METH_VARARGS, NULL}, { (char *)"CFile_GetShortName", _wrap_CFile_GetShortName, METH_VARARGS, NULL}, { (char *)"CFile_GetDir", _wrap_CFile_GetDir, METH_VARARGS, NULL}, { (char *)"CFile_HadError", _wrap_CFile_HadError, METH_VARARGS, NULL}, { (char *)"CFile_ResetError", _wrap_CFile_ResetError, METH_VARARGS, NULL}, { (char *)"CFile_InitHomePath", _wrap_CFile_InitHomePath, METH_VARARGS, NULL}, { (char *)"CFile_GetHomePath", _wrap_CFile_GetHomePath, METH_VARARGS, NULL}, { (char *)"CFile_swigregister", CFile_swigregister, METH_VARARGS, NULL}, { (char *)"new_CDir", _wrap_new_CDir, METH_VARARGS, NULL}, { (char *)"delete_CDir", _wrap_delete_CDir, METH_VARARGS, NULL}, { (char *)"CDir_CleanUp", _wrap_CDir_CleanUp, METH_VARARGS, NULL}, { (char *)"CDir_Fill", _wrap_CDir_Fill, METH_VARARGS, NULL}, { (char *)"CDir_FillByWildcard", _wrap_CDir_FillByWildcard, METH_VARARGS, NULL}, { (char *)"CDir_Chmod", _wrap_CDir_Chmod, METH_VARARGS, NULL}, { (char *)"CDir_Delete", _wrap_CDir_Delete, METH_VARARGS, NULL}, { (char *)"CDir_GetSortAttr", _wrap_CDir_GetSortAttr, METH_VARARGS, NULL}, { (char *)"CDir_IsDescending", _wrap_CDir_IsDescending, METH_VARARGS, NULL}, { (char *)"CDir_CheckPathPrefix", _wrap_CDir_CheckPathPrefix, METH_VARARGS, NULL}, { (char *)"CDir_ChangeDir", _wrap_CDir_ChangeDir, METH_VARARGS, NULL}, { (char *)"CDir_MakeDir", _wrap_CDir_MakeDir, METH_VARARGS, NULL}, { (char *)"CDir_GetCWD", _wrap_CDir_GetCWD, METH_VARARGS, NULL}, { (char *)"CDir_swigregister", CDir_swigregister, METH_VARARGS, NULL}, { (char *)"new_CTimer", _wrap_new_CTimer, METH_VARARGS, NULL}, { (char *)"delete_CTimer", _wrap_delete_CTimer, METH_VARARGS, NULL}, { (char *)"CTimer_SetModule", _wrap_CTimer_SetModule, METH_VARARGS, NULL}, { (char *)"CTimer_SetDescription", _wrap_CTimer_SetDescription, METH_VARARGS, NULL}, { (char *)"CTimer_GetModule", _wrap_CTimer_GetModule, METH_VARARGS, NULL}, { (char *)"CTimer_GetDescription", _wrap_CTimer_GetDescription, METH_VARARGS, NULL}, { (char *)"CTimer_swigregister", CTimer_swigregister, METH_VARARGS, NULL}, { (char *)"new_CFPTimer", _wrap_new_CFPTimer, METH_VARARGS, NULL}, { (char *)"delete_CFPTimer", _wrap_delete_CFPTimer, METH_VARARGS, NULL}, { (char *)"CFPTimer_SetFPCallback", _wrap_CFPTimer_SetFPCallback, METH_VARARGS, NULL}, { (char *)"CFPTimer_swigregister", CFPTimer_swigregister, METH_VARARGS, NULL}, { (char *)"new_CModInfo", _wrap_new_CModInfo, METH_VARARGS, NULL}, { (char *)"delete_CModInfo", _wrap_delete_CModInfo, METH_VARARGS, NULL}, { (char *)"CModInfo___lt__", _wrap_CModInfo___lt__, METH_VARARGS, NULL}, { (char *)"CModInfo_SupportsType", _wrap_CModInfo_SupportsType, METH_VARARGS, NULL}, { (char *)"CModInfo_AddType", _wrap_CModInfo_AddType, METH_VARARGS, NULL}, { (char *)"CModInfo_ModuleTypeToString", _wrap_CModInfo_ModuleTypeToString, METH_VARARGS, NULL}, { (char *)"CModInfo_GetName", _wrap_CModInfo_GetName, METH_VARARGS, NULL}, { (char *)"CModInfo_GetPath", _wrap_CModInfo_GetPath, METH_VARARGS, NULL}, { (char *)"CModInfo_GetDescription", _wrap_CModInfo_GetDescription, METH_VARARGS, NULL}, { (char *)"CModInfo_GetWikiPage", _wrap_CModInfo_GetWikiPage, METH_VARARGS, NULL}, { (char *)"CModInfo_GetArgsHelpText", _wrap_CModInfo_GetArgsHelpText, METH_VARARGS, NULL}, { (char *)"CModInfo_GetHasArgs", _wrap_CModInfo_GetHasArgs, METH_VARARGS, NULL}, { (char *)"CModInfo_GetLoader", _wrap_CModInfo_GetLoader, METH_VARARGS, NULL}, { (char *)"CModInfo_GetDefaultType", _wrap_CModInfo_GetDefaultType, METH_VARARGS, NULL}, { (char *)"CModInfo_SetName", _wrap_CModInfo_SetName, METH_VARARGS, NULL}, { (char *)"CModInfo_SetPath", _wrap_CModInfo_SetPath, METH_VARARGS, NULL}, { (char *)"CModInfo_SetDescription", _wrap_CModInfo_SetDescription, METH_VARARGS, NULL}, { (char *)"CModInfo_SetWikiPage", _wrap_CModInfo_SetWikiPage, METH_VARARGS, NULL}, { (char *)"CModInfo_SetArgsHelpText", _wrap_CModInfo_SetArgsHelpText, METH_VARARGS, NULL}, { (char *)"CModInfo_SetHasArgs", _wrap_CModInfo_SetHasArgs, METH_VARARGS, NULL}, { (char *)"CModInfo_SetLoader", _wrap_CModInfo_SetLoader, METH_VARARGS, NULL}, { (char *)"CModInfo_SetDefaultType", _wrap_CModInfo_SetDefaultType, METH_VARARGS, NULL}, { (char *)"CModInfo_swigregister", CModInfo_swigregister, METH_VARARGS, NULL}, { (char *)"new_CModCommand", _wrap_new_CModCommand, METH_VARARGS, NULL}, { (char *)"CModCommand_InitHelp", _wrap_CModCommand_InitHelp, METH_VARARGS, NULL}, { (char *)"CModCommand_AddHelp", _wrap_CModCommand_AddHelp, METH_VARARGS, NULL}, { (char *)"CModCommand_GetCommand", _wrap_CModCommand_GetCommand, METH_VARARGS, NULL}, { (char *)"CModCommand_GetFunction", _wrap_CModCommand_GetFunction, METH_VARARGS, NULL}, { (char *)"CModCommand_GetArgs", _wrap_CModCommand_GetArgs, METH_VARARGS, NULL}, { (char *)"CModCommand_GetDescription", _wrap_CModCommand_GetDescription, METH_VARARGS, NULL}, { (char *)"CModCommand_Call", _wrap_CModCommand_Call, METH_VARARGS, NULL}, { (char *)"delete_CModCommand", _wrap_delete_CModCommand, METH_VARARGS, NULL}, { (char *)"CModCommand_swigregister", CModCommand_swigregister, METH_VARARGS, NULL}, { (char *)"new_CModule", _wrap_new_CModule, METH_VARARGS, NULL}, { (char *)"delete_CModule", _wrap_delete_CModule, METH_VARARGS, NULL}, { (char *)"CModule_SetUser", _wrap_CModule_SetUser, METH_VARARGS, NULL}, { (char *)"CModule_SetNetwork", _wrap_CModule_SetNetwork, METH_VARARGS, NULL}, { (char *)"CModule_SetClient", _wrap_CModule_SetClient, METH_VARARGS, NULL}, { (char *)"CModule_Unload", _wrap_CModule_Unload, METH_VARARGS, NULL}, { (char *)"CModule_OnLoad", _wrap_CModule_OnLoad, METH_VARARGS, NULL}, { (char *)"CModule_OnBoot", _wrap_CModule_OnBoot, METH_VARARGS, NULL}, { (char *)"CModule_WebRequiresLogin", _wrap_CModule_WebRequiresLogin, METH_VARARGS, NULL}, { (char *)"CModule_WebRequiresAdmin", _wrap_CModule_WebRequiresAdmin, METH_VARARGS, NULL}, { (char *)"CModule_GetWebMenuTitle", _wrap_CModule_GetWebMenuTitle, METH_VARARGS, NULL}, { (char *)"CModule_GetWebPath", _wrap_CModule_GetWebPath, METH_VARARGS, NULL}, { (char *)"CModule_GetWebFilesPath", _wrap_CModule_GetWebFilesPath, METH_VARARGS, NULL}, { (char *)"CModule_OnWebPreRequest", _wrap_CModule_OnWebPreRequest, METH_VARARGS, NULL}, { (char *)"CModule_OnWebRequest", _wrap_CModule_OnWebRequest, METH_VARARGS, NULL}, { (char *)"CModule_AddSubPage", _wrap_CModule_AddSubPage, METH_VARARGS, NULL}, { (char *)"CModule_ClearSubPages", _wrap_CModule_ClearSubPages, METH_VARARGS, NULL}, { (char *)"CModule_GetSubPages", _wrap_CModule_GetSubPages, METH_VARARGS, NULL}, { (char *)"CModule_OnEmbeddedWebRequest", _wrap_CModule_OnEmbeddedWebRequest, METH_VARARGS, NULL}, { (char *)"CModule_OnPreRehash", _wrap_CModule_OnPreRehash, METH_VARARGS, NULL}, { (char *)"CModule_OnPostRehash", _wrap_CModule_OnPostRehash, METH_VARARGS, NULL}, { (char *)"CModule_OnIRCDisconnected", _wrap_CModule_OnIRCDisconnected, METH_VARARGS, NULL}, { (char *)"CModule_OnIRCConnected", _wrap_CModule_OnIRCConnected, METH_VARARGS, NULL}, { (char *)"CModule_OnIRCConnecting", _wrap_CModule_OnIRCConnecting, METH_VARARGS, NULL}, { (char *)"CModule_OnIRCConnectionError", _wrap_CModule_OnIRCConnectionError, METH_VARARGS, NULL}, { (char *)"CModule_OnIRCRegistration", _wrap_CModule_OnIRCRegistration, METH_VARARGS, NULL}, { (char *)"CModule_OnBroadcast", _wrap_CModule_OnBroadcast, METH_VARARGS, NULL}, { (char *)"CModule_OnChanPermission2", _wrap_CModule_OnChanPermission2, METH_VARARGS, NULL}, { (char *)"CModule_OnChanPermission", _wrap_CModule_OnChanPermission, METH_VARARGS, NULL}, { (char *)"CModule_OnOp2", _wrap_CModule_OnOp2, METH_VARARGS, NULL}, { (char *)"CModule_OnOp", _wrap_CModule_OnOp, METH_VARARGS, NULL}, { (char *)"CModule_OnDeop2", _wrap_CModule_OnDeop2, METH_VARARGS, NULL}, { (char *)"CModule_OnDeop", _wrap_CModule_OnDeop, METH_VARARGS, NULL}, { (char *)"CModule_OnVoice2", _wrap_CModule_OnVoice2, METH_VARARGS, NULL}, { (char *)"CModule_OnVoice", _wrap_CModule_OnVoice, METH_VARARGS, NULL}, { (char *)"CModule_OnDevoice2", _wrap_CModule_OnDevoice2, METH_VARARGS, NULL}, { (char *)"CModule_OnDevoice", _wrap_CModule_OnDevoice, METH_VARARGS, NULL}, { (char *)"CModule_OnMode2", _wrap_CModule_OnMode2, METH_VARARGS, NULL}, { (char *)"CModule_OnMode", _wrap_CModule_OnMode, METH_VARARGS, NULL}, { (char *)"CModule_OnRawMode2", _wrap_CModule_OnRawMode2, METH_VARARGS, NULL}, { (char *)"CModule_OnRawMode", _wrap_CModule_OnRawMode, METH_VARARGS, NULL}, { (char *)"CModule_OnRaw", _wrap_CModule_OnRaw, METH_VARARGS, NULL}, { (char *)"CModule_OnStatusCommand", _wrap_CModule_OnStatusCommand, METH_VARARGS, NULL}, { (char *)"CModule_OnModCommand", _wrap_CModule_OnModCommand, METH_VARARGS, NULL}, { (char *)"CModule_OnUnknownModCommand", _wrap_CModule_OnUnknownModCommand, METH_VARARGS, NULL}, { (char *)"CModule_OnModNotice", _wrap_CModule_OnModNotice, METH_VARARGS, NULL}, { (char *)"CModule_OnModCTCP", _wrap_CModule_OnModCTCP, METH_VARARGS, NULL}, { (char *)"CModule_OnQuit", _wrap_CModule_OnQuit, METH_VARARGS, NULL}, { (char *)"CModule_OnNick", _wrap_CModule_OnNick, METH_VARARGS, NULL}, { (char *)"CModule_OnKick", _wrap_CModule_OnKick, METH_VARARGS, NULL}, { (char *)"CModule_OnJoining", _wrap_CModule_OnJoining, METH_VARARGS, NULL}, { (char *)"CModule_OnJoin", _wrap_CModule_OnJoin, METH_VARARGS, NULL}, { (char *)"CModule_OnPart", _wrap_CModule_OnPart, METH_VARARGS, NULL}, { (char *)"CModule_OnInvite", _wrap_CModule_OnInvite, METH_VARARGS, NULL}, { (char *)"CModule_OnChanBufferStarting", _wrap_CModule_OnChanBufferStarting, METH_VARARGS, NULL}, { (char *)"CModule_OnChanBufferEnding", _wrap_CModule_OnChanBufferEnding, METH_VARARGS, NULL}, { (char *)"CModule_OnChanBufferPlayLine2", _wrap_CModule_OnChanBufferPlayLine2, METH_VARARGS, NULL}, { (char *)"CModule_OnChanBufferPlayLine", _wrap_CModule_OnChanBufferPlayLine, METH_VARARGS, NULL}, { (char *)"CModule_OnPrivBufferPlayLine2", _wrap_CModule_OnPrivBufferPlayLine2, METH_VARARGS, NULL}, { (char *)"CModule_OnPrivBufferPlayLine", _wrap_CModule_OnPrivBufferPlayLine, METH_VARARGS, NULL}, { (char *)"CModule_OnClientLogin", _wrap_CModule_OnClientLogin, METH_VARARGS, NULL}, { (char *)"CModule_OnClientDisconnect", _wrap_CModule_OnClientDisconnect, METH_VARARGS, NULL}, { (char *)"CModule_OnUserRaw", _wrap_CModule_OnUserRaw, METH_VARARGS, NULL}, { (char *)"CModule_OnUserCTCPReply", _wrap_CModule_OnUserCTCPReply, METH_VARARGS, NULL}, { (char *)"CModule_OnUserCTCP", _wrap_CModule_OnUserCTCP, METH_VARARGS, NULL}, { (char *)"CModule_OnUserAction", _wrap_CModule_OnUserAction, METH_VARARGS, NULL}, { (char *)"CModule_OnUserMsg", _wrap_CModule_OnUserMsg, METH_VARARGS, NULL}, { (char *)"CModule_OnUserNotice", _wrap_CModule_OnUserNotice, METH_VARARGS, NULL}, { (char *)"CModule_OnUserJoin", _wrap_CModule_OnUserJoin, METH_VARARGS, NULL}, { (char *)"CModule_OnUserPart", _wrap_CModule_OnUserPart, METH_VARARGS, NULL}, { (char *)"CModule_OnUserTopic", _wrap_CModule_OnUserTopic, METH_VARARGS, NULL}, { (char *)"CModule_OnUserTopicRequest", _wrap_CModule_OnUserTopicRequest, METH_VARARGS, NULL}, { (char *)"CModule_OnCTCPReply", _wrap_CModule_OnCTCPReply, METH_VARARGS, NULL}, { (char *)"CModule_OnPrivCTCP", _wrap_CModule_OnPrivCTCP, METH_VARARGS, NULL}, { (char *)"CModule_OnChanCTCP", _wrap_CModule_OnChanCTCP, METH_VARARGS, NULL}, { (char *)"CModule_OnPrivAction", _wrap_CModule_OnPrivAction, METH_VARARGS, NULL}, { (char *)"CModule_OnChanAction", _wrap_CModule_OnChanAction, METH_VARARGS, NULL}, { (char *)"CModule_OnPrivMsg", _wrap_CModule_OnPrivMsg, METH_VARARGS, NULL}, { (char *)"CModule_OnChanMsg", _wrap_CModule_OnChanMsg, METH_VARARGS, NULL}, { (char *)"CModule_OnPrivNotice", _wrap_CModule_OnPrivNotice, METH_VARARGS, NULL}, { (char *)"CModule_OnChanNotice", _wrap_CModule_OnChanNotice, METH_VARARGS, NULL}, { (char *)"CModule_OnTopic", _wrap_CModule_OnTopic, METH_VARARGS, NULL}, { (char *)"CModule_OnServerCapAvailable", _wrap_CModule_OnServerCapAvailable, METH_VARARGS, NULL}, { (char *)"CModule_OnServerCapResult", _wrap_CModule_OnServerCapResult, METH_VARARGS, NULL}, { (char *)"CModule_OnTimerAutoJoin", _wrap_CModule_OnTimerAutoJoin, METH_VARARGS, NULL}, { (char *)"CModule_OnAddNetwork", _wrap_CModule_OnAddNetwork, METH_VARARGS, NULL}, { (char *)"CModule_OnDeleteNetwork", _wrap_CModule_OnDeleteNetwork, METH_VARARGS, NULL}, { (char *)"CModule_OnSendToClient", _wrap_CModule_OnSendToClient, METH_VARARGS, NULL}, { (char *)"CModule_OnSendToIRC", _wrap_CModule_OnSendToIRC, METH_VARARGS, NULL}, { (char *)"CModule_GetDLL", _wrap_CModule_GetDLL, METH_VARARGS, NULL}, { (char *)"CModule_GetCoreVersion", _wrap_CModule_GetCoreVersion, METH_VARARGS, NULL}, { (char *)"CModule_PutIRC", _wrap_CModule_PutIRC, METH_VARARGS, NULL}, { (char *)"CModule_PutUser", _wrap_CModule_PutUser, METH_VARARGS, NULL}, { (char *)"CModule_PutStatus", _wrap_CModule_PutStatus, METH_VARARGS, NULL}, { (char *)"CModule_PutModule", _wrap_CModule_PutModule, METH_VARARGS, NULL}, { (char *)"CModule_PutModNotice", _wrap_CModule_PutModNotice, METH_VARARGS, NULL}, { (char *)"CModule_GetModName", _wrap_CModule_GetModName, METH_VARARGS, NULL}, { (char *)"CModule_GetModNick", _wrap_CModule_GetModNick, METH_VARARGS, NULL}, { (char *)"CModule_GetModDataDir", _wrap_CModule_GetModDataDir, METH_VARARGS, NULL}, { (char *)"CModule_AddTimer", _wrap_CModule_AddTimer, METH_VARARGS, NULL}, { (char *)"CModule_RemTimer", _wrap_CModule_RemTimer, METH_VARARGS, NULL}, { (char *)"CModule_UnlinkTimer", _wrap_CModule_UnlinkTimer, METH_VARARGS, NULL}, { (char *)"CModule_FindTimer", _wrap_CModule_FindTimer, METH_VARARGS, NULL}, { (char *)"CModule_BeginTimers", _wrap_CModule_BeginTimers, METH_VARARGS, NULL}, { (char *)"CModule_EndTimers", _wrap_CModule_EndTimers, METH_VARARGS, NULL}, { (char *)"CModule_ListTimers", _wrap_CModule_ListTimers, METH_VARARGS, NULL}, { (char *)"CModule_AddSocket", _wrap_CModule_AddSocket, METH_VARARGS, NULL}, { (char *)"CModule_RemSocket", _wrap_CModule_RemSocket, METH_VARARGS, NULL}, { (char *)"CModule_UnlinkSocket", _wrap_CModule_UnlinkSocket, METH_VARARGS, NULL}, { (char *)"CModule_FindSocket", _wrap_CModule_FindSocket, METH_VARARGS, NULL}, { (char *)"CModule_BeginSockets", _wrap_CModule_BeginSockets, METH_VARARGS, NULL}, { (char *)"CModule_EndSockets", _wrap_CModule_EndSockets, METH_VARARGS, NULL}, { (char *)"CModule_ListSockets", _wrap_CModule_ListSockets, METH_VARARGS, NULL}, { (char *)"CModule_AddHelpCommand", _wrap_CModule_AddHelpCommand, METH_VARARGS, NULL}, { (char *)"CModule_AddCommand", _wrap_CModule_AddCommand, METH_VARARGS, NULL}, { (char *)"CModule_RemCommand", _wrap_CModule_RemCommand, METH_VARARGS, NULL}, { (char *)"CModule_FindCommand", _wrap_CModule_FindCommand, METH_VARARGS, NULL}, { (char *)"CModule_HandleCommand", _wrap_CModule_HandleCommand, METH_VARARGS, NULL}, { (char *)"CModule_HandleHelpCommand", _wrap_CModule_HandleHelpCommand, METH_VARARGS, NULL}, { (char *)"CModule_LoadRegistry", _wrap_CModule_LoadRegistry, METH_VARARGS, NULL}, { (char *)"CModule_SaveRegistry", _wrap_CModule_SaveRegistry, METH_VARARGS, NULL}, { (char *)"CModule_MoveRegistry", _wrap_CModule_MoveRegistry, METH_VARARGS, NULL}, { (char *)"CModule_SetNV", _wrap_CModule_SetNV, METH_VARARGS, NULL}, { (char *)"CModule_GetNV", _wrap_CModule_GetNV, METH_VARARGS, NULL}, { (char *)"CModule_FindNV", _wrap_CModule_FindNV, METH_VARARGS, NULL}, { (char *)"CModule_EndNV", _wrap_CModule_EndNV, METH_VARARGS, NULL}, { (char *)"CModule_BeginNV", _wrap_CModule_BeginNV, METH_VARARGS, NULL}, { (char *)"CModule_DelNV", _wrap_CModule_DelNV, METH_VARARGS, NULL}, { (char *)"CModule_ClearNV", _wrap_CModule_ClearNV, METH_VARARGS, NULL}, { (char *)"CModule_GetSavePath", _wrap_CModule_GetSavePath, METH_VARARGS, NULL}, { (char *)"CModule_ExpandString", _wrap_CModule_ExpandString, METH_VARARGS, NULL}, { (char *)"CModule_SetType", _wrap_CModule_SetType, METH_VARARGS, NULL}, { (char *)"CModule_SetDescription", _wrap_CModule_SetDescription, METH_VARARGS, NULL}, { (char *)"CModule_SetModPath", _wrap_CModule_SetModPath, METH_VARARGS, NULL}, { (char *)"CModule_SetArgs", _wrap_CModule_SetArgs, METH_VARARGS, NULL}, { (char *)"CModule_GetType", _wrap_CModule_GetType, METH_VARARGS, NULL}, { (char *)"CModule_GetDescription", _wrap_CModule_GetDescription, METH_VARARGS, NULL}, { (char *)"CModule_GetArgs", _wrap_CModule_GetArgs, METH_VARARGS, NULL}, { (char *)"CModule_GetModPath", _wrap_CModule_GetModPath, METH_VARARGS, NULL}, { (char *)"CModule_GetUser", _wrap_CModule_GetUser, METH_VARARGS, NULL}, { (char *)"CModule_GetNetwork", _wrap_CModule_GetNetwork, METH_VARARGS, NULL}, { (char *)"CModule_GetClient", _wrap_CModule_GetClient, METH_VARARGS, NULL}, { (char *)"CModule_GetManager", _wrap_CModule_GetManager, METH_VARARGS, NULL}, { (char *)"CModule_OnAddUser", _wrap_CModule_OnAddUser, METH_VARARGS, NULL}, { (char *)"CModule_OnDeleteUser", _wrap_CModule_OnDeleteUser, METH_VARARGS, NULL}, { (char *)"CModule_OnClientConnect", _wrap_CModule_OnClientConnect, METH_VARARGS, NULL}, { (char *)"CModule_OnLoginAttempt", _wrap_CModule_OnLoginAttempt, METH_VARARGS, NULL}, { (char *)"CModule_OnFailedLogin", _wrap_CModule_OnFailedLogin, METH_VARARGS, NULL}, { (char *)"CModule_OnUnknownUserRaw", _wrap_CModule_OnUnknownUserRaw, METH_VARARGS, NULL}, { (char *)"CModule_OnClientCapLs", _wrap_CModule_OnClientCapLs, METH_VARARGS, NULL}, { (char *)"CModule_IsClientCapSupported", _wrap_CModule_IsClientCapSupported, METH_VARARGS, NULL}, { (char *)"CModule_OnClientCapRequest", _wrap_CModule_OnClientCapRequest, METH_VARARGS, NULL}, { (char *)"CModule_OnModuleLoading", _wrap_CModule_OnModuleLoading, METH_VARARGS, NULL}, { (char *)"CModule_OnModuleUnloading", _wrap_CModule_OnModuleUnloading, METH_VARARGS, NULL}, { (char *)"CModule_OnGetModInfo", _wrap_CModule_OnGetModInfo, METH_VARARGS, NULL}, { (char *)"CModule_OnGetAvailableMods", _wrap_CModule_OnGetAvailableMods, METH_VARARGS, NULL}, { (char *)"CModule___str__", _wrap_CModule___str__, METH_VARARGS, NULL}, { (char *)"CModule_BeginNV_", _wrap_CModule_BeginNV_, METH_VARARGS, NULL}, { (char *)"CModule_ExistsNV", _wrap_CModule_ExistsNV, METH_VARARGS, NULL}, { (char *)"CModule_swigregister", CModule_swigregister, METH_VARARGS, NULL}, { (char *)"new_CModules", _wrap_new_CModules, METH_VARARGS, NULL}, { (char *)"delete_CModules", _wrap_delete_CModules, METH_VARARGS, NULL}, { (char *)"CModules_SetUser", _wrap_CModules_SetUser, METH_VARARGS, NULL}, { (char *)"CModules_SetNetwork", _wrap_CModules_SetNetwork, METH_VARARGS, NULL}, { (char *)"CModules_SetClient", _wrap_CModules_SetClient, METH_VARARGS, NULL}, { (char *)"CModules_GetUser", _wrap_CModules_GetUser, METH_VARARGS, NULL}, { (char *)"CModules_GetNetwork", _wrap_CModules_GetNetwork, METH_VARARGS, NULL}, { (char *)"CModules_GetClient", _wrap_CModules_GetClient, METH_VARARGS, NULL}, { (char *)"CModules_UnloadAll", _wrap_CModules_UnloadAll, METH_VARARGS, NULL}, { (char *)"CModules_OnBoot", _wrap_CModules_OnBoot, METH_VARARGS, NULL}, { (char *)"CModules_OnPreRehash", _wrap_CModules_OnPreRehash, METH_VARARGS, NULL}, { (char *)"CModules_OnPostRehash", _wrap_CModules_OnPostRehash, METH_VARARGS, NULL}, { (char *)"CModules_OnIRCDisconnected", _wrap_CModules_OnIRCDisconnected, METH_VARARGS, NULL}, { (char *)"CModules_OnIRCConnected", _wrap_CModules_OnIRCConnected, METH_VARARGS, NULL}, { (char *)"CModules_OnIRCConnecting", _wrap_CModules_OnIRCConnecting, METH_VARARGS, NULL}, { (char *)"CModules_OnIRCConnectionError", _wrap_CModules_OnIRCConnectionError, METH_VARARGS, NULL}, { (char *)"CModules_OnIRCRegistration", _wrap_CModules_OnIRCRegistration, METH_VARARGS, NULL}, { (char *)"CModules_OnBroadcast", _wrap_CModules_OnBroadcast, METH_VARARGS, NULL}, { (char *)"CModules_OnChanPermission2", _wrap_CModules_OnChanPermission2, METH_VARARGS, NULL}, { (char *)"CModules_OnChanPermission", _wrap_CModules_OnChanPermission, METH_VARARGS, NULL}, { (char *)"CModules_OnOp2", _wrap_CModules_OnOp2, METH_VARARGS, NULL}, { (char *)"CModules_OnOp", _wrap_CModules_OnOp, METH_VARARGS, NULL}, { (char *)"CModules_OnDeop2", _wrap_CModules_OnDeop2, METH_VARARGS, NULL}, { (char *)"CModules_OnDeop", _wrap_CModules_OnDeop, METH_VARARGS, NULL}, { (char *)"CModules_OnVoice2", _wrap_CModules_OnVoice2, METH_VARARGS, NULL}, { (char *)"CModules_OnVoice", _wrap_CModules_OnVoice, METH_VARARGS, NULL}, { (char *)"CModules_OnDevoice2", _wrap_CModules_OnDevoice2, METH_VARARGS, NULL}, { (char *)"CModules_OnDevoice", _wrap_CModules_OnDevoice, METH_VARARGS, NULL}, { (char *)"CModules_OnRawMode2", _wrap_CModules_OnRawMode2, METH_VARARGS, NULL}, { (char *)"CModules_OnRawMode", _wrap_CModules_OnRawMode, METH_VARARGS, NULL}, { (char *)"CModules_OnMode2", _wrap_CModules_OnMode2, METH_VARARGS, NULL}, { (char *)"CModules_OnMode", _wrap_CModules_OnMode, METH_VARARGS, NULL}, { (char *)"CModules_OnRaw", _wrap_CModules_OnRaw, METH_VARARGS, NULL}, { (char *)"CModules_OnStatusCommand", _wrap_CModules_OnStatusCommand, METH_VARARGS, NULL}, { (char *)"CModules_OnModCommand", _wrap_CModules_OnModCommand, METH_VARARGS, NULL}, { (char *)"CModules_OnModNotice", _wrap_CModules_OnModNotice, METH_VARARGS, NULL}, { (char *)"CModules_OnModCTCP", _wrap_CModules_OnModCTCP, METH_VARARGS, NULL}, { (char *)"CModules_OnQuit", _wrap_CModules_OnQuit, METH_VARARGS, NULL}, { (char *)"CModules_OnNick", _wrap_CModules_OnNick, METH_VARARGS, NULL}, { (char *)"CModules_OnKick", _wrap_CModules_OnKick, METH_VARARGS, NULL}, { (char *)"CModules_OnJoining", _wrap_CModules_OnJoining, METH_VARARGS, NULL}, { (char *)"CModules_OnJoin", _wrap_CModules_OnJoin, METH_VARARGS, NULL}, { (char *)"CModules_OnPart", _wrap_CModules_OnPart, METH_VARARGS, NULL}, { (char *)"CModules_OnInvite", _wrap_CModules_OnInvite, METH_VARARGS, NULL}, { (char *)"CModules_OnChanBufferStarting", _wrap_CModules_OnChanBufferStarting, METH_VARARGS, NULL}, { (char *)"CModules_OnChanBufferEnding", _wrap_CModules_OnChanBufferEnding, METH_VARARGS, NULL}, { (char *)"CModules_OnChanBufferPlayLine2", _wrap_CModules_OnChanBufferPlayLine2, METH_VARARGS, NULL}, { (char *)"CModules_OnChanBufferPlayLine", _wrap_CModules_OnChanBufferPlayLine, METH_VARARGS, NULL}, { (char *)"CModules_OnPrivBufferPlayLine2", _wrap_CModules_OnPrivBufferPlayLine2, METH_VARARGS, NULL}, { (char *)"CModules_OnPrivBufferPlayLine", _wrap_CModules_OnPrivBufferPlayLine, METH_VARARGS, NULL}, { (char *)"CModules_OnClientLogin", _wrap_CModules_OnClientLogin, METH_VARARGS, NULL}, { (char *)"CModules_OnClientDisconnect", _wrap_CModules_OnClientDisconnect, METH_VARARGS, NULL}, { (char *)"CModules_OnUserRaw", _wrap_CModules_OnUserRaw, METH_VARARGS, NULL}, { (char *)"CModules_OnUserCTCPReply", _wrap_CModules_OnUserCTCPReply, METH_VARARGS, NULL}, { (char *)"CModules_OnUserCTCP", _wrap_CModules_OnUserCTCP, METH_VARARGS, NULL}, { (char *)"CModules_OnUserAction", _wrap_CModules_OnUserAction, METH_VARARGS, NULL}, { (char *)"CModules_OnUserMsg", _wrap_CModules_OnUserMsg, METH_VARARGS, NULL}, { (char *)"CModules_OnUserNotice", _wrap_CModules_OnUserNotice, METH_VARARGS, NULL}, { (char *)"CModules_OnUserJoin", _wrap_CModules_OnUserJoin, METH_VARARGS, NULL}, { (char *)"CModules_OnUserPart", _wrap_CModules_OnUserPart, METH_VARARGS, NULL}, { (char *)"CModules_OnUserTopic", _wrap_CModules_OnUserTopic, METH_VARARGS, NULL}, { (char *)"CModules_OnUserTopicRequest", _wrap_CModules_OnUserTopicRequest, METH_VARARGS, NULL}, { (char *)"CModules_OnCTCPReply", _wrap_CModules_OnCTCPReply, METH_VARARGS, NULL}, { (char *)"CModules_OnPrivCTCP", _wrap_CModules_OnPrivCTCP, METH_VARARGS, NULL}, { (char *)"CModules_OnChanCTCP", _wrap_CModules_OnChanCTCP, METH_VARARGS, NULL}, { (char *)"CModules_OnPrivAction", _wrap_CModules_OnPrivAction, METH_VARARGS, NULL}, { (char *)"CModules_OnChanAction", _wrap_CModules_OnChanAction, METH_VARARGS, NULL}, { (char *)"CModules_OnPrivMsg", _wrap_CModules_OnPrivMsg, METH_VARARGS, NULL}, { (char *)"CModules_OnChanMsg", _wrap_CModules_OnChanMsg, METH_VARARGS, NULL}, { (char *)"CModules_OnPrivNotice", _wrap_CModules_OnPrivNotice, METH_VARARGS, NULL}, { (char *)"CModules_OnChanNotice", _wrap_CModules_OnChanNotice, METH_VARARGS, NULL}, { (char *)"CModules_OnTopic", _wrap_CModules_OnTopic, METH_VARARGS, NULL}, { (char *)"CModules_OnTimerAutoJoin", _wrap_CModules_OnTimerAutoJoin, METH_VARARGS, NULL}, { (char *)"CModules_OnAddNetwork", _wrap_CModules_OnAddNetwork, METH_VARARGS, NULL}, { (char *)"CModules_OnDeleteNetwork", _wrap_CModules_OnDeleteNetwork, METH_VARARGS, NULL}, { (char *)"CModules_OnSendToClient", _wrap_CModules_OnSendToClient, METH_VARARGS, NULL}, { (char *)"CModules_OnSendToIRC", _wrap_CModules_OnSendToIRC, METH_VARARGS, NULL}, { (char *)"CModules_OnServerCapAvailable", _wrap_CModules_OnServerCapAvailable, METH_VARARGS, NULL}, { (char *)"CModules_OnServerCapResult", _wrap_CModules_OnServerCapResult, METH_VARARGS, NULL}, { (char *)"CModules_FindModule", _wrap_CModules_FindModule, METH_VARARGS, NULL}, { (char *)"CModules_LoadModule", _wrap_CModules_LoadModule, METH_VARARGS, NULL}, { (char *)"CModules_UnloadModule", _wrap_CModules_UnloadModule, METH_VARARGS, NULL}, { (char *)"CModules_ReloadModule", _wrap_CModules_ReloadModule, METH_VARARGS, NULL}, { (char *)"CModules_GetModInfo", _wrap_CModules_GetModInfo, METH_VARARGS, NULL}, { (char *)"CModules_GetModPathInfo", _wrap_CModules_GetModPathInfo, METH_VARARGS, NULL}, { (char *)"CModules_GetAvailableMods", _wrap_CModules_GetAvailableMods, METH_VARARGS, NULL}, { (char *)"CModules_GetDefaultMods", _wrap_CModules_GetDefaultMods, METH_VARARGS, NULL}, { (char *)"CModules_FindModPath", _wrap_CModules_FindModPath, METH_VARARGS, NULL}, { (char *)"CModules_GetModDirs", _wrap_CModules_GetModDirs, METH_VARARGS, NULL}, { (char *)"CModules_OnAddUser", _wrap_CModules_OnAddUser, METH_VARARGS, NULL}, { (char *)"CModules_OnDeleteUser", _wrap_CModules_OnDeleteUser, METH_VARARGS, NULL}, { (char *)"CModules_OnClientConnect", _wrap_CModules_OnClientConnect, METH_VARARGS, NULL}, { (char *)"CModules_OnLoginAttempt", _wrap_CModules_OnLoginAttempt, METH_VARARGS, NULL}, { (char *)"CModules_OnFailedLogin", _wrap_CModules_OnFailedLogin, METH_VARARGS, NULL}, { (char *)"CModules_OnUnknownUserRaw", _wrap_CModules_OnUnknownUserRaw, METH_VARARGS, NULL}, { (char *)"CModules_OnClientCapLs", _wrap_CModules_OnClientCapLs, METH_VARARGS, NULL}, { (char *)"CModules_IsClientCapSupported", _wrap_CModules_IsClientCapSupported, METH_VARARGS, NULL}, { (char *)"CModules_OnClientCapRequest", _wrap_CModules_OnClientCapRequest, METH_VARARGS, NULL}, { (char *)"CModules_OnModuleLoading", _wrap_CModules_OnModuleLoading, METH_VARARGS, NULL}, { (char *)"CModules_OnModuleUnloading", _wrap_CModules_OnModuleUnloading, METH_VARARGS, NULL}, { (char *)"CModules_OnGetModInfo", _wrap_CModules_OnGetModInfo, METH_VARARGS, NULL}, { (char *)"CModules_OnGetAvailableMods", _wrap_CModules_OnGetAvailableMods, METH_VARARGS, NULL}, { (char *)"CModules_removeModule", _wrap_CModules_removeModule, METH_VARARGS, NULL}, { (char *)"CModules_swigregister", CModules_swigregister, METH_VARARGS, NULL}, { (char *)"new_CNick", _wrap_new_CNick, METH_VARARGS, NULL}, { (char *)"delete_CNick", _wrap_delete_CNick, METH_VARARGS, NULL}, { (char *)"CNick_Reset", _wrap_CNick_Reset, METH_VARARGS, NULL}, { (char *)"CNick_Parse", _wrap_CNick_Parse, METH_VARARGS, NULL}, { (char *)"CNick_GetHostMask", _wrap_CNick_GetHostMask, METH_VARARGS, NULL}, { (char *)"CNick_GetCommonChans", _wrap_CNick_GetCommonChans, METH_VARARGS, NULL}, { (char *)"CNick_NickEquals", _wrap_CNick_NickEquals, METH_VARARGS, NULL}, { (char *)"CNick_SetNetwork", _wrap_CNick_SetNetwork, METH_VARARGS, NULL}, { (char *)"CNick_SetNick", _wrap_CNick_SetNick, METH_VARARGS, NULL}, { (char *)"CNick_SetIdent", _wrap_CNick_SetIdent, METH_VARARGS, NULL}, { (char *)"CNick_SetHost", _wrap_CNick_SetHost, METH_VARARGS, NULL}, { (char *)"CNick_AddPerm", _wrap_CNick_AddPerm, METH_VARARGS, NULL}, { (char *)"CNick_RemPerm", _wrap_CNick_RemPerm, METH_VARARGS, NULL}, { (char *)"CNick_GetPermStr", _wrap_CNick_GetPermStr, METH_VARARGS, NULL}, { (char *)"CNick_GetPermChar", _wrap_CNick_GetPermChar, METH_VARARGS, NULL}, { (char *)"CNick_HasPerm", _wrap_CNick_HasPerm, METH_VARARGS, NULL}, { (char *)"CNick_GetNick", _wrap_CNick_GetNick, METH_VARARGS, NULL}, { (char *)"CNick_GetIdent", _wrap_CNick_GetIdent, METH_VARARGS, NULL}, { (char *)"CNick_GetHost", _wrap_CNick_GetHost, METH_VARARGS, NULL}, { (char *)"CNick_GetNickMask", _wrap_CNick_GetNickMask, METH_VARARGS, NULL}, { (char *)"CNick_Clone", _wrap_CNick_Clone, METH_VARARGS, NULL}, { (char *)"CNick___str__", _wrap_CNick___str__, METH_VARARGS, NULL}, { (char *)"CNick___repr__", _wrap_CNick___repr__, METH_VARARGS, NULL}, { (char *)"CNick_swigregister", CNick_swigregister, METH_VARARGS, NULL}, { (char *)"new_CChan", _wrap_new_CChan, METH_VARARGS, NULL}, { (char *)"delete_CChan", _wrap_delete_CChan, METH_VARARGS, NULL}, { (char *)"CChan_Reset", _wrap_CChan_Reset, METH_VARARGS, NULL}, { (char *)"CChan_ToConfig", _wrap_CChan_ToConfig, METH_VARARGS, NULL}, { (char *)"CChan_Clone", _wrap_CChan_Clone, METH_VARARGS, NULL}, { (char *)"CChan_Cycle", _wrap_CChan_Cycle, METH_VARARGS, NULL}, { (char *)"CChan_JoinUser", _wrap_CChan_JoinUser, METH_VARARGS, NULL}, { (char *)"CChan_AttachUser", _wrap_CChan_AttachUser, METH_VARARGS, NULL}, { (char *)"CChan_DetachUser", _wrap_CChan_DetachUser, METH_VARARGS, NULL}, { (char *)"CChan_OnWho", _wrap_CChan_OnWho, METH_VARARGS, NULL}, { (char *)"CChan_SetModes", _wrap_CChan_SetModes, METH_VARARGS, NULL}, { (char *)"CChan_ModeChange", _wrap_CChan_ModeChange, METH_VARARGS, NULL}, { (char *)"CChan_AddMode", _wrap_CChan_AddMode, METH_VARARGS, NULL}, { (char *)"CChan_RemMode", _wrap_CChan_RemMode, METH_VARARGS, NULL}, { (char *)"CChan_GetModeString", _wrap_CChan_GetModeString, METH_VARARGS, NULL}, { (char *)"CChan_GetModeForNames", _wrap_CChan_GetModeForNames, METH_VARARGS, NULL}, { (char *)"CChan_ClearNicks", _wrap_CChan_ClearNicks, METH_VARARGS, NULL}, { (char *)"CChan_FindNick", _wrap_CChan_FindNick, METH_VARARGS, NULL}, { (char *)"CChan_AddNicks", _wrap_CChan_AddNicks, METH_VARARGS, NULL}, { (char *)"CChan_AddNick", _wrap_CChan_AddNick, METH_VARARGS, NULL}, { (char *)"CChan_RemNick", _wrap_CChan_RemNick, METH_VARARGS, NULL}, { (char *)"CChan_ChangeNick", _wrap_CChan_ChangeNick, METH_VARARGS, NULL}, { (char *)"CChan_GetBuffer", _wrap_CChan_GetBuffer, METH_VARARGS, NULL}, { (char *)"CChan_GetBufferCount", _wrap_CChan_GetBufferCount, METH_VARARGS, NULL}, { (char *)"CChan_SetBufferCount", _wrap_CChan_SetBufferCount, METH_VARARGS, NULL}, { (char *)"CChan_InheritBufferCount", _wrap_CChan_InheritBufferCount, METH_VARARGS, NULL}, { (char *)"CChan_AddBuffer", _wrap_CChan_AddBuffer, METH_VARARGS, NULL}, { (char *)"CChan_ClearBuffer", _wrap_CChan_ClearBuffer, METH_VARARGS, NULL}, { (char *)"CChan_SendBuffer", _wrap_CChan_SendBuffer, METH_VARARGS, NULL}, { (char *)"CChan_GetPermStr", _wrap_CChan_GetPermStr, METH_VARARGS, NULL}, { (char *)"CChan_HasPerm", _wrap_CChan_HasPerm, METH_VARARGS, NULL}, { (char *)"CChan_AddPerm", _wrap_CChan_AddPerm, METH_VARARGS, NULL}, { (char *)"CChan_RemPerm", _wrap_CChan_RemPerm, METH_VARARGS, NULL}, { (char *)"CChan_SetModeKnown", _wrap_CChan_SetModeKnown, METH_VARARGS, NULL}, { (char *)"CChan_SetIsOn", _wrap_CChan_SetIsOn, METH_VARARGS, NULL}, { (char *)"CChan_SetKey", _wrap_CChan_SetKey, METH_VARARGS, NULL}, { (char *)"CChan_SetTopic", _wrap_CChan_SetTopic, METH_VARARGS, NULL}, { (char *)"CChan_SetTopicOwner", _wrap_CChan_SetTopicOwner, METH_VARARGS, NULL}, { (char *)"CChan_SetTopicDate", _wrap_CChan_SetTopicDate, METH_VARARGS, NULL}, { (char *)"CChan_SetDefaultModes", _wrap_CChan_SetDefaultModes, METH_VARARGS, NULL}, { (char *)"CChan_SetAutoClearChanBuffer", _wrap_CChan_SetAutoClearChanBuffer, METH_VARARGS, NULL}, { (char *)"CChan_InheritAutoClearChanBuffer", _wrap_CChan_InheritAutoClearChanBuffer, METH_VARARGS, NULL}, { (char *)"CChan_SetDetached", _wrap_CChan_SetDetached, METH_VARARGS, NULL}, { (char *)"CChan_SetInConfig", _wrap_CChan_SetInConfig, METH_VARARGS, NULL}, { (char *)"CChan_SetCreationDate", _wrap_CChan_SetCreationDate, METH_VARARGS, NULL}, { (char *)"CChan_Disable", _wrap_CChan_Disable, METH_VARARGS, NULL}, { (char *)"CChan_Enable", _wrap_CChan_Enable, METH_VARARGS, NULL}, { (char *)"CChan_IncJoinTries", _wrap_CChan_IncJoinTries, METH_VARARGS, NULL}, { (char *)"CChan_ResetJoinTries", _wrap_CChan_ResetJoinTries, METH_VARARGS, NULL}, { (char *)"CChan_IsModeKnown", _wrap_CChan_IsModeKnown, METH_VARARGS, NULL}, { (char *)"CChan_HasMode", _wrap_CChan_HasMode, METH_VARARGS, NULL}, { (char *)"CChan_GetOptions", _wrap_CChan_GetOptions, METH_VARARGS, NULL}, { (char *)"CChan_GetModeArg", _wrap_CChan_GetModeArg, METH_VARARGS, NULL}, { (char *)"CChan_GetPermCounts", _wrap_CChan_GetPermCounts, METH_VARARGS, NULL}, { (char *)"CChan_IsOn", _wrap_CChan_IsOn, METH_VARARGS, NULL}, { (char *)"CChan_GetName", _wrap_CChan_GetName, METH_VARARGS, NULL}, { (char *)"CChan_GetModes", _wrap_CChan_GetModes, METH_VARARGS, NULL}, { (char *)"CChan_GetKey", _wrap_CChan_GetKey, METH_VARARGS, NULL}, { (char *)"CChan_GetTopic", _wrap_CChan_GetTopic, METH_VARARGS, NULL}, { (char *)"CChan_GetTopicOwner", _wrap_CChan_GetTopicOwner, METH_VARARGS, NULL}, { (char *)"CChan_GetTopicDate", _wrap_CChan_GetTopicDate, METH_VARARGS, NULL}, { (char *)"CChan_GetDefaultModes", _wrap_CChan_GetDefaultModes, METH_VARARGS, NULL}, { (char *)"CChan_GetNicks", _wrap_CChan_GetNicks, METH_VARARGS, NULL}, { (char *)"CChan_GetNickCount", _wrap_CChan_GetNickCount, METH_VARARGS, NULL}, { (char *)"CChan_AutoClearChanBuffer", _wrap_CChan_AutoClearChanBuffer, METH_VARARGS, NULL}, { (char *)"CChan_IsDetached", _wrap_CChan_IsDetached, METH_VARARGS, NULL}, { (char *)"CChan_InConfig", _wrap_CChan_InConfig, METH_VARARGS, NULL}, { (char *)"CChan_GetCreationDate", _wrap_CChan_GetCreationDate, METH_VARARGS, NULL}, { (char *)"CChan_IsDisabled", _wrap_CChan_IsDisabled, METH_VARARGS, NULL}, { (char *)"CChan_GetJoinTries", _wrap_CChan_GetJoinTries, METH_VARARGS, NULL}, { (char *)"CChan_HasBufferCountSet", _wrap_CChan_HasBufferCountSet, METH_VARARGS, NULL}, { (char *)"CChan_HasAutoClearChanBufferSet", _wrap_CChan_HasAutoClearChanBufferSet, METH_VARARGS, NULL}, { (char *)"CChan___str__", _wrap_CChan___str__, METH_VARARGS, NULL}, { (char *)"CChan___repr__", _wrap_CChan___repr__, METH_VARARGS, NULL}, { (char *)"CChan_GetNicks_", _wrap_CChan_GetNicks_, METH_VARARGS, NULL}, { (char *)"CChan_swigregister", CChan_swigregister, METH_VARARGS, NULL}, { (char *)"new_CUser", _wrap_new_CUser, METH_VARARGS, NULL}, { (char *)"delete_CUser", _wrap_delete_CUser, METH_VARARGS, NULL}, { (char *)"CUser_ParseConfig", _wrap_CUser_ParseConfig, METH_VARARGS, NULL}, { (char *)"CUser_SaltedHash", _wrap_CUser_SaltedHash, METH_VARARGS, NULL}, { (char *)"CUser_ToConfig", _wrap_CUser_ToConfig, METH_VARARGS, NULL}, { (char *)"CUser_CheckPass", _wrap_CUser_CheckPass, METH_VARARGS, NULL}, { (char *)"CUser_AddAllowedHost", _wrap_CUser_AddAllowedHost, METH_VARARGS, NULL}, { (char *)"CUser_IsHostAllowed", _wrap_CUser_IsHostAllowed, METH_VARARGS, NULL}, { (char *)"CUser_IsValid", _wrap_CUser_IsValid, METH_VARARGS, NULL}, { (char *)"CUser_IsValidUserName", _wrap_CUser_IsValidUserName, METH_VARARGS, NULL}, { (char *)"CUser_MakeCleanUserName", _wrap_CUser_MakeCleanUserName, METH_VARARGS, NULL}, { (char *)"CUser_GetModules", _wrap_CUser_GetModules, METH_VARARGS, NULL}, { (char *)"CUser_DeleteNetwork", _wrap_CUser_DeleteNetwork, METH_VARARGS, NULL}, { (char *)"CUser_AddNetwork", _wrap_CUser_AddNetwork, METH_VARARGS, NULL}, { (char *)"CUser_RemoveNetwork", _wrap_CUser_RemoveNetwork, METH_VARARGS, NULL}, { (char *)"CUser_FindNetwork", _wrap_CUser_FindNetwork, METH_VARARGS, NULL}, { (char *)"CUser_GetNetworks", _wrap_CUser_GetNetworks, METH_VARARGS, NULL}, { (char *)"CUser_HasSpaceForNewNetwork", _wrap_CUser_HasSpaceForNewNetwork, METH_VARARGS, NULL}, { (char *)"CUser_PutUser", _wrap_CUser_PutUser, METH_VARARGS, NULL}, { (char *)"CUser_PutAllUser", _wrap_CUser_PutAllUser, METH_VARARGS, NULL}, { (char *)"CUser_PutStatus", _wrap_CUser_PutStatus, METH_VARARGS, NULL}, { (char *)"CUser_PutStatusNotice", _wrap_CUser_PutStatusNotice, METH_VARARGS, NULL}, { (char *)"CUser_PutModule", _wrap_CUser_PutModule, METH_VARARGS, NULL}, { (char *)"CUser_PutModNotice", _wrap_CUser_PutModNotice, METH_VARARGS, NULL}, { (char *)"CUser_IsUserAttached", _wrap_CUser_IsUserAttached, METH_VARARGS, NULL}, { (char *)"CUser_UserConnected", _wrap_CUser_UserConnected, METH_VARARGS, NULL}, { (char *)"CUser_UserDisconnected", _wrap_CUser_UserDisconnected, METH_VARARGS, NULL}, { (char *)"CUser_GetLocalDCCIP", _wrap_CUser_GetLocalDCCIP, METH_VARARGS, NULL}, { (char *)"CUser_ExpandString", _wrap_CUser_ExpandString, METH_VARARGS, NULL}, { (char *)"CUser_AddTimestamp", _wrap_CUser_AddTimestamp, METH_VARARGS, NULL}, { (char *)"CUser_CloneNetworks", _wrap_CUser_CloneNetworks, METH_VARARGS, NULL}, { (char *)"CUser_Clone", _wrap_CUser_Clone, METH_VARARGS, NULL}, { (char *)"CUser_BounceAllClients", _wrap_CUser_BounceAllClients, METH_VARARGS, NULL}, { (char *)"CUser_AddBytesRead", _wrap_CUser_AddBytesRead, METH_VARARGS, NULL}, { (char *)"CUser_AddBytesWritten", _wrap_CUser_AddBytesWritten, METH_VARARGS, NULL}, { (char *)"CUser_SetNick", _wrap_CUser_SetNick, METH_VARARGS, NULL}, { (char *)"CUser_SetAltNick", _wrap_CUser_SetAltNick, METH_VARARGS, NULL}, { (char *)"CUser_SetIdent", _wrap_CUser_SetIdent, METH_VARARGS, NULL}, { (char *)"CUser_SetRealName", _wrap_CUser_SetRealName, METH_VARARGS, NULL}, { (char *)"CUser_SetBindHost", _wrap_CUser_SetBindHost, METH_VARARGS, NULL}, { (char *)"CUser_SetDCCBindHost", _wrap_CUser_SetDCCBindHost, METH_VARARGS, NULL}, { (char *)"CUser_SetPass", _wrap_CUser_SetPass, METH_VARARGS, NULL}, { (char *)"CUser_SetMultiClients", _wrap_CUser_SetMultiClients, METH_VARARGS, NULL}, { (char *)"CUser_SetDenyLoadMod", _wrap_CUser_SetDenyLoadMod, METH_VARARGS, NULL}, { (char *)"CUser_SetAdmin", _wrap_CUser_SetAdmin, METH_VARARGS, NULL}, { (char *)"CUser_SetDenySetBindHost", _wrap_CUser_SetDenySetBindHost, METH_VARARGS, NULL}, { (char *)"CUser_SetStatusPrefix", _wrap_CUser_SetStatusPrefix, METH_VARARGS, NULL}, { (char *)"CUser_SetDefaultChanModes", _wrap_CUser_SetDefaultChanModes, METH_VARARGS, NULL}, { (char *)"CUser_SetClientEncoding", _wrap_CUser_SetClientEncoding, METH_VARARGS, NULL}, { (char *)"CUser_SetQuitMsg", _wrap_CUser_SetQuitMsg, METH_VARARGS, NULL}, { (char *)"CUser_AddCTCPReply", _wrap_CUser_AddCTCPReply, METH_VARARGS, NULL}, { (char *)"CUser_DelCTCPReply", _wrap_CUser_DelCTCPReply, METH_VARARGS, NULL}, { (char *)"CUser_SetBufferCount", _wrap_CUser_SetBufferCount, METH_VARARGS, NULL}, { (char *)"CUser_SetAutoClearChanBuffer", _wrap_CUser_SetAutoClearChanBuffer, METH_VARARGS, NULL}, { (char *)"CUser_SetAutoClearQueryBuffer", _wrap_CUser_SetAutoClearQueryBuffer, METH_VARARGS, NULL}, { (char *)"CUser_SetBeingDeleted", _wrap_CUser_SetBeingDeleted, METH_VARARGS, NULL}, { (char *)"CUser_SetTimestampFormat", _wrap_CUser_SetTimestampFormat, METH_VARARGS, NULL}, { (char *)"CUser_SetTimestampAppend", _wrap_CUser_SetTimestampAppend, METH_VARARGS, NULL}, { (char *)"CUser_SetTimestampPrepend", _wrap_CUser_SetTimestampPrepend, METH_VARARGS, NULL}, { (char *)"CUser_SetTimezone", _wrap_CUser_SetTimezone, METH_VARARGS, NULL}, { (char *)"CUser_SetJoinTries", _wrap_CUser_SetJoinTries, METH_VARARGS, NULL}, { (char *)"CUser_SetMaxJoins", _wrap_CUser_SetMaxJoins, METH_VARARGS, NULL}, { (char *)"CUser_SetSkinName", _wrap_CUser_SetSkinName, METH_VARARGS, NULL}, { (char *)"CUser_SetMaxNetworks", _wrap_CUser_SetMaxNetworks, METH_VARARGS, NULL}, { (char *)"CUser_SetMaxQueryBuffers", _wrap_CUser_SetMaxQueryBuffers, METH_VARARGS, NULL}, { (char *)"CUser_GetUserClients", _wrap_CUser_GetUserClients, METH_VARARGS, NULL}, { (char *)"CUser_GetAllClients", _wrap_CUser_GetAllClients, METH_VARARGS, NULL}, { (char *)"CUser_GetUserName", _wrap_CUser_GetUserName, METH_VARARGS, NULL}, { (char *)"CUser_GetCleanUserName", _wrap_CUser_GetCleanUserName, METH_VARARGS, NULL}, { (char *)"CUser_GetNick", _wrap_CUser_GetNick, METH_VARARGS, NULL}, { (char *)"CUser_GetAltNick", _wrap_CUser_GetAltNick, METH_VARARGS, NULL}, { (char *)"CUser_GetIdent", _wrap_CUser_GetIdent, METH_VARARGS, NULL}, { (char *)"CUser_GetRealName", _wrap_CUser_GetRealName, METH_VARARGS, NULL}, { (char *)"CUser_GetBindHost", _wrap_CUser_GetBindHost, METH_VARARGS, NULL}, { (char *)"CUser_GetDCCBindHost", _wrap_CUser_GetDCCBindHost, METH_VARARGS, NULL}, { (char *)"CUser_GetPass", _wrap_CUser_GetPass, METH_VARARGS, NULL}, { (char *)"CUser_GetPassHashType", _wrap_CUser_GetPassHashType, METH_VARARGS, NULL}, { (char *)"CUser_GetPassSalt", _wrap_CUser_GetPassSalt, METH_VARARGS, NULL}, { (char *)"CUser_GetAllowedHosts", _wrap_CUser_GetAllowedHosts, METH_VARARGS, NULL}, { (char *)"CUser_GetTimestampFormat", _wrap_CUser_GetTimestampFormat, METH_VARARGS, NULL}, { (char *)"CUser_GetClientEncoding", _wrap_CUser_GetClientEncoding, METH_VARARGS, NULL}, { (char *)"CUser_GetTimestampAppend", _wrap_CUser_GetTimestampAppend, METH_VARARGS, NULL}, { (char *)"CUser_GetTimestampPrepend", _wrap_CUser_GetTimestampPrepend, METH_VARARGS, NULL}, { (char *)"CUser_GetUserPath", _wrap_CUser_GetUserPath, METH_VARARGS, NULL}, { (char *)"CUser_DenyLoadMod", _wrap_CUser_DenyLoadMod, METH_VARARGS, NULL}, { (char *)"CUser_IsAdmin", _wrap_CUser_IsAdmin, METH_VARARGS, NULL}, { (char *)"CUser_DenySetBindHost", _wrap_CUser_DenySetBindHost, METH_VARARGS, NULL}, { (char *)"CUser_MultiClients", _wrap_CUser_MultiClients, METH_VARARGS, NULL}, { (char *)"CUser_GetStatusPrefix", _wrap_CUser_GetStatusPrefix, METH_VARARGS, NULL}, { (char *)"CUser_GetDefaultChanModes", _wrap_CUser_GetDefaultChanModes, METH_VARARGS, NULL}, { (char *)"CUser_GetQuitMsg", _wrap_CUser_GetQuitMsg, METH_VARARGS, NULL}, { (char *)"CUser_GetCTCPReplies", _wrap_CUser_GetCTCPReplies, METH_VARARGS, NULL}, { (char *)"CUser_GetBufferCount", _wrap_CUser_GetBufferCount, METH_VARARGS, NULL}, { (char *)"CUser_AutoClearChanBuffer", _wrap_CUser_AutoClearChanBuffer, METH_VARARGS, NULL}, { (char *)"CUser_AutoClearQueryBuffer", _wrap_CUser_AutoClearQueryBuffer, METH_VARARGS, NULL}, { (char *)"CUser_IsBeingDeleted", _wrap_CUser_IsBeingDeleted, METH_VARARGS, NULL}, { (char *)"CUser_GetTimezone", _wrap_CUser_GetTimezone, METH_VARARGS, NULL}, { (char *)"CUser_BytesRead", _wrap_CUser_BytesRead, METH_VARARGS, NULL}, { (char *)"CUser_BytesWritten", _wrap_CUser_BytesWritten, METH_VARARGS, NULL}, { (char *)"CUser_JoinTries", _wrap_CUser_JoinTries, METH_VARARGS, NULL}, { (char *)"CUser_MaxJoins", _wrap_CUser_MaxJoins, METH_VARARGS, NULL}, { (char *)"CUser_GetSkinName", _wrap_CUser_GetSkinName, METH_VARARGS, NULL}, { (char *)"CUser_MaxNetworks", _wrap_CUser_MaxNetworks, METH_VARARGS, NULL}, { (char *)"CUser_MaxQueryBuffers", _wrap_CUser_MaxQueryBuffers, METH_VARARGS, NULL}, { (char *)"CUser___str__", _wrap_CUser___str__, METH_VARARGS, NULL}, { (char *)"CUser___repr__", _wrap_CUser___repr__, METH_VARARGS, NULL}, { (char *)"CUser_GetNetworks_", _wrap_CUser_GetNetworks_, METH_VARARGS, NULL}, { (char *)"CUser_swigregister", CUser_swigregister, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsValidNetwork", _wrap_CIRCNetwork_IsValidNetwork, METH_VARARGS, NULL}, { (char *)"new_CIRCNetwork", _wrap_new_CIRCNetwork, METH_VARARGS, NULL}, { (char *)"delete_CIRCNetwork", _wrap_delete_CIRCNetwork, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_Clone", _wrap_CIRCNetwork_Clone, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetNetworkPath", _wrap_CIRCNetwork_GetNetworkPath, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_DelServers", _wrap_CIRCNetwork_DelServers, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ParseConfig", _wrap_CIRCNetwork_ParseConfig, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ToConfig", _wrap_CIRCNetwork_ToConfig, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_BounceAllClients", _wrap_CIRCNetwork_BounceAllClients, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsUserAttached", _wrap_CIRCNetwork_IsUserAttached, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsUserOnline", _wrap_CIRCNetwork_IsUserOnline, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ClientConnected", _wrap_CIRCNetwork_ClientConnected, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ClientDisconnected", _wrap_CIRCNetwork_ClientDisconnected, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetUser", _wrap_CIRCNetwork_GetUser, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetName", _wrap_CIRCNetwork_GetName, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsNetworkAttached", _wrap_CIRCNetwork_IsNetworkAttached, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetClients", _wrap_CIRCNetwork_GetClients, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_FindClients", _wrap_CIRCNetwork_FindClients, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetUser", _wrap_CIRCNetwork_SetUser, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetName", _wrap_CIRCNetwork_SetName, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetModules", _wrap_CIRCNetwork_GetModules, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_PutUser", _wrap_CIRCNetwork_PutUser, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_PutStatus", _wrap_CIRCNetwork_PutStatus, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_PutModule", _wrap_CIRCNetwork_PutModule, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetChans", _wrap_CIRCNetwork_GetChans, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_FindChan", _wrap_CIRCNetwork_FindChan, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_FindChans", _wrap_CIRCNetwork_FindChans, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddChan", _wrap_CIRCNetwork_AddChan, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_DelChan", _wrap_CIRCNetwork_DelChan, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_JoinChans", _wrap_CIRCNetwork_JoinChans, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetQueries", _wrap_CIRCNetwork_GetQueries, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_FindQuery", _wrap_CIRCNetwork_FindQuery, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_FindQueries", _wrap_CIRCNetwork_FindQueries, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddQuery", _wrap_CIRCNetwork_AddQuery, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_DelQuery", _wrap_CIRCNetwork_DelQuery, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetChanPrefixes", _wrap_CIRCNetwork_GetChanPrefixes, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetChanPrefixes", _wrap_CIRCNetwork_SetChanPrefixes, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsChan", _wrap_CIRCNetwork_IsChan, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetServers", _wrap_CIRCNetwork_GetServers, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_HasServers", _wrap_CIRCNetwork_HasServers, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_FindServer", _wrap_CIRCNetwork_FindServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_DelServer", _wrap_CIRCNetwork_DelServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddServer", _wrap_CIRCNetwork_AddServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetNextServer", _wrap_CIRCNetwork_GetNextServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetCurrentServer", _wrap_CIRCNetwork_GetCurrentServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetIRCServer", _wrap_CIRCNetwork_SetIRCServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetNextServer", _wrap_CIRCNetwork_SetNextServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsLastServer", _wrap_CIRCNetwork_IsLastServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetTrustedFingerprints", _wrap_CIRCNetwork_GetTrustedFingerprints, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddTrustedFingerprint", _wrap_CIRCNetwork_AddTrustedFingerprint, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_DelTrustedFingerprint", _wrap_CIRCNetwork_DelTrustedFingerprint, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetIRCConnectEnabled", _wrap_CIRCNetwork_SetIRCConnectEnabled, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetIRCConnectEnabled", _wrap_CIRCNetwork_GetIRCConnectEnabled, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetIRCSock", _wrap_CIRCNetwork_GetIRCSock, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetIRCServer", _wrap_CIRCNetwork_GetIRCServer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetIRCNick", _wrap_CIRCNetwork_GetIRCNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetIRCNick", _wrap_CIRCNetwork_SetIRCNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetCurNick", _wrap_CIRCNetwork_GetCurNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsIRCAway", _wrap_CIRCNetwork_IsIRCAway, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetIRCAway", _wrap_CIRCNetwork_SetIRCAway, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_Connect", _wrap_CIRCNetwork_Connect, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IsIRCConnected", _wrap_CIRCNetwork_IsIRCConnected, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetIRCSocket", _wrap_CIRCNetwork_SetIRCSocket, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IRCConnected", _wrap_CIRCNetwork_IRCConnected, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_IRCDisconnected", _wrap_CIRCNetwork_IRCDisconnected, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_CheckIRCConnect", _wrap_CIRCNetwork_CheckIRCConnect, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_PutIRC", _wrap_CIRCNetwork_PutIRC, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddRawBuffer", _wrap_CIRCNetwork_AddRawBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_UpdateRawBuffer", _wrap_CIRCNetwork_UpdateRawBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_UpdateExactRawBuffer", _wrap_CIRCNetwork_UpdateExactRawBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ClearRawBuffer", _wrap_CIRCNetwork_ClearRawBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddMotdBuffer", _wrap_CIRCNetwork_AddMotdBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_UpdateMotdBuffer", _wrap_CIRCNetwork_UpdateMotdBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ClearMotdBuffer", _wrap_CIRCNetwork_ClearMotdBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_AddNoticeBuffer", _wrap_CIRCNetwork_AddNoticeBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_UpdateNoticeBuffer", _wrap_CIRCNetwork_UpdateNoticeBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ClearNoticeBuffer", _wrap_CIRCNetwork_ClearNoticeBuffer, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetNick", _wrap_CIRCNetwork_GetNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetAltNick", _wrap_CIRCNetwork_GetAltNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetIdent", _wrap_CIRCNetwork_GetIdent, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetRealName", _wrap_CIRCNetwork_GetRealName, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetBindHost", _wrap_CIRCNetwork_GetBindHost, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetEncoding", _wrap_CIRCNetwork_GetEncoding, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetQuitMsg", _wrap_CIRCNetwork_GetQuitMsg, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetNick", _wrap_CIRCNetwork_SetNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetAltNick", _wrap_CIRCNetwork_SetAltNick, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetIdent", _wrap_CIRCNetwork_SetIdent, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetRealName", _wrap_CIRCNetwork_SetRealName, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetBindHost", _wrap_CIRCNetwork_SetBindHost, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetEncoding", _wrap_CIRCNetwork_SetEncoding, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetQuitMsg", _wrap_CIRCNetwork_SetQuitMsg, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetFloodRate", _wrap_CIRCNetwork_GetFloodRate, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetFloodBurst", _wrap_CIRCNetwork_GetFloodBurst, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetFloodRate", _wrap_CIRCNetwork_SetFloodRate, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetFloodBurst", _wrap_CIRCNetwork_SetFloodBurst, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetJoinDelay", _wrap_CIRCNetwork_GetJoinDelay, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_SetJoinDelay", _wrap_CIRCNetwork_SetJoinDelay, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_ExpandString", _wrap_CIRCNetwork_ExpandString, METH_VARARGS, NULL}, { (char *)"CIRCNetwork___str__", _wrap_CIRCNetwork___str__, METH_VARARGS, NULL}, { (char *)"CIRCNetwork___repr__", _wrap_CIRCNetwork___repr__, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_GetChans_", _wrap_CIRCNetwork_GetChans_, METH_VARARGS, NULL}, { (char *)"CIRCNetwork_swigregister", CIRCNetwork_swigregister, METH_VARARGS, NULL}, { (char *)"delete_CAuthBase", _wrap_delete_CAuthBase, METH_VARARGS, NULL}, { (char *)"CAuthBase_SetLoginInfo", _wrap_CAuthBase_SetLoginInfo, METH_VARARGS, NULL}, { (char *)"CAuthBase_AcceptLogin", _wrap_CAuthBase_AcceptLogin, METH_VARARGS, NULL}, { (char *)"CAuthBase_RefuseLogin", _wrap_CAuthBase_RefuseLogin, METH_VARARGS, NULL}, { (char *)"CAuthBase_GetUsername", _wrap_CAuthBase_GetUsername, METH_VARARGS, NULL}, { (char *)"CAuthBase_GetPassword", _wrap_CAuthBase_GetPassword, METH_VARARGS, NULL}, { (char *)"CAuthBase_GetSocket", _wrap_CAuthBase_GetSocket, METH_VARARGS, NULL}, { (char *)"CAuthBase_GetRemoteIP", _wrap_CAuthBase_GetRemoteIP, METH_VARARGS, NULL}, { (char *)"CAuthBase_Invalidate", _wrap_CAuthBase_Invalidate, METH_VARARGS, NULL}, { (char *)"CAuthBase_swigregister", CAuthBase_swigregister, METH_VARARGS, NULL}, { (char *)"new_CClientAuth", _wrap_new_CClientAuth, METH_VARARGS, NULL}, { (char *)"delete_CClientAuth", _wrap_delete_CClientAuth, METH_VARARGS, NULL}, { (char *)"CClientAuth_Invalidate", _wrap_CClientAuth_Invalidate, METH_VARARGS, NULL}, { (char *)"CClientAuth_AcceptedLogin", _wrap_CClientAuth_AcceptedLogin, METH_VARARGS, NULL}, { (char *)"CClientAuth_RefusedLogin", _wrap_CClientAuth_RefusedLogin, METH_VARARGS, NULL}, { (char *)"CClientAuth_swigregister", CClientAuth_swigregister, METH_VARARGS, NULL}, { (char *)"new_CClient", _wrap_new_CClient, METH_VARARGS, NULL}, { (char *)"delete_CClient", _wrap_delete_CClient, METH_VARARGS, NULL}, { (char *)"CClient_SendRequiredPasswordNotice", _wrap_CClient_SendRequiredPasswordNotice, METH_VARARGS, NULL}, { (char *)"CClient_AcceptLogin", _wrap_CClient_AcceptLogin, METH_VARARGS, NULL}, { (char *)"CClient_RefuseLogin", _wrap_CClient_RefuseLogin, METH_VARARGS, NULL}, { (char *)"CClient_GetNick", _wrap_CClient_GetNick, METH_VARARGS, NULL}, { (char *)"CClient_GetNickMask", _wrap_CClient_GetNickMask, METH_VARARGS, NULL}, { (char *)"CClient_GetIdentifier", _wrap_CClient_GetIdentifier, METH_VARARGS, NULL}, { (char *)"CClient_HasNamesx", _wrap_CClient_HasNamesx, METH_VARARGS, NULL}, { (char *)"CClient_HasUHNames", _wrap_CClient_HasUHNames, METH_VARARGS, NULL}, { (char *)"CClient_IsAway", _wrap_CClient_IsAway, METH_VARARGS, NULL}, { (char *)"CClient_HasServerTime", _wrap_CClient_HasServerTime, METH_VARARGS, NULL}, { (char *)"CClient_HasBatch", _wrap_CClient_HasBatch, METH_VARARGS, NULL}, { (char *)"CClient_HasSelfMessage", _wrap_CClient_HasSelfMessage, METH_VARARGS, NULL}, { (char *)"CClient_IsValidIdentifier", _wrap_CClient_IsValidIdentifier, METH_VARARGS, NULL}, { (char *)"CClient_UserCommand", _wrap_CClient_UserCommand, METH_VARARGS, NULL}, { (char *)"CClient_UserPortCommand", _wrap_CClient_UserPortCommand, METH_VARARGS, NULL}, { (char *)"CClient_StatusCTCP", _wrap_CClient_StatusCTCP, METH_VARARGS, NULL}, { (char *)"CClient_BouncedOff", _wrap_CClient_BouncedOff, METH_VARARGS, NULL}, { (char *)"CClient_IsAttached", _wrap_CClient_IsAttached, METH_VARARGS, NULL}, { (char *)"CClient_IsPlaybackActive", _wrap_CClient_IsPlaybackActive, METH_VARARGS, NULL}, { (char *)"CClient_SetPlaybackActive", _wrap_CClient_SetPlaybackActive, METH_VARARGS, NULL}, { (char *)"CClient_PutIRC", _wrap_CClient_PutIRC, METH_VARARGS, NULL}, { (char *)"CClient_PutClient", _wrap_CClient_PutClient, METH_VARARGS, NULL}, { (char *)"CClient_PutStatus", _wrap_CClient_PutStatus, METH_VARARGS, NULL}, { (char *)"CClient_PutStatusNotice", _wrap_CClient_PutStatusNotice, METH_VARARGS, NULL}, { (char *)"CClient_PutModule", _wrap_CClient_PutModule, METH_VARARGS, NULL}, { (char *)"CClient_PutModNotice", _wrap_CClient_PutModNotice, METH_VARARGS, NULL}, { (char *)"CClient_IsCapEnabled", _wrap_CClient_IsCapEnabled, METH_VARARGS, NULL}, { (char *)"CClient_ReadLine", _wrap_CClient_ReadLine, METH_VARARGS, NULL}, { (char *)"CClient_SendMotd", _wrap_CClient_SendMotd, METH_VARARGS, NULL}, { (char *)"CClient_HelpUser", _wrap_CClient_HelpUser, METH_VARARGS, NULL}, { (char *)"CClient_AuthUser", _wrap_CClient_AuthUser, METH_VARARGS, NULL}, { (char *)"CClient_Connected", _wrap_CClient_Connected, METH_VARARGS, NULL}, { (char *)"CClient_Timeout", _wrap_CClient_Timeout, METH_VARARGS, NULL}, { (char *)"CClient_Disconnected", _wrap_CClient_Disconnected, METH_VARARGS, NULL}, { (char *)"CClient_ConnectionRefused", _wrap_CClient_ConnectionRefused, METH_VARARGS, NULL}, { (char *)"CClient_ReachedMaxBuffer", _wrap_CClient_ReachedMaxBuffer, METH_VARARGS, NULL}, { (char *)"CClient_SetNick", _wrap_CClient_SetNick, METH_VARARGS, NULL}, { (char *)"CClient_SetAway", _wrap_CClient_SetAway, METH_VARARGS, NULL}, { (char *)"CClient_GetUser", _wrap_CClient_GetUser, METH_VARARGS, NULL}, { (char *)"CClient_SetNetwork", _wrap_CClient_SetNetwork, METH_VARARGS, NULL}, { (char *)"CClient_GetNetwork", _wrap_CClient_GetNetwork, METH_VARARGS, NULL}, { (char *)"CClient_GetClients", _wrap_CClient_GetClients, METH_VARARGS, NULL}, { (char *)"CClient_GetIRCSock", _wrap_CClient_GetIRCSock, METH_VARARGS, NULL}, { (char *)"CClient_GetFullName", _wrap_CClient_GetFullName, METH_VARARGS, NULL}, { (char *)"CClient_swigregister", CClient_swigregister, METH_VARARGS, NULL}, { (char *)"new_CIRCSock", _wrap_new_CIRCSock, METH_VARARGS, NULL}, { (char *)"delete_CIRCSock", _wrap_delete_CIRCSock, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnCTCPReply", _wrap_CIRCSock_OnCTCPReply, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnPrivCTCP", _wrap_CIRCSock_OnPrivCTCP, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnChanCTCP", _wrap_CIRCSock_OnChanCTCP, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnGeneralCTCP", _wrap_CIRCSock_OnGeneralCTCP, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnPrivMsg", _wrap_CIRCSock_OnPrivMsg, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnChanMsg", _wrap_CIRCSock_OnChanMsg, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnPrivNotice", _wrap_CIRCSock_OnPrivNotice, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnChanNotice", _wrap_CIRCSock_OnChanNotice, METH_VARARGS, NULL}, { (char *)"CIRCSock_OnServerCapAvailable", _wrap_CIRCSock_OnServerCapAvailable, METH_VARARGS, NULL}, { (char *)"CIRCSock_ReadLine", _wrap_CIRCSock_ReadLine, METH_VARARGS, NULL}, { (char *)"CIRCSock_Connected", _wrap_CIRCSock_Connected, METH_VARARGS, NULL}, { (char *)"CIRCSock_Disconnected", _wrap_CIRCSock_Disconnected, METH_VARARGS, NULL}, { (char *)"CIRCSock_ConnectionRefused", _wrap_CIRCSock_ConnectionRefused, METH_VARARGS, NULL}, { (char *)"CIRCSock_SockError", _wrap_CIRCSock_SockError, METH_VARARGS, NULL}, { (char *)"CIRCSock_Timeout", _wrap_CIRCSock_Timeout, METH_VARARGS, NULL}, { (char *)"CIRCSock_ReachedMaxBuffer", _wrap_CIRCSock_ReachedMaxBuffer, METH_VARARGS, NULL}, { (char *)"CIRCSock_PutIRC", _wrap_CIRCSock_PutIRC, METH_VARARGS, NULL}, { (char *)"CIRCSock_PutIRCQuick", _wrap_CIRCSock_PutIRCQuick, METH_VARARGS, NULL}, { (char *)"CIRCSock_ResetChans", _wrap_CIRCSock_ResetChans, METH_VARARGS, NULL}, { (char *)"CIRCSock_Quit", _wrap_CIRCSock_Quit, METH_VARARGS, NULL}, { (char *)"CIRCSock_PauseCap", _wrap_CIRCSock_PauseCap, METH_VARARGS, NULL}, { (char *)"CIRCSock_ResumeCap", _wrap_CIRCSock_ResumeCap, METH_VARARGS, NULL}, { (char *)"CIRCSock_SetPass", _wrap_CIRCSock_SetPass, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetMaxNickLen", _wrap_CIRCSock_GetMaxNickLen, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetModeType", _wrap_CIRCSock_GetModeType, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetPermFromMode", _wrap_CIRCSock_GetPermFromMode, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetChanModes", _wrap_CIRCSock_GetChanModes, METH_VARARGS, NULL}, { (char *)"CIRCSock_IsPermChar", _wrap_CIRCSock_IsPermChar, METH_VARARGS, NULL}, { (char *)"CIRCSock_IsPermMode", _wrap_CIRCSock_IsPermMode, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetPerms", _wrap_CIRCSock_GetPerms, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetPermModes", _wrap_CIRCSock_GetPermModes, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetNickMask", _wrap_CIRCSock_GetNickMask, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetNick", _wrap_CIRCSock_GetNick, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetPass", _wrap_CIRCSock_GetPass, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetNetwork", _wrap_CIRCSock_GetNetwork, METH_VARARGS, NULL}, { (char *)"CIRCSock_HasNamesx", _wrap_CIRCSock_HasNamesx, METH_VARARGS, NULL}, { (char *)"CIRCSock_HasUHNames", _wrap_CIRCSock_HasUHNames, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetUserModes", _wrap_CIRCSock_GetUserModes, METH_VARARGS, NULL}, { (char *)"CIRCSock_IsAuthed", _wrap_CIRCSock_IsAuthed, METH_VARARGS, NULL}, { (char *)"CIRCSock_IsCapAccepted", _wrap_CIRCSock_IsCapAccepted, METH_VARARGS, NULL}, { (char *)"CIRCSock_GetISupport", _wrap_CIRCSock_GetISupport, METH_VARARGS, NULL}, { (char *)"CIRCSock_ForwardRaw353", _wrap_CIRCSock_ForwardRaw353, METH_VARARGS, NULL}, { (char *)"CIRCSock_IsFloodProtected", _wrap_CIRCSock_IsFloodProtected, METH_VARARGS, NULL}, { (char *)"CIRCSock_swigregister", CIRCSock_swigregister, METH_VARARGS, NULL}, { (char *)"new_CListener", _wrap_new_CListener, METH_VARARGS, NULL}, { (char *)"delete_CListener", _wrap_delete_CListener, METH_VARARGS, NULL}, { (char *)"CListener_IsSSL", _wrap_CListener_IsSSL, METH_VARARGS, NULL}, { (char *)"CListener_GetAddrType", _wrap_CListener_GetAddrType, METH_VARARGS, NULL}, { (char *)"CListener_GetPort", _wrap_CListener_GetPort, METH_VARARGS, NULL}, { (char *)"CListener_GetBindHost", _wrap_CListener_GetBindHost, METH_VARARGS, NULL}, { (char *)"CListener_GetRealListener", _wrap_CListener_GetRealListener, METH_VARARGS, NULL}, { (char *)"CListener_GetURIPrefix", _wrap_CListener_GetURIPrefix, METH_VARARGS, NULL}, { (char *)"CListener_GetAcceptType", _wrap_CListener_GetAcceptType, METH_VARARGS, NULL}, { (char *)"CListener_SetAcceptType", _wrap_CListener_SetAcceptType, METH_VARARGS, NULL}, { (char *)"CListener_Listen", _wrap_CListener_Listen, METH_VARARGS, NULL}, { (char *)"CListener_ResetRealListener", _wrap_CListener_ResetRealListener, METH_VARARGS, NULL}, { (char *)"CListener_swigregister", CListener_swigregister, METH_VARARGS, NULL}, { (char *)"new_CRealListener", _wrap_new_CRealListener, METH_VARARGS, NULL}, { (char *)"delete_CRealListener", _wrap_delete_CRealListener, METH_VARARGS, NULL}, { (char *)"CRealListener_ConnectionFrom", _wrap_CRealListener_ConnectionFrom, METH_VARARGS, NULL}, { (char *)"CRealListener_GetSockObj", _wrap_CRealListener_GetSockObj, METH_VARARGS, NULL}, { (char *)"CRealListener_SockError", _wrap_CRealListener_SockError, METH_VARARGS, NULL}, { (char *)"CRealListener_swigregister", CRealListener_swigregister, METH_VARARGS, NULL}, { (char *)"new_CIncomingConnection", _wrap_new_CIncomingConnection, METH_VARARGS, NULL}, { (char *)"delete_CIncomingConnection", _wrap_delete_CIncomingConnection, METH_VARARGS, NULL}, { (char *)"CIncomingConnection_ReadLine", _wrap_CIncomingConnection_ReadLine, METH_VARARGS, NULL}, { (char *)"CIncomingConnection_ReachedMaxBuffer", _wrap_CIncomingConnection_ReachedMaxBuffer, METH_VARARGS, NULL}, { (char *)"CIncomingConnection_swigregister", CIncomingConnection_swigregister, METH_VARARGS, NULL}, { (char *)"delete_CHTTPSock", _wrap_delete_CHTTPSock, METH_VARARGS, NULL}, { (char *)"CHTTPSock_ReadData", _wrap_CHTTPSock_ReadData, METH_VARARGS, NULL}, { (char *)"CHTTPSock_ReadLine", _wrap_CHTTPSock_ReadLine, METH_VARARGS, NULL}, { (char *)"CHTTPSock_Connected", _wrap_CHTTPSock_Connected, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetSockObj", _wrap_CHTTPSock_GetSockObj, METH_VARARGS, NULL}, { (char *)"CHTTPSock_ForceLogin", _wrap_CHTTPSock_ForceLogin, METH_VARARGS, NULL}, { (char *)"CHTTPSock_OnLogin", _wrap_CHTTPSock_OnLogin, METH_VARARGS, NULL}, { (char *)"CHTTPSock_OnPageRequest", _wrap_CHTTPSock_OnPageRequest, METH_VARARGS, NULL}, { (char *)"CHTTPSock_PrintFile", _wrap_CHTTPSock_PrintFile, METH_VARARGS, NULL}, { (char *)"CHTTPSock_CheckPost", _wrap_CHTTPSock_CheckPost, METH_VARARGS, NULL}, { (char *)"CHTTPSock_SentHeader", _wrap_CHTTPSock_SentHeader, METH_VARARGS, NULL}, { (char *)"CHTTPSock_PrintHeader", _wrap_CHTTPSock_PrintHeader, METH_VARARGS, NULL}, { (char *)"CHTTPSock_AddHeader", _wrap_CHTTPSock_AddHeader, METH_VARARGS, NULL}, { (char *)"CHTTPSock_SetContentType", _wrap_CHTTPSock_SetContentType, METH_VARARGS, NULL}, { (char *)"CHTTPSock_PrintNotFound", _wrap_CHTTPSock_PrintNotFound, METH_VARARGS, NULL}, { (char *)"CHTTPSock_Redirect", _wrap_CHTTPSock_Redirect, METH_VARARGS, NULL}, { (char *)"CHTTPSock_PrintErrorPage", _wrap_CHTTPSock_PrintErrorPage, METH_VARARGS, NULL}, { (char *)"CHTTPSock_ParseParams", _wrap_CHTTPSock_ParseParams, METH_VARARGS, NULL}, { (char *)"CHTTPSock_ParseURI", _wrap_CHTTPSock_ParseURI, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetPage", _wrap_CHTTPSock_GetPage, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetDate", _wrap_CHTTPSock_GetDate, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetRemoteIP", _wrap_CHTTPSock_GetRemoteIP, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetRequestCookie", _wrap_CHTTPSock_GetRequestCookie, METH_VARARGS, NULL}, { (char *)"CHTTPSock_SendCookie", _wrap_CHTTPSock_SendCookie, METH_VARARGS, NULL}, { (char *)"CHTTPSock_SetDocRoot", _wrap_CHTTPSock_SetDocRoot, METH_VARARGS, NULL}, { (char *)"CHTTPSock_SetLoggedIn", _wrap_CHTTPSock_SetLoggedIn, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetPath", _wrap_CHTTPSock_GetPath, METH_VARARGS, NULL}, { (char *)"CHTTPSock_IsLoggedIn", _wrap_CHTTPSock_IsLoggedIn, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetDocRoot", _wrap_CHTTPSock_GetDocRoot, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetUser", _wrap_CHTTPSock_GetUser, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetPass", _wrap_CHTTPSock_GetPass, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetParamString", _wrap_CHTTPSock_GetParamString, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetContentType", _wrap_CHTTPSock_GetContentType, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetURIPrefix", _wrap_CHTTPSock_GetURIPrefix, METH_VARARGS, NULL}, { (char *)"CHTTPSock_IsPost", _wrap_CHTTPSock_IsPost, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetParam", _wrap_CHTTPSock_GetParam, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetRawParam", _wrap_CHTTPSock_GetRawParam, METH_VARARGS, NULL}, { (char *)"CHTTPSock_HasParam", _wrap_CHTTPSock_HasParam, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetParams", _wrap_CHTTPSock_GetParams, METH_VARARGS, NULL}, { (char *)"CHTTPSock_GetParamValues", _wrap_CHTTPSock_GetParamValues, METH_VARARGS, NULL}, { (char *)"CHTTPSock_swigregister", CHTTPSock_swigregister, METH_VARARGS, NULL}, { (char *)"new_CTemplateTagHandler", _wrap_new_CTemplateTagHandler, METH_VARARGS, NULL}, { (char *)"delete_CTemplateTagHandler", _wrap_delete_CTemplateTagHandler, METH_VARARGS, NULL}, { (char *)"CTemplateTagHandler_HandleVar", _wrap_CTemplateTagHandler_HandleVar, METH_VARARGS, NULL}, { (char *)"CTemplateTagHandler_HandleTag", _wrap_CTemplateTagHandler_HandleTag, METH_VARARGS, NULL}, { (char *)"CTemplateTagHandler_HandleIf", _wrap_CTemplateTagHandler_HandleIf, METH_VARARGS, NULL}, { (char *)"CTemplateTagHandler_HandleValue", _wrap_CTemplateTagHandler_HandleValue, METH_VARARGS, NULL}, { (char *)"CTemplateTagHandler_swigregister", CTemplateTagHandler_swigregister, METH_VARARGS, NULL}, { (char *)"new_CTemplateOptions", _wrap_new_CTemplateOptions, METH_VARARGS, NULL}, { (char *)"delete_CTemplateOptions", _wrap_delete_CTemplateOptions, METH_VARARGS, NULL}, { (char *)"CTemplateOptions_Parse", _wrap_CTemplateOptions_Parse, METH_VARARGS, NULL}, { (char *)"CTemplateOptions_GetEscapeFrom", _wrap_CTemplateOptions_GetEscapeFrom, METH_VARARGS, NULL}, { (char *)"CTemplateOptions_GetEscapeTo", _wrap_CTemplateOptions_GetEscapeTo, METH_VARARGS, NULL}, { (char *)"CTemplateOptions_swigregister", CTemplateOptions_swigregister, METH_VARARGS, NULL}, { (char *)"new_CTemplateLoopContext", _wrap_new_CTemplateLoopContext, METH_VARARGS, NULL}, { (char *)"delete_CTemplateLoopContext", _wrap_delete_CTemplateLoopContext, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_SetHasData", _wrap_CTemplateLoopContext_SetHasData, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_SetName", _wrap_CTemplateLoopContext_SetName, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_SetRowIndex", _wrap_CTemplateLoopContext_SetRowIndex, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_IncRowIndex", _wrap_CTemplateLoopContext_IncRowIndex, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_DecRowIndex", _wrap_CTemplateLoopContext_DecRowIndex, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_SetFilePosition", _wrap_CTemplateLoopContext_SetFilePosition, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_HasData", _wrap_CTemplateLoopContext_HasData, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetName", _wrap_CTemplateLoopContext_GetName, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetFilePosition", _wrap_CTemplateLoopContext_GetFilePosition, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetRowIndex", _wrap_CTemplateLoopContext_GetRowIndex, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetRowCount", _wrap_CTemplateLoopContext_GetRowCount, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetRows", _wrap_CTemplateLoopContext_GetRows, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetNextRow", _wrap_CTemplateLoopContext_GetNextRow, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetCurRow", _wrap_CTemplateLoopContext_GetCurRow, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetRow", _wrap_CTemplateLoopContext_GetRow, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_GetValue", _wrap_CTemplateLoopContext_GetValue, METH_VARARGS, NULL}, { (char *)"CTemplateLoopContext_swigregister", CTemplateLoopContext_swigregister, METH_VARARGS, NULL}, { (char *)"new_CTemplate", _wrap_new_CTemplate, METH_VARARGS, NULL}, { (char *)"delete_CTemplate", _wrap_delete_CTemplate, METH_VARARGS, NULL}, { (char *)"CTemplate_AddTagHandler", _wrap_CTemplate_AddTagHandler, METH_VARARGS, NULL}, { (char *)"CTemplate_GetTagHandlers", _wrap_CTemplate_GetTagHandlers, METH_VARARGS, NULL}, { (char *)"CTemplate_ResolveLiteral", _wrap_CTemplate_ResolveLiteral, METH_VARARGS, NULL}, { (char *)"CTemplate_Init", _wrap_CTemplate_Init, METH_VARARGS, NULL}, { (char *)"CTemplate_GetParent", _wrap_CTemplate_GetParent, METH_VARARGS, NULL}, { (char *)"CTemplate_ExpandFile", _wrap_CTemplate_ExpandFile, METH_VARARGS, NULL}, { (char *)"CTemplate_SetFile", _wrap_CTemplate_SetFile, METH_VARARGS, NULL}, { (char *)"CTemplate_SetPath", _wrap_CTemplate_SetPath, METH_VARARGS, NULL}, { (char *)"CTemplate_MakePath", _wrap_CTemplate_MakePath, METH_VARARGS, NULL}, { (char *)"CTemplate_PrependPath", _wrap_CTemplate_PrependPath, METH_VARARGS, NULL}, { (char *)"CTemplate_AppendPath", _wrap_CTemplate_AppendPath, METH_VARARGS, NULL}, { (char *)"CTemplate_RemovePath", _wrap_CTemplate_RemovePath, METH_VARARGS, NULL}, { (char *)"CTemplate_ClearPaths", _wrap_CTemplate_ClearPaths, METH_VARARGS, NULL}, { (char *)"CTemplate_PrintString", _wrap_CTemplate_PrintString, METH_VARARGS, NULL}, { (char *)"CTemplate_Print", _wrap_CTemplate_Print, METH_VARARGS, NULL}, { (char *)"CTemplate_ValidIf", _wrap_CTemplate_ValidIf, METH_VARARGS, NULL}, { (char *)"CTemplate_ValidExpr", _wrap_CTemplate_ValidExpr, METH_VARARGS, NULL}, { (char *)"CTemplate_IsTrue", _wrap_CTemplate_IsTrue, METH_VARARGS, NULL}, { (char *)"CTemplate_HasLoop", _wrap_CTemplate_HasLoop, METH_VARARGS, NULL}, { (char *)"CTemplate_GetValue", _wrap_CTemplate_GetValue, METH_VARARGS, NULL}, { (char *)"CTemplate_AddRow", _wrap_CTemplate_AddRow, METH_VARARGS, NULL}, { (char *)"CTemplate_GetRow", _wrap_CTemplate_GetRow, METH_VARARGS, NULL}, { (char *)"CTemplate_GetLoop", _wrap_CTemplate_GetLoop, METH_VARARGS, NULL}, { (char *)"CTemplate_DelCurLoopContext", _wrap_CTemplate_DelCurLoopContext, METH_VARARGS, NULL}, { (char *)"CTemplate_GetCurLoopContext", _wrap_CTemplate_GetCurLoopContext, METH_VARARGS, NULL}, { (char *)"CTemplate_GetCurTemplate", _wrap_CTemplate_GetCurTemplate, METH_VARARGS, NULL}, { (char *)"CTemplate_GetFileName", _wrap_CTemplate_GetFileName, METH_VARARGS, NULL}, { (char *)"CTemplate_set", _wrap_CTemplate_set, METH_VARARGS, NULL}, { (char *)"CTemplate_swigregister", CTemplate_swigregister, METH_VARARGS, NULL}, { (char *)"new_CZNCTagHandler", _wrap_new_CZNCTagHandler, METH_VARARGS, NULL}, { (char *)"delete_CZNCTagHandler", _wrap_delete_CZNCTagHandler, METH_VARARGS, NULL}, { (char *)"CZNCTagHandler_HandleTag", _wrap_CZNCTagHandler_HandleTag, METH_VARARGS, NULL}, { (char *)"CZNCTagHandler_swigregister", CZNCTagHandler_swigregister, METH_VARARGS, NULL}, { (char *)"new_CWebSession", _wrap_new_CWebSession, METH_VARARGS, NULL}, { (char *)"delete_CWebSession", _wrap_delete_CWebSession, METH_VARARGS, NULL}, { (char *)"CWebSession_GetId", _wrap_CWebSession_GetId, METH_VARARGS, NULL}, { (char *)"CWebSession_GetIP", _wrap_CWebSession_GetIP, METH_VARARGS, NULL}, { (char *)"CWebSession_GetUser", _wrap_CWebSession_GetUser, METH_VARARGS, NULL}, { (char *)"CWebSession_GetLastActive", _wrap_CWebSession_GetLastActive, METH_VARARGS, NULL}, { (char *)"CWebSession_IsLoggedIn", _wrap_CWebSession_IsLoggedIn, METH_VARARGS, NULL}, { (char *)"CWebSession_IsAdmin", _wrap_CWebSession_IsAdmin, METH_VARARGS, NULL}, { (char *)"CWebSession_UpdateLastActive", _wrap_CWebSession_UpdateLastActive, METH_VARARGS, NULL}, { (char *)"CWebSession_SetUser", _wrap_CWebSession_SetUser, METH_VARARGS, NULL}, { (char *)"CWebSession_ClearMessageLoops", _wrap_CWebSession_ClearMessageLoops, METH_VARARGS, NULL}, { (char *)"CWebSession_FillMessageLoops", _wrap_CWebSession_FillMessageLoops, METH_VARARGS, NULL}, { (char *)"CWebSession_AddError", _wrap_CWebSession_AddError, METH_VARARGS, NULL}, { (char *)"CWebSession_AddSuccess", _wrap_CWebSession_AddSuccess, METH_VARARGS, NULL}, { (char *)"CWebSession_swigregister", CWebSession_swigregister, METH_VARARGS, NULL}, { (char *)"new_CWebSubPage", _wrap_new_CWebSubPage, METH_VARARGS, NULL}, { (char *)"delete_CWebSubPage", _wrap_delete_CWebSubPage, METH_VARARGS, NULL}, { (char *)"CWebSubPage_SetName", _wrap_CWebSubPage_SetName, METH_VARARGS, NULL}, { (char *)"CWebSubPage_SetTitle", _wrap_CWebSubPage_SetTitle, METH_VARARGS, NULL}, { (char *)"CWebSubPage_AddParam", _wrap_CWebSubPage_AddParam, METH_VARARGS, NULL}, { (char *)"CWebSubPage_RequiresAdmin", _wrap_CWebSubPage_RequiresAdmin, METH_VARARGS, NULL}, { (char *)"CWebSubPage_GetName", _wrap_CWebSubPage_GetName, METH_VARARGS, NULL}, { (char *)"CWebSubPage_GetTitle", _wrap_CWebSubPage_GetTitle, METH_VARARGS, NULL}, { (char *)"CWebSubPage_GetParams", _wrap_CWebSubPage_GetParams, METH_VARARGS, NULL}, { (char *)"CWebSubPage_swigregister", CWebSubPage_swigregister, METH_VARARGS, NULL}, { (char *)"new_CWebSessionMap", _wrap_new_CWebSessionMap, METH_VARARGS, NULL}, { (char *)"CWebSessionMap_FinishUserSessions", _wrap_CWebSessionMap_FinishUserSessions, METH_VARARGS, NULL}, { (char *)"delete_CWebSessionMap", _wrap_delete_CWebSessionMap, METH_VARARGS, NULL}, { (char *)"CWebSessionMap_swigregister", CWebSessionMap_swigregister, METH_VARARGS, NULL}, { (char *)"new_CWebSock", _wrap_new_CWebSock, METH_VARARGS, NULL}, { (char *)"delete_CWebSock", _wrap_delete_CWebSock, METH_VARARGS, NULL}, { (char *)"CWebSock_ForceLogin", _wrap_CWebSock_ForceLogin, METH_VARARGS, NULL}, { (char *)"CWebSock_OnLogin", _wrap_CWebSock_OnLogin, METH_VARARGS, NULL}, { (char *)"CWebSock_OnPageRequest", _wrap_CWebSock_OnPageRequest, METH_VARARGS, NULL}, { (char *)"CWebSock_PrintTemplate", _wrap_CWebSock_PrintTemplate, METH_VARARGS, NULL}, { (char *)"CWebSock_PrintStaticFile", _wrap_CWebSock_PrintStaticFile, METH_VARARGS, NULL}, { (char *)"CWebSock_FindTmpl", _wrap_CWebSock_FindTmpl, METH_VARARGS, NULL}, { (char *)"CWebSock_GetSession", _wrap_CWebSock_GetSession, METH_VARARGS, NULL}, { (char *)"CWebSock_GetSockObj", _wrap_CWebSock_GetSockObj, METH_VARARGS, NULL}, { (char *)"CWebSock_GetSkinPath", _wrap_CWebSock_GetSkinPath, METH_VARARGS, NULL}, { (char *)"CWebSock_GetAvailSkins", _wrap_CWebSock_GetAvailSkins, METH_VARARGS, NULL}, { (char *)"CWebSock_GetSkinName", _wrap_CWebSock_GetSkinName, METH_VARARGS, NULL}, { (char *)"CWebSock_GetRequestCookie", _wrap_CWebSock_GetRequestCookie, METH_VARARGS, NULL}, { (char *)"CWebSock_SendCookie", _wrap_CWebSock_SendCookie, METH_VARARGS, NULL}, { (char *)"CWebSock_FinishUserSessions", _wrap_CWebSock_FinishUserSessions, METH_VARARGS, NULL}, { (char *)"CWebSock_swigregister", CWebSock_swigregister, METH_VARARGS, NULL}, { (char *)"new_CZNC", _wrap_new_CZNC, METH_VARARGS, NULL}, { (char *)"delete_CZNC", _wrap_delete_CZNC, METH_VARARGS, NULL}, { (char *)"CZNC_DeleteUsers", _wrap_CZNC_DeleteUsers, METH_VARARGS, NULL}, { (char *)"CZNC_Loop", _wrap_CZNC_Loop, METH_VARARGS, NULL}, { (char *)"CZNC_WritePidFile", _wrap_CZNC_WritePidFile, METH_VARARGS, NULL}, { (char *)"CZNC_DeletePidFile", _wrap_CZNC_DeletePidFile, METH_VARARGS, NULL}, { (char *)"CZNC_WaitForChildLock", _wrap_CZNC_WaitForChildLock, METH_VARARGS, NULL}, { (char *)"CZNC_IsHostAllowed", _wrap_CZNC_IsHostAllowed, METH_VARARGS, NULL}, { (char *)"CZNC_AllowConnectionFrom", _wrap_CZNC_AllowConnectionFrom, METH_VARARGS, NULL}, { (char *)"CZNC_InitDirs", _wrap_CZNC_InitDirs, METH_VARARGS, NULL}, { (char *)"CZNC_OnBoot", _wrap_CZNC_OnBoot, METH_VARARGS, NULL}, { (char *)"CZNC_ExpandConfigPath", _wrap_CZNC_ExpandConfigPath, METH_VARARGS, NULL}, { (char *)"CZNC_WriteNewConfig", _wrap_CZNC_WriteNewConfig, METH_VARARGS, NULL}, { (char *)"CZNC_WriteConfig", _wrap_CZNC_WriteConfig, METH_VARARGS, NULL}, { (char *)"CZNC_ParseConfig", _wrap_CZNC_ParseConfig, METH_VARARGS, NULL}, { (char *)"CZNC_RehashConfig", _wrap_CZNC_RehashConfig, METH_VARARGS, NULL}, { (char *)"CZNC_BackupConfigOnce", _wrap_CZNC_BackupConfigOnce, METH_VARARGS, NULL}, { (char *)"CZNC_GetVersion", _wrap_CZNC_GetVersion, METH_VARARGS, NULL}, { (char *)"CZNC_GetTag", _wrap_CZNC_GetTag, METH_VARARGS, NULL}, { (char *)"CZNC_GetCompileOptionsString", _wrap_CZNC_GetCompileOptionsString, METH_VARARGS, NULL}, { (char *)"CZNC_GetUptime", _wrap_CZNC_GetUptime, METH_VARARGS, NULL}, { (char *)"CZNC_ClearBindHosts", _wrap_CZNC_ClearBindHosts, METH_VARARGS, NULL}, { (char *)"CZNC_AddBindHost", _wrap_CZNC_AddBindHost, METH_VARARGS, NULL}, { (char *)"CZNC_RemBindHost", _wrap_CZNC_RemBindHost, METH_VARARGS, NULL}, { (char *)"CZNC_ClearTrustedProxies", _wrap_CZNC_ClearTrustedProxies, METH_VARARGS, NULL}, { (char *)"CZNC_AddTrustedProxy", _wrap_CZNC_AddTrustedProxy, METH_VARARGS, NULL}, { (char *)"CZNC_RemTrustedProxy", _wrap_CZNC_RemTrustedProxy, METH_VARARGS, NULL}, { (char *)"CZNC_Broadcast", _wrap_CZNC_Broadcast, METH_VARARGS, NULL}, { (char *)"CZNC_AddBytesRead", _wrap_CZNC_AddBytesRead, METH_VARARGS, NULL}, { (char *)"CZNC_AddBytesWritten", _wrap_CZNC_AddBytesWritten, METH_VARARGS, NULL}, { (char *)"CZNC_BytesRead", _wrap_CZNC_BytesRead, METH_VARARGS, NULL}, { (char *)"CZNC_BytesWritten", _wrap_CZNC_BytesWritten, METH_VARARGS, NULL}, { (char *)"CZNC_GetTrafficStats", _wrap_CZNC_GetTrafficStats, METH_VARARGS, NULL}, { (char *)"CZNC_AuthUser", _wrap_CZNC_AuthUser, METH_VARARGS, NULL}, { (char *)"CZNC_SetConfigState", _wrap_CZNC_SetConfigState, METH_VARARGS, NULL}, { (char *)"CZNC_SetSkinName", _wrap_CZNC_SetSkinName, METH_VARARGS, NULL}, { (char *)"CZNC_SetStatusPrefix", _wrap_CZNC_SetStatusPrefix, METH_VARARGS, NULL}, { (char *)"CZNC_SetMaxBufferSize", _wrap_CZNC_SetMaxBufferSize, METH_VARARGS, NULL}, { (char *)"CZNC_SetAnonIPLimit", _wrap_CZNC_SetAnonIPLimit, METH_VARARGS, NULL}, { (char *)"CZNC_SetServerThrottle", _wrap_CZNC_SetServerThrottle, METH_VARARGS, NULL}, { (char *)"CZNC_SetProtectWebSessions", _wrap_CZNC_SetProtectWebSessions, METH_VARARGS, NULL}, { (char *)"CZNC_SetHideVersion", _wrap_CZNC_SetHideVersion, METH_VARARGS, NULL}, { (char *)"CZNC_SetConnectDelay", _wrap_CZNC_SetConnectDelay, METH_VARARGS, NULL}, { (char *)"CZNC_GetConfigState", _wrap_CZNC_GetConfigState, METH_VARARGS, NULL}, { (char *)"CZNC_GetManager", _wrap_CZNC_GetManager, METH_VARARGS, NULL}, { (char *)"CZNC_GetModules", _wrap_CZNC_GetModules, METH_VARARGS, NULL}, { (char *)"CZNC_GetSkinName", _wrap_CZNC_GetSkinName, METH_VARARGS, NULL}, { (char *)"CZNC_GetStatusPrefix", _wrap_CZNC_GetStatusPrefix, METH_VARARGS, NULL}, { (char *)"CZNC_GetCurPath", _wrap_CZNC_GetCurPath, METH_VARARGS, NULL}, { (char *)"CZNC_GetHomePath", _wrap_CZNC_GetHomePath, METH_VARARGS, NULL}, { (char *)"CZNC_GetZNCPath", _wrap_CZNC_GetZNCPath, METH_VARARGS, NULL}, { (char *)"CZNC_GetConfPath", _wrap_CZNC_GetConfPath, METH_VARARGS, NULL}, { (char *)"CZNC_GetUserPath", _wrap_CZNC_GetUserPath, METH_VARARGS, NULL}, { (char *)"CZNC_GetModPath", _wrap_CZNC_GetModPath, METH_VARARGS, NULL}, { (char *)"CZNC_GetPemLocation", _wrap_CZNC_GetPemLocation, METH_VARARGS, NULL}, { (char *)"CZNC_GetConfigFile", _wrap_CZNC_GetConfigFile, METH_VARARGS, NULL}, { (char *)"CZNC_WritePemFile", _wrap_CZNC_WritePemFile, METH_VARARGS, NULL}, { (char *)"CZNC_GetBindHosts", _wrap_CZNC_GetBindHosts, METH_VARARGS, NULL}, { (char *)"CZNC_GetTrustedProxies", _wrap_CZNC_GetTrustedProxies, METH_VARARGS, NULL}, { (char *)"CZNC_GetListeners", _wrap_CZNC_GetListeners, METH_VARARGS, NULL}, { (char *)"CZNC_TimeStarted", _wrap_CZNC_TimeStarted, METH_VARARGS, NULL}, { (char *)"CZNC_GetMaxBufferSize", _wrap_CZNC_GetMaxBufferSize, METH_VARARGS, NULL}, { (char *)"CZNC_GetAnonIPLimit", _wrap_CZNC_GetAnonIPLimit, METH_VARARGS, NULL}, { (char *)"CZNC_GetConnectDelay", _wrap_CZNC_GetConnectDelay, METH_VARARGS, NULL}, { (char *)"CZNC_GetProtectWebSessions", _wrap_CZNC_GetProtectWebSessions, METH_VARARGS, NULL}, { (char *)"CZNC_GetHideVersion", _wrap_CZNC_GetHideVersion, METH_VARARGS, NULL}, { (char *)"CZNC_GetSSLCiphers", _wrap_CZNC_GetSSLCiphers, METH_VARARGS, NULL}, { (char *)"CZNC_GetDisabledSSLProtocols", _wrap_CZNC_GetDisabledSSLProtocols, METH_VARARGS, NULL}, { (char *)"CZNC_CreateInstance", _wrap_CZNC_CreateInstance, METH_VARARGS, NULL}, { (char *)"CZNC_Get", _wrap_CZNC_Get, METH_VARARGS, NULL}, { (char *)"CZNC_DestroyInstance", _wrap_CZNC_DestroyInstance, METH_VARARGS, NULL}, { (char *)"CZNC_FindUser", _wrap_CZNC_FindUser, METH_VARARGS, NULL}, { (char *)"CZNC_FindModule", _wrap_CZNC_FindModule, METH_VARARGS, NULL}, { (char *)"CZNC_UpdateModule", _wrap_CZNC_UpdateModule, METH_VARARGS, NULL}, { (char *)"CZNC_DeleteUser", _wrap_CZNC_DeleteUser, METH_VARARGS, NULL}, { (char *)"CZNC_AddUser", _wrap_CZNC_AddUser, METH_VARARGS, NULL}, { (char *)"CZNC_GetUserMap", _wrap_CZNC_GetUserMap, METH_VARARGS, NULL}, { (char *)"CZNC_FindListener", _wrap_CZNC_FindListener, METH_VARARGS, NULL}, { (char *)"CZNC_AddListener", _wrap_CZNC_AddListener, METH_VARARGS, NULL}, { (char *)"CZNC_DelListener", _wrap_CZNC_DelListener, METH_VARARGS, NULL}, { (char *)"CZNC_SetMotd", _wrap_CZNC_SetMotd, METH_VARARGS, NULL}, { (char *)"CZNC_AddMotd", _wrap_CZNC_AddMotd, METH_VARARGS, NULL}, { (char *)"CZNC_ClearMotd", _wrap_CZNC_ClearMotd, METH_VARARGS, NULL}, { (char *)"CZNC_GetMotd", _wrap_CZNC_GetMotd, METH_VARARGS, NULL}, { (char *)"CZNC_AddServerThrottle", _wrap_CZNC_AddServerThrottle, METH_VARARGS, NULL}, { (char *)"CZNC_GetServerThrottle", _wrap_CZNC_GetServerThrottle, METH_VARARGS, NULL}, { (char *)"CZNC_AddNetworkToQueue", _wrap_CZNC_AddNetworkToQueue, METH_VARARGS, NULL}, { (char *)"CZNC_GetConnectionQueue", _wrap_CZNC_GetConnectionQueue, METH_VARARGS, NULL}, { (char *)"CZNC_EnableConnectQueue", _wrap_CZNC_EnableConnectQueue, METH_VARARGS, NULL}, { (char *)"CZNC_DisableConnectQueue", _wrap_CZNC_DisableConnectQueue, METH_VARARGS, NULL}, { (char *)"CZNC_PauseConnectQueue", _wrap_CZNC_PauseConnectQueue, METH_VARARGS, NULL}, { (char *)"CZNC_ResumeConnectQueue", _wrap_CZNC_ResumeConnectQueue, METH_VARARGS, NULL}, { (char *)"CZNC_LeakConnectQueueTimer", _wrap_CZNC_LeakConnectQueueTimer, METH_VARARGS, NULL}, { (char *)"CZNC_DumpConfig", _wrap_CZNC_DumpConfig, METH_VARARGS, NULL}, { (char *)"CZNC_GetUserMap_", _wrap_CZNC_GetUserMap_, METH_VARARGS, NULL}, { (char *)"CZNC_swigregister", CZNC_swigregister, METH_VARARGS, NULL}, { (char *)"new_CServer", _wrap_new_CServer, METH_VARARGS, NULL}, { (char *)"delete_CServer", _wrap_delete_CServer, METH_VARARGS, NULL}, { (char *)"CServer_GetName", _wrap_CServer_GetName, METH_VARARGS, NULL}, { (char *)"CServer_GetPort", _wrap_CServer_GetPort, METH_VARARGS, NULL}, { (char *)"CServer_GetPass", _wrap_CServer_GetPass, METH_VARARGS, NULL}, { (char *)"CServer_IsSSL", _wrap_CServer_IsSSL, METH_VARARGS, NULL}, { (char *)"CServer_GetString", _wrap_CServer_GetString, METH_VARARGS, NULL}, { (char *)"CServer_IsValidHostName", _wrap_CServer_IsValidHostName, METH_VARARGS, NULL}, { (char *)"CServer_swigregister", CServer_swigregister, METH_VARARGS, NULL}, { (char *)"CDebug_SetStdoutIsTTY", _wrap_CDebug_SetStdoutIsTTY, METH_VARARGS, NULL}, { (char *)"CDebug_StdoutIsTTY", _wrap_CDebug_StdoutIsTTY, METH_VARARGS, NULL}, { (char *)"CDebug_SetDebug", _wrap_CDebug_SetDebug, METH_VARARGS, NULL}, { (char *)"CDebug_Debug", _wrap_CDebug_Debug, METH_VARARGS, NULL}, { (char *)"new_CDebug", _wrap_new_CDebug, METH_VARARGS, NULL}, { (char *)"delete_CDebug", _wrap_delete_CDebug, METH_VARARGS, NULL}, { (char *)"CDebug_swigregister", CDebug_swigregister, METH_VARARGS, NULL}, { (char *)"delete_CDebugStream", _wrap_delete_CDebugStream, METH_VARARGS, NULL}, { (char *)"new_CDebugStream", _wrap_new_CDebugStream, METH_VARARGS, NULL}, { (char *)"CDebugStream_swigregister", CDebugStream_swigregister, METH_VARARGS, NULL}, { (char *)"new_CExecSock", _wrap_new_CExecSock, METH_VARARGS, NULL}, { (char *)"CExecSock_Execute", _wrap_CExecSock_Execute, METH_VARARGS, NULL}, { (char *)"CExecSock_Kill", _wrap_CExecSock_Kill, METH_VARARGS, NULL}, { (char *)"delete_CExecSock", _wrap_delete_CExecSock, METH_VARARGS, NULL}, { (char *)"CExecSock_popen2", _wrap_CExecSock_popen2, METH_VARARGS, NULL}, { (char *)"CExecSock_close2", _wrap_CExecSock_close2, METH_VARARGS, NULL}, { (char *)"CExecSock_swigregister", CExecSock_swigregister, METH_VARARGS, NULL}, { (char *)"new_CBufLine", _wrap_new_CBufLine, METH_VARARGS, NULL}, { (char *)"delete_CBufLine", _wrap_delete_CBufLine, METH_VARARGS, NULL}, { (char *)"CBufLine_GetLine", _wrap_CBufLine_GetLine, METH_VARARGS, NULL}, { (char *)"CBufLine_UpdateTime", _wrap_CBufLine_UpdateTime, METH_VARARGS, NULL}, { (char *)"CBufLine_SetFormat", _wrap_CBufLine_SetFormat, METH_VARARGS, NULL}, { (char *)"CBufLine_SetText", _wrap_CBufLine_SetText, METH_VARARGS, NULL}, { (char *)"CBufLine_SetTime", _wrap_CBufLine_SetTime, METH_VARARGS, NULL}, { (char *)"CBufLine_GetFormat", _wrap_CBufLine_GetFormat, METH_VARARGS, NULL}, { (char *)"CBufLine_GetText", _wrap_CBufLine_GetText, METH_VARARGS, NULL}, { (char *)"CBufLine_GetTime", _wrap_CBufLine_GetTime, METH_VARARGS, NULL}, { (char *)"CBufLine_swigregister", CBufLine_swigregister, METH_VARARGS, NULL}, { (char *)"new_CBuffer", _wrap_new_CBuffer, METH_VARARGS, NULL}, { (char *)"delete_CBuffer", _wrap_delete_CBuffer, METH_VARARGS, NULL}, { (char *)"CBuffer_AddLine", _wrap_CBuffer_AddLine, METH_VARARGS, NULL}, { (char *)"CBuffer_UpdateLine", _wrap_CBuffer_UpdateLine, METH_VARARGS, NULL}, { (char *)"CBuffer_UpdateExactLine", _wrap_CBuffer_UpdateExactLine, METH_VARARGS, NULL}, { (char *)"CBuffer_GetBufLine", _wrap_CBuffer_GetBufLine, METH_VARARGS, NULL}, { (char *)"CBuffer_GetLine", _wrap_CBuffer_GetLine, METH_VARARGS, NULL}, { (char *)"CBuffer_Size", _wrap_CBuffer_Size, METH_VARARGS, NULL}, { (char *)"CBuffer_IsEmpty", _wrap_CBuffer_IsEmpty, METH_VARARGS, NULL}, { (char *)"CBuffer_Clear", _wrap_CBuffer_Clear, METH_VARARGS, NULL}, { (char *)"CBuffer_SetLineCount", _wrap_CBuffer_SetLineCount, METH_VARARGS, NULL}, { (char *)"CBuffer_GetLineCount", _wrap_CBuffer_GetLineCount, METH_VARARGS, NULL}, { (char *)"CBuffer_swigregister", CBuffer_swigregister, METH_VARARGS, NULL}, { (char *)"String_s_set", _wrap_String_s_set, METH_VARARGS, NULL}, { (char *)"String_s_get", _wrap_String_s_get, METH_VARARGS, NULL}, { (char *)"String___str__", _wrap_String___str__, METH_VARARGS, NULL}, { (char *)"new_String", _wrap_new_String, METH_VARARGS, NULL}, { (char *)"delete_String", _wrap_delete_String, METH_VARARGS, NULL}, { (char *)"String_swigregister", String_swigregister, METH_VARARGS, NULL}, { (char *)"new_CPyModule", _wrap_new_CPyModule, METH_VARARGS, NULL}, { (char *)"CPyModule_GetPyObj", _wrap_CPyModule_GetPyObj, METH_VARARGS, NULL}, { (char *)"CPyModule_GetNewPyObj", _wrap_CPyModule_GetNewPyObj, METH_VARARGS, NULL}, { (char *)"CPyModule_DeletePyModule", _wrap_CPyModule_DeletePyModule, METH_VARARGS, NULL}, { (char *)"CPyModule_GetPyExceptionStr", _wrap_CPyModule_GetPyExceptionStr, METH_VARARGS, NULL}, { (char *)"CPyModule_GetModPython", _wrap_CPyModule_GetModPython, METH_VARARGS, NULL}, { (char *)"CPyModule_OnBoot", _wrap_CPyModule_OnBoot, METH_VARARGS, NULL}, { (char *)"CPyModule_WebRequiresLogin", _wrap_CPyModule_WebRequiresLogin, METH_VARARGS, NULL}, { (char *)"CPyModule_WebRequiresAdmin", _wrap_CPyModule_WebRequiresAdmin, METH_VARARGS, NULL}, { (char *)"CPyModule_GetWebMenuTitle", _wrap_CPyModule_GetWebMenuTitle, METH_VARARGS, NULL}, { (char *)"CPyModule_OnWebPreRequest", _wrap_CPyModule_OnWebPreRequest, METH_VARARGS, NULL}, { (char *)"CPyModule_OnWebRequest", _wrap_CPyModule_OnWebRequest, METH_VARARGS, NULL}, { (char *)"CPyModule_GetSubPages", _wrap_CPyModule_GetSubPages, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPreRehash", _wrap_CPyModule_OnPreRehash, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPostRehash", _wrap_CPyModule_OnPostRehash, METH_VARARGS, NULL}, { (char *)"CPyModule_OnIRCDisconnected", _wrap_CPyModule_OnIRCDisconnected, METH_VARARGS, NULL}, { (char *)"CPyModule_OnIRCConnected", _wrap_CPyModule_OnIRCConnected, METH_VARARGS, NULL}, { (char *)"CPyModule_OnIRCConnecting", _wrap_CPyModule_OnIRCConnecting, METH_VARARGS, NULL}, { (char *)"CPyModule_OnIRCConnectionError", _wrap_CPyModule_OnIRCConnectionError, METH_VARARGS, NULL}, { (char *)"CPyModule_OnIRCRegistration", _wrap_CPyModule_OnIRCRegistration, METH_VARARGS, NULL}, { (char *)"CPyModule_OnBroadcast", _wrap_CPyModule_OnBroadcast, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanPermission2", _wrap_CPyModule_OnChanPermission2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnOp2", _wrap_CPyModule_OnOp2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnDeop2", _wrap_CPyModule_OnDeop2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnVoice2", _wrap_CPyModule_OnVoice2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnDevoice2", _wrap_CPyModule_OnDevoice2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnMode2", _wrap_CPyModule_OnMode2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnRawMode2", _wrap_CPyModule_OnRawMode2, METH_VARARGS, NULL}, { (char *)"CPyModule_OnRaw", _wrap_CPyModule_OnRaw, METH_VARARGS, NULL}, { (char *)"CPyModule_OnStatusCommand", _wrap_CPyModule_OnStatusCommand, METH_VARARGS, NULL}, { (char *)"CPyModule_OnModCommand", _wrap_CPyModule_OnModCommand, METH_VARARGS, NULL}, { (char *)"CPyModule_OnModNotice", _wrap_CPyModule_OnModNotice, METH_VARARGS, NULL}, { (char *)"CPyModule_OnModCTCP", _wrap_CPyModule_OnModCTCP, METH_VARARGS, NULL}, { (char *)"CPyModule_OnQuit", _wrap_CPyModule_OnQuit, METH_VARARGS, NULL}, { (char *)"CPyModule_OnNick", _wrap_CPyModule_OnNick, METH_VARARGS, NULL}, { (char *)"CPyModule_OnKick", _wrap_CPyModule_OnKick, METH_VARARGS, NULL}, { (char *)"CPyModule_OnJoining", _wrap_CPyModule_OnJoining, METH_VARARGS, NULL}, { (char *)"CPyModule_OnJoin", _wrap_CPyModule_OnJoin, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPart", _wrap_CPyModule_OnPart, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanBufferStarting", _wrap_CPyModule_OnChanBufferStarting, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanBufferEnding", _wrap_CPyModule_OnChanBufferEnding, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanBufferPlayLine", _wrap_CPyModule_OnChanBufferPlayLine, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPrivBufferPlayLine", _wrap_CPyModule_OnPrivBufferPlayLine, METH_VARARGS, NULL}, { (char *)"CPyModule_OnClientLogin", _wrap_CPyModule_OnClientLogin, METH_VARARGS, NULL}, { (char *)"CPyModule_OnClientDisconnect", _wrap_CPyModule_OnClientDisconnect, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserRaw", _wrap_CPyModule_OnUserRaw, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserCTCPReply", _wrap_CPyModule_OnUserCTCPReply, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserCTCP", _wrap_CPyModule_OnUserCTCP, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserAction", _wrap_CPyModule_OnUserAction, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserMsg", _wrap_CPyModule_OnUserMsg, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserNotice", _wrap_CPyModule_OnUserNotice, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserJoin", _wrap_CPyModule_OnUserJoin, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserPart", _wrap_CPyModule_OnUserPart, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserTopic", _wrap_CPyModule_OnUserTopic, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUserTopicRequest", _wrap_CPyModule_OnUserTopicRequest, METH_VARARGS, NULL}, { (char *)"CPyModule_OnCTCPReply", _wrap_CPyModule_OnCTCPReply, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPrivCTCP", _wrap_CPyModule_OnPrivCTCP, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanCTCP", _wrap_CPyModule_OnChanCTCP, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPrivAction", _wrap_CPyModule_OnPrivAction, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanAction", _wrap_CPyModule_OnChanAction, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPrivMsg", _wrap_CPyModule_OnPrivMsg, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanMsg", _wrap_CPyModule_OnChanMsg, METH_VARARGS, NULL}, { (char *)"CPyModule_OnPrivNotice", _wrap_CPyModule_OnPrivNotice, METH_VARARGS, NULL}, { (char *)"CPyModule_OnChanNotice", _wrap_CPyModule_OnChanNotice, METH_VARARGS, NULL}, { (char *)"CPyModule_OnTopic", _wrap_CPyModule_OnTopic, METH_VARARGS, NULL}, { (char *)"CPyModule_OnServerCapAvailable", _wrap_CPyModule_OnServerCapAvailable, METH_VARARGS, NULL}, { (char *)"CPyModule_OnServerCapResult", _wrap_CPyModule_OnServerCapResult, METH_VARARGS, NULL}, { (char *)"CPyModule_OnTimerAutoJoin", _wrap_CPyModule_OnTimerAutoJoin, METH_VARARGS, NULL}, { (char *)"CPyModule_OnEmbeddedWebRequest", _wrap_CPyModule_OnEmbeddedWebRequest, METH_VARARGS, NULL}, { (char *)"CPyModule_OnAddNetwork", _wrap_CPyModule_OnAddNetwork, METH_VARARGS, NULL}, { (char *)"CPyModule_OnDeleteNetwork", _wrap_CPyModule_OnDeleteNetwork, METH_VARARGS, NULL}, { (char *)"CPyModule_OnSendToClient", _wrap_CPyModule_OnSendToClient, METH_VARARGS, NULL}, { (char *)"CPyModule_OnSendToIRC", _wrap_CPyModule_OnSendToIRC, METH_VARARGS, NULL}, { (char *)"CPyModule_OnAddUser", _wrap_CPyModule_OnAddUser, METH_VARARGS, NULL}, { (char *)"CPyModule_OnDeleteUser", _wrap_CPyModule_OnDeleteUser, METH_VARARGS, NULL}, { (char *)"CPyModule_OnClientConnect", _wrap_CPyModule_OnClientConnect, METH_VARARGS, NULL}, { (char *)"CPyModule_OnFailedLogin", _wrap_CPyModule_OnFailedLogin, METH_VARARGS, NULL}, { (char *)"CPyModule_OnUnknownUserRaw", _wrap_CPyModule_OnUnknownUserRaw, METH_VARARGS, NULL}, { (char *)"CPyModule_IsClientCapSupported", _wrap_CPyModule_IsClientCapSupported, METH_VARARGS, NULL}, { (char *)"CPyModule_OnClientCapRequest", _wrap_CPyModule_OnClientCapRequest, METH_VARARGS, NULL}, { (char *)"CPyModule_OnModuleLoading", _wrap_CPyModule_OnModuleLoading, METH_VARARGS, NULL}, { (char *)"CPyModule_OnModuleUnloading", _wrap_CPyModule_OnModuleUnloading, METH_VARARGS, NULL}, { (char *)"CPyModule_OnGetModInfo", _wrap_CPyModule_OnGetModInfo, METH_VARARGS, NULL}, { (char *)"CPyModule_OnGetAvailableMods", _wrap_CPyModule_OnGetAvailableMods, METH_VARARGS, NULL}, { (char *)"CPyModule_OnClientCapLs", _wrap_CPyModule_OnClientCapLs, METH_VARARGS, NULL}, { (char *)"CPyModule_OnLoginAttempt", _wrap_CPyModule_OnLoginAttempt, METH_VARARGS, NULL}, { (char *)"delete_CPyModule", _wrap_delete_CPyModule, METH_VARARGS, NULL}, { (char *)"CPyModule_swigregister", CPyModule_swigregister, METH_VARARGS, NULL}, { (char *)"AsPyModule", _wrap_AsPyModule, METH_VARARGS, NULL}, { (char *)"CreatePyModule", _wrap_CreatePyModule, METH_VARARGS, NULL}, { (char *)"new_CPyTimer", _wrap_new_CPyTimer, METH_VARARGS, NULL}, { (char *)"CPyTimer_RunJob", _wrap_CPyTimer_RunJob, METH_VARARGS, NULL}, { (char *)"CPyTimer_GetPyObj", _wrap_CPyTimer_GetPyObj, METH_VARARGS, NULL}, { (char *)"CPyTimer_GetNewPyObj", _wrap_CPyTimer_GetNewPyObj, METH_VARARGS, NULL}, { (char *)"delete_CPyTimer", _wrap_delete_CPyTimer, METH_VARARGS, NULL}, { (char *)"CPyTimer_swigregister", CPyTimer_swigregister, METH_VARARGS, NULL}, { (char *)"CreatePyTimer", _wrap_CreatePyTimer, METH_VARARGS, NULL}, { (char *)"new_CPySocket", _wrap_new_CPySocket, METH_VARARGS, NULL}, { (char *)"CPySocket_GetPyObj", _wrap_CPySocket_GetPyObj, METH_VARARGS, NULL}, { (char *)"CPySocket_GetNewPyObj", _wrap_CPySocket_GetNewPyObj, METH_VARARGS, NULL}, { (char *)"delete_CPySocket", _wrap_delete_CPySocket, METH_VARARGS, NULL}, { (char *)"CPySocket_Connected", _wrap_CPySocket_Connected, METH_VARARGS, NULL}, { (char *)"CPySocket_Disconnected", _wrap_CPySocket_Disconnected, METH_VARARGS, NULL}, { (char *)"CPySocket_Timeout", _wrap_CPySocket_Timeout, METH_VARARGS, NULL}, { (char *)"CPySocket_ConnectionRefused", _wrap_CPySocket_ConnectionRefused, METH_VARARGS, NULL}, { (char *)"CPySocket_ReadData", _wrap_CPySocket_ReadData, METH_VARARGS, NULL}, { (char *)"CPySocket_ReadLine", _wrap_CPySocket_ReadLine, METH_VARARGS, NULL}, { (char *)"CPySocket_GetSockObj", _wrap_CPySocket_GetSockObj, METH_VARARGS, NULL}, { (char *)"CPySocket_swigregister", CPySocket_swigregister, METH_VARARGS, NULL}, { (char *)"CreatePySocket", _wrap_CreatePySocket, METH_VARARGS, NULL}, { (char *)"HaveIPv6_", _wrap_HaveIPv6_, METH_VARARGS, NULL}, { (char *)"HaveSSL_", _wrap_HaveSSL_, METH_VARARGS, NULL}, { (char *)"HaveCharset_", _wrap_HaveCharset_, METH_VARARGS, NULL}, { (char *)"GetSOMAXCONN", _wrap_GetSOMAXCONN, METH_VARARGS, NULL}, { (char *)"GetVersionMajor", _wrap_GetVersionMajor, METH_VARARGS, NULL}, { (char *)"GetVersionMinor", _wrap_GetVersionMinor, METH_VARARGS, NULL}, { (char *)"GetVersion", _wrap_GetVersion, METH_VARARGS, NULL}, { (char *)"GetVersionExtra", _wrap_GetVersionExtra, METH_VARARGS, NULL}, { (char *)"MCString_iter_x_set", _wrap_MCString_iter_x_set, METH_VARARGS, NULL}, { (char *)"MCString_iter_x_get", _wrap_MCString_iter_x_get, METH_VARARGS, NULL}, { (char *)"new_MCString_iter", _wrap_new_MCString_iter, METH_VARARGS, NULL}, { (char *)"MCString_iter_plusplus", _wrap_MCString_iter_plusplus, METH_VARARGS, NULL}, { (char *)"MCString_iter_get", _wrap_MCString_iter_get, METH_VARARGS, NULL}, { (char *)"MCString_iter_is_end", _wrap_MCString_iter_is_end, METH_VARARGS, NULL}, { (char *)"delete_MCString_iter", _wrap_delete_MCString_iter, METH_VARARGS, NULL}, { (char *)"MCString_iter_swigregister", MCString_iter_swigregister, METH_VARARGS, NULL}, { (char *)"new_CModulesIter", _wrap_new_CModulesIter, METH_VARARGS, NULL}, { (char *)"CModulesIter_plusplus", _wrap_CModulesIter_plusplus, METH_VARARGS, NULL}, { (char *)"CModulesIter_get", _wrap_CModulesIter_get, METH_VARARGS, NULL}, { (char *)"CModulesIter_is_end", _wrap_CModulesIter_is_end, METH_VARARGS, NULL}, { (char *)"CModulesIter_m_pModules_set", _wrap_CModulesIter_m_pModules_set, METH_VARARGS, NULL}, { (char *)"CModulesIter_m_pModules_get", _wrap_CModulesIter_m_pModules_get, METH_VARARGS, NULL}, { (char *)"CModulesIter_m_it_set", _wrap_CModulesIter_m_it_set, METH_VARARGS, NULL}, { (char *)"CModulesIter_m_it_get", _wrap_CModulesIter_m_it_get, METH_VARARGS, NULL}, { (char *)"delete_CModulesIter", _wrap_delete_CModulesIter, METH_VARARGS, NULL}, { (char *)"CModulesIter_swigregister", CModulesIter_swigregister, METH_VARARGS, NULL}, { (char *)"CPyRetString_s_set", _wrap_CPyRetString_s_set, METH_VARARGS, NULL}, { (char *)"CPyRetString_s_get", _wrap_CPyRetString_s_get, METH_VARARGS, NULL}, { (char *)"CPyRetString___str__", _wrap_CPyRetString___str__, METH_VARARGS, NULL}, { (char *)"delete_CPyRetString", _wrap_delete_CPyRetString, METH_VARARGS, NULL}, { (char *)"CPyRetString_swigregister", CPyRetString_swigregister, METH_VARARGS, NULL}, { (char *)"CPyRetBool_b_set", _wrap_CPyRetBool_b_set, METH_VARARGS, NULL}, { (char *)"CPyRetBool_b_get", _wrap_CPyRetBool_b_get, METH_VARARGS, NULL}, { (char *)"CPyRetBool___bool__", _wrap_CPyRetBool___bool__, METH_VARARGS, NULL}, { (char *)"delete_CPyRetBool", _wrap_delete_CPyRetBool, METH_VARARGS, NULL}, { (char *)"CPyRetBool_swigregister", CPyRetBool_swigregister, METH_VARARGS, NULL}, { (char *)"CModPython_swigregister", CModPython_swigregister, METH_VARARGS, NULL}, { (char *)"new_StrPair", _wrap_new_StrPair, METH_VARARGS, NULL}, { (char *)"StrPair_first_set", _wrap_StrPair_first_set, METH_VARARGS, NULL}, { (char *)"StrPair_first_get", _wrap_StrPair_first_get, METH_VARARGS, NULL}, { (char *)"StrPair_second_set", _wrap_StrPair_second_set, METH_VARARGS, NULL}, { (char *)"StrPair_second_get", _wrap_StrPair_second_get, METH_VARARGS, NULL}, { (char *)"delete_StrPair", _wrap_delete_StrPair, METH_VARARGS, NULL}, { (char *)"StrPair_swigregister", StrPair_swigregister, METH_VARARGS, NULL}, { (char *)"VPair_iterator", _wrap_VPair_iterator, METH_VARARGS, NULL}, { (char *)"VPair___nonzero__", _wrap_VPair___nonzero__, METH_VARARGS, NULL}, { (char *)"VPair___bool__", _wrap_VPair___bool__, METH_VARARGS, NULL}, { (char *)"VPair___len__", _wrap_VPair___len__, METH_VARARGS, NULL}, { (char *)"VPair_pop", _wrap_VPair_pop, METH_VARARGS, NULL}, { (char *)"VPair___getslice__", _wrap_VPair___getslice__, METH_VARARGS, NULL}, { (char *)"VPair___setslice__", _wrap_VPair___setslice__, METH_VARARGS, NULL}, { (char *)"VPair___delslice__", _wrap_VPair___delslice__, METH_VARARGS, NULL}, { (char *)"VPair___delitem__", _wrap_VPair___delitem__, METH_VARARGS, NULL}, { (char *)"VPair___getitem__", _wrap_VPair___getitem__, METH_VARARGS, NULL}, { (char *)"VPair___setitem__", _wrap_VPair___setitem__, METH_VARARGS, NULL}, { (char *)"VPair_append", _wrap_VPair_append, METH_VARARGS, NULL}, { (char *)"VPair_empty", _wrap_VPair_empty, METH_VARARGS, NULL}, { (char *)"VPair_size", _wrap_VPair_size, METH_VARARGS, NULL}, { (char *)"VPair_clear", _wrap_VPair_clear, METH_VARARGS, NULL}, { (char *)"VPair_swap", _wrap_VPair_swap, METH_VARARGS, NULL}, { (char *)"VPair_get_allocator", _wrap_VPair_get_allocator, METH_VARARGS, NULL}, { (char *)"VPair_begin", _wrap_VPair_begin, METH_VARARGS, NULL}, { (char *)"VPair_end", _wrap_VPair_end, METH_VARARGS, NULL}, { (char *)"VPair_rbegin", _wrap_VPair_rbegin, METH_VARARGS, NULL}, { (char *)"VPair_rend", _wrap_VPair_rend, METH_VARARGS, NULL}, { (char *)"VPair_pop_back", _wrap_VPair_pop_back, METH_VARARGS, NULL}, { (char *)"VPair_erase", _wrap_VPair_erase, METH_VARARGS, NULL}, { (char *)"new_VPair", _wrap_new_VPair, METH_VARARGS, NULL}, { (char *)"VPair_push_back", _wrap_VPair_push_back, METH_VARARGS, NULL}, { (char *)"VPair_front", _wrap_VPair_front, METH_VARARGS, NULL}, { (char *)"VPair_back", _wrap_VPair_back, METH_VARARGS, NULL}, { (char *)"VPair_assign", _wrap_VPair_assign, METH_VARARGS, NULL}, { (char *)"VPair_resize", _wrap_VPair_resize, METH_VARARGS, NULL}, { (char *)"VPair_insert", _wrap_VPair_insert, METH_VARARGS, NULL}, { (char *)"VPair_reserve", _wrap_VPair_reserve, METH_VARARGS, NULL}, { (char *)"VPair_capacity", _wrap_VPair_capacity, METH_VARARGS, NULL}, { (char *)"delete_VPair", _wrap_delete_VPair, METH_VARARGS, NULL}, { (char *)"VPair_swigregister", VPair_swigregister, METH_VARARGS, NULL}, { (char *)"VWebSubPages_iterator", _wrap_VWebSubPages_iterator, METH_VARARGS, NULL}, { (char *)"VWebSubPages___nonzero__", _wrap_VWebSubPages___nonzero__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___bool__", _wrap_VWebSubPages___bool__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___len__", _wrap_VWebSubPages___len__, METH_VARARGS, NULL}, { (char *)"VWebSubPages_pop", _wrap_VWebSubPages_pop, METH_VARARGS, NULL}, { (char *)"VWebSubPages___getslice__", _wrap_VWebSubPages___getslice__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___setslice__", _wrap_VWebSubPages___setslice__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___delslice__", _wrap_VWebSubPages___delslice__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___delitem__", _wrap_VWebSubPages___delitem__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___getitem__", _wrap_VWebSubPages___getitem__, METH_VARARGS, NULL}, { (char *)"VWebSubPages___setitem__", _wrap_VWebSubPages___setitem__, METH_VARARGS, NULL}, { (char *)"VWebSubPages_append", _wrap_VWebSubPages_append, METH_VARARGS, NULL}, { (char *)"VWebSubPages_empty", _wrap_VWebSubPages_empty, METH_VARARGS, NULL}, { (char *)"VWebSubPages_size", _wrap_VWebSubPages_size, METH_VARARGS, NULL}, { (char *)"VWebSubPages_clear", _wrap_VWebSubPages_clear, METH_VARARGS, NULL}, { (char *)"VWebSubPages_swap", _wrap_VWebSubPages_swap, METH_VARARGS, NULL}, { (char *)"VWebSubPages_get_allocator", _wrap_VWebSubPages_get_allocator, METH_VARARGS, NULL}, { (char *)"VWebSubPages_begin", _wrap_VWebSubPages_begin, METH_VARARGS, NULL}, { (char *)"VWebSubPages_end", _wrap_VWebSubPages_end, METH_VARARGS, NULL}, { (char *)"VWebSubPages_rbegin", _wrap_VWebSubPages_rbegin, METH_VARARGS, NULL}, { (char *)"VWebSubPages_rend", _wrap_VWebSubPages_rend, METH_VARARGS, NULL}, { (char *)"VWebSubPages_pop_back", _wrap_VWebSubPages_pop_back, METH_VARARGS, NULL}, { (char *)"VWebSubPages_erase", _wrap_VWebSubPages_erase, METH_VARARGS, NULL}, { (char *)"new_VWebSubPages", _wrap_new_VWebSubPages, METH_VARARGS, NULL}, { (char *)"VWebSubPages_push_back", _wrap_VWebSubPages_push_back, METH_VARARGS, NULL}, { (char *)"VWebSubPages_front", _wrap_VWebSubPages_front, METH_VARARGS, NULL}, { (char *)"VWebSubPages_back", _wrap_VWebSubPages_back, METH_VARARGS, NULL}, { (char *)"VWebSubPages_assign", _wrap_VWebSubPages_assign, METH_VARARGS, NULL}, { (char *)"VWebSubPages_resize", _wrap_VWebSubPages_resize, METH_VARARGS, NULL}, { (char *)"VWebSubPages_insert", _wrap_VWebSubPages_insert, METH_VARARGS, NULL}, { (char *)"VWebSubPages_reserve", _wrap_VWebSubPages_reserve, METH_VARARGS, NULL}, { (char *)"VWebSubPages_capacity", _wrap_VWebSubPages_capacity, METH_VARARGS, NULL}, { (char *)"delete_VWebSubPages", _wrap_delete_VWebSubPages, METH_VARARGS, NULL}, { (char *)"VWebSubPages_swigregister", VWebSubPages_swigregister, METH_VARARGS, NULL}, { (char *)"VPair_Add2Str_", _wrap_VPair_Add2Str_, METH_VARARGS, NULL}, { (char *)"CreateWebSubPage_", _wrap_CreateWebSubPage_, METH_VARARGS, NULL}, { NULL, NULL, 0, NULL } }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static void *_p_CSSSLConnectionTo_p_CSConnection(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSConnection *) ((CSSSLConnection *) x)); } static void *_p_CTemplateTo_p_MCString(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((MCString *) ((CTemplate *) x)); } static void *_p_CPyTimerTo_p_CTimer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CTimer *) ((CPyTimer *) x)); } static void *_p_CFPTimerTo_p_CTimer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CTimer *) ((CFPTimer *) x)); } static void *_p_CPyModuleTo_p_CModule(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CModule *) ((CPyModule *) x)); } static void *_p_CModPythonTo_p_CModule(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CModule *) ((CModPython *) x)); } static void *_p_CModulesTo_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::vector< CModule *,std::allocator< CModule * > > *) ((CModules *) x)); } static void *_p_CTimerTo_p_CCron(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CCron *) ((CTimer *) x)); } static void *_p_CPyTimerTo_p_CCron(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CCron *) (CTimer *) ((CPyTimer *) x)); } static void *_p_CFPTimerTo_p_CCron(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CCron *) (CTimer *) ((CFPTimer *) x)); } static void *_p_CSocketManagerTo_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::vector< Csock *,std::allocator< Csock * > > *) ((CSocketManager *) x)); } static void *_p_CSocketTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CSocket *) x)); } static void *_p_CIRCSocketTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CIRCSocket *) x)); } static void *_p_CClientTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CPySocketTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CSocket *) ((CPySocket *) x)); } static void *_p_CRealListenerTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CRealListener *) x)); } static void *_p_CExecSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CExecSock *) x)); } static void *_p_CIncomingConnectionTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CIncomingConnection *) x)); } static void *_p_CHTTPSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CSocket *) ((CHTTPSock *) x)); } static void *_p_CWebSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CSocket *)(CHTTPSock *) ((CWebSock *) x)); } static void *_p_std__shared_ptrT_CClientAuth_tTo_p_std__shared_ptrT_CAuthBase_t(void *x, int *newmemory) { *newmemory = SWIG_CAST_NEW_MEMORY; return (void *) new std::shared_ptr< CAuthBase >(*(std::shared_ptr< CClientAuth > *)x); } static void *_p_CSockManagerTo_p_TSocketManagerT_CZNCSock_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((TSocketManager< CZNCSock > *) ((CSockManager *) x)); } static void *_p_CZNCTagHandlerTo_p_CTemplateTagHandler(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CTemplateTagHandler *) ((CZNCTagHandler *) x)); } static void *_p_CSocketTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CSocket *) x)); } static void *_p_CIRCSocketTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CIRCSocket *) x)); } static void *_p_CClientTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CPySocketTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CSocket *) ((CPySocket *) x)); } static void *_p_CRealListenerTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CRealListener *) x)); } static void *_p_CExecSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CExecSock *) x)); } static void *_p_CZNCSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) ((CZNCSock *) x)); } static void *_p_CIncomingConnectionTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CIncomingConnection *) x)); } static void *_p_CHTTPSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CSocket *) ((CHTTPSock *) x)); } static void *_p_CWebSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CSocket *)(CHTTPSock *) ((CWebSock *) x)); } static void *_p_CClientTo_p_CIRCSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_CIRCSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CPySocketTo_p_CSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocket *) ((CPySocket *) x)); } static void *_p_CHTTPSockTo_p_CSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocket *) ((CHTTPSock *) x)); } static void *_p_CWebSockTo_p_CSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocket *) (CHTTPSock *) ((CWebSock *) x)); } static void *_p_CTableTo_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *) ((CTable *) x)); } static void *_p_CWebSockTo_p_CHTTPSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CHTTPSock *) ((CWebSock *) x)); } static void *_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModuleTo_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)) ((CPyModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)) x)); } static void *_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPythonTo_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)) ((CModPython *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)) x)); } static void *_p_CClientAuthTo_p_CAuthBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CAuthBase *) ((CClientAuth *) x)); } static void *_p_CClientTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CIRCSocket *) x)); } static void *_p_CSocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CSocket *) x)); } static void *_p_CPySocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *) ((CPySocket *) x)); } static void *_p_CIncomingConnectionTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CIncomingConnection *) x)); } static void *_p_CSockManagerTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (CSocketManager *)(TSocketManager< CZNCSock > *) ((CSockManager *) x)); } static void *_p_CSocketManagerTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) ((CSocketManager *) x)); } static void *_p_CExecSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CExecSock *) x)); } static void *_p_CHTTPSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *) ((CHTTPSock *) x)); } static void *_p_CZNCSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *) ((CZNCSock *) x)); } static void *_p_CWebSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *)(CHTTPSock *) ((CWebSock *) x)); } static void *_p_CRealListenerTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CRealListener *) x)); } static void *_p_CIRCSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CsockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) ((Csock *) x)); } static void *_p_TSocketManagerT_CZNCSock_tTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (CSocketManager *) ((TSocketManager< CZNCSock > *) x)); } static void *_p_CBufferTo_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::deque< CBufLine,std::allocator< CBufLine > > *) ((CBuffer *) x)); } static void *_p_CTemplateTo_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::map< CString,CString,std::less< CString >,std::allocator< std::pair< CString const,CString > > > *) (MCString *) ((CTemplate *) x)); } static void *_p_MCStringTo_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::map< CString,CString,std::less< CString >,std::allocator< std::pair< CString const,CString > > > *) ((MCString *) x)); } static void *_p_TSocketManagerT_CZNCSock_tTo_p_CSocketManager(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocketManager *) ((TSocketManager< CZNCSock > *) x)); } static void *_p_CSockManagerTo_p_CSocketManager(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocketManager *) (TSocketManager< CZNCSock > *) ((CSockManager *) x)); } static swig_type_info _swigt__m_CModule__f_r_q_const__CString__void = {"_m_CModule__f_r_q_const__CString__void", "void (CModule::*)(CString const &)|CModCommand::ModCmdFunc", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CAuthBase = {"_p_CAuthBase", "CAuthBase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CBufLine = {"_p_CBufLine", "std::deque< CBufLine >::value_type *|CBufLine *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CBuffer = {"_p_CBuffer", "CBuffer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CChan = {"_p_CChan", "CChan *|std::vector< CChan * >::value_type", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CClient = {"_p_CClient", "std::vector< CClient * >::value_type|CClient *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CClientAuth = {"_p_CClientAuth", "CClientAuth *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CConfig = {"_p_CConfig", "CConfig *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CConfigEntry = {"_p_CConfigEntry", "CConfigEntry *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CConnectQueueTimer = {"_p_CConnectQueueTimer", "CConnectQueueTimer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CCron = {"_p_CCron", "CCron *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CDebug = {"_p_CDebug", "CDebug *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CDebugStream = {"_p_CDebugStream", "CDebugStream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CDir = {"_p_CDir", "CDir *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CException = {"_p_CException", "CException *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CExecSock = {"_p_CExecSock", "CExecSock *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CFPTimer = {"_p_CFPTimer", "CFPTimer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CFile = {"_p_CFile", "CFile *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CGetAddrInfo = {"_p_CGetAddrInfo", "CGetAddrInfo *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CHTTPSock = {"_p_CHTTPSock", "CHTTPSock *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CIRCNetwork = {"_p_CIRCNetwork", "CIRCNetwork *|std::vector< CIRCNetwork * >::value_type", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CIRCSock = {"_p_CIRCSock", "CIRCSock *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CIRCSocket = {"_p_CIRCSocket", "CIRCSocket *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CIncomingConnection = {"_p_CIncomingConnection", "CIncomingConnection *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CListener = {"_p_CListener", "std::vector< CListener * >::value_type|CListener *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CModCommand = {"_p_CModCommand", "CModCommand *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CModInfo = {"_p_CModInfo", "CModInfo *|std::set< CModInfo >::key_type *|std::set< CModInfo >::value_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CModPython = {"_p_CModPython", "CModPython *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CModule = {"_p_CModule", "std::vector< CModule * >::value_type|CModule *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CModules = {"_p_CModules", "CModules *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CModulesIter = {"_p_CModulesIter", "CModulesIter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CNick = {"_p_CNick", "std::map< CString,CNick >::mapped_type *|CNick *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CPyModule = {"_p_CPyModule", "CPyModule *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CPyRetBool = {"_p_CPyRetBool", "CPyRetBool *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CPyRetString = {"_p_CPyRetString", "CPyRetString *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CPySocket = {"_p_CPySocket", "CPySocket *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CPyTimer = {"_p_CPyTimer", "CPyTimer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CQuery = {"_p_CQuery", "CQuery *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CRealListener = {"_p_CRealListener", "CRealListener *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSCharBuffer = {"_p_CSCharBuffer", "CSCharBuffer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSConnection = {"_p_CSConnection", "CSConnection *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSListener = {"_p_CSListener", "CSListener *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSMonitorFD = {"_p_CSMonitorFD", "CSMonitorFD *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSSSLConnection = {"_p_CSSSLConnection", "CSSSLConnection *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSSockAddr = {"_p_CSSockAddr", "CSSockAddr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CServer = {"_p_CServer", "CServer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSockCommon = {"_p_CSockCommon", "CSockCommon *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSockManager = {"_p_CSockManager", "CSockManager *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSocket = {"_p_CSocket", "CSocket *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CSocketManager = {"_p_CSocketManager", "CSocketManager *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CString__EEscape = {"_p_CString__EEscape", "CString::EEscape *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CString__size_type = {"_p_CString__size_type", "CString::size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTable = {"_p_CTable", "CTable *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTemplate = {"_p_CTemplate", "CTemplate *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTemplateLoopContext = {"_p_CTemplateLoopContext", "CTemplateLoopContext *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTemplateOptions = {"_p_CTemplateOptions", "CTemplateOptions *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTemplateTagHandler = {"_p_CTemplateTagHandler", "CTemplateTagHandler *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTimer = {"_p_CTimer", "CTimer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CUser = {"_p_CUser", "CUser *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CUtils = {"_p_CUtils", "CUtils *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CWebSession = {"_p_CWebSession", "CWebSession *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CWebSessionMap = {"_p_CWebSessionMap", "CWebSessionMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CWebSock = {"_p_CWebSock", "CWebSock *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CWebSubPage = {"_p_CWebSubPage", "CWebSubPage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CZNC = {"_p_CZNC", "CZNC *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CZNCSock = {"_p_CZNCSock", "CZNCSock *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CZNCTagHandler = {"_p_CZNCTagHandler", "CZNCTagHandler *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CmdFunc = {"_p_CmdFunc", "CmdFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Csock = {"_p_Csock", "Csock *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EAcceptType = {"_p_EAcceptType", "EAcceptType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EChanModeArgs = {"_p_EChanModeArgs", "EChanModeArgs *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModException = {"_p_EModException", "EModException *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModRet = {"_p_EModRet", "EModRet *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModes = {"_p_EModes", "EModes *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModuleType = {"_p_EModuleType", "EModuleType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EType = {"_p_EType", "EType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EUserPerms = {"_p_EUserPerms", "EUserPerms *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EntryMap = {"_p_EntryMap", "EntryMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EntryMapIterator = {"_p_EntryMapIterator", "EntryMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_MCString = {"_p_MCString", "MCString *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_MCString_iter = {"_p_MCString_iter", "MCString_iter *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ModCmdFunc = {"_p_ModCmdFunc", "ModCmdFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ModDirList = {"_p_ModDirList", "ModDirList *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_String = {"_p_String", "String *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SubConfig = {"_p_SubConfig", "SubConfig *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SubConfigMap = {"_p_SubConfigMap", "SubConfigMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SubConfigMapIterator = {"_p_SubConfigMapIterator", "SubConfigMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_TSocketManagerT_CZNCSock_t = {"_p_TSocketManagerT_CZNCSock_t", "TSocketManager< CZNCSock > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_TrafficStatsMap = {"_p_TrafficStatsMap", "TrafficStatsMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_TrafficStatsPair = {"_p_TrafficStatsPair", "TrafficStatsPair *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_const_reference = {"_p_const_reference", "const_reference *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule = {"_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule", "CModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)|CModInfo::ModLoader", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule = {"_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython = {"_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_f_p_CModule_p_CFPTimer__void = {"_p_f_p_CModule_p_CFPTimer__void", "void (*)(CModule *,CFPTimer *)|FPTimer_t", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_r_std__ostream__r_std__ostream = {"_p_f_r_std__ostream__r_std__ostream", "std::ostream &(*)(std::ostream &)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_fd_set = {"_p_fd_set", "fd_set *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_first_type = {"_p_first_type", "first_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_gid_t = {"_p_gid_t", "gid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_in_addr = {"_p_in_addr", "in_addr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "cs_sock_t *|int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_key_type = {"_p_key_type", "key_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mapped_type = {"_p_mapped_type", "mapped_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mode_t = {"_p_mode_t", "mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_reference = {"_p_reference", "reference *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_second_type = {"_p_second_type", "second_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_sockaddr_in = {"_p_sockaddr_in", "sockaddr_in *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_sockaddr_storage = {"_p_sockaddr_storage", "sockaddr_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_socklen_t = {"_p_socklen_t", "socklen_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ssize_t = {"_p_ssize_t", "ssize_t *|cs_ssize_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_stat = {"_p_stat", "stat *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CBufLine_t = {"_p_std__allocatorT_CBufLine_t", "std::deque< CBufLine >::allocator_type *|std::allocator< CBufLine > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CChan_p_t = {"_p_std__allocatorT_CChan_p_t", "std::vector< CChan * >::allocator_type *|std::allocator< CChan * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CClient_p_t = {"_p_std__allocatorT_CClient_p_t", "std::vector< CClient * >::allocator_type *|std::allocator< CClient * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CIRCNetwork_p_t = {"_p_std__allocatorT_CIRCNetwork_p_t", "std::vector< CIRCNetwork * >::allocator_type *|std::allocator< CIRCNetwork * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CListener_p_t = {"_p_std__allocatorT_CListener_p_t", "std::vector< CListener * >::allocator_type *|std::allocator< CListener * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CModule_p_t = {"_p_std__allocatorT_CModule_p_t", "std::vector< CModule * >::allocator_type *|std::allocator< CModule * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_CString_t = {"_p_std__allocatorT_CString_t", "std::list< CString >::allocator_type *|std::vector< CString >::allocator_type *|std::allocator< CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__pairT_CString_CString_t_t = {"_p_std__allocatorT_std__pairT_CString_CString_t_t", "std::allocator< std::pair< CString,CString > > *|std::vector< std::pair< CString,CString > >::allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__pairT_CString_const_CNick_t_t = {"_p_std__allocatorT_std__pairT_CString_const_CNick_t_t", "std::map< CString,CNick >::allocator_type *|std::allocator< std::pair< CString const,CNick > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__pairT_CString_const_CString_t_t = {"_p_std__allocatorT_std__pairT_CString_const_CString_t_t", "std::map< CString,CString >::allocator_type *|std::allocator< std::pair< CString const,CString > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t = {"_p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t", "std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > *|std::map< CString,std::vector< CString,std::allocator< CString > > >::allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t = {"_p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t", "std::allocator< std::shared_ptr< CWebSubPage > > *|std::vector< std::shared_ptr< CWebSubPage > >::allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t = {"_p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t", "std::allocator< std::vector< CString,std::allocator< CString > > > *|std::vector< std::vector< CString,std::allocator< CString > > >::allocator_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t = {"_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t", "std::deque< CBufLine > *|std::deque< CBufLine,std::allocator< CBufLine > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__functionT_void_fCString_const_RF_t = {"_p_std__functionT_void_fCString_const_RF_t", "std::function< void (CString const &) > *|CModCommand::CmdFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__lessT_CModInfo_t = {"_p_std__lessT_CModInfo_t", "std::less< CModInfo > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__lessT_CString_t = {"_p_std__lessT_CString_t", "std::less< CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t = {"_p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t", "std::list< CIRCNetwork *,std::allocator< CIRCNetwork * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_CString_std__allocatorT_CString_t_t = {"_p_std__listT_CString_std__allocatorT_CString_t_t", "std::list< CString,std::allocator< CString > > *|std::list< CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t = {"_p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t", "CConfig::SubConfig *|std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t = {"_p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t", "std::map< CString,CNick > *|std::map< CString,CNick,std::less< CString >,std::allocator< std::pair< CString const,CNick > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t = {"_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t", "std::map< CString,CString,std::less< CString >,std::allocator< std::pair< CString const,CString > > > *|std::map< CString,CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator = {"_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator", "std::map< CString,CString,std::less< CString >,std::allocator< std::pair< CString const,CString > > >::iterator *|std::map< CString,CString >::iterator *|MCString::iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t = {"_p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t", "std::map< CString,CUser *,std::less< CString >,std::allocator< std::pair< CString const,CUser * > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator = {"_p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator", "CConfig::SubConfigMapIterator *|std::map< CString,std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > >,std::less< CString >,std::allocator< std::pair< CString const,std::map< CString,CConfigEntry,std::less< CString >,std::allocator< std::pair< CString const,CConfigEntry > > > > > >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t = {"_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t", "std::map< CString,std::pair< unsigned long long,unsigned long long >,std::less< CString >,std::allocator< std::pair< CString const,std::pair< unsigned long long,unsigned long long > > > > *|CZNC::TrafficStatsMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t = {"_p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t", "std::map< CString,VCString,std::less< CString >,std::allocator< std::pair< CString const,VCString > > > *|std::map< CString,VCString > *|std::map< CString,std::vector< CString,std::allocator< CString > > > *|std::map< CString,std::vector< CString,std::allocator< CString > >,std::less< CString >,std::allocator< std::pair< CString const,std::vector< CString,std::allocator< CString > > > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t = {"_p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t", "std::map< char,unsigned int,std::less< char >,std::allocator< std::pair< char const,unsigned int > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t = {"_p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t", "std::map< int,short,std::less< int >,std::allocator< std::pair< int const,short > > > *|std::map< cs_sock_t,short,std::less< cs_sock_t >,std::allocator< std::pair< cs_sock_t const,short > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t = {"_p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t", "std::map< unsigned char,CIRCSock::EChanModeArgs,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CIRCSock::EChanModeArgs > > > *|std::map< unsigned char,enum CIRCSock::EChanModeArgs,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,enum CIRCSock::EChanModeArgs > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t = {"_p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t", "std::map< unsigned char,CString,std::less< unsigned char >,std::allocator< std::pair< unsigned char const,CString > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__pairT_CString_CString_t = {"_p_std__pairT_CString_CString_t", "std::pair< CString,CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__pairT_unsigned_long_long_unsigned_long_long_t = {"_p_std__pairT_unsigned_long_long_unsigned_long_long_t", "CZNC::TrafficStatsPair *|std::pair< unsigned long long,unsigned long long > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t = {"_p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t", "std::set< CChan *,std::less< CChan * >,std::allocator< CChan * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t = {"_p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t", "std::set< CModInfo,std::less< CModInfo >,std::allocator< CModInfo > > *|std::set< CModInfo > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator = {"_p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator", "std::set< CSocket *,std::less< CSocket * >,std::allocator< CSocket * > >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t = {"_p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t", "std::set< CString > *|std::set< CString,std::less< CString >,std::allocator< CString > > *|SCString *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator = {"_p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator", "std::set< CTimer *,std::less< CTimer * >,std::allocator< CTimer * > >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t = {"_p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t", "std::set< unsigned char,std::less< unsigned char >,std::allocator< unsigned char > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CAuthBase_t = {"_p_std__shared_ptrT_CAuthBase_t", "std::shared_ptr< CAuthBase > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CClientAuth_t = {"_p_std__shared_ptrT_CClientAuth_t", "std::shared_ptr< CClientAuth > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CTemplateOptions_t = {"_p_std__shared_ptrT_CTemplateOptions_t", "std::shared_ptr< CTemplateOptions > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CTemplateTagHandler_t = {"_p_std__shared_ptrT_CTemplateTagHandler_t", "std::shared_ptr< CTemplateTagHandler > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CWebSession_t = {"_p_std__shared_ptrT_CWebSession_t", "std::shared_ptr< CWebSession > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CWebSubPage_t = {"_p_std__shared_ptrT_CWebSubPage_t", "std::shared_ptr< CWebSubPage > *|std::vector< std::shared_ptr< CWebSubPage > >::value_type *|TWebSubPage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t = {"_p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t", "std::vector< CChan *,std::allocator< CChan * > > *|std::vector< CChan * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t = {"_p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t", "std::vector< CClient *,std::allocator< CClient * > > *|std::vector< CClient * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t = {"_p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t", "std::vector< CCron *,std::allocator< CCron * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t = {"_p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t", "std::vector< CIRCNetwork * > *|std::vector< CIRCNetwork *,std::allocator< CIRCNetwork * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t = {"_p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t", "std::vector< CListener *,std::allocator< CListener * > > *|std::vector< CListener * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t = {"_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t", "std::vector< CModule * > *|std::vector< CModule *,std::allocator< CModule * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator = {"_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator", "std::vector< CModule * >::const_iterator *|CModules::const_iterator *|std::vector< CModule *,std::allocator< CModule * > >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t = {"_p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t", "std::vector< CQuery *,std::allocator< CQuery * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t = {"_p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t", "std::vector< CServer *,std::allocator< CServer * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CString_std__allocatorT_CString_t_t = {"_p_std__vectorT_CString_std__allocatorT_CString_t_t", "std::vector< CString,std::allocator< CString > > *|std::vector< CString > *|VCString *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t = {"_p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t", "std::vector< CTemplate *,std::allocator< CTemplate * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t = {"_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t", "std::vector< Csock *,std::allocator< Csock * > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t = {"_p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t", "std::vector< std::pair< CString,CString > > *|std::vector< std::pair< CString,CString >,std::allocator< std::pair< CString,CString > > > *|VPair *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t = {"_p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t", "std::vector< std::shared_ptr< CTemplateTagHandler >,std::allocator< std::shared_ptr< CTemplateTagHandler > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t = {"_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t", "std::vector< std::shared_ptr< CWebSubPage > > *|std::vector< TWebSubPage > *|std::vector< std::shared_ptr< CWebSubPage >,std::allocator< std::shared_ptr< CWebSubPage > > > *|VWebSubPages *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t = {"_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t", "std::vector< VCString > *|std::vector< std::vector< CString,std::allocator< CString > > > *|std::vector< std::vector< CString,std::allocator< CString > >,std::allocator< std::vector< CString,std::allocator< CString > > > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_timeval = {"_p_timeval", "timeval *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uid_t = {"_p_uid_t", "uid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint16_t = {"_p_uint16_t", "uint16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "ModHandle|void *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__m_CModule__f_r_q_const__CString__void, &_swigt__p_CAuthBase, &_swigt__p_CBufLine, &_swigt__p_CBuffer, &_swigt__p_CChan, &_swigt__p_CClient, &_swigt__p_CClientAuth, &_swigt__p_CConfig, &_swigt__p_CConfigEntry, &_swigt__p_CConnectQueueTimer, &_swigt__p_CCron, &_swigt__p_CDebug, &_swigt__p_CDebugStream, &_swigt__p_CDir, &_swigt__p_CException, &_swigt__p_CExecSock, &_swigt__p_CFPTimer, &_swigt__p_CFile, &_swigt__p_CGetAddrInfo, &_swigt__p_CHTTPSock, &_swigt__p_CIRCNetwork, &_swigt__p_CIRCSock, &_swigt__p_CIRCSocket, &_swigt__p_CIncomingConnection, &_swigt__p_CListener, &_swigt__p_CModCommand, &_swigt__p_CModInfo, &_swigt__p_CModPython, &_swigt__p_CModule, &_swigt__p_CModules, &_swigt__p_CModulesIter, &_swigt__p_CNick, &_swigt__p_CPyModule, &_swigt__p_CPyRetBool, &_swigt__p_CPyRetString, &_swigt__p_CPySocket, &_swigt__p_CPyTimer, &_swigt__p_CQuery, &_swigt__p_CRealListener, &_swigt__p_CSCharBuffer, &_swigt__p_CSConnection, &_swigt__p_CSListener, &_swigt__p_CSMonitorFD, &_swigt__p_CSSSLConnection, &_swigt__p_CSSockAddr, &_swigt__p_CServer, &_swigt__p_CSockCommon, &_swigt__p_CSockManager, &_swigt__p_CSocket, &_swigt__p_CSocketManager, &_swigt__p_CString__EEscape, &_swigt__p_CString__size_type, &_swigt__p_CTable, &_swigt__p_CTemplate, &_swigt__p_CTemplateLoopContext, &_swigt__p_CTemplateOptions, &_swigt__p_CTemplateTagHandler, &_swigt__p_CTimer, &_swigt__p_CUser, &_swigt__p_CUtils, &_swigt__p_CWebSession, &_swigt__p_CWebSessionMap, &_swigt__p_CWebSock, &_swigt__p_CWebSubPage, &_swigt__p_CZNC, &_swigt__p_CZNCSock, &_swigt__p_CZNCTagHandler, &_swigt__p_CmdFunc, &_swigt__p_Csock, &_swigt__p_EAcceptType, &_swigt__p_EChanModeArgs, &_swigt__p_EModException, &_swigt__p_EModRet, &_swigt__p_EModes, &_swigt__p_EModuleType, &_swigt__p_EType, &_swigt__p_EUserPerms, &_swigt__p_EntryMap, &_swigt__p_EntryMapIterator, &_swigt__p_MCString, &_swigt__p_MCString_iter, &_swigt__p_ModCmdFunc, &_swigt__p_ModDirList, &_swigt__p_String, &_swigt__p_SubConfig, &_swigt__p_SubConfigMap, &_swigt__p_SubConfigMapIterator, &_swigt__p_TSocketManagerT_CZNCSock_t, &_swigt__p_TrafficStatsMap, &_swigt__p_TrafficStatsPair, &_swigt__p_allocator_type, &_swigt__p_bool, &_swigt__p_char, &_swigt__p_const_reference, &_swigt__p_difference_type, &_swigt__p_double, &_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython, &_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, &_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule, &_swigt__p_f_p_CModule_p_CFPTimer__void, &_swigt__p_f_r_std__ostream__r_std__ostream, &_swigt__p_fd_set, &_swigt__p_first_type, &_swigt__p_gid_t, &_swigt__p_in_addr, &_swigt__p_int, &_swigt__p_int32_t, &_swigt__p_int64_t, &_swigt__p_key_type, &_swigt__p_long, &_swigt__p_mapped_type, &_swigt__p_mode_t, &_swigt__p_p_PyObject, &_swigt__p_reference, &_swigt__p_second_type, &_swigt__p_size_type, &_swigt__p_sockaddr_in, &_swigt__p_sockaddr_storage, &_swigt__p_socklen_t, &_swigt__p_ssize_t, &_swigt__p_stat, &_swigt__p_std__allocatorT_CBufLine_t, &_swigt__p_std__allocatorT_CChan_p_t, &_swigt__p_std__allocatorT_CClient_p_t, &_swigt__p_std__allocatorT_CIRCNetwork_p_t, &_swigt__p_std__allocatorT_CListener_p_t, &_swigt__p_std__allocatorT_CModule_p_t, &_swigt__p_std__allocatorT_CString_t, &_swigt__p_std__allocatorT_std__pairT_CString_CString_t_t, &_swigt__p_std__allocatorT_std__pairT_CString_const_CNick_t_t, &_swigt__p_std__allocatorT_std__pairT_CString_const_CString_t_t, &_swigt__p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, &_swigt__p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t, &_swigt__p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t, &_swigt__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, &_swigt__p_std__functionT_void_fCString_const_RF_t, &_swigt__p_std__invalid_argument, &_swigt__p_std__lessT_CModInfo_t, &_swigt__p_std__lessT_CString_t, &_swigt__p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, &_swigt__p_std__listT_CString_std__allocatorT_CString_t_t, &_swigt__p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, &_swigt__p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, &_swigt__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, &_swigt__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator, &_swigt__p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t, &_swigt__p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator, &_swigt__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t, &_swigt__p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, &_swigt__p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t, &_swigt__p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, &_swigt__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t, &_swigt__p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t, &_swigt__p_std__ostream, &_swigt__p_std__pairT_CString_CString_t, &_swigt__p_std__pairT_unsigned_long_long_unsigned_long_long_t, &_swigt__p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t, &_swigt__p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, &_swigt__p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator, &_swigt__p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, &_swigt__p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator, &_swigt__p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t, &_swigt__p_std__shared_ptrT_CAuthBase_t, &_swigt__p_std__shared_ptrT_CClientAuth_t, &_swigt__p_std__shared_ptrT_CTemplateOptions_t, &_swigt__p_std__shared_ptrT_CTemplateTagHandler_t, &_swigt__p_std__shared_ptrT_CWebSession_t, &_swigt__p_std__shared_ptrT_CWebSubPage_t, &_swigt__p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, &_swigt__p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, &_swigt__p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t, &_swigt__p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, &_swigt__p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, &_swigt__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, &_swigt__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator, &_swigt__p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t, &_swigt__p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t, &_swigt__p_std__vectorT_CString_std__allocatorT_CString_t_t, &_swigt__p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t, &_swigt__p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t, &_swigt__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, &_swigt__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t, &_swigt__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, &_swigt__p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, &_swigt__p_swig__SwigPyIterator, &_swigt__p_time_t, &_swigt__p_timeval, &_swigt__p_uid_t, &_swigt__p_uint16_t, &_swigt__p_uint64_t, &_swigt__p_unsigned_int, &_swigt__p_unsigned_short, &_swigt__p_value_type, &_swigt__p_void, }; static swig_cast_info _swigc__m_CModule__f_r_q_const__CString__void[] = { {&_swigt__m_CModule__f_r_q_const__CString__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CAuthBase[] = { {&_swigt__p_CClientAuth, _p_CClientAuthTo_p_CAuthBase, 0, 0}, {&_swigt__p_CAuthBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CBufLine[] = { {&_swigt__p_CBufLine, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CBuffer[] = { {&_swigt__p_CBuffer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CChan[] = { {&_swigt__p_CChan, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CClient[] = { {&_swigt__p_CClient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CClientAuth[] = { {&_swigt__p_CClientAuth, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConfig[] = { {&_swigt__p_CConfig, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConfigEntry[] = { {&_swigt__p_CConfigEntry, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConnectQueueTimer[] = { {&_swigt__p_CConnectQueueTimer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CCron[] = { {&_swigt__p_CTimer, _p_CTimerTo_p_CCron, 0, 0}, {&_swigt__p_CCron, 0, 0, 0}, {&_swigt__p_CPyTimer, _p_CPyTimerTo_p_CCron, 0, 0}, {&_swigt__p_CFPTimer, _p_CFPTimerTo_p_CCron, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CDebug[] = { {&_swigt__p_CDebug, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CDebugStream[] = { {&_swigt__p_CDebugStream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CDir[] = { {&_swigt__p_CDir, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CException[] = { {&_swigt__p_CException, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CExecSock[] = { {&_swigt__p_CExecSock, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CFPTimer[] = { {&_swigt__p_CFPTimer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CFile[] = { {&_swigt__p_CFile, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CGetAddrInfo[] = { {&_swigt__p_CGetAddrInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CHTTPSock[] = { {&_swigt__p_CHTTPSock, 0, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CHTTPSock, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIRCNetwork[] = { {&_swigt__p_CIRCNetwork, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIRCSock[] = { {&_swigt__p_CIRCSock, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIRCSocket[] = { {&_swigt__p_CIRCSocket, 0, 0, 0}, {&_swigt__p_CClient, _p_CClientTo_p_CIRCSocket, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_CIRCSocket, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIncomingConnection[] = { {&_swigt__p_CIncomingConnection, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CListener[] = { {&_swigt__p_CListener, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModCommand[] = { {&_swigt__p_CModCommand, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModInfo[] = { {&_swigt__p_CModInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModPython[] = { {&_swigt__p_CModPython, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModule[] = { {&_swigt__p_CModule, 0, 0, 0}, {&_swigt__p_CPyModule, _p_CPyModuleTo_p_CModule, 0, 0}, {&_swigt__p_CModPython, _p_CModPythonTo_p_CModule, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModules[] = { {&_swigt__p_CModules, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModulesIter[] = { {&_swigt__p_CModulesIter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CNick[] = { {&_swigt__p_CNick, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPyModule[] = { {&_swigt__p_CPyModule, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPyRetBool[] = { {&_swigt__p_CPyRetBool, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPyRetString[] = { {&_swigt__p_CPyRetString, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPySocket[] = { {&_swigt__p_CPySocket, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPyTimer[] = { {&_swigt__p_CPyTimer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CQuery[] = { {&_swigt__p_CQuery, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CRealListener[] = { {&_swigt__p_CRealListener, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSCharBuffer[] = { {&_swigt__p_CSCharBuffer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSConnection[] = { {&_swigt__p_CSConnection, 0, 0, 0}, {&_swigt__p_CSSSLConnection, _p_CSSSLConnectionTo_p_CSConnection, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSListener[] = { {&_swigt__p_CSListener, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSMonitorFD[] = { {&_swigt__p_CSMonitorFD, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSSSLConnection[] = { {&_swigt__p_CSSSLConnection, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSSockAddr[] = { {&_swigt__p_CSSockAddr, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CServer[] = { {&_swigt__p_CServer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSockCommon[] = { {&_swigt__p_CClient, _p_CClientTo_p_CSockCommon, 0, 0}, {&_swigt__p_CIRCSocket, _p_CIRCSocketTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSocket, _p_CSocketTo_p_CSockCommon, 0, 0}, {&_swigt__p_CPySocket, _p_CPySocketTo_p_CSockCommon, 0, 0}, {&_swigt__p_CIncomingConnection, _p_CIncomingConnectionTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSockManager, _p_CSockManagerTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSocketManager, _p_CSocketManagerTo_p_CSockCommon, 0, 0}, {&_swigt__p_CExecSock, _p_CExecSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSockCommon, 0, 0, 0}, {&_swigt__p_Csock, _p_CsockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CZNCSock, _p_CZNCSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CRealListener, _p_CRealListenerTo_p_CSockCommon, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, _p_TSocketManagerT_CZNCSock_tTo_p_CSockCommon, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSockManager[] = { {&_swigt__p_CSockManager, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSocket[] = { {&_swigt__p_CSocket, 0, 0, 0}, {&_swigt__p_CPySocket, _p_CPySocketTo_p_CSocket, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_CSocket, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CSocket, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSocketManager[] = { {&_swigt__p_CSocketManager, 0, 0, 0}, {&_swigt__p_CSockManager, _p_CSockManagerTo_p_CSocketManager, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, _p_TSocketManagerT_CZNCSock_tTo_p_CSocketManager, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CString__EEscape[] = { {&_swigt__p_CString__EEscape, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CString__size_type[] = { {&_swigt__p_CString__size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTable[] = { {&_swigt__p_CTable, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplate[] = { {&_swigt__p_CTemplate, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplateLoopContext[] = { {&_swigt__p_CTemplateLoopContext, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplateOptions[] = { {&_swigt__p_CTemplateOptions, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplateTagHandler[] = { {&_swigt__p_CTemplateTagHandler, 0, 0, 0}, {&_swigt__p_CZNCTagHandler, _p_CZNCTagHandlerTo_p_CTemplateTagHandler, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTimer[] = { {&_swigt__p_CTimer, 0, 0, 0}, {&_swigt__p_CPyTimer, _p_CPyTimerTo_p_CTimer, 0, 0}, {&_swigt__p_CFPTimer, _p_CFPTimerTo_p_CTimer, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CUser[] = { {&_swigt__p_CUser, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CUtils[] = { {&_swigt__p_CUtils, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSession[] = { {&_swigt__p_CWebSession, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSessionMap[] = { {&_swigt__p_CWebSessionMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSock[] = { {&_swigt__p_CWebSock, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSubPage[] = { {&_swigt__p_CWebSubPage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CZNC[] = { {&_swigt__p_CZNC, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CZNCSock[] = { {&_swigt__p_CSocket, _p_CSocketTo_p_CZNCSock, 0, 0}, {&_swigt__p_CPySocket, _p_CPySocketTo_p_CZNCSock, 0, 0}, {&_swigt__p_CIRCSocket, _p_CIRCSocketTo_p_CZNCSock, 0, 0}, {&_swigt__p_CClient, _p_CClientTo_p_CZNCSock, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CRealListener, _p_CRealListenerTo_p_CZNCSock, 0, 0}, {&_swigt__p_CExecSock, _p_CExecSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CZNCSock, 0, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CIncomingConnection, _p_CIncomingConnectionTo_p_CZNCSock, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CZNCTagHandler[] = { {&_swigt__p_CZNCTagHandler, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CmdFunc[] = { {&_swigt__p_CmdFunc, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Csock[] = { {&_swigt__p_CSocket, _p_CSocketTo_p_Csock, 0, 0}, {&_swigt__p_CPySocket, _p_CPySocketTo_p_Csock, 0, 0}, {&_swigt__p_CIRCSocket, _p_CIRCSocketTo_p_Csock, 0, 0}, {&_swigt__p_CClient, _p_CClientTo_p_Csock, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_Csock, 0, 0}, {&_swigt__p_Csock, 0, 0, 0}, {&_swigt__p_CRealListener, _p_CRealListenerTo_p_Csock, 0, 0}, {&_swigt__p_CExecSock, _p_CExecSockTo_p_Csock, 0, 0}, {&_swigt__p_CZNCSock, _p_CZNCSockTo_p_Csock, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_Csock, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_Csock, 0, 0}, {&_swigt__p_CIncomingConnection, _p_CIncomingConnectionTo_p_Csock, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EAcceptType[] = { {&_swigt__p_EAcceptType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EChanModeArgs[] = { {&_swigt__p_EChanModeArgs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModException[] = { {&_swigt__p_EModException, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModRet[] = { {&_swigt__p_EModRet, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModes[] = { {&_swigt__p_EModes, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModuleType[] = { {&_swigt__p_EModuleType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EType[] = { {&_swigt__p_EType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EUserPerms[] = { {&_swigt__p_EUserPerms, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EntryMap[] = { {&_swigt__p_EntryMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EntryMapIterator[] = { {&_swigt__p_EntryMapIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_MCString[] = { {&_swigt__p_CTemplate, _p_CTemplateTo_p_MCString, 0, 0}, {&_swigt__p_MCString, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_MCString_iter[] = { {&_swigt__p_MCString_iter, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ModCmdFunc[] = { {&_swigt__p_ModCmdFunc, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ModDirList[] = { {&_swigt__p_ModDirList, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_String[] = { {&_swigt__p_String, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubConfig[] = { {&_swigt__p_SubConfig, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubConfigMap[] = { {&_swigt__p_SubConfigMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubConfigMapIterator[] = { {&_swigt__p_SubConfigMapIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_TSocketManagerT_CZNCSock_t[] = { {&_swigt__p_CSockManager, _p_CSockManagerTo_p_TSocketManagerT_CZNCSock_t, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_TrafficStatsMap[] = { {&_swigt__p_TrafficStatsMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_TrafficStatsPair[] = { {&_swigt__p_TrafficStatsPair, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_const_reference[] = { {&_swigt__p_const_reference, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule[] = {{&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython[] = {{&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule[] = { {&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, 0, 0, 0}, {&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule, _p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModuleTo_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, 0, 0}, {&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython, _p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPythonTo_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_CModule_p_CFPTimer__void[] = { {&_swigt__p_f_p_CModule_p_CFPTimer__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_r_std__ostream__r_std__ostream[] = { {&_swigt__p_f_r_std__ostream__r_std__ostream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_fd_set[] = { {&_swigt__p_fd_set, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_first_type[] = { {&_swigt__p_first_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_gid_t[] = { {&_swigt__p_gid_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_in_addr[] = { {&_swigt__p_in_addr, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int32_t[] = { {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int64_t[] = { {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_key_type[] = { {&_swigt__p_key_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mapped_type[] = { {&_swigt__p_mapped_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mode_t[] = { {&_swigt__p_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_reference[] = { {&_swigt__p_reference, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_second_type[] = { {&_swigt__p_second_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_sockaddr_in[] = { {&_swigt__p_sockaddr_in, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_sockaddr_storage[] = { {&_swigt__p_sockaddr_storage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_socklen_t[] = { {&_swigt__p_socklen_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ssize_t[] = { {&_swigt__p_ssize_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_stat[] = { {&_swigt__p_stat, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CBufLine_t[] = { {&_swigt__p_std__allocatorT_CBufLine_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CChan_p_t[] = { {&_swigt__p_std__allocatorT_CChan_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CClient_p_t[] = { {&_swigt__p_std__allocatorT_CClient_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CIRCNetwork_p_t[] = { {&_swigt__p_std__allocatorT_CIRCNetwork_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CListener_p_t[] = { {&_swigt__p_std__allocatorT_CListener_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CModule_p_t[] = { {&_swigt__p_std__allocatorT_CModule_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_CString_t[] = { {&_swigt__p_std__allocatorT_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__pairT_CString_CString_t_t[] = { {&_swigt__p_std__allocatorT_std__pairT_CString_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__pairT_CString_const_CNick_t_t[] = { {&_swigt__p_std__allocatorT_std__pairT_CString_const_CNick_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__pairT_CString_const_CString_t_t[] = { {&_swigt__p_std__allocatorT_std__pairT_CString_const_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t[] = { {&_swigt__p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t[] = { {&_swigt__p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t[] = { {&_swigt__p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t[] = { {&_swigt__p_CBuffer, _p_CBufferTo_p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0, 0}, {&_swigt__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__functionT_void_fCString_const_RF_t[] = { {&_swigt__p_std__functionT_void_fCString_const_RF_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__lessT_CModInfo_t[] = { {&_swigt__p_std__lessT_CModInfo_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__lessT_CString_t[] = { {&_swigt__p_std__lessT_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t[] = { {&_swigt__p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_CString_std__allocatorT_CString_t_t[] = { {&_swigt__p_std__listT_CString_std__allocatorT_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t[] = { {&_swigt__p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t[] = { {&_swigt__p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t[] = { {&_swigt__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0, 0, 0}, {&_swigt__p_CTemplate, _p_CTemplateTo_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0, 0}, {&_swigt__p_MCString, _p_MCStringTo_p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator[] = { {&_swigt__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t[] = { {&_swigt__p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator[] = { {&_swigt__p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t[] = { {&_swigt__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t[] = { {&_swigt__p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t[] = { {&_swigt__p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t[] = { {&_swigt__p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t[] = { {&_swigt__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t[] = { {&_swigt__p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__ostream[] = { {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__pairT_CString_CString_t[] = { {&_swigt__p_std__pairT_CString_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__pairT_unsigned_long_long_unsigned_long_long_t[] = { {&_swigt__p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t[] = { {&_swigt__p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t[] = { {&_swigt__p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator[] = { {&_swigt__p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t[] = { {&_swigt__p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator[] = { {&_swigt__p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t[] = { {&_swigt__p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CAuthBase_t[] = { {&_swigt__p_std__shared_ptrT_CAuthBase_t, 0, 0, 0}, {&_swigt__p_std__shared_ptrT_CClientAuth_t, _p_std__shared_ptrT_CClientAuth_tTo_p_std__shared_ptrT_CAuthBase_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CClientAuth_t[] = { {&_swigt__p_std__shared_ptrT_CClientAuth_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CTemplateOptions_t[] = { {&_swigt__p_std__shared_ptrT_CTemplateOptions_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CTemplateTagHandler_t[] = { {&_swigt__p_std__shared_ptrT_CTemplateTagHandler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CWebSession_t[] = { {&_swigt__p_std__shared_ptrT_CWebSession_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CWebSubPage_t[] = { {&_swigt__p_std__shared_ptrT_CWebSubPage_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t[] = { {&_swigt__p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t[] = { {&_swigt__p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t[] = { {&_swigt__p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t[] = { {&_swigt__p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t[] = { {&_swigt__p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t[] = { {&_swigt__p_CModules, _p_CModulesTo_p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0, 0}, {&_swigt__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator[] = { {&_swigt__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t[] = { {&_swigt__p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t[] = { {&_swigt__p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CString_std__allocatorT_CString_t_t[] = { {&_swigt__p_std__vectorT_CString_std__allocatorT_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t[] = { {&_swigt__p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t[] = { {&_swigt__p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t, 0, 0, 0}, {&_swigt__p_CSocketManager, _p_CSocketManagerTo_p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t, 0, 0}, {&_swigt__p_CSockManager, 0, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t[] = { {&_swigt__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t[] = { {&_swigt__p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0, 0, 0}, {&_swigt__p_CTable, _p_CTableTo_p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_timeval[] = { {&_swigt__p_timeval, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uid_t[] = { {&_swigt__p_uid_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint16_t[] = { {&_swigt__p_uint16_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint64_t[] = { {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__m_CModule__f_r_q_const__CString__void, _swigc__p_CAuthBase, _swigc__p_CBufLine, _swigc__p_CBuffer, _swigc__p_CChan, _swigc__p_CClient, _swigc__p_CClientAuth, _swigc__p_CConfig, _swigc__p_CConfigEntry, _swigc__p_CConnectQueueTimer, _swigc__p_CCron, _swigc__p_CDebug, _swigc__p_CDebugStream, _swigc__p_CDir, _swigc__p_CException, _swigc__p_CExecSock, _swigc__p_CFPTimer, _swigc__p_CFile, _swigc__p_CGetAddrInfo, _swigc__p_CHTTPSock, _swigc__p_CIRCNetwork, _swigc__p_CIRCSock, _swigc__p_CIRCSocket, _swigc__p_CIncomingConnection, _swigc__p_CListener, _swigc__p_CModCommand, _swigc__p_CModInfo, _swigc__p_CModPython, _swigc__p_CModule, _swigc__p_CModules, _swigc__p_CModulesIter, _swigc__p_CNick, _swigc__p_CPyModule, _swigc__p_CPyRetBool, _swigc__p_CPyRetString, _swigc__p_CPySocket, _swigc__p_CPyTimer, _swigc__p_CQuery, _swigc__p_CRealListener, _swigc__p_CSCharBuffer, _swigc__p_CSConnection, _swigc__p_CSListener, _swigc__p_CSMonitorFD, _swigc__p_CSSSLConnection, _swigc__p_CSSockAddr, _swigc__p_CServer, _swigc__p_CSockCommon, _swigc__p_CSockManager, _swigc__p_CSocket, _swigc__p_CSocketManager, _swigc__p_CString__EEscape, _swigc__p_CString__size_type, _swigc__p_CTable, _swigc__p_CTemplate, _swigc__p_CTemplateLoopContext, _swigc__p_CTemplateOptions, _swigc__p_CTemplateTagHandler, _swigc__p_CTimer, _swigc__p_CUser, _swigc__p_CUtils, _swigc__p_CWebSession, _swigc__p_CWebSessionMap, _swigc__p_CWebSock, _swigc__p_CWebSubPage, _swigc__p_CZNC, _swigc__p_CZNCSock, _swigc__p_CZNCTagHandler, _swigc__p_CmdFunc, _swigc__p_Csock, _swigc__p_EAcceptType, _swigc__p_EChanModeArgs, _swigc__p_EModException, _swigc__p_EModRet, _swigc__p_EModes, _swigc__p_EModuleType, _swigc__p_EType, _swigc__p_EUserPerms, _swigc__p_EntryMap, _swigc__p_EntryMapIterator, _swigc__p_MCString, _swigc__p_MCString_iter, _swigc__p_ModCmdFunc, _swigc__p_ModDirList, _swigc__p_String, _swigc__p_SubConfig, _swigc__p_SubConfigMap, _swigc__p_SubConfigMapIterator, _swigc__p_TSocketManagerT_CZNCSock_t, _swigc__p_TrafficStatsMap, _swigc__p_TrafficStatsPair, _swigc__p_allocator_type, _swigc__p_bool, _swigc__p_char, _swigc__p_const_reference, _swigc__p_difference_type, _swigc__p_double, _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModPython, _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPyModule, _swigc__p_f_p_CModule_p_CFPTimer__void, _swigc__p_f_r_std__ostream__r_std__ostream, _swigc__p_fd_set, _swigc__p_first_type, _swigc__p_gid_t, _swigc__p_in_addr, _swigc__p_int, _swigc__p_int32_t, _swigc__p_int64_t, _swigc__p_key_type, _swigc__p_long, _swigc__p_mapped_type, _swigc__p_mode_t, _swigc__p_p_PyObject, _swigc__p_reference, _swigc__p_second_type, _swigc__p_size_type, _swigc__p_sockaddr_in, _swigc__p_sockaddr_storage, _swigc__p_socklen_t, _swigc__p_ssize_t, _swigc__p_stat, _swigc__p_std__allocatorT_CBufLine_t, _swigc__p_std__allocatorT_CChan_p_t, _swigc__p_std__allocatorT_CClient_p_t, _swigc__p_std__allocatorT_CIRCNetwork_p_t, _swigc__p_std__allocatorT_CListener_p_t, _swigc__p_std__allocatorT_CModule_p_t, _swigc__p_std__allocatorT_CString_t, _swigc__p_std__allocatorT_std__pairT_CString_CString_t_t, _swigc__p_std__allocatorT_std__pairT_CString_const_CNick_t_t, _swigc__p_std__allocatorT_std__pairT_CString_const_CString_t_t, _swigc__p_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, _swigc__p_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t, _swigc__p_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t, _swigc__p_std__dequeT_CBufLine_std__allocatorT_CBufLine_t_t, _swigc__p_std__functionT_void_fCString_const_RF_t, _swigc__p_std__invalid_argument, _swigc__p_std__lessT_CModInfo_t, _swigc__p_std__lessT_CString_t, _swigc__p_std__listT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, _swigc__p_std__listT_CString_std__allocatorT_CString_t_t, _swigc__p_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t, _swigc__p_std__mapT_CString_CNick_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CNick_t_t_t, _swigc__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t, _swigc__p_std__mapT_CString_CString_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CString_t_t_t__iterator, _swigc__p_std__mapT_CString_CUser_p_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CUser_p_t_t_t, _swigc__p_std__mapT_CString_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__mapT_CString_CConfigEntry_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_CConfigEntry_t_t_t_t_t_t__const_iterator, _swigc__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__pairT_unsigned_long_long_unsigned_long_long_t_t_t_t, _swigc__p_std__mapT_CString_std__vectorT_CString_std__allocatorT_CString_t_t_std__lessT_CString_t_std__allocatorT_std__pairT_CString_const_std__vectorT_CString_std__allocatorT_CString_t_t_t_t_t, _swigc__p_std__mapT_char_unsigned_int_std__lessT_char_t_std__allocatorT_std__pairT_char_const_unsigned_int_t_t_t, _swigc__p_std__mapT_int_short_std__lessT_int_t_std__allocatorT_std__pairT_int_const_short_t_t_t, _swigc__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CIRCSock__EChanModeArgs_t_t_t, _swigc__p_std__mapT_unsigned_char_CString_std__lessT_unsigned_char_t_std__allocatorT_std__pairT_unsigned_char_const_CString_t_t_t, _swigc__p_std__ostream, _swigc__p_std__pairT_CString_CString_t, _swigc__p_std__pairT_unsigned_long_long_unsigned_long_long_t, _swigc__p_std__setT_CChan_p_std__lessT_CChan_p_t_std__allocatorT_CChan_p_t_t, _swigc__p_std__setT_CModInfo_std__lessT_CModInfo_t_std__allocatorT_CModInfo_t_t, _swigc__p_std__setT_CSocket_p_std__lessT_CSocket_p_t_std__allocatorT_CSocket_p_t_t__const_iterator, _swigc__p_std__setT_CString_std__lessT_CString_t_std__allocatorT_CString_t_t, _swigc__p_std__setT_CTimer_p_std__lessT_CTimer_p_t_std__allocatorT_CTimer_p_t_t__const_iterator, _swigc__p_std__setT_unsigned_char_std__lessT_unsigned_char_t_std__allocatorT_unsigned_char_t_t, _swigc__p_std__shared_ptrT_CAuthBase_t, _swigc__p_std__shared_ptrT_CClientAuth_t, _swigc__p_std__shared_ptrT_CTemplateOptions_t, _swigc__p_std__shared_ptrT_CTemplateTagHandler_t, _swigc__p_std__shared_ptrT_CWebSession_t, _swigc__p_std__shared_ptrT_CWebSubPage_t, _swigc__p_std__vectorT_CChan_p_std__allocatorT_CChan_p_t_t, _swigc__p_std__vectorT_CClient_p_std__allocatorT_CClient_p_t_t, _swigc__p_std__vectorT_CCron_p_std__allocatorT_CCron_p_t_t, _swigc__p_std__vectorT_CIRCNetwork_p_std__allocatorT_CIRCNetwork_p_t_t, _swigc__p_std__vectorT_CListener_p_std__allocatorT_CListener_p_t_t, _swigc__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t, _swigc__p_std__vectorT_CModule_p_std__allocatorT_CModule_p_t_t__const_iterator, _swigc__p_std__vectorT_CQuery_p_std__allocatorT_CQuery_p_t_t, _swigc__p_std__vectorT_CServer_p_std__allocatorT_CServer_p_t_t, _swigc__p_std__vectorT_CString_std__allocatorT_CString_t_t, _swigc__p_std__vectorT_CTemplate_p_std__allocatorT_CTemplate_p_t_t, _swigc__p_std__vectorT_Csock_p_std__allocatorT_Csock_p_t_t, _swigc__p_std__vectorT_std__pairT_CString_CString_t_std__allocatorT_std__pairT_CString_CString_t_t_t, _swigc__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_std__allocatorT_std__shared_ptrT_CTemplateTagHandler_t_t_t, _swigc__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_std__allocatorT_std__shared_ptrT_CWebSubPage_t_t_t, _swigc__p_std__vectorT_std__vectorT_CString_std__allocatorT_CString_t_t_std__allocatorT_std__vectorT_CString_std__allocatorT_CString_t_t_t_t, _swigc__p_swig__SwigPyIterator, _swigc__p_time_t, _swigc__p_timeval, _swigc__p_uid_t, _swigc__p_uint16_t, _swigc__p_uint64_t, _swigc__p_unsigned_int, _swigc__p_unsigned_short, _swigc__p_value_type, _swigc__p_void, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ static swig_const_info swig_const_table[] = { {0, 0, 0, 0.0, 0, 0}}; #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif #ifdef __cplusplus extern "C" { #endif /* Python-specific SWIG API */ #define SWIG_newvarlink() SWIG_Python_newvarlink() #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) /* ----------------------------------------------------------------------------- * global variable support code. * ----------------------------------------------------------------------------- */ typedef struct swig_globalvar { char *name; /* Name of global variable */ PyObject *(*get_attr)(void); /* Return the current value */ int (*set_attr)(PyObject *); /* Set the value */ struct swig_globalvar *next; } swig_globalvar; typedef struct swig_varlinkobject { PyObject_HEAD swig_globalvar *vars; } swig_varlinkobject; SWIGINTERN PyObject * swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { #if PY_VERSION_HEX >= 0x03000000 return PyUnicode_InternFromString(""); #else return PyString_FromString(""); #endif } SWIGINTERN PyObject * swig_varlink_str(swig_varlinkobject *v) { #if PY_VERSION_HEX >= 0x03000000 PyObject *str = PyUnicode_InternFromString("("); PyObject *tail; PyObject *joined; swig_globalvar *var; for (var = v->vars; var; var=var->next) { tail = PyUnicode_FromString(var->name); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; if (var->next) { tail = PyUnicode_InternFromString(", "); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; } } tail = PyUnicode_InternFromString(")"); joined = PyUnicode_Concat(str, tail); Py_DecRef(str); Py_DecRef(tail); str = joined; #else PyObject *str = PyString_FromString("("); swig_globalvar *var; for (var = v->vars; var; var=var->next) { PyString_ConcatAndDel(&str,PyString_FromString(var->name)); if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); } PyString_ConcatAndDel(&str,PyString_FromString(")")); #endif return str; } SWIGINTERN int swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { char *tmp; PyObject *str = swig_varlink_str(v); fprintf(fp,"Swig global variables "); fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); SWIG_Python_str_DelForPy3(tmp); Py_DECREF(str); return 0; } SWIGINTERN void swig_varlink_dealloc(swig_varlinkobject *v) { swig_globalvar *var = v->vars; while (var) { swig_globalvar *n = var->next; free(var->name); free(var); var = n; } } SWIGINTERN PyObject * swig_varlink_getattr(swig_varlinkobject *v, char *n) { PyObject *res = NULL; swig_globalvar *var = v->vars; while (var) { if (strcmp(var->name,n) == 0) { res = (*var->get_attr)(); break; } var = var->next; } if (res == NULL && !PyErr_Occurred()) { PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } SWIGINTERN int swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { int res = 1; swig_globalvar *var = v->vars; while (var) { if (strcmp(var->name,n) == 0) { res = (*var->set_attr)(p); break; } var = var->next; } if (res == 1 && !PyErr_Occurred()) { PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n); } return res; } SWIGINTERN PyTypeObject* swig_varlink_type(void) { static char varlink__doc__[] = "Swig var link object"; static PyTypeObject varlink_type; static int type_init = 0; if (!type_init) { const PyTypeObject tmp = { /* PyObject header changed in Python 3 */ #if PY_VERSION_HEX >= 0x03000000 PyVarObject_HEAD_INIT(NULL, 0) #else PyObject_HEAD_INIT(NULL) 0, /* ob_size */ #endif (char *)"swigvarlink", /* tp_name */ sizeof(swig_varlinkobject), /* tp_basicsize */ 0, /* tp_itemsize */ (destructor) swig_varlink_dealloc, /* tp_dealloc */ (printfunc) swig_varlink_print, /* tp_print */ (getattrfunc) swig_varlink_getattr, /* tp_getattr */ (setattrfunc) swig_varlink_setattr, /* tp_setattr */ 0, /* tp_compare */ (reprfunc) swig_varlink_repr, /* tp_repr */ 0, /* tp_as_number */ 0, /* tp_as_sequence */ 0, /* tp_as_mapping */ 0, /* tp_hash */ 0, /* tp_call */ (reprfunc) swig_varlink_str, /* tp_str */ 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ 0, /* tp_flags */ varlink__doc__, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ 0, /* tp_richcompare */ 0, /* tp_weaklistoffset */ #if PY_VERSION_HEX >= 0x02020000 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ #endif #if PY_VERSION_HEX >= 0x02030000 0, /* tp_del */ #endif #if PY_VERSION_HEX >= 0x02060000 0, /* tp_version */ #endif #ifdef COUNT_ALLOCS 0,0,0,0 /* tp_alloc -> tp_next */ #endif }; varlink_type = tmp; type_init = 1; #if PY_VERSION_HEX < 0x02020000 varlink_type.ob_type = &PyType_Type; #else if (PyType_Ready(&varlink_type) < 0) return NULL; #endif } return &varlink_type; } /* Create a variable linking object for use later */ SWIGINTERN PyObject * SWIG_Python_newvarlink(void) { swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); if (result) { result->vars = 0; } return ((PyObject*) result); } SWIGINTERN void SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { swig_varlinkobject *v = (swig_varlinkobject *) p; swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); if (gv) { size_t size = strlen(name)+1; gv->name = (char *)malloc(size); if (gv->name) { strncpy(gv->name,name,size); gv->get_attr = get_attr; gv->set_attr = set_attr; gv->next = v->vars; } } v->vars = gv; } SWIGINTERN PyObject * SWIG_globals(void) { static PyObject *_SWIG_globals = 0; if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); return _SWIG_globals; } /* ----------------------------------------------------------------------------- * constants/methods manipulation * ----------------------------------------------------------------------------- */ /* Install Constants */ SWIGINTERN void SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { PyObject *obj = 0; size_t i; for (i = 0; constants[i].type; ++i) { switch(constants[i].type) { case SWIG_PY_POINTER: obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); break; case SWIG_PY_BINARY: obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); break; default: obj = 0; break; } if (obj) { PyDict_SetItemString(d, constants[i].name, obj); Py_DECREF(obj); } } } /* -----------------------------------------------------------------------------*/ /* Fix SwigMethods to carry the callback ptrs when needed */ /* -----------------------------------------------------------------------------*/ SWIGINTERN void SWIG_Python_FixMethods(PyMethodDef *methods, swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial) { size_t i; for (i = 0; methods[i].ml_name; ++i) { const char *c = methods[i].ml_doc; if (c && (c = strstr(c, "swig_ptr: "))) { int j; swig_const_info *ci = 0; const char *name = c + 10; for (j = 0; const_table[j].type; ++j) { if (strncmp(const_table[j].name, name, strlen(const_table[j].name)) == 0) { ci = &(const_table[j]); break; } } if (ci) { void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; if (ptr) { size_t shift = (ci->ptype) - types; swig_type_info *ty = types_initial[shift]; size_t ldoc = (c - methods[i].ml_doc); size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; char *ndoc = (char*)malloc(ldoc + lptr + 10); if (ndoc) { char *buff = ndoc; strncpy(buff, methods[i].ml_doc, ldoc); buff += ldoc; strncpy(buff, "swig_ptr: ", 10); buff += 10; SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); methods[i].ml_doc = ndoc; } } } } } } #ifdef __cplusplus } #endif /* -----------------------------------------------------------------------------* * Partial Init method * -----------------------------------------------------------------------------*/ #ifdef __cplusplus extern "C" #endif SWIGEXPORT #if PY_VERSION_HEX >= 0x03000000 PyObject* #else void #endif SWIG_init(void) { PyObject *m, *d, *md; #if PY_VERSION_HEX >= 0x03000000 static struct PyModuleDef SWIG_module = { # if PY_VERSION_HEX >= 0x03020000 PyModuleDef_HEAD_INIT, # else { PyObject_HEAD_INIT(NULL) NULL, /* m_init */ 0, /* m_index */ NULL, /* m_copy */ }, # endif (char *) SWIG_name, NULL, -1, SwigMethods, NULL, NULL, NULL, NULL }; #endif #if defined(SWIGPYTHON_BUILTIN) static SwigPyClientData SwigPyObject_clientdata = { 0, 0, 0, 0, 0, 0, 0 }; static PyGetSetDef this_getset_def = { (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL }; static SwigPyGetSet thisown_getset_closure = { (PyCFunction) SwigPyObject_own, (PyCFunction) SwigPyObject_own }; static PyGetSetDef thisown_getset_def = { (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure }; PyObject *metatype_args; PyTypeObject *builtin_pytype; int builtin_base_count; swig_type_info *builtin_basetype; PyObject *tuple; PyGetSetDescrObject *static_getset; PyTypeObject *metatype; SwigPyClientData *cd; PyObject *public_interface, *public_symbol; PyObject *this_descr; PyObject *thisown_descr; PyObject *self = 0; int i; (void)builtin_pytype; (void)builtin_base_count; (void)builtin_basetype; (void)tuple; (void)static_getset; (void)self; /* metatype is used to implement static member variables. */ metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); assert(metatype_args); metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL); assert(metatype); Py_DECREF(metatype_args); metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; assert(PyType_Ready(metatype) >= 0); #endif /* Fix SwigMethods to carry the callback ptrs when needed */ SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); #if PY_VERSION_HEX >= 0x03000000 m = PyModule_Create(&SWIG_module); #else m = Py_InitModule((char *) SWIG_name, SwigMethods); #endif md = d = PyModule_GetDict(m); (void)md; SWIG_InitializeModule(0); #ifdef SWIGPYTHON_BUILTIN SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject"); assert(SwigPyObject_stype); cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; if (!cd) { SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); # if PY_VERSION_HEX >= 0x03000000 return NULL; # else return; # endif } /* All objects have a 'this' attribute */ this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); (void)this_descr; /* All objects have a 'thisown' attribute */ thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); (void)thisown_descr; public_interface = PyList_New(0); public_symbol = 0; (void)public_symbol; PyDict_SetItemString(md, "__all__", public_interface); Py_DECREF(public_interface); for (i = 0; SwigMethods[i].ml_name != NULL; ++i) SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); for (i = 0; swig_const_table[i].name != 0; ++i) SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); #endif SWIG_InstallConstants(d,swig_const_table); PyDict_SetItemString(md,(char*)"cvar", SWIG_globals()); SWIG_addvarlink(SWIG_globals(),(char*)"g_HexDigits",Swig_var_g_HexDigits_get, Swig_var_g_HexDigits_set); SWIG_addvarlink(SWIG_globals(),(char*)"CUtils_sDefaultHash",Swig_var_CUtils_sDefaultHash_get, Swig_var_CUtils_sDefaultHash_set); SWIG_Python_SetConstant(d, "CException_EX_Shutdown",SWIG_From_int(static_cast< int >(CException::EX_Shutdown))); SWIG_Python_SetConstant(d, "CException_EX_Restart",SWIG_From_int(static_cast< int >(CException::EX_Restart))); SWIG_Python_SetConstant(d, "CSSockAddr_RAF_ANY",SWIG_From_int(static_cast< int >(CSSockAddr::RAF_ANY))); SWIG_Python_SetConstant(d, "CSSockAddr_RAF_INET",SWIG_From_int(static_cast< int >(CSSockAddr::RAF_INET))); SWIG_addvarlink(SWIG_globals(),(char*)"CS_BLOCKSIZE",Swig_var_CS_BLOCKSIZE_get, Swig_var_CS_BLOCKSIZE_set); SWIG_Python_SetConstant(d, "Csock_OUTBOUND",SWIG_From_int(static_cast< int >(Csock::OUTBOUND))); SWIG_Python_SetConstant(d, "Csock_LISTENER",SWIG_From_int(static_cast< int >(Csock::LISTENER))); SWIG_Python_SetConstant(d, "Csock_INBOUND",SWIG_From_int(static_cast< int >(Csock::INBOUND))); SWIG_Python_SetConstant(d, "Csock_READ_EOF",SWIG_From_int(static_cast< int >(Csock::READ_EOF))); SWIG_Python_SetConstant(d, "Csock_READ_ERR",SWIG_From_int(static_cast< int >(Csock::READ_ERR))); SWIG_Python_SetConstant(d, "Csock_READ_EAGAIN",SWIG_From_int(static_cast< int >(Csock::READ_EAGAIN))); SWIG_Python_SetConstant(d, "Csock_READ_CONNREFUSED",SWIG_From_int(static_cast< int >(Csock::READ_CONNREFUSED))); SWIG_Python_SetConstant(d, "Csock_READ_TIMEDOUT",SWIG_From_int(static_cast< int >(Csock::READ_TIMEDOUT))); SWIG_Python_SetConstant(d, "Csock_SEL_OK",SWIG_From_int(static_cast< int >(Csock::SEL_OK))); SWIG_Python_SetConstant(d, "Csock_SEL_TIMEOUT",SWIG_From_int(static_cast< int >(Csock::SEL_TIMEOUT))); SWIG_Python_SetConstant(d, "Csock_SEL_EAGAIN",SWIG_From_int(static_cast< int >(Csock::SEL_EAGAIN))); SWIG_Python_SetConstant(d, "Csock_SEL_ERR",SWIG_From_int(static_cast< int >(Csock::SEL_ERR))); SWIG_Python_SetConstant(d, "Csock_SSL23",SWIG_From_int(static_cast< int >(Csock::SSL23))); SWIG_Python_SetConstant(d, "Csock_SSL2",SWIG_From_int(static_cast< int >(Csock::SSL2))); SWIG_Python_SetConstant(d, "Csock_SSL3",SWIG_From_int(static_cast< int >(Csock::SSL3))); SWIG_Python_SetConstant(d, "Csock_TLS1",SWIG_From_int(static_cast< int >(Csock::TLS1))); SWIG_Python_SetConstant(d, "Csock_TLS11",SWIG_From_int(static_cast< int >(Csock::TLS11))); SWIG_Python_SetConstant(d, "Csock_TLS12",SWIG_From_int(static_cast< int >(Csock::TLS12))); SWIG_Python_SetConstant(d, "Csock_EDP_None",SWIG_From_int(static_cast< int >(Csock::EDP_None))); SWIG_Python_SetConstant(d, "Csock_EDP_SSLv2",SWIG_From_int(static_cast< int >(Csock::EDP_SSLv2))); SWIG_Python_SetConstant(d, "Csock_EDP_SSLv3",SWIG_From_int(static_cast< int >(Csock::EDP_SSLv3))); SWIG_Python_SetConstant(d, "Csock_EDP_TLSv1",SWIG_From_int(static_cast< int >(Csock::EDP_TLSv1))); SWIG_Python_SetConstant(d, "Csock_EDP_TLSv1_1",SWIG_From_int(static_cast< int >(Csock::EDP_TLSv1_1))); SWIG_Python_SetConstant(d, "Csock_EDP_TLSv1_2",SWIG_From_int(static_cast< int >(Csock::EDP_TLSv1_2))); SWIG_Python_SetConstant(d, "Csock_EDP_SSL",SWIG_From_int(static_cast< int >(Csock::EDP_SSL))); SWIG_Python_SetConstant(d, "Csock_CST_START",SWIG_From_int(static_cast< int >(Csock::CST_START))); SWIG_Python_SetConstant(d, "Csock_CST_DNS",SWIG_From_int(static_cast< int >(Csock::CST_DNS))); SWIG_Python_SetConstant(d, "Csock_CST_BINDVHOST",SWIG_From_int(static_cast< int >(Csock::CST_BINDVHOST))); SWIG_Python_SetConstant(d, "Csock_CST_DESTDNS",SWIG_From_int(static_cast< int >(Csock::CST_DESTDNS))); SWIG_Python_SetConstant(d, "Csock_CST_CONNECT",SWIG_From_int(static_cast< int >(Csock::CST_CONNECT))); SWIG_Python_SetConstant(d, "Csock_CST_CONNECTSSL",SWIG_From_int(static_cast< int >(Csock::CST_CONNECTSSL))); SWIG_Python_SetConstant(d, "Csock_CST_OK",SWIG_From_int(static_cast< int >(Csock::CST_OK))); SWIG_Python_SetConstant(d, "Csock_CLT_DONT",SWIG_From_int(static_cast< int >(Csock::CLT_DONT))); SWIG_Python_SetConstant(d, "Csock_CLT_NOW",SWIG_From_int(static_cast< int >(Csock::CLT_NOW))); SWIG_Python_SetConstant(d, "Csock_CLT_AFTERWRITE",SWIG_From_int(static_cast< int >(Csock::CLT_AFTERWRITE))); SWIG_Python_SetConstant(d, "Csock_CLT_DEREFERENCE",SWIG_From_int(static_cast< int >(Csock::CLT_DEREFERENCE))); SWIG_Python_SetConstant(d, "Csock_TMO_READ",SWIG_From_int(static_cast< int >(Csock::TMO_READ))); SWIG_Python_SetConstant(d, "Csock_TMO_WRITE",SWIG_From_int(static_cast< int >(Csock::TMO_WRITE))); SWIG_Python_SetConstant(d, "Csock_TMO_ACCEPT",SWIG_From_int(static_cast< int >(Csock::TMO_ACCEPT))); SWIG_Python_SetConstant(d, "Csock_TMO_ALL",SWIG_From_int(static_cast< int >(Csock::TMO_ALL))); SWIG_Python_SetConstant(d, "Csock_DNS_VHOST",SWIG_From_int(static_cast< int >(Csock::DNS_VHOST))); SWIG_Python_SetConstant(d, "Csock_DNS_DEST",SWIG_From_int(static_cast< int >(Csock::DNS_DEST))); SWIG_Python_SetConstant(d, "CSocketManager_SUCCESS",SWIG_From_int(static_cast< int >(CSocketManager::SUCCESS))); SWIG_Python_SetConstant(d, "CSocketManager_SELECT_ERROR",SWIG_From_int(static_cast< int >(CSocketManager::SELECT_ERROR))); SWIG_Python_SetConstant(d, "CSocketManager_SELECT_TIMEOUT",SWIG_From_int(static_cast< int >(CSocketManager::SELECT_TIMEOUT))); SWIG_Python_SetConstant(d, "CSocketManager_SELECT_TRYAGAIN",SWIG_From_int(static_cast< int >(CSocketManager::SELECT_TRYAGAIN))); SWIG_Python_SetConstant(d, "CSocketManager_ECT_Read",SWIG_From_int(static_cast< int >(CSocketManager::ECT_Read))); SWIG_Python_SetConstant(d, "CSocketManager_ECT_Write",SWIG_From_int(static_cast< int >(CSocketManager::ECT_Write))); SWIG_Python_SetConstant(d, "CFile_FT_REGULAR",SWIG_From_int(static_cast< int >(CFile::FT_REGULAR))); SWIG_Python_SetConstant(d, "CFile_FT_DIRECTORY",SWIG_From_int(static_cast< int >(CFile::FT_DIRECTORY))); SWIG_Python_SetConstant(d, "CFile_FT_CHARACTER",SWIG_From_int(static_cast< int >(CFile::FT_CHARACTER))); SWIG_Python_SetConstant(d, "CFile_FT_BLOCK",SWIG_From_int(static_cast< int >(CFile::FT_BLOCK))); SWIG_Python_SetConstant(d, "CFile_FT_FIFO",SWIG_From_int(static_cast< int >(CFile::FT_FIFO))); SWIG_Python_SetConstant(d, "CFile_FT_LINK",SWIG_From_int(static_cast< int >(CFile::FT_LINK))); SWIG_Python_SetConstant(d, "CFile_FT_SOCK",SWIG_From_int(static_cast< int >(CFile::FT_SOCK))); SWIG_Python_SetConstant(d, "CFile_FA_Name",SWIG_From_int(static_cast< int >(CFile::FA_Name))); SWIG_Python_SetConstant(d, "CFile_FA_Size",SWIG_From_int(static_cast< int >(CFile::FA_Size))); SWIG_Python_SetConstant(d, "CFile_FA_ATime",SWIG_From_int(static_cast< int >(CFile::FA_ATime))); SWIG_Python_SetConstant(d, "CFile_FA_MTime",SWIG_From_int(static_cast< int >(CFile::FA_MTime))); SWIG_Python_SetConstant(d, "CFile_FA_CTime",SWIG_From_int(static_cast< int >(CFile::FA_CTime))); SWIG_Python_SetConstant(d, "CFile_FA_UID",SWIG_From_int(static_cast< int >(CFile::FA_UID))); SWIG_Python_SetConstant(d, "CModInfo_GlobalModule",SWIG_From_int(static_cast< int >(CModInfo::GlobalModule))); SWIG_Python_SetConstant(d, "CModInfo_UserModule",SWIG_From_int(static_cast< int >(CModInfo::UserModule))); SWIG_Python_SetConstant(d, "CModInfo_NetworkModule",SWIG_From_int(static_cast< int >(CModInfo::NetworkModule))); SWIG_Python_SetConstant(d, "CModule_CONTINUE",SWIG_From_int(static_cast< int >(CModule::CONTINUE))); SWIG_Python_SetConstant(d, "CModule_HALT",SWIG_From_int(static_cast< int >(CModule::HALT))); SWIG_Python_SetConstant(d, "CModule_HALTMODS",SWIG_From_int(static_cast< int >(CModule::HALTMODS))); SWIG_Python_SetConstant(d, "CModule_HALTCORE",SWIG_From_int(static_cast< int >(CModule::HALTCORE))); SWIG_Python_SetConstant(d, "CModule_UNLOAD",SWIG_From_int(static_cast< int >(CModule::UNLOAD))); SWIG_Python_SetConstant(d, "CChan_Voice",SWIG_From_char(static_cast< char >(CChan::Voice))); SWIG_Python_SetConstant(d, "CChan_HalfOp",SWIG_From_char(static_cast< char >(CChan::HalfOp))); SWIG_Python_SetConstant(d, "CChan_Op",SWIG_From_char(static_cast< char >(CChan::Op))); SWIG_Python_SetConstant(d, "CChan_Admin",SWIG_From_char(static_cast< char >(CChan::Admin))); SWIG_Python_SetConstant(d, "CChan_Owner",SWIG_From_char(static_cast< char >(CChan::Owner))); SWIG_Python_SetConstant(d, "CChan_M_Private",SWIG_From_char(static_cast< char >(CChan::M_Private))); SWIG_Python_SetConstant(d, "CChan_M_Secret",SWIG_From_char(static_cast< char >(CChan::M_Secret))); SWIG_Python_SetConstant(d, "CChan_M_Moderated",SWIG_From_char(static_cast< char >(CChan::M_Moderated))); SWIG_Python_SetConstant(d, "CChan_M_InviteOnly",SWIG_From_char(static_cast< char >(CChan::M_InviteOnly))); SWIG_Python_SetConstant(d, "CChan_M_NoMessages",SWIG_From_char(static_cast< char >(CChan::M_NoMessages))); SWIG_Python_SetConstant(d, "CChan_M_OpTopic",SWIG_From_char(static_cast< char >(CChan::M_OpTopic))); SWIG_Python_SetConstant(d, "CChan_M_Limit",SWIG_From_char(static_cast< char >(CChan::M_Limit))); SWIG_Python_SetConstant(d, "CChan_M_Key",SWIG_From_char(static_cast< char >(CChan::M_Key))); SWIG_Python_SetConstant(d, "CChan_M_Op",SWIG_From_char(static_cast< char >(CChan::M_Op))); SWIG_Python_SetConstant(d, "CChan_M_Voice",SWIG_From_char(static_cast< char >(CChan::M_Voice))); SWIG_Python_SetConstant(d, "CChan_M_Ban",SWIG_From_char(static_cast< char >(CChan::M_Ban))); SWIG_Python_SetConstant(d, "CChan_M_Except",SWIG_From_char(static_cast< char >(CChan::M_Except))); SWIG_Python_SetConstant(d, "CUser_HASH_NONE",SWIG_From_int(static_cast< int >(CUser::HASH_NONE))); SWIG_Python_SetConstant(d, "CUser_HASH_MD5",SWIG_From_int(static_cast< int >(CUser::HASH_MD5))); SWIG_Python_SetConstant(d, "CUser_HASH_SHA256",SWIG_From_int(static_cast< int >(CUser::HASH_SHA256))); SWIG_Python_SetConstant(d, "CUser_HASH_DEFAULT",SWIG_From_int(static_cast< int >(CUser::HASH_DEFAULT))); SWIG_Python_SetConstant(d, "CIRCNetwork_JOIN_FREQUENCY",SWIG_From_int(static_cast< int >(CIRCNetwork::JOIN_FREQUENCY))); SWIG_Python_SetConstant(d, "CIRCNetwork_PING_FREQUENCY",SWIG_From_int(static_cast< int >(CIRCNetwork::PING_FREQUENCY))); SWIG_Python_SetConstant(d, "CIRCNetwork_PING_SLACK",SWIG_From_int(static_cast< int >(CIRCNetwork::PING_SLACK))); SWIG_Python_SetConstant(d, "CIRCNetwork_NO_TRAFFIC_TIMEOUT",SWIG_From_int(static_cast< int >(CIRCNetwork::NO_TRAFFIC_TIMEOUT))); SWIG_Python_SetConstant(d, "CIRCSock_ListArg",SWIG_From_int(static_cast< int >(CIRCSock::ListArg))); SWIG_Python_SetConstant(d, "CIRCSock_HasArg",SWIG_From_int(static_cast< int >(CIRCSock::HasArg))); SWIG_Python_SetConstant(d, "CIRCSock_ArgWhenSet",SWIG_From_int(static_cast< int >(CIRCSock::ArgWhenSet))); SWIG_Python_SetConstant(d, "CIRCSock_NoArg",SWIG_From_int(static_cast< int >(CIRCSock::NoArg))); SWIG_Python_SetConstant(d, "CListener_ACCEPT_IRC",SWIG_From_int(static_cast< int >(CListener::ACCEPT_IRC))); SWIG_Python_SetConstant(d, "CListener_ACCEPT_HTTP",SWIG_From_int(static_cast< int >(CListener::ACCEPT_HTTP))); SWIG_Python_SetConstant(d, "CListener_ACCEPT_ALL",SWIG_From_int(static_cast< int >(CListener::ACCEPT_ALL))); SWIG_Python_SetConstant(d, "CWebSubPage_F_ADMIN",SWIG_From_int(static_cast< int >(CWebSubPage::F_ADMIN))); SWIG_Python_SetConstant(d, "CWebSock_PAGE_NOTFOUND",SWIG_From_int(static_cast< int >(CWebSock::PAGE_NOTFOUND))); SWIG_Python_SetConstant(d, "CWebSock_PAGE_PRINT",SWIG_From_int(static_cast< int >(CWebSock::PAGE_PRINT))); SWIG_Python_SetConstant(d, "CWebSock_PAGE_DEFERRED",SWIG_From_int(static_cast< int >(CWebSock::PAGE_DEFERRED))); SWIG_Python_SetConstant(d, "CWebSock_PAGE_DONE",SWIG_From_int(static_cast< int >(CWebSock::PAGE_DONE))); SWIG_Python_SetConstant(d, "CZNC_ECONFIG_NOTHING",SWIG_From_int(static_cast< int >(CZNC::ECONFIG_NOTHING))); SWIG_Python_SetConstant(d, "CZNC_ECONFIG_NEED_REHASH",SWIG_From_int(static_cast< int >(CZNC::ECONFIG_NEED_REHASH))); SWIG_Python_SetConstant(d, "CZNC_ECONFIG_NEED_WRITE",SWIG_From_int(static_cast< int >(CZNC::ECONFIG_NEED_WRITE))); SWIG_Python_SetConstant(d, "CZNC_ECONFIG_NEED_VERBOSE_WRITE",SWIG_From_int(static_cast< int >(CZNC::ECONFIG_NEED_VERBOSE_WRITE))); #if PY_VERSION_HEX >= 0x03000000 return m; #else return; #endif } znc-1.6.3/modules/modpython/codegen.pl0000755000175000017500000003452212663147131020206 0ustar somebodysomebody#!/usr/bin/env perl # # Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Parts of SWIG are used here. use strict; use warnings; use IO::File; use feature 'switch', 'say'; open my $in, $ARGV[0] or die; open my $out, ">", $ARGV[1] or die; print $out <<'EOF'; /* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Parts of SWIG are used here. */ /*************************************************************************** * This file is generated automatically using codegen.pl from functions.in * * Don't change it manually. * ***************************************************************************/ namespace { /* template struct pyobj_to_ptr { CString m_sType; SvToPtr(const CString& sType) { m_sType = sType; } bool operator()(PyObject* py, T** result) { T* x = nullptr; int res = SWIG_ConvertPtr(sv, (void**)&x, SWIG_TypeQuery(m_sType.c_str()), 0); if (SWIG_IsOK(res)) { *result = x; return true; } DEBUG("modpython: "); return false; } }; CModule::EModRet SvToEModRet(PyObject* py, CModule::EModRet* result) { long int x = PyLong_AsLong(); return static_cast(SvUV(sv)); }*/ inline swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } inline int SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) { #if PY_VERSION_HEX>=0x03000000 if (PyUnicode_Check(obj)) #else if (PyString_Check(obj)) #endif { char *cstr; Py_ssize_t len; #if PY_VERSION_HEX>=0x03000000 if (!alloc && cptr) { /* We can't allow converting without allocation, since the internal representation of string in Python 3 is UCS-2/UCS-4 but we require a UTF-8 representation. TODO(bhy) More detailed explanation */ return SWIG_RuntimeError; } obj = PyUnicode_AsUTF8String(obj); PyBytes_AsStringAndSize(obj, &cstr, &len); if(alloc) *alloc = SWIG_NEWOBJ; #else PyString_AsStringAndSize(obj, &cstr, &len); #endif if (cptr) { if (alloc) { /* In python the user should not be able to modify the inner string representation. To warranty that, if you define SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string buffer is always returned. The default behavior is just to return the pointer value, so, be careful. */ #if defined(SWIG_PYTHON_SAFE_CSTRINGS) if (*alloc != SWIG_OLDOBJ) #else if (*alloc == SWIG_NEWOBJ) #endif { *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); *alloc = SWIG_NEWOBJ; } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } else { #if PY_VERSION_HEX>=0x03000000 assert(0); /* Should never reach here in Python 3 */ #endif *cptr = SWIG_Python_str_AsChar(obj); } } if (psize) *psize = len + 1; #if PY_VERSION_HEX>=0x03000000 Py_XDECREF(obj); #endif return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { void* vptr = 0; if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = (char *) vptr; if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } inline int SWIG_AsPtr_CString (PyObject * obj, CString **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new CString(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("CString" " *"); init = 1; } if (descriptor) { CString *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } } EOF =b bool OnFoo(const CString& x) { PyObject* pyName = Py_BuildValue("s", "OnFoo"); if (!pyName) { CString s = GetPyExceptionStr(); DEBUG("modpython: username/module/OnFoo: can't name method to call: " << s); return default; } PyObject* pyArg1 = Py_BuildValue("s", x.c_str()); if (!pyArg1) { CString s = GetPyExceptionStr(); DEBUG("modpython: username/module/OnFoo: can't convert parameter x to PyObject*: " << s); Py_CLEAR(pyName); return default; } PyObject* pyArg2 = ...; if (!pyArg2) { CString s = ...; DEBUG(...); Py_CLEAR(pyName); Py_CLEAR(pyArg1); return default; } PyObject* pyArg3 = ...; if (!pyArg3) { CString s = ...; DEBUG(...); Py_CLEAR(pyName); Py_CLEAR(pyArg1); Py_CLEAR(pyArg2); return default; } PyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj, pyName, pyArg1, pyArg2, pyArg3, nullptr); if (!pyRes) { CString s = ...; DEBUG("modpython: username/module/OnFoo failed: " << s); Py_CLEAR(pyName); Py_CLEAR(pyArg1); Py_CLEAR(pyArg2); Py_CLEAR(pyArg3); return default; } Py_CLEAR(pyName); Py_CLEAR(pyArg1); Py_CLEAR(pyArg2); Py_CLEAR(pyArg3); bool res = PyLong_AsLong(pyRes); if (PyErr_Occured()) { CString s = GetPyExceptionStr(); DEBUG("modpython: username/module/OnFoo returned unexpected value: " << s); Py_CLEAR(pyRes); return default; } Py_CLEAR(pyRes); return res; } =cut while (<$in>) { my ($type, $name, $args, $default) = /(\S+)\s+(\w+)\((.*)\)(?:=(\w+))?/ or next; $type =~ s/(EModRet)/CModule::$1/; $type =~ s/^\s*(.*?)\s*$/$1/; unless (defined $default) { given ($type) { when ('bool') { $default = 'true' } when ('CModule::EModRet') { $default = 'CONTINUE' } when ('CString') { $default = '""' } when (/\*$/) { $default = "($type)nullptr" } } } my @arg = map { my ($t, $v) = /^\s*(.*\W)\s*(\w+)\s*$/; $t =~ s/^\s*(.*?)\s*$/$1/; my ($tb, $tm) = $t =~ /^(.*?)\s*?(\*|&)?$/; {type=>$t, var=>$v, base=>$tb, mod=>$tm//'', pyvar=>"pyArg_$v", error=>"can't convert parameter '$v' to PyObject"} } split /,/, $args; unshift @arg, {type=>'$func$', var=>"", base=>"", mod=>"", pyvar=>"pyName", error=>"can't convert string '$name' to PyObject"}; my $cleanup = ''; $default = '' if $type eq 'void'; say $out "$type CPyModule::$name($args) {"; for my $a (@arg) { print $out "\tPyObject* $a->{pyvar} = "; given ($a->{type}) { when ('$func$') { say $out "Py_BuildValue(\"s\", \"$name\");"; } when (/vector\s*<\s*.*\*\s*>/) { say $out "PyList_New(0);"; } when (/(?:^|\s)CString/) { # not SCString if ($a->{base} eq 'CString' && $a->{mod} eq '&') { say $out "CPyRetString::wrap($a->{var});"; } else { say $out "Py_BuildValue(\"s\", $a->{var}.c_str());"; } } when (/^bool/) { if ($a->{mod} eq '&') { say $out "CPyRetBool::wrap($a->{var});"; } else { say $out "Py_BuildValue(\"l\", (long int)$a->{var});"; } } when (/^std::shared_ptr/) { say $out "SWIG_NewInstanceObj(new $a->{type}($a->{var}), SWIG_TypeQuery(\"$a->{type}*\"), SWIG_POINTER_OWN);"; } when (/\*$/) { (my $t = $a->{type}) =~ s/^const//; say $out "SWIG_NewInstanceObj(const_cast<$t>($a->{var}), SWIG_TypeQuery(\"$t\"), 0);"; } when (/&$/) { (my $b = $a->{base}) =~ s/^const//; say $out "SWIG_NewInstanceObj(const_cast<$b*>(&$a->{var}), SWIG_TypeQuery(\"$b*\"), 0);"; } when (/(?:^|::)E/) { # Enumerations say $out "Py_BuildValue(\"i\", (int)$a->{var});"; } default { my %letter = ( 'int' => 'i', 'char' => 'b', 'short int' => 'h', 'long int' => 'l', 'unsigned char' => 'B', 'unsigned short' => 'H', 'unsigned int' => 'I', 'unsigned long' => 'k', 'long long' => 'L', 'unsigned long long' => 'K', 'ssize_t' => 'n', 'double' => 'd', 'float' => 'f', ); if (exists $letter{$a->{type}}) { say $out "Py_BuildValue(\"$letter{$a->{type}}\", $a->{var});" } else { say $out "...;"; } } } say $out "\tif (!$a->{pyvar}) {"; say $out "\t\tCString sPyErr = m_pModPython->GetPyExceptionStr();"; say $out "\t\tDEBUG".'("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << '."\"/$name: $a->{error}: \" << sPyErr);"; print $out $cleanup; say $out "\t\treturn $default;"; say $out "\t}"; $cleanup .= "\t\tPy_CLEAR($a->{pyvar});\n"; if ($a->{type} =~ /(vector\s*<\s*(.*)\*\s*>)/) { my ($vec, $sub) = ($1, $2); (my $cleanup1 = $cleanup) =~ s/\t\t/\t\t\t/g; my $dot = '.'; $dot = '->' if $a->{mod} eq '*'; say $out "\tfor (${vec}::const_iterator i = $a->{var}${dot}begin(); i != $a->{var}${dot}end(); ++i) {"; say $out "\t\tPyObject* pyVecEl = SWIG_NewInstanceObj(*i, SWIG_TypeQuery(\"$sub*\"), 0);"; say $out "\t\tif (!pyVecEl) {"; say $out "\t\t\tCString sPyErr = m_pModPython->GetPyExceptionStr();"; say $out "\t\t\tDEBUG".'("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << '. "\"/$name: can't convert element of vector '$a->{var}' to PyObject: \" << sPyErr);"; print $out $cleanup1; say $out "\t\t\treturn $default;"; say $out "\t\t}"; say $out "\t\tif (PyList_Append($a->{pyvar}, pyVecEl)) {"; say $out "\t\t\tCString sPyErr = m_pModPython->GetPyExceptionStr();"; say $out "\t\t\tDEBUG".'("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << '. "\"/$name: can't add element of vector '$a->{var}' to PyObject: \" << sPyErr);"; say $out "\t\t\tPy_CLEAR(pyVecEl);"; print $out $cleanup1; say $out "\t\t\treturn $default;"; say $out "\t\t}"; say $out "\t\tPy_CLEAR(pyVecEl);"; say $out "\t}"; } } print $out "\tPyObject* pyRes = PyObject_CallMethodObjArgs(m_pyObj"; print $out ", $_->{pyvar}" for @arg; say $out ", nullptr);"; say $out "\tif (!pyRes) {"; say $out "\t\tCString sPyErr = m_pModPython->GetPyExceptionStr();"; say $out "\t\tDEBUG".'("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << '."\"/$name failed: \" << sPyErr);"; print $out $cleanup; say $out "\t\treturn $default;"; say $out "\t}"; $cleanup =~ s/\t\t/\t/g; print $out $cleanup; if ($type ne 'void') { say $out "\t$type result;"; say $out "\tif (pyRes == Py_None) {"; say $out "\t\tresult = $default;"; say $out "\t} else {"; given ($type) { when (/^(.*)\*$/) { say $out "\t\tint res = SWIG_ConvertPtr(pyRes, (void**)&result, SWIG_TypeQuery(\"$type\"), 0);"; say $out "\t\tif (!SWIG_IsOK(res)) {"; say $out "\t\t\tDEBUG(\"modpython: \" << (GetUser() ? GetUser()->GetUserName() : CString(\"\")) << \"/\" << GetModName() << \"/$name was expected to return '$type' but error=\" << res);"; say $out "\t\t\tresult = $default;"; say $out "\t\t}"; } when ('CString') { say $out "\t\tCString* p = nullptr;"; say $out "\t\tint res = SWIG_AsPtr_CString(pyRes, &p);"; say $out "\t\tif (!SWIG_IsOK(res)) {"; say $out "\t\t\tDEBUG(\"modpython: \" << (GetUser() ? GetUser()->GetUserName() : CString(\"\")) << \"/\" << GetModName() << \"/$name was expected to return '$type' but error=\" << res);"; say $out "\t\t\tresult = $default;"; say $out "\t\t} else if (!p) {"; say $out "\t\t\tDEBUG(\"modpython: \" << (GetUser() ? GetUser()->GetUserName() : CString(\"\")) << \"/\" << GetModName() << \"/$name was expected to return '$type' but returned nullptr\");"; say $out "\t\t\tresult = $default;"; say $out "\t\t} else result = *p;"; say $out "\t\tif (SWIG_IsNewObj(res)) delete p;"; } when ('CModule::EModRet') { say $out "\t\tlong int x = PyLong_AsLong(pyRes);"; say $out "\t\tif (PyErr_Occurred()) {"; say $out "\t\t\tCString sPyErr = m_pModPython->GetPyExceptionStr();"; say $out "\t\t\tDEBUG".'("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << '."\"/$name was expected to return EModRet but: \" << sPyErr);"; say $out "\t\t\tresult = $default;"; say $out "\t\t} else { result = (CModule::EModRet)x; }"; } when ('bool') { say $out "\t\tint x = PyObject_IsTrue(pyRes);"; say $out "\t\tif (-1 == x) {"; say $out "\t\t\tCString sPyErr = m_pModPython->GetPyExceptionStr();"; say $out "\t\t\tDEBUG".'("modpython: " << (GetUser() ? GetUser()->GetUserName() : CString("")) << "/" << GetModName() << '."\"/$name was expected to return EModRet but: \" << sPyErr);"; say $out "\t\t\tresult = $default;"; say $out "\t\t} else result = x ? true : false;"; } default { say $out "\t\tI don't know how to convert PyObject to $type :("; } } say $out "\t}"; say $out "\tPy_CLEAR(pyRes);"; say $out "\treturn result;"; } else { say $out "\tPy_CLEAR(pyRes);"; } say $out "}\n"; } sub getres { my $type = shift; given ($type) { when (/^(.*)\*$/) { return "pyobj_to_ptr<$1>(\"$type\")" } when ('CString') { return 'PString' } when ('CModule::EModRet') { return 'SvToEModRet' } when (/unsigned/) { return 'SvUV' } default { return 'SvIV' } } } znc-1.6.3/modules/modpython/Makefile.gen0000644000175000017500000000145412663147131020450 0ustar somebodysomebodyall: VPATH := $(srcdir) ifneq "$(V)" "" VERBOSE=1 endif ifeq "$(VERBOSE)" "" Q=@ E=@echo C=-s else Q= E=@\# C= endif .SECONDARY: all: modpython/_znc_core.cpp modpython/znc_core.py modpython/functions.cpp modpython/swigpyrun.h modpython/swigpyrun.h: @mkdir -p modpython $(Q)$(SWIG) -python -py3 -c++ -shadow -external-runtime $@ modpython/_znc_core.cpp: modpython/modpython.i modpython/module.h modpython/cstring.i $(E) Generating ZNC API for python... @mkdir -p modpython .depend $(Q)$(SWIG) -python -py3 -c++ -shadow -outdir modpython -I$(srcdir) -MD -MF .depend/modpython.swig.dep -w362,315,401 -o $@ $< modpython/znc_core.py: modpython/_znc_core.cpp modpython/functions.cpp: modpython/codegen.pl modpython/functions.in @mkdir -p modpython $(Q)$(PERL) $^ $@ -include .depend/modpython.swig.dep znc-1.6.3/modules/identfile.cpp0000644000175000017500000001322612663147131016666 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include class CIdentFileModule : public CModule { CString m_sOrigISpoof; CFile* m_pISpoofLockFile; CIRCSock *m_pIRCSock; public: MODCONSTRUCTOR(CIdentFileModule) { AddHelpCommand(); AddCommand("GetFile", static_cast(&CIdentFileModule::GetFile)); AddCommand("SetFile", static_cast(&CIdentFileModule::SetFile), ""); AddCommand("GetFormat", static_cast(&CIdentFileModule::GetFormat)); AddCommand("SetFormat", static_cast(&CIdentFileModule::SetFormat), ""); AddCommand("Show", static_cast(&CIdentFileModule::Show)); m_pISpoofLockFile = NULL; m_pIRCSock = NULL; } virtual ~CIdentFileModule() { ReleaseISpoof(); } void GetFile(const CString& sLine) { PutModule("File is set to: " + GetNV("File")); } void SetFile(const CString& sLine) { SetNV("File", sLine.Token(1, true)); PutModule("File has been set to: " + GetNV("File")); } void SetFormat(const CString& sLine) { SetNV("Format", sLine.Token(1, true)); PutModule("Format has been set to: " + GetNV("Format")); PutModule("Format would be expanded to: " + ExpandString(GetNV("Format"))); } void GetFormat(const CString& sLine) { PutModule("Format is set to: " + GetNV("Format")); PutModule("Format would be expanded to: " + ExpandString(GetNV("Format"))); } void Show(const CString& sLine) { PutModule("m_pISpoofLockFile = " + CString((long long)m_pISpoofLockFile)); PutModule("m_pIRCSock = " + CString((long long)m_pIRCSock)); if (m_pIRCSock) { PutModule("user/network - " + m_pIRCSock->GetNetwork()->GetUser()->GetUserName() + "/" + m_pIRCSock->GetNetwork()->GetName()); } else { PutModule("identfile is free"); } } void OnModCommand(const CString& sCommand) override { if (GetUser()->IsAdmin()) { HandleCommand(sCommand); } else { PutModule("Access denied"); } } void SetIRCSock(CIRCSock *pIRCSock) { if (m_pIRCSock) { CZNC::Get().ResumeConnectQueue(); } m_pIRCSock = pIRCSock; if (m_pIRCSock) { CZNC::Get().PauseConnectQueue(); } } bool WriteISpoof() { if (m_pISpoofLockFile != NULL) { return false; } m_pISpoofLockFile = new CFile; if (!m_pISpoofLockFile->TryExLock(GetNV("File"), O_RDWR | O_CREAT)) { delete m_pISpoofLockFile; m_pISpoofLockFile = NULL; return false; } char buf[1024]; memset((char*) buf, 0, 1024); m_pISpoofLockFile->Read(buf ,1024); m_sOrigISpoof = buf; if (!m_pISpoofLockFile->Seek(0) || !m_pISpoofLockFile->Truncate()) { delete m_pISpoofLockFile; m_pISpoofLockFile = NULL; return false; } CString sData = ExpandString(GetNV("Format")); // If the format doesn't contain anything expandable, we'll // assume this is an "old"-style format string. if (sData == GetNV("Format")) { sData.Replace("%", GetUser()->GetIdent()); } DEBUG("Writing [" + sData + "] to ident spoof file [" + m_pISpoofLockFile->GetLongName() + "] for user/network [" + GetUser()->GetUserName() + "/" + GetNetwork()->GetName() + "]"); m_pISpoofLockFile->Write(sData + "\n"); return true; } void ReleaseISpoof() { DEBUG("Releasing ident spoof for user/network [" + (m_pIRCSock ? m_pIRCSock->GetNetwork()->GetUser()->GetUserName() + "/" + m_pIRCSock->GetNetwork()->GetName() : "") + "]"); SetIRCSock(NULL); if (m_pISpoofLockFile != NULL) { if (m_pISpoofLockFile->Seek(0) && m_pISpoofLockFile->Truncate()) { m_pISpoofLockFile->Write(m_sOrigISpoof); } delete m_pISpoofLockFile; m_pISpoofLockFile = NULL; } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { m_pISpoofLockFile = NULL; m_pIRCSock = NULL; if (GetNV("Format").empty()) { SetNV("Format", "global { reply \"%ident%\" }"); } if (GetNV("File").empty()) { SetNV("File", "~/.oidentd.conf"); } return true; } virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) override { if (m_pISpoofLockFile != NULL) { DEBUG("Aborting connection, ident spoof lock file exists"); PutModule("Aborting connection, another user or network is currently connecting and using the ident spoof file"); return HALTCORE; } if (!WriteISpoof()) { DEBUG("identfile [" + GetNV("File") + "] could not be written"); PutModule("[" + GetNV("File") + "] could not be written, retrying..."); return HALTCORE; } SetIRCSock(pIRCSock); return CONTINUE; } virtual void OnIRCConnected() override { if (m_pIRCSock == GetNetwork()->GetIRCSock()) { ReleaseISpoof(); } } virtual void OnIRCConnectionError(CIRCSock *pIRCSock) override { if (m_pIRCSock == pIRCSock) { ReleaseISpoof(); } } virtual void OnIRCDisconnected() override { if (m_pIRCSock == GetNetwork()->GetIRCSock()) { ReleaseISpoof(); } } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("identfile"); } GLOBALMODULEDEFS(CIdentFileModule, "Write the ident of a user to a file when they are trying to connect.") znc-1.6.3/modules/keepnick.cpp0000644000175000017500000001302212663147131016506 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; class CKeepNickMod; class CKeepNickTimer : public CTimer { public: CKeepNickTimer(CKeepNickMod *pMod); ~CKeepNickTimer() {} void RunJob(); private: CKeepNickMod* m_pMod; }; class CKeepNickMod : public CModule { public: MODCONSTRUCTOR(CKeepNickMod) { AddHelpCommand(); AddCommand("Enable", static_cast(&CKeepNickMod::OnEnableCommand), "", "Try to get your primary nick"); AddCommand("Disable", static_cast(&CKeepNickMod::OnDisableCommand), "", "No longer trying to get your primary nick"); AddCommand("State", static_cast(&CKeepNickMod::OnStateCommand), "", "Show the current state"); } ~CKeepNickMod() {} bool OnLoad(const CString& sArgs, CString& sMessage) override { m_pTimer = NULL; // Check if we need to start the timer if (GetNetwork()->IsIRCConnected()) OnIRCConnected(); return true; } void KeepNick() { if (!m_pTimer) // No timer means we are turned off return; CIRCSock* pIRCSock = GetNetwork()->GetIRCSock(); if (!pIRCSock) return; // Do we already have the nick we want? if (pIRCSock->GetNick().Equals(GetNick())) return; PutIRC("NICK " + GetNick()); } CString GetNick() { CString sConfNick = GetNetwork()->GetNick(); CIRCSock* pIRCSock = GetNetwork()->GetIRCSock(); if (pIRCSock) sConfNick = sConfNick.Left(pIRCSock->GetMaxNickLen()); return sConfNick; } void OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) override { if (sNewNick == GetNetwork()->GetIRCSock()->GetNick()) { // We are changing our own nick if (Nick.NickEquals(GetNick())) { // We are changing our nick away from the conf setting. // Let's assume the user wants this and disable // this module (to avoid fighting nickserv). Disable(); } else if (sNewNick.Equals(GetNick())) { // We are changing our nick to the conf setting, // so we don't need that timer anymore. Disable(); } return; } // If the nick we want is free now, be fast and get the nick if (Nick.NickEquals(GetNick())) { KeepNick(); } } void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override { // If someone with the nick we want quits, be fast and get the nick if (Nick.NickEquals(GetNick())) { KeepNick(); } } void OnIRCDisconnected() override { // No way we can do something if we aren't connected to IRC. Disable(); } void OnIRCConnected() override { if (!GetNetwork()->GetIRCSock()->GetNick().Equals(GetNick())) { // We don't have the nick we want, try to get it Enable(); } } void Enable() { if (m_pTimer) return; m_pTimer = new CKeepNickTimer(this); AddTimer(m_pTimer); } void Disable() { if (!m_pTimer) return; m_pTimer->Stop(); RemTimer(m_pTimer); m_pTimer = NULL; } virtual EModRet OnUserRaw(CString& sLine) override { // We dont care if we are not connected to IRC if (!GetNetwork()->IsIRCConnected()) return CONTINUE; // We are trying to get the config nick and this is a /nick? if (!m_pTimer || !sLine.Token(0).Equals("NICK")) return CONTINUE; // Is the nick change for the nick we are trying to get? CString sNick = sLine.Token(1); // Don't even think of using spaces in your nick! if (sNick.Left(1) == ":") sNick.LeftChomp(); if (!sNick.Equals(GetNick())) return CONTINUE; // Indeed trying to change to this nick, generate a 433 for it. // This way we can *always* block incoming 433s from the server. PutUser(":" + GetNetwork()->GetIRCServer() + " 433 " + GetNetwork()->GetIRCNick().GetNick() + " " + sNick + " :ZNC is already trying to get this nickname"); return CONTINUE; } virtual EModRet OnRaw(CString& sLine) override { // Are we trying to get our primary nick and we caused this error? // :irc.server.net 433 mynick badnick :Nickname is already in use. if (m_pTimer && sLine.Token(1) == "433" && sLine.Token(3).Equals(GetNick())) return HALT; return CONTINUE; } void OnEnableCommand(const CString& sCommand) { Enable(); PutModule("Trying to get your primary nick"); } void OnDisableCommand(const CString& sCommand) { Disable(); PutModule("No longer trying to get your primary nick"); } void OnStateCommand(const CString& sCommand) { if (m_pTimer) PutModule("Currently trying to get your primary nick"); else PutModule("Currently disabled, try 'enable'"); } private: // If this is NULL, we are turned off for some reason CKeepNickTimer* m_pTimer = nullptr; }; CKeepNickTimer::CKeepNickTimer(CKeepNickMod *pMod) : CTimer(pMod, 30, 0, "KeepNickTimer", "Tries to acquire this user's primary nick") { m_pMod = pMod; } void CKeepNickTimer::RunJob() { m_pMod->KeepNick(); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("keepnick"); } NETWORKMODULEDEFS(CKeepNickMod, "Keep trying for your primary nick") znc-1.6.3/modules/chansaver.cpp0000644000175000017500000000457412663147131016703 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include class CChanSaverMod : public CModule { public: MODCONSTRUCTOR(CChanSaverMod) { } virtual ~CChanSaverMod() { } bool OnLoad(const CString& sArgsi, CString& sMessage) override { switch (GetType()) { case CModInfo::GlobalModule: LoadUsers(); break; case CModInfo::UserModule: LoadUser(GetUser()); break; case CModInfo::NetworkModule: LoadNetwork(GetNetwork()); break; } return true; } void LoadUsers() { const std::map& vUsers = CZNC::Get().GetUserMap(); for (const auto& user : vUsers) { LoadUser(user.second); } } void LoadUser(CUser* pUser) { const std::vector& vNetworks = pUser->GetNetworks(); for (const CIRCNetwork* pNetwork : vNetworks) { LoadNetwork(pNetwork); } } void LoadNetwork(const CIRCNetwork* pNetwork) { const std::vector& vChans = pNetwork->GetChans(); for (CChan* pChan : vChans) { // If that channel isn't yet in the config, // we'll have to add it... if (!pChan->InConfig()) { pChan->SetInConfig(true); } } } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { if (!Channel.InConfig() && GetNetwork()->GetIRCNick().NickEquals(Nick.GetNick())) { Channel.SetInConfig(true); } } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override { if (Channel.InConfig() && GetNetwork()->GetIRCNick().NickEquals(Nick.GetNick())) { Channel.SetInConfig(false); } } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("chansaver"); Info.AddType(CModInfo::NetworkModule); Info.AddType(CModInfo::GlobalModule); } USERMODULEDEFS(CChanSaverMod, "Keep config up-to-date when user joins/parts.") znc-1.6.3/modules/schat.cpp0000644000175000017500000003115012663147131016021 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Author: imaginos * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Secure chat system */ #define REQUIRESSL #include #include #include using std::pair; using std::stringstream; using std::map; using std::set; using std::vector; class CSChat; class CRemMarkerJob : public CTimer { public: CRemMarkerJob(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {} virtual ~CRemMarkerJob() {} void SetNick(const CString & sNick) { m_sNick = sNick; } protected: virtual void RunJob() override; CString m_sNick; }; class CSChatSock : public CSocket { public: CSChatSock(CSChat *pMod, const CString& sChatNick); CSChatSock(CSChat *pMod, const CString& sChatNick, const CString& sHost, u_short iPort, int iTimeout = 60); ~CSChatSock() {} virtual Csock *GetSockObj(const CS_STRING & sHostname, u_short iPort) override { CSChatSock *p = new CSChatSock(m_pModule, m_sChatNick, sHostname, iPort); return(p); } virtual bool ConnectionFrom(const CS_STRING & sHost, u_short iPort) override { Close(); // close the listener after the first connection return(true); } virtual void Connected() override; virtual void Timeout() override; const CString & GetChatNick() const { return(m_sChatNick); } void PutQuery(const CString& sText); virtual void ReadLine(const CS_STRING & sLine) override; virtual void Disconnected() override; void AddLine(const CString & sLine) { m_vBuffer.insert(m_vBuffer.begin(), sLine); if (m_vBuffer.size() > 200) m_vBuffer.pop_back(); } void DumpBuffer() { if (m_vBuffer.empty()) { // Always show a message to the user, so he knows // this schat still exists. ReadLine("*** Reattached."); } else { // Buffer playback vector::reverse_iterator it = m_vBuffer.rbegin(); for (; it != m_vBuffer.rend(); ++it) ReadLine(*it); m_vBuffer.clear(); } } private: CSChat *m_pModule; CString m_sChatNick; VCString m_vBuffer; }; class CSChat : public CModule { public: MODCONSTRUCTOR(CSChat) {} virtual ~CSChat() {} virtual bool OnLoad(const CString & sArgs, CString & sMessage) override { m_sPemFile = sArgs; if (m_sPemFile.empty()) { m_sPemFile = CZNC::Get().GetPemLocation(); } if (!CFile::Exists(m_sPemFile)) { sMessage = "Unable to load pem file [" + m_sPemFile + "]"; return false; } return true; } virtual void OnClientLogin() override { set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CSChatSock *p = (CSChatSock*) *it; if (p->GetType() == CSChatSock::LISTENER) continue; p->DumpBuffer(); } } virtual EModRet OnUserRaw(CString & sLine) override { if (sLine.Equals("schat ", false, 6)) { OnModCommand("chat " + sLine.substr(6)); return(HALT); } else if (sLine.Equals("schat")) { PutModule("SChat User Area ..."); OnModCommand("help"); return(HALT); } return(CONTINUE); } virtual void OnModCommand(const CString& sCommand) override { CString sCom = sCommand.Token(0); CString sArgs = sCommand.Token(1, true); if (sCom.Equals("chat") && !sArgs.empty()) { CString sNick = "(s)" + sArgs; set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CSChatSock *pSock = (CSChatSock*) *it; if (pSock->GetChatNick().Equals(sNick)) { PutModule("Already Connected to [" + sArgs + "]"); return; } } CSChatSock *pSock = new CSChatSock(this, sNick); pSock->SetCipher("HIGH"); pSock->SetPemLocation(m_sPemFile); u_short iPort = GetManager()->ListenRand(pSock->GetSockName() + "::LISTENER", GetUser()->GetLocalDCCIP(), true, SOMAXCONN, pSock, 60); if (iPort == 0) { PutModule("Failed to start chat!"); return; } stringstream s; s << "PRIVMSG " << sArgs << " :\001"; s << "DCC SCHAT chat "; s << CUtils::GetLongIP(GetUser()->GetLocalDCCIP()); s << " " << iPort << "\001"; PutIRC(s.str()); } else if (sCom.Equals("list")) { CTable Table; Table.AddColumn("Nick"); Table.AddColumn("Created"); Table.AddColumn("Host"); Table.AddColumn("Port"); Table.AddColumn("Status"); Table.AddColumn("Cipher"); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { Table.AddRow(); CSChatSock *pSock = (CSChatSock*) *it; Table.SetCell("Nick", pSock->GetChatNick()); unsigned long long iStartTime = pSock->GetStartTime(); time_t iTime = iStartTime / 1000; char *pTime = ctime(&iTime); if (pTime) { CString sTime = pTime; sTime.Trim(); Table.SetCell("Created", sTime); } if (pSock->GetType() != CSChatSock::LISTENER) { Table.SetCell("Status", "Established"); Table.SetCell("Host", pSock->GetRemoteIP()); Table.SetCell("Port", CString(pSock->GetRemotePort())); SSL_SESSION *pSession = pSock->GetSSLSession(); if (pSession && pSession->cipher && pSession->cipher->name) Table.SetCell("Cipher", pSession->cipher->name); } else { Table.SetCell("Status", "Waiting"); Table.SetCell("Port", CString(pSock->GetLocalPort())); } } if (Table.size()) { PutModule(Table); } else PutModule("No SDCCs currently in session"); } else if (sCom.Equals("close")) { if (!sArgs.Equals("(s)", false, 3)) sArgs = "(s)" + sArgs; set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CSChatSock *pSock = (CSChatSock*) *it; if (sArgs.Equals(pSock->GetChatNick())) { pSock->Close(); return; } } PutModule("No Such Chat [" + sArgs + "]"); } else if (sCom.Equals("showsocks") && GetUser()->IsAdmin()) { CTable Table; Table.AddColumn("SockName"); Table.AddColumn("Created"); Table.AddColumn("LocalIP:Port"); Table.AddColumn("RemoteIP:Port"); Table.AddColumn("Type"); Table.AddColumn("Cipher"); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { Table.AddRow(); Csock *pSock = *it; Table.SetCell("SockName", pSock->GetSockName()); unsigned long long iStartTime = pSock->GetStartTime(); time_t iTime = iStartTime / 1000; char *pTime = ctime(&iTime); if (pTime) { CString sTime = pTime; sTime.Trim(); Table.SetCell("Created", sTime); } if (pSock->GetType() != Csock::LISTENER) { if (pSock->GetType() == Csock::OUTBOUND) Table.SetCell("Type", "Outbound"); else Table.SetCell("Type", "Inbound"); Table.SetCell("LocalIP:Port", pSock->GetLocalIP() + ":" + CString(pSock->GetLocalPort())); Table.SetCell("RemoteIP:Port", pSock->GetRemoteIP() + ":" + CString(pSock->GetRemotePort())); SSL_SESSION *pSession = pSock->GetSSLSession(); if (pSession && pSession->cipher && pSession->cipher->name) Table.SetCell("Cipher", pSession->cipher->name); else Table.SetCell("Cipher", "None"); } else { Table.SetCell("Type", "Listener"); Table.SetCell("LocalIP:Port", pSock->GetLocalIP() + ":" + CString(pSock->GetLocalPort())); Table.SetCell("RemoteIP:Port", "0.0.0.0:0"); } } if (Table.size()) PutModule(Table); else PutModule("Error Finding Sockets"); } else if (sCom.Equals("help")) { PutModule("Commands are:"); PutModule(" help - This text."); PutModule(" chat - Chat a nick."); PutModule(" list - List current chats."); PutModule(" close - Close a chat to a nick."); PutModule(" timers - Shows related timers."); if (GetUser()->IsAdmin()) { PutModule(" showsocks - Shows all socket connections."); } } else if (sCom.Equals("timers")) ListTimers(); else PutModule("Unknown command [" + sCom + "] [" + sArgs + "]"); } virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override { if (sMessage.Equals("DCC SCHAT ", false, 10)) { // chat ip port unsigned long iIP = sMessage.Token(3).ToULong(); unsigned short iPort = sMessage.Token(4).ToUShort(); if (iIP > 0 && iPort > 0) { pair pTmp; CString sMask; pTmp.first = iIP; pTmp.second = iPort; sMask = "(s)" + Nick.GetNick() + "!" + "(s)" + Nick.GetNick() + "@" + CUtils::GetIP(iIP); m_siiWaitingChats["(s)" + Nick.GetNick()] = pTmp; SendToUser(sMask, "*** Incoming DCC SCHAT, Accept ? (yes/no)"); CRemMarkerJob *p = new CRemMarkerJob(this, 60, 1, "Remove (s)" + Nick.GetNick(), "Removes this nicks entry for waiting DCC."); p->SetNick("(s)" + Nick.GetNick()); AddTimer(p); return(HALT); } } return(CONTINUE); } void AcceptSDCC(const CString & sNick, u_long iIP, u_short iPort) { CSChatSock *p = new CSChatSock(this, sNick, CUtils::GetIP(iIP), iPort, 60); GetManager()->Connect(CUtils::GetIP(iIP), iPort, p->GetSockName(), 60, true, GetUser()->GetLocalDCCIP(), p); RemTimer("Remove " + sNick); // delete any associated timer to this nick } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override { if (sTarget.Left(3) == "(s)") { CString sSockName = GetModName().AsUpper() + "::" + sTarget; CSChatSock *p = (CSChatSock *)FindSocket(sSockName); if (!p) { map< CString,pair< u_long,u_short > >::iterator it; it = m_siiWaitingChats.find(sTarget); if (it != m_siiWaitingChats.end()) { if (!sMessage.Equals("yes")) SendToUser(sTarget + "!" + sTarget + "@" + CUtils::GetIP(it->second.first), "Refusing to accept DCC SCHAT!"); else AcceptSDCC(sTarget, it->second.first, it->second.second); m_siiWaitingChats.erase(it); return(HALT); } PutModule("No such SCHAT to [" + sTarget + "]"); } else p->Write(sMessage + "\n"); return(HALT); } return(CONTINUE); } void RemoveMarker(const CString & sNick) { map< CString,pair< u_long,u_short > >::iterator it = m_siiWaitingChats.find(sNick); if (it != m_siiWaitingChats.end()) m_siiWaitingChats.erase(it); } void SendToUser(const CString & sFrom, const CString & sText) { //:*schat!znc@znc.in PRIVMSG Jim : CString sSend = ":" + sFrom + " PRIVMSG " + GetNetwork()->GetCurNick() + " :" + sText; PutUser(sSend); } bool IsAttached() { return(GetNetwork()->IsUserAttached()); } private: map< CString,pair< u_long,u_short > > m_siiWaitingChats; CString m_sPemFile; }; //////////////////// methods //////////////// CSChatSock::CSChatSock(CSChat *pMod, const CString& sChatNick) : CSocket(pMod) { m_pModule = pMod; m_sChatNick = sChatNick; SetSockName(pMod->GetModName().AsUpper() + "::" + m_sChatNick); } CSChatSock::CSChatSock(CSChat *pMod, const CString& sChatNick, const CString& sHost, u_short iPort, int iTimeout) : CSocket(pMod, sHost, iPort, iTimeout) { m_pModule = pMod; EnableReadLine(); m_sChatNick = sChatNick; SetSockName(pMod->GetModName().AsUpper() + "::" + m_sChatNick); } void CSChatSock::PutQuery(const CString& sText) { m_pModule->SendToUser(m_sChatNick + "!" + m_sChatNick + "@" + GetRemoteIP(), sText); } void CSChatSock::ReadLine(const CS_STRING & sLine) { if (m_pModule) { CString sText = sLine; sText.TrimRight("\r\n"); if (m_pModule->IsAttached()) PutQuery(sText); else AddLine(m_pModule->GetUser()->AddTimestamp(sText)); } } void CSChatSock::Disconnected() { if (m_pModule) PutQuery("*** Disconnected."); } void CSChatSock::Connected() { SetTimeout(0); if (m_pModule) PutQuery("*** Connected."); } void CSChatSock::Timeout() { if (m_pModule) { if (GetType() == LISTENER) m_pModule->PutModule("Timeout while waiting for [" + m_sChatNick + "]"); else PutQuery("*** Connection Timed out."); } } void CRemMarkerJob::RunJob() { CSChat *p = (CSChat *)GetModule(); p->RemoveMarker(m_sNick); // store buffer } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("schat"); Info.SetHasArgs(true); Info.SetArgsHelpText("Path to .pem file, if differs from main ZNC's one"); } NETWORKMODULEDEFS(CSChat, "Secure cross platform (:P) chat system") znc-1.6.3/modules/ctcpflood.cpp0000644000175000017500000001027112663147131016675 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include class CCtcpFloodMod : public CModule { public: MODCONSTRUCTOR(CCtcpFloodMod) { AddHelpCommand(); AddCommand("Secs", static_cast(&CCtcpFloodMod::OnSecsCommand), "", "Set seconds limit"); AddCommand("Lines", static_cast(&CCtcpFloodMod::OnLinesCommand), "", "Set lines limit"); AddCommand("Show", static_cast(&CCtcpFloodMod::OnShowCommand), "", "Show the current limits"); } ~CCtcpFloodMod() { } void Save() { // We save the settings twice because the module arguments can // be more easily edited via webadmin, while the SetNV() stuff // survives e.g. /msg *status reloadmod ctcpflood. SetNV("secs", CString(m_iThresholdSecs)); SetNV("msgs", CString(m_iThresholdMsgs)); SetArgs(CString(m_iThresholdMsgs) + " " + CString(m_iThresholdSecs)); } bool OnLoad(const CString& sArgs, CString& sMessage) override { m_iThresholdMsgs = sArgs.Token(0).ToUInt(); m_iThresholdSecs = sArgs.Token(1).ToUInt(); if (m_iThresholdMsgs == 0 || m_iThresholdSecs == 0) { m_iThresholdMsgs = GetNV("msgs").ToUInt(); m_iThresholdSecs = GetNV("secs").ToUInt(); } if (m_iThresholdSecs == 0) m_iThresholdSecs = 2; if (m_iThresholdMsgs == 0) m_iThresholdMsgs = 4; Save(); return true; } EModRet Message(const CNick& Nick, const CString& sMessage) { // We never block /me, because it doesn't cause a reply if (sMessage.Token(0).Equals("ACTION")) return CONTINUE; if (m_tLastCTCP + m_iThresholdSecs < time(NULL)) { m_tLastCTCP = time(NULL); m_iNumCTCP = 0; } m_iNumCTCP++; if (m_iNumCTCP < m_iThresholdMsgs) return CONTINUE; else if (m_iNumCTCP == m_iThresholdMsgs) PutModule("Limit reached by [" + Nick.GetHostMask() + "], blocking all CTCP"); // Reset the timeout so that we continue blocking messages m_tLastCTCP = time(NULL); return HALT; } EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override { return Message(Nick, sMessage); } EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override { return Message(Nick, sMessage); } void OnSecsCommand(const CString& sCommand) { const CString& sArg = sCommand.Token(1, true); if (sArg.empty()) { PutModule("Usage: Secs "); return; } m_iThresholdSecs = sArg.ToUInt(); if (m_iThresholdSecs == 0) m_iThresholdSecs = 1; PutModule("Set seconds limit to [" + CString(m_iThresholdSecs) + "]"); Save(); } void OnLinesCommand(const CString& sCommand) { const CString& sArg = sCommand.Token(1, true); if (sArg.empty()) { PutModule("Usage: Lines "); return; } m_iThresholdMsgs = sArg.ToUInt(); if (m_iThresholdMsgs == 0) m_iThresholdMsgs = 2; PutModule("Set lines limit to [" + CString(m_iThresholdMsgs) + "]"); Save(); } void OnShowCommand(const CString& sCommand) { PutModule("Current limit is " + CString(m_iThresholdMsgs) + " CTCPs " "in " + CString(m_iThresholdSecs) + " secs"); } private: time_t m_tLastCTCP = 0; unsigned int m_iNumCTCP = 0; time_t m_iThresholdSecs{}; unsigned int m_iThresholdMsgs{}; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("ctcpflood"); Info.SetHasArgs(true); Info.SetArgsHelpText("This user module takes none to two arguments. The first argument is the number of lines after which the flood-protection is triggered. The second argument is the time (s) to in which the number of lines is reached. The default setting is 4 CTCPs in 2 seconds"); } USERMODULEDEFS(CCtcpFloodMod, "Don't forward CTCP floods to clients") znc-1.6.3/modules/block_motd.cpp0000644000175000017500000000251612663147131017040 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include class CBlockMotd : public CModule { public: MODCONSTRUCTOR(CBlockMotd) { } virtual ~CBlockMotd() { } virtual EModRet OnRaw(CString &sLine) override { const CString sCmd = sLine.Token(1); if (sCmd == "375" /* begin of MOTD */ || sCmd == "372" /* MOTD */) return HALT; if (sCmd == "376" /* End of MOTD */) { sLine = sLine.Token(0) + " 422 " + sLine.Token(2) + " :MOTD blocked by ZNC"; } return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.AddType(CModInfo::NetworkModule); Info.AddType(CModInfo::GlobalModule); Info.SetWikiPage("block_motd"); } USERMODULEDEFS(CBlockMotd, "Block the MOTD from IRC so it's not sent to your client(s).") znc-1.6.3/modules/autoattach.cpp0000644000175000017500000001735212663147131017064 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; class CAttachMatch { public: CAttachMatch(CModule *pModule, const CString& sChannels, const CString& sSearch, const CString& sHostmasks, bool bNegated) { m_pModule = pModule; m_sChannelWildcard = sChannels; m_sSearchWildcard = sSearch; m_sHostmaskWildcard = sHostmasks; m_bNegated = bNegated; if (m_sChannelWildcard.empty()) m_sChannelWildcard = "*"; if (m_sSearchWildcard.empty()) m_sSearchWildcard = "*"; if (m_sHostmaskWildcard.empty()) m_sHostmaskWildcard = "*!*@*"; } bool IsMatch(const CString& sChan, const CString& sHost, const CString& sMessage) const { if (!sHost.WildCmp(m_sHostmaskWildcard)) return false; if (!sChan.WildCmp(m_sChannelWildcard)) return false; if (!sMessage.WildCmp(m_pModule->ExpandString(m_sSearchWildcard))) return false; return true; } bool IsNegated() const { return m_bNegated; } const CString& GetHostMask() const { return m_sHostmaskWildcard; } const CString& GetSearch() const { return m_sSearchWildcard; } const CString& GetChans() const { return m_sChannelWildcard; } CString ToString() { CString sRes; if (m_bNegated) sRes += "!"; sRes += m_sChannelWildcard; sRes += " "; sRes += m_sSearchWildcard; sRes += " "; sRes += m_sHostmaskWildcard; return sRes; } private: bool m_bNegated; CModule *m_pModule; CString m_sChannelWildcard; CString m_sSearchWildcard; CString m_sHostmaskWildcard; }; class CChanAttach : public CModule { public: typedef vector VAttachMatch; typedef VAttachMatch::iterator VAttachIter; private: void HandleAdd(const CString& sLine) { CString sMsg = sLine.Token(1, true); bool bHelp = false; bool bNegated = sMsg.TrimPrefix("!"); CString sChan = sMsg.Token(0); CString sSearch = sMsg.Token(1); CString sHost = sMsg.Token(2); if (sChan.empty()) { bHelp = true; } else if (Add(bNegated, sChan, sSearch, sHost)) { PutModule("Added to list"); } else { PutModule(sLine.Token(1, true) + " is already added"); bHelp = true; } if (bHelp) { PutModule("Usage: Add [!]<#chan> "); PutModule("Wildcards are allowed"); } } void HandleDel(const CString& sLine) { CString sMsg = sLine.Token(1, true); bool bNegated = sMsg.TrimPrefix("!"); CString sChan = sMsg.Token(0); CString sSearch = sMsg.Token(1); CString sHost = sMsg.Token(2); if (Del(bNegated, sChan, sSearch, sHost)) { PutModule("Removed " + sChan + " from list"); } else { PutModule("Usage: Del [!]<#chan> "); } } void HandleList(const CString& sLine) { CTable Table; Table.AddColumn("Neg"); Table.AddColumn("Chan"); Table.AddColumn("Search"); Table.AddColumn("Host"); VAttachIter it = m_vMatches.begin(); for (; it != m_vMatches.end(); ++it) { Table.AddRow(); Table.SetCell("Neg", it->IsNegated() ? "!" : ""); Table.SetCell("Chan", it->GetChans()); Table.SetCell("Search", it->GetSearch()); Table.SetCell("Host", it->GetHostMask()); } if (Table.size()) { PutModule(Table); } else { PutModule("You have no entries."); } } public: MODCONSTRUCTOR(CChanAttach) { AddHelpCommand(); AddCommand("Add", static_cast(&CChanAttach::HandleAdd), "[!]<#chan> ", "Add an entry, use !#chan to negate and * for wildcards"); AddCommand("Del", static_cast(&CChanAttach::HandleDel), "[!]<#chan> ", "Remove an entry, needs to be an exact match"); AddCommand("List", static_cast(&CChanAttach::HandleList), "", "List all entries"); } virtual ~CChanAttach() { } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { VCString vsChans; sArgs.Split(" ", vsChans, false); for (VCString::const_iterator it = vsChans.begin(); it != vsChans.end(); ++it) { CString sAdd = *it; bool bNegated = sAdd.TrimPrefix("!"); CString sChan = sAdd.Token(0); CString sSearch = sAdd.Token(1); CString sHost = sAdd.Token(2, true); if (!Add(bNegated, sChan, sSearch, sHost)) { PutModule("Unable to add [" + *it + "]"); } } // Load our saved settings, ignore errors MCString::iterator it; for (it = BeginNV(); it != EndNV(); ++it) { CString sAdd = it->first; bool bNegated = sAdd.TrimPrefix("!"); CString sChan = sAdd.Token(0); CString sSearch = sAdd.Token(1); CString sHost = sAdd.Token(2, true); Add(bNegated, sChan, sSearch, sHost); } return true; } void TryAttach(const CNick& Nick, CChan& Channel, CString& Message) { const CString& sChan = Channel.GetName(); const CString& sHost = Nick.GetHostMask(); const CString& sMessage = Message; VAttachIter it; if (!Channel.IsDetached()) return; // Any negated match? for (it = m_vMatches.begin(); it != m_vMatches.end(); ++it) { if (it->IsNegated() && it->IsMatch(sChan, sHost, sMessage)) return; } // Now check for a positive match for (it = m_vMatches.begin(); it != m_vMatches.end(); ++it) { if (!it->IsNegated() && it->IsMatch(sChan, sHost, sMessage)) { Channel.AttachUser(); return; } } } virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override { TryAttach(Nick, Channel, sMessage); return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override { TryAttach(Nick, Channel, sMessage); return CONTINUE; } virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) override { TryAttach(Nick, Channel, sMessage); return CONTINUE; } VAttachIter FindEntry(const CString& sChan, const CString& sSearch, const CString& sHost) { VAttachIter it = m_vMatches.begin(); for (; it != m_vMatches.end(); ++it) { if (sHost.empty() || it->GetHostMask() != sHost) continue; if (sSearch.empty() || it->GetSearch() != sSearch) continue; if (sChan.empty() || it->GetChans() != sChan) continue; return it; } return m_vMatches.end(); } bool Add(bool bNegated, const CString& sChan, const CString& sSearch, const CString& sHost) { CAttachMatch attach(this, sChan, sSearch, sHost, bNegated); // Check for duplicates VAttachIter it = m_vMatches.begin(); for (; it != m_vMatches.end(); ++it) { if (it->GetHostMask() == attach.GetHostMask() && it->GetChans() == attach.GetChans() && it->GetSearch() == attach.GetSearch()) return false; } m_vMatches.push_back(attach); // Also save it for next module load SetNV(attach.ToString(), ""); return true; } bool Del(bool bNegated, const CString& sChan, const CString& sSearch, const CString& sHost) { VAttachIter it = FindEntry(sChan, sSearch, sHost); if (it == m_vMatches.end() || it->IsNegated() != bNegated) return false; DelNV(it->ToString()); m_vMatches.erase(it); return true; } private: VAttachMatch m_vMatches; }; template<> void TModInfo(CModInfo& Info) { Info.AddType(CModInfo::UserModule); Info.SetWikiPage("autoattach"); Info.SetHasArgs(true); Info.SetArgsHelpText("List of channel masks and channel masks with ! before them."); } NETWORKMODULEDEFS(CChanAttach, "Reattaches you to channels on activity.") znc-1.6.3/modules/controlpanel.cpp0000644000175000017500000013233112663147131017422 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Copyright (C) 2008 by Stefan Rado * based on admin.cpp by Sebastian Ramacher * based on admin.cpp in crox branch * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include using std::map; using std::vector; template struct array_size_helper { char __place_holder[N]; }; template static array_size_helper array_size(T (&)[N]) { return array_size_helper(); } #define ARRAY_SIZE(array) sizeof(array_size((array))) class CAdminMod : public CModule { using CModule::PutModule; void PrintVarsHelp(const CString& sFilter, const char* vars[][2], unsigned int uSize, const CString& sDescription) { CTable VarTable; VarTable.AddColumn("Type"); VarTable.AddColumn("Variables"); std::map mvsTypedVariables; for (unsigned int i = 0; i != uSize; ++i) { CString sVar = CString(vars[i][0]).AsLower(); if (sFilter.empty() || sVar.StartsWith(sFilter) || sVar.WildCmp(sFilter)) { mvsTypedVariables[vars[i][1]].emplace_back(vars[i][0]); } } for (const auto& i : mvsTypedVariables) { VarTable.AddRow(); VarTable.SetCell("Type", i.first); VarTable.SetCell("Variables", CString(", ").Join(i.second.cbegin(), i.second.cend())); } if (!VarTable.empty()) { PutModule(sDescription); PutModule(VarTable); } } void PrintHelp(const CString& sLine) { HandleHelpCommand(sLine); static const char* str = "String"; static const char* boolean = "Boolean (true/false)"; static const char* integer = "Integer"; static const char* doublenum = "Double"; const CString sCmdFilter = sLine.Token(1, false); const CString::size_type iCmdLength = sCmdFilter.size(); const CString sVarFilter = sLine.Token(2, true).AsLower(); if (sCmdFilter.empty() || sCmdFilter.Equals("Set", false, iCmdLength) || sCmdFilter.Equals("Get", false, iCmdLength)) { static const char* vars[][2] = { {"Nick", str}, {"Altnick", str}, {"Ident", str}, {"RealName", str}, {"BindHost", str}, {"MultiClients", boolean}, {"DenyLoadMod", boolean}, {"DenySetBindHost", boolean}, {"DefaultChanModes", str}, {"QuitMsg", str}, {"BufferCount", integer}, {"AutoClearChanBuffer", boolean}, {"AutoClearQueryBuffer",boolean}, {"Password", str}, {"JoinTries", integer}, {"MaxJoins", integer}, {"MaxNetworks", integer}, {"MaxQueryBuffers", integer}, {"Timezone", str}, {"Admin", boolean}, {"AppendTimestamp", boolean}, {"PrependTimestamp", boolean}, {"TimestampFormat", str}, {"DCCBindHost", str}, {"StatusPrefix", str}, #ifdef HAVE_ICU {"ClientEncoding", str}, #endif }; PrintVarsHelp(sVarFilter, vars, ARRAY_SIZE(vars), "The following variables are available when using the Set/Get commands:"); } if (sCmdFilter.empty() || sCmdFilter.Equals("SetNetwork", false, iCmdLength) || sCmdFilter.Equals("GetNetwork", false, iCmdLength)) { static const char* nvars[][2] = { {"Nick", str}, {"Altnick", str}, {"Ident", str}, {"RealName", str}, {"BindHost", str}, {"FloodRate", doublenum}, {"FloodBurst", integer}, {"JoinDelay", integer}, #ifdef HAVE_ICU {"Encoding", str}, #endif {"QuitMsg", str}, }; PrintVarsHelp(sVarFilter, nvars, ARRAY_SIZE(nvars), "The following variables are available when using the SetNetwork/GetNetwork commands:"); } if (sCmdFilter.empty() || sCmdFilter.Equals("SetChan", false, iCmdLength) || sCmdFilter.Equals("GetChan", false, iCmdLength)) { static const char* cvars[][2] = { {"DefModes", str}, {"Key", str}, {"Buffer", integer}, {"InConfig", boolean}, {"AutoClearChanBuffer", boolean}, {"Detached", boolean} }; PrintVarsHelp(sVarFilter, cvars, ARRAY_SIZE(cvars), "The following variables are available when using the SetChan/GetChan commands:"); } if (sCmdFilter.empty()) PutModule("You can use $me as the user name for modifying your own user."); } CUser* FindUser(const CString& sUsername) { if (sUsername.Equals("$me")) return GetUser(); CUser *pUser = CZNC::Get().FindUser(sUsername); if (!pUser) { PutModule("Error: User [" + sUsername + "] not found."); return NULL; } if (pUser != GetUser() && !GetUser()->IsAdmin()) { PutModule("Error: You need to have admin rights to modify other users!"); return NULL; } return pUser; } void Get(const CString& sLine) { const CString sVar = sLine.Token(1).AsLower(); CString sUsername = sLine.Token(2, true); CUser* pUser; if (sVar.empty()) { PutModule("Usage: Get [username]"); return; } if (sUsername.empty()) { pUser = GetUser(); } else { pUser = FindUser(sUsername); } if (!pUser) return; if (sVar == "nick") PutModule("Nick = " + pUser->GetNick()); else if (sVar == "altnick") PutModule("AltNick = " + pUser->GetAltNick()); else if (sVar == "ident") PutModule("Ident = " + pUser->GetIdent()); else if (sVar == "realname") PutModule("RealName = " + pUser->GetRealName()); else if (sVar == "bindhost") PutModule("BindHost = " + pUser->GetBindHost()); else if (sVar == "multiclients") PutModule("MultiClients = " + CString(pUser->MultiClients())); else if (sVar == "denyloadmod") PutModule("DenyLoadMod = " + CString(pUser->DenyLoadMod())); else if (sVar == "denysetbindhost") PutModule("DenySetBindHost = " + CString(pUser->DenySetBindHost())); else if (sVar == "defaultchanmodes") PutModule("DefaultChanModes = " + pUser->GetDefaultChanModes()); else if (sVar == "quitmsg") PutModule("QuitMsg = " + pUser->GetQuitMsg()); else if (sVar == "buffercount") PutModule("BufferCount = " + CString(pUser->GetBufferCount())); else if (sVar == "keepbuffer") PutModule("KeepBuffer = " + CString(!pUser->AutoClearChanBuffer())); // XXX compatibility crap, added in 0.207 else if (sVar == "autoclearchanbuffer") PutModule("AutoClearChanBuffer = " + CString(pUser->AutoClearChanBuffer())); else if (sVar == "autoclearquerybuffer") PutModule("AutoClearQueryBuffer = " + CString(pUser->AutoClearQueryBuffer())); else if (sVar == "maxjoins") PutModule("MaxJoins = " + CString(pUser->MaxJoins())); else if (sVar == "maxnetworks") PutModule("MaxNetworks = " + CString(pUser->MaxNetworks())); else if (sVar == "maxquerybuffers") PutModule("MaxQueryBuffers = " + CString(pUser->MaxQueryBuffers())); else if (sVar == "jointries") PutModule("JoinTries = " + CString(pUser->JoinTries())); else if (sVar == "timezone") PutModule("Timezone = " + pUser->GetTimezone()); else if (sVar == "appendtimestamp") PutModule("AppendTimestamp = " + CString(pUser->GetTimestampAppend())); else if (sVar == "prependtimestamp") PutModule("PrependTimestamp = " + CString(pUser->GetTimestampPrepend())); else if (sVar == "timestampformat") PutModule("TimestampFormat = " + pUser->GetTimestampFormat()); else if (sVar == "dccbindhost") PutModule("DCCBindHost = " + CString(pUser->GetDCCBindHost())); else if (sVar == "admin") PutModule("Admin = " + CString(pUser->IsAdmin())); else if (sVar == "statusprefix") PutModule("StatusPrefix = " + pUser->GetStatusPrefix()); #ifdef HAVE_ICU else if (sVar == "clientencoding") PutModule("ClientEncoding = " + pUser->GetClientEncoding()); #endif else PutModule("Error: Unknown variable"); } void Set(const CString& sLine) { const CString sVar = sLine.Token(1).AsLower(); CString sUserName = sLine.Token(2); CString sValue = sLine.Token(3, true); if (sValue.empty()) { PutModule("Usage: Set "); return; } CUser* pUser = FindUser(sUserName); if (!pUser) return; if (sVar == "nick") { pUser->SetNick(sValue); PutModule("Nick = " + sValue); } else if (sVar == "altnick") { pUser->SetAltNick(sValue); PutModule("AltNick = " + sValue); } else if (sVar == "ident") { pUser->SetIdent(sValue); PutModule("Ident = " + sValue); } else if (sVar == "realname") { pUser->SetRealName(sValue); PutModule("RealName = " + sValue); } else if (sVar == "bindhost") { if(!pUser->DenySetBindHost() || GetUser()->IsAdmin()) { if (sValue.Equals(GetUser()->GetBindHost())) { PutModule("This bind host is already set!"); return; } const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (!GetUser()->IsAdmin() && !vsHosts.empty()) { VCString::const_iterator it; bool bFound = false; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { if (sValue.Equals(*it)) { bFound = true; break; } } if (!bFound) { PutModule("You may not use this bind host. See /msg " + GetUser()->GetStatusPrefix() + "status ListBindHosts for a list"); return; } } pUser->SetBindHost(sValue); PutModule("BindHost = " + sValue); } else { PutModule("Access denied!"); } } else if (sVar == "multiclients") { bool b = sValue.ToBool(); pUser->SetMultiClients(b); PutModule("MultiClients = " + CString(b)); } else if (sVar == "denyloadmod") { if(GetUser()->IsAdmin()) { bool b = sValue.ToBool(); pUser->SetDenyLoadMod(b); PutModule("DenyLoadMod = " + CString(b)); } else { PutModule("Access denied!"); } } else if (sVar == "denysetbindhost") { if(GetUser()->IsAdmin()) { bool b = sValue.ToBool(); pUser->SetDenySetBindHost(b); PutModule("DenySetBindHost = " + CString(b)); } else { PutModule("Access denied!"); } } else if (sVar == "defaultchanmodes") { pUser->SetDefaultChanModes(sValue); PutModule("DefaultChanModes = " + sValue); } else if (sVar == "quitmsg") { pUser->SetQuitMsg(sValue); PutModule("QuitMsg = " + sValue); } else if (sVar == "buffercount") { unsigned int i = sValue.ToUInt(); // Admins don't have to honour the buffer limit if (pUser->SetBufferCount(i, GetUser()->IsAdmin())) { PutModule("BufferCount = " + sValue); } else { PutModule("Setting failed, limit is " + CString(CZNC::Get().GetMaxBufferSize())); } } else if (sVar == "keepbuffer") { // XXX compatibility crap, added in 0.207 bool b = !sValue.ToBool(); pUser->SetAutoClearChanBuffer(b); PutModule("AutoClearChanBuffer = " + CString(b)); } else if (sVar == "autoclearchanbuffer") { bool b = sValue.ToBool(); pUser->SetAutoClearChanBuffer(b); PutModule("AutoClearChanBuffer = " + CString(b)); } else if (sVar == "autoclearquerybuffer") { bool b = sValue.ToBool(); pUser->SetAutoClearQueryBuffer(b); PutModule("AutoClearQueryBuffer = " + CString(b)); } else if (sVar == "password") { const CString sSalt = CUtils::GetSalt(); const CString sHash = CUser::SaltedHash(sValue, sSalt); pUser->SetPass(sHash, CUser::HASH_DEFAULT, sSalt); PutModule("Password has been changed!"); } else if (sVar == "maxjoins") { unsigned int i = sValue.ToUInt(); pUser->SetMaxJoins(i); PutModule("MaxJoins = " + CString(pUser->MaxJoins())); } else if (sVar == "maxnetworks") { if(GetUser()->IsAdmin()) { unsigned int i = sValue.ToUInt(); pUser->SetMaxNetworks(i); PutModule("MaxNetworks = " + sValue); } else { PutModule("Access denied!"); } } else if (sVar == "maxquerybuffers") { unsigned int i = sValue.ToUInt(); pUser->SetMaxQueryBuffers(i); PutModule("MaxQueryBuffers = " + sValue); } else if (sVar == "jointries") { unsigned int i = sValue.ToUInt(); pUser->SetJoinTries(i); PutModule("JoinTries = " + CString(pUser->JoinTries())); } else if (sVar == "timezone") { pUser->SetTimezone(sValue); PutModule("Timezone = " + pUser->GetTimezone()); } else if (sVar == "admin") { if(GetUser()->IsAdmin() && pUser != GetUser()) { bool b = sValue.ToBool(); pUser->SetAdmin(b); PutModule("Admin = " + CString(pUser->IsAdmin())); } else { PutModule("Access denied!"); } } else if (sVar == "prependtimestamp") { bool b = sValue.ToBool(); pUser->SetTimestampPrepend(b); PutModule("PrependTimestamp = " + CString(b)); } else if (sVar == "appendtimestamp") { bool b = sValue.ToBool(); pUser->SetTimestampAppend(b); PutModule("AppendTimestamp = " + CString(b)); } else if (sVar == "timestampformat") { pUser->SetTimestampFormat(sValue); PutModule("TimestampFormat = " + sValue); } else if (sVar == "dccbindhost") { if(!pUser->DenySetBindHost() || GetUser()->IsAdmin()) { pUser->SetDCCBindHost(sValue); PutModule("DCCBindHost = " + sValue); } else { PutModule("Access denied!"); } } else if (sVar == "statusprefix") { if (sVar.find_first_of(" \t\n") == CString::npos) { pUser->SetStatusPrefix(sValue); PutModule("StatusPrefix = " + sValue); } else { PutModule("That would be a bad idea!"); } } #ifdef HAVE_ICU else if (sVar == "clientencoding") { pUser->SetClientEncoding(sValue); PutModule("ClientEncoding = " + sValue); } #endif else PutModule("Error: Unknown variable"); } void GetNetwork(const CString& sLine) { const CString sVar = sLine.Token(1).AsLower(); const CString sUsername = sLine.Token(2); const CString sNetwork = sLine.Token(3); CUser *pUser = NULL; CIRCNetwork *pNetwork = NULL; if (sUsername.empty()) { pUser = GetUser(); pNetwork = CModule::GetNetwork(); } else { pUser = FindUser(sUsername); if (!pUser) { return; } pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork && !sNetwork.empty()) { PutModule("Network [" + sNetwork + "] not found."); return; } } if (!pNetwork) { PutModule("Usage: GetNetwork "); return; } if (sVar.Equals("nick")) { PutModule("Nick = " + pNetwork->GetNick()); } else if (sVar.Equals("altnick")) { PutModule("AltNick = " + pNetwork->GetAltNick()); } else if (sVar.Equals("ident")) { PutModule("Ident = " + pNetwork->GetIdent()); } else if (sVar.Equals("realname")) { PutModule("RealName = " + pNetwork->GetRealName()); } else if (sVar.Equals("bindhost")) { PutModule("BindHost = " + pNetwork->GetBindHost()); } else if (sVar.Equals("floodrate")) { PutModule("FloodRate = " + CString(pNetwork->GetFloodRate())); } else if (sVar.Equals("floodburst")) { PutModule("FloodBurst = " + CString(pNetwork->GetFloodBurst())); } else if (sVar.Equals("joindelay")) { PutModule("JoinDelay = " + CString(pNetwork->GetJoinDelay())); #ifdef HAVE_ICU } else if (sVar.Equals("encoding")) { PutModule("Encoding = " + pNetwork->GetEncoding()); #endif } else if (sVar.Equals("quitmsg")) { PutModule("QuitMsg = " + pNetwork->GetQuitMsg()); } else { PutModule("Error: Unknown variable"); } } void SetNetwork(const CString& sLine) { const CString sVar = sLine.Token(1).AsLower(); const CString sUsername = sLine.Token(2); const CString sNetwork = sLine.Token(3); const CString sValue = sLine.Token(4, true); CUser *pUser = NULL; CIRCNetwork *pNetwork = NULL; if (sUsername.empty()) { pUser = GetUser(); pNetwork = CModule::GetNetwork(); } else { pUser = FindUser(sUsername); if (!pUser) { return; } pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork && !sNetwork.empty()) { PutModule("Network [" + sNetwork + "] not found."); return; } } if (!pNetwork) { PutModule("Usage: SetNetwork "); return; } if (sVar.Equals("nick")) { pNetwork->SetNick(sValue); PutModule("Nick = " + pNetwork->GetNick()); } else if (sVar.Equals("altnick")) { pNetwork->SetAltNick(sValue); PutModule("AltNick = " + pNetwork->GetAltNick()); } else if (sVar.Equals("ident")) { pNetwork->SetIdent(sValue); PutModule("Ident = " + pNetwork->GetIdent()); } else if (sVar.Equals("realname")) { pNetwork->SetRealName(sValue); PutModule("RealName = " + pNetwork->GetRealName()); } else if (sVar.Equals("bindhost")) { if(!pUser->DenySetBindHost() || GetUser()->IsAdmin()) { if (sValue.Equals(pNetwork->GetBindHost())) { PutModule("This bind host is already set!"); return; } const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (!GetUser()->IsAdmin() && !vsHosts.empty()) { VCString::const_iterator it; bool bFound = false; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { if (sValue.Equals(*it)) { bFound = true; break; } } if (!bFound) { PutModule("You may not use this bind host. See /msg " + GetUser()->GetStatusPrefix() + "status ListBindHosts for a list"); return; } } pNetwork->SetBindHost(sValue); PutModule("BindHost = " + sValue); } else { PutModule("Access denied!"); } } else if (sVar.Equals("floodrate")) { pNetwork->SetFloodRate(sValue.ToDouble()); PutModule("FloodRate = " + CString(pNetwork->GetFloodRate())); } else if (sVar.Equals("floodburst")) { pNetwork->SetFloodBurst(sValue.ToUShort()); PutModule("FloodBurst = " + CString(pNetwork->GetFloodBurst())); } else if (sVar.Equals("joindelay")) { pNetwork->SetJoinDelay(sValue.ToUShort()); PutModule("JoinDelay = " + CString(pNetwork->GetJoinDelay())); #ifdef HAVE_ICU } else if (sVar.Equals("encoding")) { pNetwork->SetEncoding(sValue); PutModule("Encoding = " + pNetwork->GetEncoding()); #endif } else if (sVar.Equals("quitmsg")) { pNetwork->SetQuitMsg(sValue); PutModule("QuitMsg = " + pNetwork->GetQuitMsg()); } else { PutModule("Error: Unknown variable"); } } void AddChan(const CString& sLine) { const CString sUsername = sLine.Token(1); const CString sNetwork = sLine.Token(2); const CString sChan = sLine.Token(3); if (sChan.empty()) { PutModule("Usage: AddChan "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("Error: [" + sUsername + "] does not have a network named [" + sNetwork + "]."); return; } if (pNetwork->FindChan(sChan)) { PutModule("Error: [" + sUsername + "] already has a channel named [" + sChan + "]."); return; } CChan* pChan = new CChan(sChan, pNetwork, true); if (pNetwork->AddChan(pChan)) PutModule("Channel [" + pChan->GetName() + "] for user [" + sUsername + "] added."); else PutModule("Could not add channel [" + sChan + "] for user [" + sUsername + "], does it already exist?"); } void DelChan(const CString& sLine) { const CString sUsername = sLine.Token(1); const CString sNetwork = sLine.Token(2); const CString sChan = sLine.Token(3); if (sChan.empty()) { PutModule("Usage: DelChan "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("Error: [" + sUsername + "] does not have a network named [" + sNetwork + "]."); return; } std::vector vChans = pNetwork->FindChans(sChan); if (vChans.empty()) { PutModule("Error: User [" + sUsername + "] does not have any channel matching [" + sChan + "]."); return; } VCString vsNames; for (const CChan* pChan : vChans) { const CString& sName = pChan->GetName(); vsNames.push_back(sName); pNetwork->PutIRC("PART " + sName); pNetwork->DelChan(sName); } PutModule("Channel(s) [" + CString(",").Join(vsNames.begin(), vsNames.end()) + "] for user [" + sUsername + "] deleted."); } void GetChan(const CString& sLine) { const CString sVar = sLine.Token(1).AsLower(); CString sUsername = sLine.Token(2); CString sNetwork = sLine.Token(3); CString sChan = sLine.Token(4, true); if (sChan.empty()) { PutModule("Usage: GetChan "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUsername + "] does not have a network named [" + sNetwork + "]"); return; } std::vector vChans = pNetwork->FindChans(sChan); if (vChans.empty()) { PutModule("Error: No channel(s) matching [" + sChan + "] found."); return; } for (CChan* pChan : vChans) { if (sVar == "defmodes") { PutModule(pChan->GetName() + ": DefModes = " + pChan->GetDefaultModes()); } else if (sVar == "buffer") { CString sValue(pChan->GetBufferCount()); if (!pChan->HasBufferCountSet()) { sValue += " (default)"; } PutModule(pChan->GetName() + ": Buffer = " + sValue); } else if (sVar == "inconfig") { PutModule(pChan->GetName() + ": InConfig = " + CString(pChan->InConfig())); } else if (sVar == "keepbuffer") { PutModule(pChan->GetName() + ": KeepBuffer = " + CString(!pChan->AutoClearChanBuffer()));// XXX compatibility crap, added in 0.207 } else if (sVar == "autoclearchanbuffer") { CString sValue(pChan->AutoClearChanBuffer()); if (!pChan->HasAutoClearChanBufferSet()) { sValue += " (default)"; } PutModule(pChan->GetName() + ": AutoClearChanBuffer = " + sValue); } else if (sVar == "detached") { PutModule(pChan->GetName() + ": Detached = " + CString(pChan->IsDetached())); } else if (sVar == "key") { PutModule(pChan->GetName() + ": Key = " + pChan->GetKey()); } else { PutModule("Error: Unknown variable"); return; } } } void SetChan(const CString& sLine) { const CString sVar = sLine.Token(1).AsLower(); CString sUsername = sLine.Token(2); CString sNetwork = sLine.Token(3); CString sChan = sLine.Token(4); CString sValue = sLine.Token(5, true); if (sValue.empty()) { PutModule("Usage: SetChan "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUsername + "] does not have a network named [" + sNetwork + "]"); return; } std::vector vChans = pNetwork->FindChans(sChan); if (vChans.empty()) { PutModule("Error: No channel(s) matching [" + sChan + "] found."); return; } for (CChan* pChan : vChans) { if (sVar == "defmodes") { pChan->SetDefaultModes(sValue); PutModule(pChan->GetName() + ": DefModes = " + sValue); } else if (sVar == "buffer") { unsigned int i = sValue.ToUInt(); // Admins don't have to honour the buffer limit if (pChan->SetBufferCount(i, GetUser()->IsAdmin())) { PutModule(pChan->GetName() + ": Buffer = " + sValue); } else { PutModule("Setting failed, limit is " + CString(CZNC::Get().GetMaxBufferSize())); return; } } else if (sVar == "inconfig") { bool b = sValue.ToBool(); pChan->SetInConfig(b); PutModule(pChan->GetName() + ": InConfig = " + CString(b)); } else if (sVar == "keepbuffer") { // XXX compatibility crap, added in 0.207 bool b = !sValue.ToBool(); pChan->SetAutoClearChanBuffer(b); PutModule(pChan->GetName() + ": AutoClearChanBuffer = " + CString(b)); } else if (sVar == "autoclearchanbuffer") { bool b = sValue.ToBool(); pChan->SetAutoClearChanBuffer(b); PutModule(pChan->GetName() + ": AutoClearChanBuffer = " + CString(b)); } else if (sVar == "detached") { bool b = sValue.ToBool(); if (pChan->IsDetached() != b) { if (b) pChan->DetachUser(); else pChan->AttachUser(); } PutModule(pChan->GetName() + ": Detached = " + CString(b)); } else if (sVar == "key") { pChan->SetKey(sValue); PutModule(pChan->GetName() + ": Key = " + sValue); } else { PutModule("Error: Unknown variable"); return; } } } void ListUsers(const CString&) { if (!GetUser()->IsAdmin()) return; const map& msUsers = CZNC::Get().GetUserMap(); CTable Table; Table.AddColumn("Username"); Table.AddColumn("Realname"); Table.AddColumn("IsAdmin"); Table.AddColumn("Nick"); Table.AddColumn("AltNick"); Table.AddColumn("Ident"); Table.AddColumn("BindHost"); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { Table.AddRow(); Table.SetCell("Username", it->first); Table.SetCell("Realname", it->second->GetRealName()); if (!it->second->IsAdmin()) Table.SetCell("IsAdmin", "No"); else Table.SetCell("IsAdmin", "Yes"); Table.SetCell("Nick", it->second->GetNick()); Table.SetCell("AltNick", it->second->GetAltNick()); Table.SetCell("Ident", it->second->GetIdent()); Table.SetCell("BindHost", it->second->GetBindHost()); } PutModule(Table); } void AddUser(const CString& sLine) { if (!GetUser()->IsAdmin()) { PutModule("Error: You need to have admin rights to add new users!"); return; } const CString sUsername = sLine.Token(1), sPassword = sLine.Token(2); if (sPassword.empty()) { PutModule("Usage: AddUser "); return; } if (CZNC::Get().FindUser(sUsername)) { PutModule("Error: User [" + sUsername + "] already exists!"); return; } CUser* pNewUser = new CUser(sUsername); CString sSalt = CUtils::GetSalt(); pNewUser->SetPass(CUser::SaltedHash(sPassword, sSalt), CUser::HASH_DEFAULT, sSalt); CString sErr; if (!CZNC::Get().AddUser(pNewUser, sErr)) { delete pNewUser; PutModule("Error: User not added! [" + sErr + "]"); return; } PutModule("User [" + sUsername + "] added!"); return; } void DelUser(const CString& sLine) { if (!GetUser()->IsAdmin()) { PutModule("Error: You need to have admin rights to delete users!"); return; } const CString sUsername = sLine.Token(1, true); if (sUsername.empty()) { PutModule("Usage: DelUser "); return; } CUser *pUser = CZNC::Get().FindUser(sUsername); if (!pUser) { PutModule("Error: User [" + sUsername + "] does not exist!"); return; } if (pUser == GetUser()) { PutModule("Error: You can't delete yourself!"); return; } if (!CZNC::Get().DeleteUser(pUser->GetUserName())) { // This can't happen, because we got the user from FindUser() PutModule("Error: Internal error!"); return; } PutModule("User " + sUsername + " deleted!"); return; } void CloneUser(const CString& sLine) { if (!GetUser()->IsAdmin()) { PutModule("Error: You need to have admin rights to add new users!"); return; } const CString sOldUsername = sLine.Token(1), sNewUsername = sLine.Token(2, true); if (sOldUsername.empty() || sNewUsername.empty()) { PutModule("Usage: CloneUser "); return; } CUser *pOldUser = CZNC::Get().FindUser(sOldUsername); if (!pOldUser) { PutModule("Error: User [" + sOldUsername + "] not found!"); return; } CUser* pNewUser = new CUser(sNewUsername); CString sError; if (!pNewUser->Clone(*pOldUser, sError)) { delete pNewUser; PutModule("Error: Cloning failed! [" + sError + "]"); return; } if (!CZNC::Get().AddUser(pNewUser, sError)) { delete pNewUser; PutModule("Error: User not added! [" + sError + "]"); return; } PutModule("User [" + sNewUsername + "] added!"); return; } void AddNetwork(const CString& sLine) { CString sUser = sLine.Token(1); CString sNetwork = sLine.Token(2); CUser *pUser = GetUser(); if (sNetwork.empty()) { sNetwork = sUser; } else { pUser = FindUser(sUser); if (!pUser) { PutModule("User [" + sUser + "] not found"); return; } } if (sNetwork.empty()) { PutModule("Usage: AddNetwork [user] network"); return; } if (!GetUser()->IsAdmin() && !pUser->HasSpaceForNewNetwork()) { PutStatus("Network number limit reached. Ask an admin to increase the limit for you, or delete unneeded networks using /znc DelNetwork "); return; } if (pUser->FindNetwork(sNetwork)) { PutModule("[" + pUser->GetUserName() + "] already has a network with the name [" + sNetwork + "]"); return; } CString sNetworkAddError; if (pUser->AddNetwork(sNetwork, sNetworkAddError)) { PutModule("Network [" + sNetwork + "] added for user [" + pUser->GetUserName() + "]."); } else { PutModule("Network [" + sNetwork + "] could not be added for user [" + pUser->GetUserName() + "]: " + sNetworkAddError); } } void DelNetwork(const CString& sLine) { CString sUser = sLine.Token(1); CString sNetwork = sLine.Token(2); CUser *pUser = GetUser(); if (sNetwork.empty()) { sNetwork = sUser; } else { pUser = FindUser(sUser); if (!pUser) { return; } } if (sNetwork.empty()) { PutModule("Usage: DelNetwork [user] network"); return; } CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + pUser->GetUserName() + "] does not have a network with the name [" + sNetwork + "]"); return; } if (pNetwork == CModule::GetNetwork()) { PutModule("The currently active network can be deleted via " + GetUser()->GetStatusPrefix() + "status"); return; } if (pUser->DeleteNetwork(sNetwork)) { PutModule("Network [" + sNetwork + "] deleted on user [" + pUser->GetUserName() + "]."); } else { PutModule("Network [" + sNetwork + "] could not be deleted for user [" + pUser->GetUserName() + "]."); } } void ListNetworks(const CString& sLine) { CString sUser = sLine.Token(1); CUser *pUser = GetUser(); if (!sUser.empty()) { pUser = FindUser(sUser); if (!pUser) { return; } } const vector& vNetworks = pUser->GetNetworks(); CTable Table; Table.AddColumn("Network"); Table.AddColumn("OnIRC"); Table.AddColumn("IRC Server"); Table.AddColumn("IRC User"); Table.AddColumn("Channels"); for (unsigned int a = 0; a < vNetworks.size(); a++) { CIRCNetwork* pNetwork = vNetworks[a]; Table.AddRow(); Table.SetCell("Network", pNetwork->GetName()); if (pNetwork->IsIRCConnected()) { Table.SetCell("OnIRC", "Yes"); Table.SetCell("IRC Server", pNetwork->GetIRCServer()); Table.SetCell("IRC User", pNetwork->GetIRCNick().GetNickMask()); Table.SetCell("Channels", CString(pNetwork->GetChans().size())); } else { Table.SetCell("OnIRC", "No"); } } if (PutModule(Table) == 0) { PutModule("No networks"); } } void AddServer(const CString& sLine) { CString sUsername = sLine.Token(1); CString sNetwork = sLine.Token(2); CString sServer = sLine.Token(3, true); if (sServer.empty()) { PutModule("Usage: AddServer "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUsername + "] does not have a network with the name [" + sNetwork + "]"); return; } if (pNetwork->AddServer(sServer)) PutModule("Added IRC Server [" + sServer + "] for network [" + sNetwork + "] for user [" + pUser->GetUserName() + "]."); else PutModule("Could not add IRC server [" + sServer + "] for network [" + sNetwork + "] for user [" + pUser->GetUserName() + "]."); } void ReconnectUser(const CString& sLine) { CString sUserName = sLine.Token(1); CString sNetwork = sLine.Token(2); if (sNetwork.empty()) { PutModule("Usage: Reconnect "); return; } CUser* pUser = FindUser(sUserName); if (!pUser) { PutModule("User [" + sUserName + "] not found."); return; } CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUserName + "] does not have a network with the name [" + sNetwork + "]"); return; } CIRCSock *pIRCSock = pNetwork->GetIRCSock(); // cancel connection attempt: if (pIRCSock && !pIRCSock->IsConnected()) { pIRCSock->Close(); } // or close existing connection: else if(pIRCSock) { pIRCSock->Quit(); } // then reconnect pNetwork->SetIRCConnectEnabled(true); PutModule("Queued network [" + sNetwork + "] for user [" + pUser->GetUserName() + "] for a reconnect."); } void DisconnectUser(const CString& sLine) { CString sUserName = sLine.Token(1); CString sNetwork = sLine.Token(2); if (sNetwork.empty()) { PutModule("Usage: Disconnect "); return; } CUser* pUser = FindUser(sUserName); if (!pUser) { PutModule("User [" + sUserName + "] not found."); return; } CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("[" + sUserName + "] does not have a network with the name [" + sNetwork + "]"); return; } pNetwork->SetIRCConnectEnabled(false); PutModule("Closed IRC connection for network [" + sNetwork + "] on user [" + sUserName + "]."); } void ListCTCP(const CString& sLine) { CString sUserName = sLine.Token(1, true); if (sUserName.empty()) { sUserName = GetUser()->GetUserName(); } CUser* pUser = FindUser(sUserName); if (!pUser) return; const MCString& msCTCPReplies = pUser->GetCTCPReplies(); CTable Table; Table.AddColumn("Request"); Table.AddColumn("Reply"); for (MCString::const_iterator it = msCTCPReplies.begin(); it != msCTCPReplies.end(); ++it) { Table.AddRow(); Table.SetCell("Request", it->first); Table.SetCell("Reply", it->second); } if (Table.empty()) { PutModule("No CTCP replies for user [" + pUser->GetUserName() + "] configured!"); } else { PutModule("CTCP replies for user [" + pUser->GetUserName() + "]:"); PutModule(Table); } } void AddCTCP(const CString& sLine) { CString sUserName = sLine.Token(1); CString sCTCPRequest = sLine.Token(2); CString sCTCPReply = sLine.Token(3, true); if (sCTCPRequest.empty()) { sCTCPRequest = sUserName; sCTCPReply = sLine.Token(2, true); sUserName = GetUser()->GetUserName(); } if (sCTCPRequest.empty()) { PutModule("Usage: AddCTCP [user] [request] [reply]"); PutModule("This will cause ZNC to reply to the CTCP instead of forwarding it to clients."); PutModule("An empty reply will cause the CTCP request to be blocked."); return; } CUser* pUser = FindUser(sUserName); if (!pUser) return; if (pUser->AddCTCPReply(sCTCPRequest, sCTCPReply)) PutModule("Added!"); else PutModule("Error!"); } void DelCTCP(const CString& sLine) { CString sUserName = sLine.Token(1); CString sCTCPRequest = sLine.Token(2, true); if (sCTCPRequest.empty()) { sCTCPRequest = sUserName; sUserName = GetUser()->GetUserName(); } CUser* pUser = FindUser(sUserName); if (!pUser) return; if (sCTCPRequest.empty()) { PutModule("Usage: DelCTCP [user] [request]"); return; } if (pUser->DelCTCPReply(sCTCPRequest)) PutModule("Successfully removed [" + sCTCPRequest + "] for user [" + pUser->GetUserName() + "]."); else PutModule("Error: [" + sCTCPRequest + "] not found for user [" + pUser->GetUserName() + "]!"); } void LoadModuleFor(CModules& Modules, const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, CUser* pUser, CIRCNetwork* pNetwork) { if (pUser->DenyLoadMod() && !GetUser()->IsAdmin()) { PutModule("Loading modules has been disabled."); return; } CString sModRet; CModule *pMod = Modules.FindModule(sModName); if (!pMod) { if (!Modules.LoadModule(sModName, sArgs, eType, pUser, pNetwork, sModRet)) { PutModule("Unable to load module [" + sModName + "] [" + sModRet + "]"); } else { PutModule("Loaded module [" + sModName + "]"); } } else if (pMod->GetArgs() != sArgs) { if (!Modules.ReloadModule(sModName, sArgs, pUser, pNetwork, sModRet)) { PutModule("Unable to reload module [" + sModName + "] [" + sModRet + "]"); } else { PutModule("Reloaded module [" + sModName + "]"); } } else { PutModule("Unable to load module [" + sModName + "] because it is already loaded"); } } void LoadModuleForUser(const CString& sLine) { CString sUsername = sLine.Token(1); CString sModName = sLine.Token(2); CString sArgs = sLine.Token(3, true); if (sModName.empty()) { PutModule("Usage: LoadModule [args]"); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; LoadModuleFor(pUser->GetModules(), sModName, sArgs, CModInfo::UserModule, pUser, NULL); } void LoadModuleForNetwork(const CString& sLine) { CString sUsername = sLine.Token(1); CString sNetwork = sLine.Token(2); CString sModName = sLine.Token(3); CString sArgs = sLine.Token(4, true); if (sModName.empty()) { PutModule("Usage: LoadNetModule [args]"); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("Network not found"); return; } LoadModuleFor(pNetwork->GetModules(), sModName, sArgs, CModInfo::NetworkModule, pUser, pNetwork); } void UnLoadModuleFor(CModules& Modules, const CString& sModName, CUser* pUser) { if (pUser->DenyLoadMod() && !GetUser()->IsAdmin()) { PutModule("Loading modules has been disabled."); return; } if (Modules.FindModule(sModName) == this) { PutModule("Please use /znc unloadmod " + sModName); return; } CString sModRet; if (!Modules.UnloadModule(sModName, sModRet)) { PutModule("Unable to unload module [" + sModName + "] [" + sModRet + "]"); } else { PutModule("Unloaded module [" + sModName + "]"); } } void UnLoadModuleForUser(const CString& sLine) { CString sUsername = sLine.Token(1); CString sModName = sLine.Token(2); if (sModName.empty()) { PutModule("Usage: UnloadModule "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; UnLoadModuleFor(pUser->GetModules(), sModName, pUser); } void UnLoadModuleForNetwork(const CString& sLine) { CString sUsername = sLine.Token(1); CString sNetwork = sLine.Token(2); CString sModName = sLine.Token(3); if (sModName.empty()) { PutModule("Usage: UnloadNetModule "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("Network not found"); return; } UnLoadModuleFor(pNetwork->GetModules(), sModName, pUser); } void ListModulesFor(CModules& Modules, const CString& sWhere) { if (!Modules.size()) { PutModule(sWhere + " has no modules loaded."); } else { PutModule("Modules loaded for " + sWhere + ":"); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Arguments"); for (unsigned int b = 0; b < Modules.size(); b++) { Table.AddRow(); Table.SetCell("Name", Modules[b]->GetModName()); Table.SetCell("Arguments", Modules[b]->GetArgs()); } PutModule(Table); } } void ListModulesForUser(const CString& sLine) { CString sUsername = sLine.Token(1); if (sUsername.empty()) { PutModule("Usage: ListMods "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; ListModulesFor(pUser->GetModules(), "User [" + pUser->GetUserName() + "]"); } void ListModulesForNetwork(const CString& sLine) { CString sUsername = sLine.Token(1); CString sNetwork = sLine.Token(2); if (sNetwork.empty()) { PutModule("Usage: ListNetMods "); return; } CUser* pUser = FindUser(sUsername); if (!pUser) return; CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork); if (!pNetwork) { PutModule("Network not found"); return; } ListModulesFor(pNetwork->GetModules(), "Network [" + pNetwork->GetName() + "] of user [" + pUser->GetUserName() + "]"); } public: MODCONSTRUCTOR(CAdminMod) { AddCommand("Help", static_cast(&CAdminMod::PrintHelp), "[command] [variable]", "Prints help for matching commands and variables"); AddCommand("Get", static_cast(&CAdminMod::Get), " [username]", "Prints the variable's value for the given or current user"); AddCommand("Set", static_cast(&CAdminMod::Set), " ", "Sets the variable's value for the given user (use $me for the current user)"); AddCommand("GetNetwork", static_cast(&CAdminMod::GetNetwork), " [username] [network]", "Prints the variable's value for the given network"); AddCommand("SetNetwork", static_cast(&CAdminMod::SetNetwork), " ", "Sets the variable's value for the given network"); AddCommand("GetChan", static_cast(&CAdminMod::GetChan), " [username] ", "Prints the variable's value for the given channel"); AddCommand("SetChan", static_cast(&CAdminMod::SetChan), " ", "Sets the variable's value for the given channel"); AddCommand("AddChan", static_cast(&CAdminMod::AddChan), " ", "Adds a new channel"); AddCommand("DelChan", static_cast(&CAdminMod::DelChan), " ", "Deletes a channel"); AddCommand("ListUsers", static_cast(&CAdminMod::ListUsers), "", "Lists users"); AddCommand("AddUser", static_cast(&CAdminMod::AddUser), " ", "Adds a new user"); AddCommand("DelUser", static_cast(&CAdminMod::DelUser), "", "Deletes a user"); AddCommand("CloneUser", static_cast(&CAdminMod::CloneUser), " ", "Clones a user"); AddCommand("AddServer", static_cast(&CAdminMod::AddServer), " ", "Adds a new IRC server for the given or current user"); AddCommand("Reconnect", static_cast(&CAdminMod::ReconnectUser), " ", "Cycles the user's IRC server connection"); AddCommand("Disconnect", static_cast(&CAdminMod::DisconnectUser), " ", "Disconnects the user from their IRC server"); AddCommand("LoadModule", static_cast(&CAdminMod::LoadModuleForUser), " [args]", "Loads a Module for a user"); AddCommand("UnLoadModule", static_cast(&CAdminMod::UnLoadModuleForUser), " ", "Removes a Module of a user"); AddCommand("ListMods", static_cast(&CAdminMod::ListModulesForUser), "", "Get the list of modules for a user"); AddCommand("LoadNetModule",static_cast(&CAdminMod::LoadModuleForNetwork), " [args]", "Loads a Module for a network"); AddCommand("UnLoadNetModule",static_cast(&CAdminMod::UnLoadModuleForNetwork), " ", "Removes a Module of a network"); AddCommand("ListNetMods", static_cast(&CAdminMod::ListModulesForNetwork), " ", "Get the list of modules for a network"); AddCommand("ListCTCPs", static_cast(&CAdminMod::ListCTCP), "", "List the configured CTCP replies"); AddCommand("AddCTCP", static_cast(&CAdminMod::AddCTCP), " [reply]", "Configure a new CTCP reply"); AddCommand("DelCTCP", static_cast(&CAdminMod::DelCTCP), " ", "Remove a CTCP reply"); // Network commands AddCommand("AddNetwork", static_cast(&CAdminMod::AddNetwork), "[username] ", "Add a network for a user"); AddCommand("DelNetwork", static_cast(&CAdminMod::DelNetwork), "[username] ", "Delete a network for a user"); AddCommand("ListNetworks", static_cast(&CAdminMod::ListNetworks), "[username]", "List all networks for a user"); } virtual ~CAdminMod() {} }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("controlpanel"); } USERMODULEDEFS(CAdminMod, "Dynamic configuration through IRC. Allows editing only yourself if you're not ZNC admin.") znc-1.6.3/modules/watch.cpp0000644000175000017500000005043612663147131016035 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::list; using std::vector; using std::set; class CWatchSource { public: CWatchSource(const CString& sSource, bool bNegated) { m_sSource = sSource; m_bNegated = bNegated; } virtual ~CWatchSource() {} // Getters const CString& GetSource() const { return m_sSource; } bool IsNegated() const { return m_bNegated; } // !Getters // Setters // !Setters private: protected: bool m_bNegated; CString m_sSource; }; class CWatchEntry { public: CWatchEntry(const CString& sHostMask, const CString& sTarget, const CString& sPattern) { m_bDisabled = false; m_bDetachedClientOnly = false; m_bDetachedChannelOnly = false; m_sPattern = (sPattern.size()) ? sPattern : "*"; CNick Nick; Nick.Parse(sHostMask); m_sHostMask = (Nick.GetNick().size()) ? Nick.GetNick() : "*"; m_sHostMask += "!"; m_sHostMask += (Nick.GetIdent().size()) ? Nick.GetIdent() : "*"; m_sHostMask += "@"; m_sHostMask += (Nick.GetHost().size()) ? Nick.GetHost() : "*"; if (sTarget.size()) { m_sTarget = sTarget; } else { m_sTarget = "$"; m_sTarget += Nick.GetNick(); } } virtual ~CWatchEntry() {} bool IsMatch(const CNick& Nick, const CString& sText, const CString& sSource, const CIRCNetwork* pNetwork) { if (IsDisabled()) { return false; } bool bGoodSource = true; if (!sSource.empty() && !m_vsSources.empty()) { bGoodSource = false; for (unsigned int a = 0; a < m_vsSources.size(); a++) { const CWatchSource& WatchSource = m_vsSources[a]; if (sSource.AsLower().WildCmp(WatchSource.GetSource().AsLower())) { if (WatchSource.IsNegated()) { return false; } else { bGoodSource = true; } } } } if (!bGoodSource) return false; if (!Nick.GetHostMask().AsLower().WildCmp(m_sHostMask.AsLower())) return false; return (sText.AsLower().WildCmp(pNetwork->ExpandString(m_sPattern).AsLower())); } bool operator ==(const CWatchEntry& WatchEntry) { return (GetHostMask().Equals(WatchEntry.GetHostMask()) && GetTarget().Equals(WatchEntry.GetTarget()) && GetPattern().Equals(WatchEntry.GetPattern()) ); } // Getters const CString& GetHostMask() const { return m_sHostMask; } const CString& GetTarget() const { return m_sTarget; } const CString& GetPattern() const { return m_sPattern; } bool IsDisabled() const { return m_bDisabled; } bool IsDetachedClientOnly() const { return m_bDetachedClientOnly; } bool IsDetachedChannelOnly() const { return m_bDetachedChannelOnly; } const vector& GetSources() const { return m_vsSources; } CString GetSourcesStr() const { CString sRet; for (unsigned int a = 0; a < m_vsSources.size(); a++) { const CWatchSource& WatchSource = m_vsSources[a]; if (a) { sRet += " "; } if (WatchSource.IsNegated()) { sRet += "!"; } sRet += WatchSource.GetSource(); } return sRet; } // !Getters // Setters void SetHostMask(const CString& s) { m_sHostMask = s; } void SetTarget(const CString& s) { m_sTarget = s; } void SetPattern(const CString& s) { m_sPattern = s; } void SetDisabled(bool b = true) { m_bDisabled = b; } void SetDetachedClientOnly(bool b = true) { m_bDetachedClientOnly = b; } void SetDetachedChannelOnly(bool b = true) { m_bDetachedChannelOnly = b; } void SetSources(const CString& sSources) { VCString vsSources; VCString::iterator it; sSources.Split(" ", vsSources, false); m_vsSources.clear(); for (it = vsSources.begin(); it != vsSources.end(); ++it) { if (it->at(0) == '!' && it->size() > 1) { m_vsSources.push_back(CWatchSource(it->substr(1), true)); } else { m_vsSources.push_back(CWatchSource(*it, false)); } } } // !Setters private: protected: CString m_sHostMask; CString m_sTarget; CString m_sPattern; bool m_bDisabled; bool m_bDetachedClientOnly; bool m_bDetachedChannelOnly; vector m_vsSources; }; class CWatcherMod : public CModule { public: MODCONSTRUCTOR(CWatcherMod) { m_Buffer.SetLineCount(500); Load(); } virtual ~CWatcherMod() {} virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) override { Process(OpNick, "* " + OpNick.GetNick() + " sets mode: " + sModes + " " + sArgs + " on " + Channel.GetName(), Channel.GetName()); } virtual void OnClientLogin() override { MCString msParams; msParams["target"] = GetNetwork()->GetCurNick(); size_t uSize = m_Buffer.Size(); for (unsigned int uIdx = 0; uIdx < uSize; uIdx++) { PutUser(m_Buffer.GetLine(uIdx, *GetClient(), msParams)); } m_Buffer.Clear(); } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override { Process(OpNick, "* " + OpNick.GetNick() + " kicked " + sKickedNick + " from " + Channel.GetName() + " because [" + sMessage + "]", Channel.GetName()); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override { Process(Nick, "* Quits: " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") " "(" + sMessage + ")", ""); } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { Process(Nick, "* " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") joins " + Channel.GetName(), Channel.GetName()); } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override { Process(Nick, "* " + Nick.GetNick() + " (" + Nick.GetIdent() + "@" + Nick.GetHost() + ") parts " + Channel.GetName() + "(" + sMessage + ")", Channel.GetName()); } virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) override { Process(OldNick, "* " + OldNick.GetNick() + " is now known as " + sNewNick, ""); } virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) override { Process(Nick, "* CTCP: " + Nick.GetNick() + " reply [" + sMessage + "]", "priv"); return CONTINUE; } virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override { Process(Nick, "* CTCP: " + Nick.GetNick() + " [" + sMessage + "]", "priv"); return CONTINUE; } virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override { Process(Nick, "* CTCP: " + Nick.GetNick() + " [" + sMessage + "] to " "[" + Channel.GetName() + "]", Channel.GetName()); return CONTINUE; } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override { Process(Nick, "-" + Nick.GetNick() + "- " + sMessage, "priv"); return CONTINUE; } virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override { Process(Nick, "-" + Nick.GetNick() + ":" + Channel.GetName() + "- " + sMessage, Channel.GetName()); return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { Process(Nick, "<" + Nick.GetNick() + "> " + sMessage, "priv"); return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override { Process(Nick, "<" + Nick.GetNick() + ":" + Channel.GetName() + "> " + sMessage, Channel.GetName()); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) override { CString sCmdName = sCommand.Token(0); if (sCmdName.Equals("ADD") || sCmdName.Equals("WATCH")) { Watch(sCommand.Token(1), sCommand.Token(2), sCommand.Token(3, true)); } else if (sCmdName.Equals("HELP")) { Help(); } else if (sCmdName.Equals("LIST")) { List(); } else if (sCmdName.Equals("DUMP")) { Dump(); } else if (sCmdName.Equals("ENABLE")) { CString sTok = sCommand.Token(1); if (sTok == "*") { SetDisabled(~0, false); } else { SetDisabled(sTok.ToUInt(), false); } } else if (sCmdName.Equals("DISABLE")) { CString sTok = sCommand.Token(1); if (sTok == "*") { SetDisabled(~0, true); } else { SetDisabled(sTok.ToUInt(), true); } } else if (sCmdName.Equals("SETDETACHEDCLIENTONLY")) { CString sTok = sCommand.Token(1); bool bDetachedClientOnly = sCommand.Token(2).ToBool(); if (sTok == "*") { SetDetachedClientOnly(~0, bDetachedClientOnly); } else { SetDetachedClientOnly(sTok.ToUInt(), bDetachedClientOnly); } } else if (sCmdName.Equals("SETDETACHEDCHANNELONLY")) { CString sTok = sCommand.Token(1); bool bDetachedchannelOnly = sCommand.Token(2).ToBool(); if (sTok == "*") { SetDetachedChannelOnly(~0, bDetachedchannelOnly); } else { SetDetachedChannelOnly(sTok.ToUInt(), bDetachedchannelOnly); } } else if (sCmdName.Equals("SETSOURCES")) { SetSources(sCommand.Token(1).ToUInt(), sCommand.Token(2, true)); } else if (sCmdName.Equals("CLEAR")) { m_lsWatchers.clear(); PutModule("All entries cleared."); Save(); } else if (sCmdName.Equals("BUFFER")) { CString sCount = sCommand.Token(1); if (sCount.size()) { m_Buffer.SetLineCount(sCount.ToUInt()); } PutModule("Buffer count is set to [" + CString(m_Buffer.GetLineCount()) + "]"); } else if (sCmdName.Equals("DEL")) { Remove(sCommand.Token(1).ToUInt()); } else { PutModule("Unknown command: [" + sCmdName + "]"); } } private: void Process(const CNick& Nick, const CString& sMessage, const CString& sSource) { set sHandledTargets; CIRCNetwork* pNetwork = GetNetwork(); CChan* pChannel = pNetwork->FindChan(sSource); for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { CWatchEntry& WatchEntry = *it; if (pNetwork->IsUserAttached() && WatchEntry.IsDetachedClientOnly()) { continue; } if (pChannel && !pChannel->IsDetached() && WatchEntry.IsDetachedChannelOnly()) { continue; } if (WatchEntry.IsMatch(Nick, sMessage, sSource, pNetwork) && sHandledTargets.count(WatchEntry.GetTarget()) < 1) { if (pNetwork->IsUserAttached()) { pNetwork->PutUser(":" + WatchEntry.GetTarget() + "!watch@znc.in PRIVMSG " + pNetwork->GetCurNick() + " :" + sMessage); } else { m_Buffer.AddLine(":" + _NAMEDFMT(WatchEntry.GetTarget()) + "!watch@znc.in PRIVMSG {target} :{text}", sMessage); } sHandledTargets.insert(WatchEntry.GetTarget()); } } } void SetDisabled(unsigned int uIdx, bool bDisabled) { if (uIdx == (unsigned int) ~0) { for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { (*it).SetDisabled(bDisabled); } PutModule(((bDisabled) ? "Disabled all entries." : "Enabled all entries.")); Save(); return; } uIdx--; // "convert" index to zero based if (uIdx >= m_lsWatchers.size()) { PutModule("Invalid Id"); return; } list::iterator it = m_lsWatchers.begin(); for (unsigned int a = 0; a < uIdx; a++) ++it; (*it).SetDisabled(bDisabled); PutModule("Id " + CString(uIdx +1) + ((bDisabled) ? " Disabled" : " Enabled")); Save(); } void SetDetachedClientOnly(unsigned int uIdx, bool bDetachedClientOnly) { if (uIdx == (unsigned int) ~0) { for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { (*it).SetDetachedClientOnly(bDetachedClientOnly); } PutModule(CString("Set DetachedClientOnly for all entries to: ") + ((bDetachedClientOnly) ? "Yes" : "No")); Save(); return; } uIdx--; // "convert" index to zero based if (uIdx >= m_lsWatchers.size()) { PutModule("Invalid Id"); return; } list::iterator it = m_lsWatchers.begin(); for (unsigned int a = 0; a < uIdx; a++) ++it; (*it).SetDetachedClientOnly(bDetachedClientOnly); PutModule("Id " + CString(uIdx +1) + " set to: " + ((bDetachedClientOnly) ? "Yes" : "No")); Save(); } void SetDetachedChannelOnly(unsigned int uIdx, bool bDetachedChannelOnly) { if (uIdx == (unsigned int) ~0) { for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { (*it).SetDetachedChannelOnly(bDetachedChannelOnly); } PutModule(CString("Set DetachedChannelOnly for all entries to: ") + ((bDetachedChannelOnly) ? "Yes" : "No")); Save(); return; } uIdx--; // "convert" index to zero based if (uIdx >= m_lsWatchers.size()) { PutModule("Invalid Id"); return; } list::iterator it = m_lsWatchers.begin(); for (unsigned int a = 0; a < uIdx; a++) ++it; (*it).SetDetachedChannelOnly(bDetachedChannelOnly); PutModule("Id " + CString(uIdx +1) + " set to: " + ((bDetachedChannelOnly) ? "Yes" : "No")); Save(); } void List() { CTable Table; Table.AddColumn("Id"); Table.AddColumn("HostMask"); Table.AddColumn("Target"); Table.AddColumn("Pattern"); Table.AddColumn("Sources"); Table.AddColumn("Off"); Table.AddColumn("DetachedClientOnly"); Table.AddColumn("DetachedChannelOnly"); unsigned int uIdx = 1; for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it, uIdx++) { CWatchEntry& WatchEntry = *it; Table.AddRow(); Table.SetCell("Id", CString(uIdx)); Table.SetCell("HostMask", WatchEntry.GetHostMask()); Table.SetCell("Target", WatchEntry.GetTarget()); Table.SetCell("Pattern", WatchEntry.GetPattern()); Table.SetCell("Sources", WatchEntry.GetSourcesStr()); Table.SetCell("Off", (WatchEntry.IsDisabled()) ? "Off" : ""); Table.SetCell("DetachedClientOnly", (WatchEntry.IsDetachedClientOnly()) ? "Yes" : "No"); Table.SetCell("DetachedChannelOnly", (WatchEntry.IsDetachedChannelOnly()) ? "Yes" : "No"); } if (Table.size()) { PutModule(Table); } else { PutModule("You have no entries."); } } void Dump() { if (m_lsWatchers.empty()) { PutModule("You have no entries."); return; } PutModule("---------------"); PutModule("/msg " + GetModNick() + " CLEAR"); unsigned int uIdx = 1; for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it, uIdx++) { CWatchEntry& WatchEntry = *it; PutModule("/msg " + GetModNick() + " ADD " + WatchEntry.GetHostMask() + " " + WatchEntry.GetTarget() + " " + WatchEntry.GetPattern()); if (WatchEntry.GetSourcesStr().size()) { PutModule("/msg " + GetModNick() + " SETSOURCES " + CString(uIdx) + " " + WatchEntry.GetSourcesStr()); } if (WatchEntry.IsDisabled()) { PutModule("/msg " + GetModNick() + " DISABLE " + CString(uIdx)); } if (WatchEntry.IsDetachedClientOnly()) { PutModule("/msg " + GetModNick() + " SETDETACHEDCLIENTONLY " + CString(uIdx) + " TRUE"); } if (WatchEntry.IsDetachedChannelOnly()) { PutModule("/msg " + GetModNick() + " SETDETACHEDCHANNELONLY " + CString(uIdx) + " TRUE"); } } PutModule("---------------"); } void SetSources(unsigned int uIdx, const CString& sSources) { uIdx--; // "convert" index to zero based if (uIdx >= m_lsWatchers.size()) { PutModule("Invalid Id"); return; } list::iterator it = m_lsWatchers.begin(); for (unsigned int a = 0; a < uIdx; a++) ++it; (*it).SetSources(sSources); PutModule("Sources set for Id " + CString(uIdx +1) + "."); Save(); } void Remove(unsigned int uIdx) { uIdx--; // "convert" index to zero based if (uIdx >= m_lsWatchers.size()) { PutModule("Invalid Id"); return; } list::iterator it = m_lsWatchers.begin(); for (unsigned int a = 0; a < uIdx; a++) ++it; m_lsWatchers.erase(it); PutModule("Id " + CString(uIdx +1) + " Removed."); Save(); } void Help() { CTable Table; Table.AddColumn("Command"); Table.AddColumn("Description"); Table.AddRow(); Table.SetCell("Command", "Add [Target] [Pattern]"); Table.SetCell("Description", "Used to add an entry to watch for."); Table.AddRow(); Table.SetCell("Command", "List"); Table.SetCell("Description", "List all entries being watched."); Table.AddRow(); Table.SetCell("Command", "Dump"); Table.SetCell("Description", "Dump a list of all current entries to be used later."); Table.AddRow(); Table.SetCell("Command", "Del "); Table.SetCell("Description", "Deletes Id from the list of watched entries."); Table.AddRow(); Table.SetCell("Command", "Clear"); Table.SetCell("Description", "Delete all entries."); Table.AddRow(); Table.SetCell("Command", "Enable "); Table.SetCell("Description", "Enable a disabled entry."); Table.AddRow(); Table.SetCell("Command", "Disable "); Table.SetCell("Description", "Disable (but don't delete) an entry."); Table.AddRow(); Table.SetCell("Command", "SetDetachedClientOnly "); Table.SetCell("Description", "Enable or disable detached client only for an entry."); Table.AddRow(); Table.SetCell("Command", "SetDetachedChannelOnly "); Table.SetCell("Description", "Enable or disable detached channel only for an entry."); Table.AddRow(); Table.SetCell("Command", "Buffer [Count]"); Table.SetCell("Description", "Show/Set the amount of buffered lines while detached."); Table.AddRow(); Table.SetCell("Command", "SetSources [#chan priv #foo* !#bar]"); Table.SetCell("Description", "Set the source channels that you care about."); Table.AddRow(); Table.SetCell("Command", "Help"); Table.SetCell("Description", "This help."); PutModule(Table); } void Watch(const CString& sHostMask, const CString& sTarget, const CString& sPattern, bool bNotice = false) { CString sMessage; if (sHostMask.size()) { CWatchEntry WatchEntry(sHostMask, sTarget, sPattern); bool bExists = false; for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { if (*it == WatchEntry) { sMessage = "Entry for [" + WatchEntry.GetHostMask() + "] already exists."; bExists = true; break; } } if (!bExists) { sMessage = "Adding entry: [" + WatchEntry.GetHostMask() + "] watching for " "[" + WatchEntry.GetPattern() + "] -> [" + WatchEntry.GetTarget() + "]"; m_lsWatchers.push_back(WatchEntry); } } else { sMessage = "Watch: Not enough arguments. Try Help"; } if (bNotice) { PutModNotice(sMessage); } else { PutModule(sMessage); } Save(); } void Save() { ClearNV(false); for (list::iterator it = m_lsWatchers.begin(); it != m_lsWatchers.end(); ++it) { CWatchEntry& WatchEntry = *it; CString sSave; sSave = WatchEntry.GetHostMask() + "\n"; sSave += WatchEntry.GetTarget() + "\n"; sSave += WatchEntry.GetPattern() + "\n"; sSave += (WatchEntry.IsDisabled() ? "disabled\n" : "enabled\n"); sSave += CString(WatchEntry.IsDetachedClientOnly()) + "\n"; sSave += CString(WatchEntry.IsDetachedChannelOnly()) + "\n"; sSave += WatchEntry.GetSourcesStr(); // Without this, loading fails if GetSourcesStr() // returns an empty string sSave += " "; SetNV(sSave, "", false); } SaveRegistry(); } void Load() { // Just to make sure we dont mess up badly m_lsWatchers.clear(); bool bWarn = false; for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { VCString vList; it->first.Split("\n", vList); // Backwards compatibility with the old save format if (vList.size() != 5 && vList.size() != 7) { bWarn = true; continue; } CWatchEntry WatchEntry(vList[0], vList[1], vList[2]); if (vList[3].Equals("disabled")) WatchEntry.SetDisabled(true); else WatchEntry.SetDisabled(false); // Backwards compatibility with the old save format if (vList.size() == 5) { WatchEntry.SetSources(vList[4]); } else { WatchEntry.SetDetachedClientOnly(vList[4].ToBool()); WatchEntry.SetDetachedChannelOnly(vList[5].ToBool()); WatchEntry.SetSources(vList[6]); } m_lsWatchers.push_back(WatchEntry); } if (bWarn) PutModule("WARNING: malformed entry found while loading"); } list m_lsWatchers; CBuffer m_Buffer; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("watch"); } NETWORKMODULEDEFS(CWatcherMod, "Copy activity from a specific user into a separate window") znc-1.6.3/modules/perleval.pm0000644000175000017500000000070412663147131016364 0ustar somebodysomebodyuse strict; use warnings; package perleval; use base 'ZNC::Module'; sub description { 'Evaluates perl code' } sub wiki_page { 'perleval' } sub OnLoad { my $self = shift; if (!$self->GetUser->IsAdmin) { $_[1] = 'Only admin can load this module'; return 0 } return 1 } sub OnModCommand { my $self = shift; my $cmd = shift; my $x = eval $cmd; if ($@) { $self->PutModule("Error: $@") } else { $self->PutModule("Result: $x") } } 1 znc-1.6.3/modules/kickrejoin.cpp0000644000175000017500000000660412663147131017055 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * This was originally written by cycomate. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Autorejoin module * rejoin channel (after a delay) when kicked * Usage: LoadModule = rejoin [delay] * */ #include #include class CRejoinJob: public CTimer { public: CRejoinJob(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) { } virtual ~CRejoinJob() {} protected: virtual void RunJob() override { CIRCNetwork* pNetwork = GetModule()->GetNetwork(); CChan* pChan = pNetwork->FindChan(GetName().Token(1, true)); if (pChan) { pChan->Enable(); GetModule()->PutIRC("JOIN " + pChan->GetName() + " " + pChan->GetKey()); } } }; class CRejoinMod : public CModule { private: unsigned int delay = 10; public: MODCONSTRUCTOR(CRejoinMod) { AddHelpCommand(); AddCommand("SetDelay", static_cast(&CRejoinMod::OnSetDelayCommand), "", "Set the rejoin delay"); AddCommand("ShowDelay", static_cast(&CRejoinMod::OnShowDelayCommand), "", "Show the rejoin delay"); } virtual ~CRejoinMod() {} virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) override { if (sArgs.empty()) { CString sDelay = GetNV("delay"); if (sDelay.empty()) delay = 10; else delay = sDelay.ToUInt(); } else { int i = sArgs.ToInt(); if ((i == 0 && sArgs == "0") || i > 0) delay = i; else { sErrorMsg = "Illegal argument, " "must be a positive number or 0"; return false; } } return true; } void OnSetDelayCommand(const CString& sCommand) { int i; i = sCommand.Token(1).ToInt(); if (i < 0) { PutModule("Negative delays don't make any sense!"); return; } delay = i; SetNV("delay", CString(delay)); if (delay) PutModule("Rejoin delay set to " + CString(delay) + " seconds"); else PutModule("Rejoin delay disabled"); } void OnShowDelayCommand(const CString& sCommand) { if (delay) PutModule("Rejoin delay enabled, " + CString(delay) + " seconds"); else PutModule("Rejoin delay disabled"); } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& pChan, const CString& sMessage) override { if (GetNetwork()->GetCurNick().Equals(sKickedNick)) { if (!delay) { PutIRC("JOIN " + pChan.GetName() + " " + pChan.GetKey()); pChan.Enable(); return; } AddTimer(new CRejoinJob(this, delay, 1, "Rejoin " + pChan.GetName(), "Rejoin channel after a delay")); } } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("kickrejoin"); Info.SetHasArgs(true); Info.SetArgsHelpText("You might enter the number of seconds to wait before rejoining."); } NETWORKMODULEDEFS(CRejoinMod, "Autorejoin on kick") znc-1.6.3/modules/perform.cpp0000644000175000017500000001156312663147131016377 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include class CPerform : public CModule { void Add(const CString& sCommand) { CString sPerf = sCommand.Token(1, true); if (sPerf.empty()) { PutModule("Usage: add "); return; } m_vPerform.push_back(ParsePerform(sPerf)); PutModule("Added!"); Save(); } void Del(const CString& sCommand) { u_int iNum = sCommand.Token(1, true).ToUInt(); if (iNum > m_vPerform.size() || iNum <= 0) { PutModule("Illegal # Requested"); return; } else { m_vPerform.erase(m_vPerform.begin() + iNum - 1); PutModule("Command Erased."); } Save(); } void List(const CString& sCommand) { CTable Table; unsigned int index = 1; Table.AddColumn("Id"); Table.AddColumn("Perform"); Table.AddColumn("Expanded"); for (VCString::const_iterator it = m_vPerform.begin(); it != m_vPerform.end(); ++it, index++) { Table.AddRow(); Table.SetCell("Id", CString(index)); Table.SetCell("Perform", *it); CString sExpanded = ExpandString(*it); if (sExpanded != *it) { Table.SetCell("Expanded", sExpanded); } } if (PutModule(Table) == 0) { PutModule("No commands in your perform list."); } } void Execute(const CString& sCommand) { OnIRCConnected(); PutModule("perform commands sent"); } void Swap(const CString& sCommand) { u_int iNumA = sCommand.Token(1).ToUInt(); u_int iNumB = sCommand.Token(2).ToUInt(); if (iNumA > m_vPerform.size() || iNumA <= 0 || iNumB > m_vPerform.size() || iNumB <= 0) { PutModule("Illegal # Requested"); } else { std::iter_swap(m_vPerform.begin() + (iNumA - 1), m_vPerform.begin() + (iNumB - 1)); PutModule("Commands Swapped."); Save(); } } public: MODCONSTRUCTOR(CPerform) { AddHelpCommand(); AddCommand("Add", static_cast(&CPerform::Add), "", "Adds perform command to be sent to the server on connect"); AddCommand("Del", static_cast(&CPerform::Del), "", "Delete a perform command"); AddCommand("List", static_cast(&CPerform::List),"", "List the perform commands"); AddCommand("Execute", static_cast(&CPerform::Execute),"", "Send the perform commands to the server now"); AddCommand("Swap", static_cast(&CPerform::Swap), " ", "Swap two perform commands"); } virtual ~CPerform() {} CString ParsePerform(const CString& sArg) const { CString sPerf = sArg; if (sPerf.Left(1) == "/") sPerf.LeftChomp(); if (sPerf.Token(0).Equals("MSG")) { sPerf = "PRIVMSG " + sPerf.Token(1, true); } if ((sPerf.Token(0).Equals("PRIVMSG") || sPerf.Token(0).Equals("NOTICE")) && sPerf.Token(2).Left(1) != ":") { sPerf = sPerf.Token(0) + " " + sPerf.Token(1) + " :" + sPerf.Token(2, true); } return sPerf; } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { GetNV("Perform").Split("\n", m_vPerform, false); return true; } virtual void OnIRCConnected() override { for (VCString::const_iterator it = m_vPerform.begin(); it != m_vPerform.end(); ++it) { PutIRC(ExpandString(*it)); } } virtual CString GetWebMenuTitle() override { return "Perform"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName != "index") { // only accept requests to index return false; } if (WebSock.IsPost()) { VCString vsPerf; WebSock.GetRawParam("perform", true).Split("\n", vsPerf, false); m_vPerform.clear(); for (VCString::const_iterator it = vsPerf.begin(); it != vsPerf.end(); ++it) m_vPerform.push_back(ParsePerform(*it)); Save(); } for (VCString::const_iterator it = m_vPerform.begin(); it != m_vPerform.end(); ++it) { CTemplate& Row = Tmpl.AddRow("PerformLoop"); Row["Perform"] = *it; } return true; } private: void Save() { CString sBuffer = ""; for (VCString::const_iterator it = m_vPerform.begin(); it != m_vPerform.end(); ++it) { sBuffer += *it + "\n"; } SetNV("Perform", sBuffer); } VCString m_vPerform; }; template<> void TModInfo(CModInfo& Info) { Info.AddType(CModInfo::UserModule); Info.SetWikiPage("perform"); } NETWORKMODULEDEFS(CPerform, "Keeps a list of commands to be executed when ZNC connects to IRC.") znc-1.6.3/modules/send_raw.cpp0000644000175000017500000001121512663147131016521 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; using std::map; class CSendRaw_Mod: public CModule { void SendClient(const CString& sLine) { CUser *pUser = CZNC::Get().FindUser(sLine.Token(1)); if (pUser) { CIRCNetwork *pNetwork = pUser->FindNetwork(sLine.Token(2)); if (pNetwork) { pNetwork->PutUser(sLine.Token(3, true)); PutModule("Sent [" + sLine.Token(3, true) + "] to " + pUser->GetUserName() + "/" + pNetwork->GetName()); } else { PutModule("Network [" + sLine.Token(2) + "] not found for user [" + sLine.Token(1) + "]"); } } else { PutModule("User [" + sLine.Token(1) + "] not found"); } } void SendServer(const CString& sLine) { CUser *pUser = CZNC::Get().FindUser(sLine.Token(1)); if (pUser) { CIRCNetwork *pNetwork = pUser->FindNetwork(sLine.Token(2)); if (pNetwork) { pNetwork->PutIRC(sLine.Token(3, true)); PutModule("Sent [" + sLine.Token(3, true) + "] to IRC Server of " + pUser->GetUserName() + "/" + pNetwork->GetName()); } else { PutModule("Network [" + sLine.Token(2) + "] not found for user [" + sLine.Token(1) + "]"); } } else { PutModule("User [" + sLine.Token(1) + "] not found"); } } void CurrentClient(const CString& sLine) { CString sData = sLine.Token(1, true); GetClient()->PutClient(sData); } public: virtual ~CSendRaw_Mod() {} virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) override { if (!GetUser()->IsAdmin()) { sErrorMsg = "You must have admin privileges to load this module"; return false; } return true; } virtual CString GetWebMenuTitle() override { return "Send Raw"; } virtual bool WebRequiresAdmin() override { return true; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { if (WebSock.IsPost()) { CUser *pUser = CZNC::Get().FindUser(WebSock.GetParam("network").Token(0, false, "/")); if (!pUser) { WebSock.GetSession()->AddError("User not found"); return true; } CIRCNetwork *pNetwork = pUser->FindNetwork(WebSock.GetParam("network").Token(1, false, "/")); if (!pNetwork) { WebSock.GetSession()->AddError("Network not found"); return true; } bool bToServer = WebSock.GetParam("send_to") == "server"; const CString sLine = WebSock.GetParam("line"); Tmpl["user"] = pUser->GetUserName(); Tmpl[bToServer ? "to_server" : "to_client"] = "true"; Tmpl["line"] = sLine; if (bToServer) { pNetwork->PutIRC(sLine); } else { pNetwork->PutUser(sLine); } WebSock.GetSession()->AddSuccess("Line sent"); } const map& msUsers = CZNC::Get().GetUserMap(); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { CTemplate& l = Tmpl.AddRow("UserLoop"); l["Username"] = (*it->second).GetUserName(); vector vNetworks = (*it->second).GetNetworks(); for (vector::const_iterator it2 = vNetworks.begin(); it2 != vNetworks.end(); ++it2) { CTemplate& NetworkLoop = l.AddRow("NetworkLoop"); NetworkLoop["Username"] = (*it->second).GetUserName(); NetworkLoop["Network"] = (*it2)->GetName(); } } return true; } return false; } MODCONSTRUCTOR(CSendRaw_Mod) { AddHelpCommand(); AddCommand("Client", static_cast(&CSendRaw_Mod::SendClient), "[user] [network] [data to send]", "The data will be sent to the user's IRC client(s)"); AddCommand("Server", static_cast(&CSendRaw_Mod::SendServer), "[user] [network] [data to send]", "The data will be sent to the IRC server the user is connected to"); AddCommand("Current", static_cast(&CSendRaw_Mod::CurrentClient), "[data to send]", "The data will be sent to your current client"); } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("send_raw"); } USERMODULEDEFS(CSendRaw_Mod, "Lets you send some raw IRC lines as/to someone else") znc-1.6.3/modules/imapauth.cpp0000644000175000017500000001020012663147131016520 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include using std::map; class CIMAPAuthMod; class CIMAPSock : public CSocket { public: CIMAPSock(CIMAPAuthMod* pModule, std::shared_ptr Auth) : CSocket((CModule*) pModule), m_spAuth(Auth) { m_pIMAPMod = pModule; m_bSentReply = false; m_bSentLogin = false; EnableReadLine(); } virtual ~CIMAPSock() { if (!m_bSentReply) { m_spAuth->RefuseLogin("IMAP server is down, please try again later"); } } virtual void ReadLine(const CString& sLine) override; private: protected: CIMAPAuthMod* m_pIMAPMod; bool m_bSentLogin; bool m_bSentReply; std::shared_ptr m_spAuth; }; class CIMAPAuthMod : public CModule { public: MODCONSTRUCTOR(CIMAPAuthMod) { m_Cache.SetTTL(60000); m_sServer = "localhost"; m_uPort = 143; m_bSSL = false; } virtual ~CIMAPAuthMod() {} virtual bool OnBoot() override { return true; } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { if (sArgs.Trim_n().empty()) { return true; // use defaults } m_sServer = sArgs.Token(0); CString sPort = sArgs.Token(1); m_sUserFormat = sArgs.Token(2); if (sPort.Left(1) == "+") { m_bSSL = true; sPort.LeftChomp(); } unsigned short uPort = sPort.ToUShort(); if (uPort) { m_uPort = uPort; } return true; } virtual EModRet OnLoginAttempt(std::shared_ptr Auth) override { CUser* pUser = CZNC::Get().FindUser(Auth->GetUsername()); if (!pUser) { // @todo Will want to do some sort of && !m_bAllowCreate in the future Auth->RefuseLogin("Invalid User - Halting IMAP Lookup"); return HALT; } if (pUser && m_Cache.HasItem(CString(Auth->GetUsername() + ":" + Auth->GetPassword()).MD5())) { DEBUG("+++ Found in cache"); Auth->AcceptLogin(*pUser); return HALT; } CIMAPSock* pSock = new CIMAPSock(this, Auth); pSock->Connect(m_sServer, m_uPort, m_bSSL, 20); return HALT; } virtual void OnModCommand(const CString& sLine) override { } void CacheLogin(const CString& sLogin) { m_Cache.AddItem(sLogin); } // Getters const CString& GetUserFormat() const { return m_sUserFormat; } // !Getters private: // Settings CString m_sServer; unsigned short m_uPort; bool m_bSSL; CString m_sUserFormat; // !Settings TCacheMap m_Cache; }; void CIMAPSock::ReadLine(const CString& sLine) { if (!m_bSentLogin) { CString sUsername = m_spAuth->GetUsername(); m_bSentLogin = true; const CString& sFormat = m_pIMAPMod->GetUserFormat(); if (!sFormat.empty()) { if (sFormat.find('%') != CString::npos) { sUsername = sFormat.Replace_n("%", sUsername); } else { sUsername += sFormat; } } Write("AUTH LOGIN " + sUsername + " " + m_spAuth->GetPassword() + "\r\n"); } else if (sLine.Left(5) == "AUTH ") { CUser* pUser = CZNC::Get().FindUser(m_spAuth->GetUsername()); if (pUser && sLine.Equals("AUTH OK", false, 7)) { m_spAuth->AcceptLogin(*pUser); m_pIMAPMod->CacheLogin(CString(m_spAuth->GetUsername() + ":" + m_spAuth->GetPassword()).MD5()); // Use MD5 so passes don't sit in memory in plain text DEBUG("+++ Successful IMAP lookup"); } else { m_spAuth->RefuseLogin("Invalid Password"); DEBUG("--- FAILED IMAP lookup"); } m_bSentReply = true; Close(); } } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("imapauth"); Info.SetHasArgs(true); Info.SetArgsHelpText("[ server [+]port [ UserFormatString ] ]"); } GLOBALMODULEDEFS(CIMAPAuthMod, "Allow users to authenticate via IMAP.") znc-1.6.3/modules/crypt.cpp0000644000175000017500000001257412663147131016071 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ //! @author prozac@rottenboy.com // // The encryption here was designed to be compatible with mircryption's CBC mode. // // TODO: // // 1) Encrypt key storage file // 2) Secure key exchange using pub/priv keys and the DH algorithm // 3) Some way of notifying the user that the current channel is in "encryption mode" verses plain text // 4) Temporarily disable a target (nick/chan) // // NOTE: This module is currently NOT intended to secure you from your shell admin. // The keys are currently stored in plain text, so anyone with access to your account (or root) can obtain them. // It is strongly suggested that you enable SSL between znc and your client otherwise the encryption stops at znc and gets sent to your client in plain text. // #include #include #include #define REQUIRESSL 1 #define NICK_PREFIX_KEY "[nick-prefix]" class CCryptMod : public CModule { CString NickPrefix() { MCString::iterator it = FindNV(NICK_PREFIX_KEY); return it != EndNV() ? it->second : "*"; } public: MODCONSTRUCTOR(CCryptMod) { AddHelpCommand(); AddCommand("DelKey", static_cast(&CCryptMod::OnDelKeyCommand), "<#chan|Nick>", "Remove a key for nick or channel"); AddCommand("SetKey", static_cast(&CCryptMod::OnSetKeyCommand), "<#chan|Nick> ", "Set a key for nick or channel"); AddCommand("ListKeys", static_cast(&CCryptMod::OnListKeysCommand), "", "List all keys"); } virtual ~CCryptMod() {} virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override { sTarget.TrimLeft(NickPrefix()); if (sMessage.Left(2) == "``") { sMessage.LeftChomp(2); return CONTINUE; } MCString::iterator it = FindNV(sTarget.AsLower()); if (it != EndNV()) { CChan* pChan = GetNetwork()->FindChan(sTarget); CString sNickMask = GetNetwork()->GetIRCNick().GetNickMask(); if (pChan) { if (!pChan->AutoClearChanBuffer()) pChan->AddBuffer(":" + NickPrefix() + _NAMEDFMT(sNickMask) + " PRIVMSG " + _NAMEDFMT(sTarget) + " :{text}", sMessage); GetUser()->PutUser(":" + NickPrefix() + sNickMask + " PRIVMSG " + sTarget + " :" + sMessage, NULL, GetClient()); } CString sMsg = MakeIvec() + sMessage; sMsg.Encrypt(it->second); sMsg.Base64Encode(); sMsg = "+OK *" + sMsg; PutIRC("PRIVMSG " + sTarget + " :" + sMsg); return HALTCORE; } return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { FilterIncoming(Nick.GetNick(), Nick, sMessage); return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override { FilterIncoming(Channel.GetName(), Nick, sMessage); return CONTINUE; } void FilterIncoming(const CString& sTarget, CNick& Nick, CString& sMessage) { if (sMessage.Left(5) == "+OK *") { MCString::iterator it = FindNV(sTarget.AsLower()); if (it != EndNV()) { sMessage.LeftChomp(5); sMessage.Base64Decode(); sMessage.Decrypt(it->second); sMessage.LeftChomp(8); sMessage = sMessage.c_str(); Nick.SetNick(NickPrefix() + Nick.GetNick()); } } } void OnDelKeyCommand(const CString& sCommand) { CString sTarget = sCommand.Token(1); if (!sTarget.empty()) { if (DelNV(sTarget.AsLower())) { PutModule("Target [" + sTarget + "] deleted"); } else { PutModule("Target [" + sTarget + "] not found"); } } else { PutModule("Usage DelKey <#chan|Nick>"); } } void OnSetKeyCommand(const CString& sCommand) { CString sTarget = sCommand.Token(1); CString sKey = sCommand.Token(2, true); // Strip "cbc:" from beginning of string incase someone pastes directly from mircryption sKey.TrimPrefix("cbc:"); if (!sKey.empty()) { SetNV(sTarget.AsLower(), sKey); PutModule("Set encryption key for [" + sTarget + "] to [" + sKey + "]"); } else { PutModule("Usage: SetKey <#chan|Nick> "); } } void OnListKeysCommand(const CString& sCommand) { if (BeginNV() == EndNV()) { PutModule("You have no encryption keys set."); } else { CTable Table; Table.AddColumn("Target"); Table.AddColumn("Key"); for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { Table.AddRow(); Table.SetCell("Target", it->first); Table.SetCell("Key", it->second); } MCString::iterator it = FindNV(NICK_PREFIX_KEY); if (it == EndNV()) { Table.AddRow(); Table.SetCell("Target", NICK_PREFIX_KEY); Table.SetCell("Key", NickPrefix()); } PutModule(Table); } } CString MakeIvec() { CString sRet; time_t t; time(&t); int r = rand(); sRet.append((char*) &t, 4); sRet.append((char*) &r, 4); return sRet; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("crypt"); } NETWORKMODULEDEFS(CCryptMod, "Encryption for channel/private messages") znc-1.6.3/modules/modpython.cpp0000644000175000017500000003175612663147131016754 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include #include #include "modpython/swigpyrun.h" #include "modpython/module.h" #include "modpython/ret.h" using std::vector; using std::set; class CModPython: public CModule { PyObject* m_PyZNCModule; PyObject* m_PyFormatException; vector m_vpObject; public: CString GetPyExceptionStr() { PyObject* ptype; PyObject* pvalue; PyObject* ptraceback; PyErr_Fetch(&ptype, &pvalue, &ptraceback); CString result; if (!pvalue) { Py_INCREF(Py_None); pvalue = Py_None; } if (!ptraceback) { Py_INCREF(Py_None); ptraceback = Py_None; } PyErr_NormalizeException(&ptype, &pvalue, &ptraceback); PyObject* strlist = PyObject_CallFunctionObjArgs(m_PyFormatException, ptype, pvalue, ptraceback, NULL); Py_CLEAR(ptype); Py_CLEAR(pvalue); Py_CLEAR(ptraceback); if (!strlist) { return "Couldn't get exact error message"; } if (PySequence_Check(strlist)) { PyObject* strlist_fast = PySequence_Fast(strlist, "Shouldn't happen (1)"); PyObject** items = PySequence_Fast_ITEMS(strlist_fast); Py_ssize_t L = PySequence_Fast_GET_SIZE(strlist_fast); for (Py_ssize_t i = 0; i < L; ++i) { PyObject* utf8 = PyUnicode_AsUTF8String(items[i]); result += PyBytes_AsString(utf8); Py_CLEAR(utf8); } Py_CLEAR(strlist_fast); } else { result = "Can't get exact error message"; } Py_CLEAR(strlist); return result; } MODCONSTRUCTOR(CModPython) { Py_Initialize(); m_PyFormatException = NULL; m_PyZNCModule = NULL; } bool OnLoad(const CString& sArgsi, CString& sMessage) override { CString sModPath, sTmp; #ifdef __CYGWIN__ CString sDllPath = "modpython/_znc_core.dll"; #else CString sDllPath = "modpython/_znc_core.so"; #endif if (!CModules::FindModPath(sDllPath, sModPath, sTmp)) { sMessage = sDllPath + " not found."; return false; } sTmp = CDir::ChangeDir(sModPath, ".."); PyObject* pyModuleTraceback = PyImport_ImportModule("traceback"); if (!pyModuleTraceback) { sMessage = "Couldn't import python module traceback"; return false; } m_PyFormatException = PyObject_GetAttrString(pyModuleTraceback, "format_exception"); if (!m_PyFormatException) { sMessage = "Couldn't get traceback.format_exception"; Py_CLEAR(pyModuleTraceback); return false; } Py_CLEAR(pyModuleTraceback); PyObject* pySysModule = PyImport_ImportModule("sys"); if (!pySysModule) { sMessage = GetPyExceptionStr(); return false; } PyObject* pySysPath = PyObject_GetAttrString(pySysModule, "path"); if (!pySysPath) { sMessage = GetPyExceptionStr(); Py_CLEAR(pySysModule); return false; } Py_CLEAR(pySysModule); PyObject* pyIgnored = PyObject_CallMethod(pySysPath, const_cast("append"), const_cast("s"), sTmp.c_str()); if (!pyIgnored) { sMessage = GetPyExceptionStr(); Py_CLEAR(pyIgnored); return false; } Py_CLEAR(pyIgnored); Py_CLEAR(pySysPath); m_PyZNCModule = PyImport_ImportModule("znc"); if (!m_PyZNCModule) { sMessage = GetPyExceptionStr(); return false; } return true; } virtual EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) override { PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "load_module"); if (!pyFunc) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; return HALT; } PyObject* pyRes = PyObject_CallFunction(pyFunc, const_cast("ssiNNNN"), sModName.c_str(), sArgs.c_str(), (int)eType, (eType == CModInfo::GlobalModule ? Py_None : SWIG_NewInstanceObj(GetUser(), SWIG_TypeQuery("CUser*"), 0)), (eType == CModInfo::NetworkModule ? SWIG_NewInstanceObj(GetNetwork(), SWIG_TypeQuery("CIRCNetwork*"), 0) : Py_None), CPyRetString::wrap(sRetMsg), SWIG_NewInstanceObj(reinterpret_cast(this), SWIG_TypeQuery("CModPython*"), 0)); if (!pyRes) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; Py_CLEAR(pyFunc); return HALT; } Py_CLEAR(pyFunc); long int ret = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); Py_CLEAR(pyRes); return HALT; } Py_CLEAR(pyRes); switch (ret) { case 0: // Not found return CONTINUE; case 1: // Error bSuccess = false; return HALT; case 2: // Success bSuccess = true; return HALT; } bSuccess = false; sRetMsg += " unknown value returned by modpython.load_module"; return HALT; } virtual EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) override { CPyModule* pMod = AsPyModule(pModule); if (pMod) { CString sModName = pMod->GetModName(); PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "unload_module"); if (!pyFunc) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; return HALT; } PyObject* pyRes = PyObject_CallFunctionObjArgs(pyFunc, pMod->GetPyObj(), NULL); if (!pyRes) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; Py_CLEAR(pyFunc); return HALT; } if (!PyObject_IsTrue(pyRes)) { // python module, but not handled by modpython itself. // some module-provider written on python loaded it? return CONTINUE; } Py_CLEAR(pyFunc); Py_CLEAR(pyRes); bSuccess = true; sRetMsg = "Module [" + sModName + "] unloaded"; return HALT; } return CONTINUE; } virtual EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) override { PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "get_mod_info"); if (!pyFunc) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; return HALT; } PyObject* pyRes = PyObject_CallFunction(pyFunc, const_cast("sNN"), sModule.c_str(), CPyRetString::wrap(sRetMsg), SWIG_NewInstanceObj(&ModInfo, SWIG_TypeQuery("CModInfo*"), 0)); if (!pyRes) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; Py_CLEAR(pyFunc); return HALT; } Py_CLEAR(pyFunc); long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { sRetMsg = GetPyExceptionStr(); DEBUG("modpython: " << sRetMsg); bSuccess = false; Py_CLEAR(pyRes); return HALT; } Py_CLEAR(pyRes); switch (x) { case 0: return CONTINUE; case 1: bSuccess = false; return HALT; case 2: bSuccess = true; return HALT; } bSuccess = false; sRetMsg = CString("Shouldn't happen. ") + __PRETTY_FUNCTION__ + " on " + __FILE__ + ":" + CString(__LINE__); DEBUG(sRetMsg); return HALT; } void TryAddModInfo(const CString& sPath, const CString& sName, set& ssMods, set& ssAlready, CModInfo::EModuleType eType) { if (ssAlready.count(sName)) { return; } PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "get_mod_info_path"); if (!pyFunc) { CString sRetMsg = GetPyExceptionStr(); DEBUG("modpython tried to get info about [" << sPath << "] (1) but: " << sRetMsg); return; } CModInfo ModInfo; PyObject* pyRes = PyObject_CallFunction(pyFunc, const_cast("ssN"), sPath.c_str(), sName.c_str(), SWIG_NewInstanceObj(&ModInfo, SWIG_TypeQuery("CModInfo*"), 0)); if (!pyRes) { CString sRetMsg = GetPyExceptionStr(); DEBUG("modpython tried to get info about [" << sPath << "] (2) but: " << sRetMsg); Py_CLEAR(pyFunc); return; } Py_CLEAR(pyFunc); long int x = PyLong_AsLong(pyRes); if (PyErr_Occurred()) { CString sRetMsg = GetPyExceptionStr(); DEBUG("modpython tried to get info about [" << sPath << "] (3) but: " << sRetMsg); Py_CLEAR(pyRes); return; } Py_CLEAR(pyRes); if (x && ModInfo.SupportsType(eType)) { ssMods.insert(ModInfo); ssAlready.insert(sName); } } virtual void OnGetAvailableMods(set& ssMods, CModInfo::EModuleType eType) override { CDir Dir; CModules::ModDirList dirs = CModules::GetModDirs(); while (!dirs.empty()) { set already; Dir.Fill(dirs.front().first); for (unsigned int a = 0; a < Dir.size(); a++) { CFile& File = *Dir[a]; CString sName = File.GetShortName(); CString sPath = File.GetLongName(); sPath.TrimSuffix(sName); if (!File.IsDir()) { if (sName.WildCmp("*.pyc")) { sName.RightChomp(4); } else if (sName.WildCmp("*.py") || sName.WildCmp("*.so")) { sName.RightChomp(3); } else { continue; } } TryAddModInfo(sPath, sName, ssMods, already, eType); } dirs.pop(); } } virtual ~CModPython() { if (!m_PyZNCModule) { DEBUG("~CModPython(): seems like CModPython::OnLoad() didn't initialize python"); return; } PyObject* pyFunc = PyObject_GetAttrString(m_PyZNCModule, "unload_all"); if (!pyFunc) { CString sRetMsg = GetPyExceptionStr(); DEBUG("~CModPython(): couldn't find unload_all: " << sRetMsg); return; } PyObject* pyRes = PyObject_CallFunctionObjArgs(pyFunc, NULL); if (!pyRes) { CString sRetMsg = GetPyExceptionStr(); DEBUG("modpython tried to unload all modules in its destructor, but: " << sRetMsg); } Py_CLEAR(pyRes); Py_CLEAR(pyFunc); Py_CLEAR(m_PyFormatException); Py_CLEAR(m_PyZNCModule); Py_Finalize(); } }; CString CPyModule::GetPyExceptionStr() { return m_pModPython->GetPyExceptionStr(); } #include "modpython/functions.cpp" VWebSubPages& CPyModule::GetSubPages() { VWebSubPages* result = _GetSubPages(); if (!result) { return CModule::GetSubPages(); } return *result; } void CPyTimer::RunJob() { CPyModule* pMod = AsPyModule(GetModule()); if (pMod) { PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("RunJob"), const_cast("")); if (!pyRes) { CString sRetMsg = m_pModPython->GetPyExceptionStr(); DEBUG("python timer failed: " << sRetMsg); Stop(); } Py_CLEAR(pyRes); } } CPyTimer::~CPyTimer() { CPyModule* pMod = AsPyModule(GetModule()); if (pMod) { PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("OnShutdown"), const_cast("")); if (!pyRes) { CString sRetMsg = m_pModPython->GetPyExceptionStr(); DEBUG("python timer shutdown failed: " << sRetMsg); } Py_CLEAR(pyRes); Py_CLEAR(m_pyObj); } } #define CHECKCLEARSOCK(Func)\ if (!pyRes) {\ CString sRetMsg = m_pModPython->GetPyExceptionStr();\ DEBUG("python socket failed in " Func ": " << sRetMsg);\ Close();\ }\ Py_CLEAR(pyRes) #define CBSOCK(Func) void CPySocket::Func() {\ PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("On" #Func), const_cast(""));\ CHECKCLEARSOCK(#Func);\ } CBSOCK(Connected); CBSOCK(Disconnected); CBSOCK(Timeout); CBSOCK(ConnectionRefused); void CPySocket::ReadData(const char *data, size_t len) { PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("OnReadData"), const_cast("y#"), data, (int)len); CHECKCLEARSOCK("OnReadData"); } void CPySocket::ReadLine(const CString& sLine) { PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("OnReadLine"), const_cast("s"), sLine.c_str()); CHECKCLEARSOCK("OnReadLine"); } Csock* CPySocket::GetSockObj(const CString& sHost, unsigned short uPort) { CPySocket* result = NULL; PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("_Accepted"), const_cast("sH"), sHost.c_str(), uPort); if (!pyRes) { CString sRetMsg = m_pModPython->GetPyExceptionStr(); DEBUG("python socket failed in OnAccepted: " << sRetMsg); Close(); } int res = SWIG_ConvertPtr(pyRes, (void**)&result, SWIG_TypeQuery("CPySocket*"), 0); if (!SWIG_IsOK(res)) { DEBUG("python socket was expected to return new socket from OnAccepted, but error=" << res); Close(); result = NULL; } if (!result) { DEBUG("modpython: OnAccepted didn't return new socket"); } Py_CLEAR(pyRes); return result; } CPySocket::~CPySocket() { PyObject* pyRes = PyObject_CallMethod(m_pyObj, const_cast("OnShutdown"), const_cast("")); if (!pyRes) { CString sRetMsg = m_pModPython->GetPyExceptionStr(); DEBUG("python socket failed in OnShutdown: " << sRetMsg); } Py_CLEAR(pyRes); Py_CLEAR(m_pyObj); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("modpython"); } GLOBALMODULEDEFS(CModPython, "Loads python scripts as ZNC modules") znc-1.6.3/modules/certauth.cpp0000644000175000017500000001674312663147131016551 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #define REQUIRESSL #include #include using std::map; using std::vector; using std::set; using std::pair; class CSSLClientCertMod : public CModule { public: MODCONSTRUCTOR(CSSLClientCertMod) { AddHelpCommand(); AddCommand("Add", static_cast(&CSSLClientCertMod::HandleAddCommand), "[pubkey]", "If pubkey is not provided will use the current key"); AddCommand("Del", static_cast(&CSSLClientCertMod::HandleDelCommand), "id"); AddCommand("List", static_cast(&CSSLClientCertMod::HandleListCommand),"", "List your public keys"); AddCommand("Show", static_cast(&CSSLClientCertMod::HandleShowCommand), "", "Print your current key"); } virtual ~CSSLClientCertMod() {} virtual bool OnBoot() override { const vector& vListeners = CZNC::Get().GetListeners(); vector::const_iterator it; // We need the SSL_VERIFY_PEER flag on all listeners, or else // the client doesn't send a ssl cert for (it = vListeners.begin(); it != vListeners.end(); ++it) (*it)->GetRealListener()->SetRequireClientCertFlags(SSL_VERIFY_PEER); for (MCString::const_iterator it1 = BeginNV(); it1 != EndNV(); ++it1) { VCString vsKeys; if (CZNC::Get().FindUser(it1->first) == NULL) { DEBUG("Unknown user in saved data [" + it1->first + "]"); continue; } it1->second.Split(" ", vsKeys, false); for (VCString::const_iterator it2 = vsKeys.begin(); it2 != vsKeys.end(); ++it2) { m_PubKeys[it1->first].insert(it2->AsLower()); } } return true; } virtual void OnPostRehash() override { OnBoot(); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { OnBoot(); return true; } bool Save() { ClearNV(false); for (MSCString::const_iterator it = m_PubKeys.begin(); it != m_PubKeys.end(); ++it) { CString sVal; for (SCString::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) { sVal += *it2 + " "; } if (!sVal.empty()) SetNV(it->first, sVal, false); } return SaveRegistry(); } bool AddKey(CUser *pUser, const CString& sKey) { const pair pair = m_PubKeys[pUser->GetUserName()].insert(sKey.AsLower()); if (pair.second) { Save(); } return pair.second; } virtual EModRet OnLoginAttempt(std::shared_ptr Auth) override { const CString sUser = Auth->GetUsername(); Csock *pSock = Auth->GetSocket(); CUser *pUser = CZNC::Get().FindUser(sUser); if (pSock == NULL || pUser == NULL) return CONTINUE; const CString sPubKey = GetKey(pSock); DEBUG("User: " << sUser << " Key: " << sPubKey); if (sPubKey.empty()) { DEBUG("Peer got no public key, ignoring"); return CONTINUE; } MSCString::const_iterator it = m_PubKeys.find(sUser); if (it == m_PubKeys.end()) { DEBUG("No saved pubkeys for this client"); return CONTINUE; } SCString::const_iterator it2 = it->second.find(sPubKey); if (it2 == it->second.end()) { DEBUG("Invalid pubkey"); return CONTINUE; } // This client uses a valid pubkey for this user, let them in DEBUG("Accepted pubkey auth"); Auth->AcceptLogin(*pUser); return HALT; } void HandleShowCommand(const CString& sLine) { const CString sPubKey = GetKey(GetClient()); if (sPubKey.empty()) { PutModule("You are not connected with any valid public key"); } else { PutModule("Your current public key is: " + sPubKey); } } void HandleAddCommand(const CString& sLine) { CString sPubKey = sLine.Token(1); if (sPubKey.empty()) { sPubKey = GetKey(GetClient()); } if (sPubKey.empty()) { PutModule("You did not supply a public key or connect with one."); } else { if (AddKey(GetUser(), sPubKey)) { PutModule("'" + sPubKey + "' added."); } else { PutModule("The key '" + sPubKey + "' is already added."); } } } void HandleListCommand(const CString& sLine) { CTable Table; Table.AddColumn("Id"); Table.AddColumn("Key"); MSCString::const_iterator it = m_PubKeys.find(GetUser()->GetUserName()); if (it == m_PubKeys.end()) { PutModule("No keys set for your user"); return; } unsigned int id = 1; for (SCString::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) { Table.AddRow(); Table.SetCell("Id", CString(id++)); Table.SetCell("Key", *it2); } if (PutModule(Table) == 0) { // This double check is necessary, because the // set could be empty. PutModule("No keys set for your user"); } } void HandleDelCommand(const CString& sLine) { unsigned int id = sLine.Token(1, true).ToUInt(); MSCString::iterator it = m_PubKeys.find(GetUser()->GetUserName()); if (it == m_PubKeys.end()) { PutModule("No keys set for your user"); return; } if (id == 0 || id > it->second.size()) { PutModule("Invalid #, check \"list\""); return; } SCString::const_iterator it2 = it->second.begin(); while (id > 1) { ++it2; id--; } it->second.erase(it2); if (it->second.size() == 0) m_PubKeys.erase(it); PutModule("Removed"); Save(); } CString GetKey(Csock *pSock) { CString sRes; long int res = pSock->GetPeerFingerprint(sRes); DEBUG("GetKey() returned status " << res << " with key " << sRes); // This is 'inspired' by charybdis' libratbox switch (res) { case X509_V_OK: case X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN: case X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE: case X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT: return sRes.AsLower(); default: return ""; } } virtual CString GetWebMenuTitle() override { return "certauth"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { CUser *pUser = WebSock.GetSession()->GetUser(); if (sPageName == "index") { MSCString::const_iterator it = m_PubKeys.find(pUser->GetUserName()); if (it != m_PubKeys.end()) { for (SCString::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2) { CTemplate& row = Tmpl.AddRow("KeyLoop"); row["Key"] = *it2; } } return true; } else if (sPageName == "add") { AddKey(pUser, WebSock.GetParam("key")); WebSock.Redirect(GetWebPath()); return true; } else if (sPageName == "delete") { MSCString::iterator it = m_PubKeys.find(pUser->GetUserName()); if (it != m_PubKeys.end()) { if (it->second.erase(WebSock.GetParam("key", false))) { if (it->second.size() == 0) { m_PubKeys.erase(it); } Save(); } } WebSock.Redirect(GetWebPath()); return true; } return false; } private: // Maps user names to a list of allowed pubkeys typedef map > MSCString; MSCString m_PubKeys; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("certauth"); } GLOBALMODULEDEFS(CSSLClientCertMod, "Allow users to authenticate via SSL client certificates.") znc-1.6.3/modules/cyrusauth.cpp0000644000175000017500000001371312663147131016753 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Copyright (C) 2008 Heiko Hund * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * @class CSASLAuthMod * @author Heiko Hund * @brief SASL authentication module for znc. */ #include #include #include class CSASLAuthMod : public CModule { public: MODCONSTRUCTOR(CSASLAuthMod) { m_Cache.SetTTL(60000/*ms*/); m_cbs[0].id = SASL_CB_GETOPT; m_cbs[0].proc = reinterpret_cast(CSASLAuthMod::getopt); m_cbs[0].context = this; m_cbs[1].id = SASL_CB_LIST_END; m_cbs[1].proc = NULL; m_cbs[1].context = NULL; AddHelpCommand(); AddCommand("CreateUser", static_cast(&CSASLAuthMod::CreateUserCommand), "[yes|no]"); AddCommand("CloneUser", static_cast(&CSASLAuthMod::CloneUserCommand), "[username]"); AddCommand("DisableCloneUser", static_cast(&CSASLAuthMod::DisableCloneUserCommand)); } virtual ~CSASLAuthMod() { sasl_done(); } void OnModCommand(const CString& sCommand) override { if (GetUser()->IsAdmin()) { HandleCommand(sCommand); } else { PutModule("Access denied"); } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { VCString vsArgs; VCString::const_iterator it; sArgs.Split(" ", vsArgs, false); for (it = vsArgs.begin(); it != vsArgs.end(); ++it) { if (it->Equals("saslauthd") || it->Equals("auxprop")) { m_sMethod += *it + " "; } else { CUtils::PrintError("Ignoring invalid SASL pwcheck method: " + *it); sMessage = "Ignored invalid SASL pwcheck method"; } } m_sMethod.TrimRight(); if (m_sMethod.empty()) { sMessage = "Need a pwcheck method as argument (saslauthd, auxprop)"; return false; } if (sasl_server_init(NULL, NULL) != SASL_OK) { sMessage = "SASL Could Not Be Initialized - Halting Startup"; return false; } return true; } virtual EModRet OnLoginAttempt(std::shared_ptr Auth) override { const CString& sUsername = Auth->GetUsername(); const CString& sPassword = Auth->GetPassword(); CUser *pUser(CZNC::Get().FindUser(sUsername)); sasl_conn_t *sasl_conn(NULL); bool bSuccess = false; if (!pUser && !CreateUser()) { return CONTINUE; } const CString sCacheKey(CString(sUsername + ":" + sPassword).MD5()); if (m_Cache.HasItem(sCacheKey)) { bSuccess = true; DEBUG("saslauth: Found [" + sUsername + "] in cache"); } else if (sasl_server_new("znc", NULL, NULL, NULL, NULL, m_cbs, 0, &sasl_conn) == SASL_OK && sasl_checkpass(sasl_conn, sUsername.c_str(), sUsername.size(), sPassword.c_str(), sPassword.size()) == SASL_OK) { m_Cache.AddItem(sCacheKey); DEBUG("saslauth: Successful SASL authentication [" + sUsername + "]"); bSuccess = true; } sasl_dispose(&sasl_conn); if (bSuccess) { if (!pUser) { CString sErr; pUser = new CUser(sUsername); if (ShouldCloneUser()) { CUser *pBaseUser = CZNC::Get().FindUser(CloneUser()); if (!pBaseUser) { DEBUG("saslauth: Clone User [" << CloneUser() << "] User not found"); delete pUser; pUser = NULL; } if (pUser && !pUser->Clone(*pBaseUser, sErr)) { DEBUG("saslauth: Clone User [" << CloneUser() << "] failed: " << sErr); delete pUser; pUser = NULL; } } if (pUser) { // "::" is an invalid MD5 hash, so user won't be able to login by usual method pUser->SetPass("::", CUser::HASH_MD5, "::"); } if (pUser && !CZNC::Get().AddUser(pUser, sErr)) { DEBUG("saslauth: Add user [" << sUsername << "] failed: " << sErr); delete pUser; pUser = NULL; } } if (pUser) { Auth->AcceptLogin(*pUser); return HALT; } } return CONTINUE; } const CString& GetMethod() const { return m_sMethod; } void CreateUserCommand(const CString &sLine) { CString sCreate = sLine.Token(1); if (!sCreate.empty()) { SetNV("CreateUser", sCreate); } if (CreateUser()) { PutModule("We will create users on their first login"); } else { PutModule("We will not create users on their first login"); } } void CloneUserCommand(const CString &sLine) { CString sUsername = sLine.Token(1); if (!sUsername.empty()) { SetNV("CloneUser", sUsername); } if (ShouldCloneUser()) { PutModule("We will clone [" + CloneUser() + "]"); } else { PutModule("We will not clone a user"); } } void DisableCloneUserCommand(const CString &sLine) { DelNV("CloneUser"); PutModule("Clone user disabled"); } bool CreateUser() const { return GetNV("CreateUser").ToBool(); } CString CloneUser() const { return GetNV("CloneUser"); } bool ShouldCloneUser() { return !GetNV("CloneUser").empty(); } protected: TCacheMap m_Cache; sasl_callback_t m_cbs[2]; CString m_sMethod; static int getopt(void *context, const char *plugin_name, const char *option, const char **result, unsigned *len) { if (CString(option).Equals("pwcheck_method")) { *result = ((CSASLAuthMod*)context)->GetMethod().c_str(); return SASL_OK; } return SASL_CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("cyrusauth"); Info.SetHasArgs(true); Info.SetArgsHelpText("This global module takes up to two arguments - the methods of authentication - auxprop and saslauthd"); } GLOBALMODULEDEFS(CSASLAuthMod, "Allow users to authenticate via SASL password verification method") znc-1.6.3/modules/adminlog.cpp0000644000175000017500000001235712663147131016521 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include class CAdminLogMod : public CModule { public: MODCONSTRUCTOR(CAdminLogMod) { AddHelpCommand(); AddCommand("Show", static_cast(&CAdminLogMod::OnShowCommand), "", "Show the logging target"); AddCommand("Target", static_cast(&CAdminLogMod::OnTargetCommand), "", "Set the logging target"); openlog("znc", LOG_PID, LOG_DAEMON); } virtual ~CAdminLogMod() { Log("Logging ended."); closelog(); } virtual bool OnLoad(const CString & sArgs, CString & sMessage) override { CString sTarget = GetNV("target"); if (sTarget.Equals("syslog")) m_eLogMode = LOG_TO_SYSLOG; else if (sTarget.Equals("both")) m_eLogMode = LOG_TO_BOTH; else if (sTarget.Equals("file")) m_eLogMode = LOG_TO_FILE; else m_eLogMode = LOG_TO_FILE; m_sLogFile = GetSavePath() + "/znc.log"; Log("Logging started. ZNC PID[" + CString(getpid()) + "] UID/GID[" + CString(getuid()) + ":" + CString(getgid()) + "]"); return true; } virtual void OnIRCConnected() override { Log("[" + GetUser()->GetUserName() + "/" + GetNetwork()->GetName() + "] connected to IRC: " + GetNetwork()->GetCurrentServer()->GetName()); } virtual void OnIRCDisconnected() override { Log("[" + GetUser()->GetUserName() + "/" + GetNetwork()->GetName() + "] disconnected from IRC"); } virtual EModRet OnRaw(CString& sLine) override { if (sLine.Equals("ERROR ", false, 6)) { //ERROR :Closing Link: nick[24.24.24.24] (Excess Flood) //ERROR :Closing Link: nick[24.24.24.24] Killer (Local kill by Killer (reason)) CString sError(sLine.substr(6)); if (sError.Left(1) == ":") sError.LeftChomp(); Log("[" + GetUser()->GetUserName() + "/" + GetNetwork()->GetName() + "] disconnected from IRC: " + GetNetwork()->GetCurrentServer()->GetName() + " [" + sError + "]", LOG_NOTICE); } return CONTINUE; } virtual void OnClientLogin() override { Log("[" + GetUser()->GetUserName() + "] connected to ZNC from " + GetClient()->GetRemoteIP()); } virtual void OnClientDisconnect() override { Log("[" + GetUser()->GetUserName() + "] disconnected from ZNC from " + GetClient()->GetRemoteIP()); } virtual void OnFailedLogin(const CString& sUsername, const CString& sRemoteIP) override { Log("[" + sUsername + "] failed to login from " + sRemoteIP, LOG_WARNING); } void Log(CString sLine, int iPrio = LOG_INFO) { if (m_eLogMode & LOG_TO_SYSLOG) syslog(iPrio, "%s", sLine.c_str()); if (m_eLogMode & LOG_TO_FILE) { time_t curtime; tm* timeinfo; char buf[23]; time(&curtime); timeinfo = localtime(&curtime); strftime(buf,sizeof(buf),"[%Y-%m-%d %H:%M:%S] ",timeinfo); CFile LogFile(m_sLogFile); if (LogFile.Open(O_WRONLY | O_APPEND | O_CREAT)) LogFile.Write(buf + sLine + "\n"); else DEBUG("Failed to write to [" << m_sLogFile << "]: " << strerror(errno)); } } virtual void OnModCommand(const CString& sCommand) override { if (!GetUser()->IsAdmin()) { PutModule("Access denied"); } else { HandleCommand(sCommand); } } void OnTargetCommand(const CString& sCommand) { CString sArg = sCommand.Token(1, true); CString sTarget; CString sMessage; LogMode mode; if (sArg.Equals("file")) { sTarget = "file"; sMessage = "Now only logging to file"; mode = LOG_TO_FILE; } else if (sArg.Equals("syslog")) { sTarget = "syslog"; sMessage = "Now only logging to syslog"; mode = LOG_TO_SYSLOG; } else if (sArg.Equals("both")) { sTarget = "both"; sMessage = "Now logging to file and syslog"; mode = LOG_TO_BOTH; } else { if (sArg.empty()) { PutModule("Usage: Target "); } else { PutModule("Unknown target"); } return; } Log(sMessage); SetNV("target", sTarget); m_eLogMode = mode; PutModule(sMessage); } void OnShowCommand(const CString& sCommand) { CString sTarget; switch (m_eLogMode) { case LOG_TO_FILE: sTarget = "file"; break; case LOG_TO_SYSLOG: sTarget = "syslog"; break; case LOG_TO_BOTH: sTarget = "both, file and syslog"; break; } PutModule("Logging is enabled for " + sTarget); if (m_eLogMode != LOG_TO_SYSLOG) PutModule("Log file will be written to [" + m_sLogFile + "]"); } private: enum LogMode { LOG_TO_FILE = 1 << 0, LOG_TO_SYSLOG = 1 << 1, LOG_TO_BOTH = LOG_TO_FILE | LOG_TO_SYSLOG }; LogMode m_eLogMode = LOG_TO_FILE; CString m_sLogFile; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("adminlog"); } GLOBALMODULEDEFS(CAdminLogMod, "Log ZNC events to file and/or syslog.") znc-1.6.3/modules/sasl.cpp0000644000175000017500000001710612663147131015666 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include static const struct { const char *szName; const char *szDescription; const bool bDefault; } SupportedMechanisms[] = { { "EXTERNAL", "TLS certificate, for use with the *cert module", false }, { "PLAIN", "Plain text negotiation, this should work always if the network supports SASL", true }, { NULL, NULL, false } }; #define NV_REQUIRE_AUTH "require_auth" #define NV_MECHANISMS "mechanisms" class Mechanisms : public VCString { public: void SetIndex(unsigned int uiIndex) { m_uiIndex = uiIndex; } unsigned int GetIndex() const { return m_uiIndex; } bool HasNext() const { return size() > (m_uiIndex + 1); } void IncrementIndex() { m_uiIndex++; } CString GetCurrent() const { return at(m_uiIndex); } CString GetNext() const { if (HasNext()) { return at(m_uiIndex + 1); } return ""; } private: unsigned int m_uiIndex = 0; }; class CSASLMod : public CModule { public: MODCONSTRUCTOR(CSASLMod) { AddCommand("Help", static_cast(&CSASLMod::PrintHelp), "search", "Generate this output"); AddCommand("Set", static_cast(&CSASLMod::Set), " []", "Set username and password for the mechanisms that need them. Password is optional"); AddCommand("Mechanism", static_cast(&CSASLMod::SetMechanismCommand), "[mechanism[ ...]]", "Set the mechanisms to be attempted (in order)"); AddCommand("RequireAuth", static_cast(&CSASLMod::RequireAuthCommand), "[yes|no]", "Don't connect unless SASL authentication succeeds"); AddCommand("Verbose", "yes|no", "Set verbosity level, useful to debug", [&](const CString& sLine) { m_bVerbose = sLine.ToBool(); PutModule("Verbose: " + CString(m_bVerbose)); }); m_bAuthenticated = false; } void PrintHelp(const CString& sLine) { HandleHelpCommand(sLine); CTable Mechanisms; Mechanisms.AddColumn("Mechanism"); Mechanisms.AddColumn("Description"); for (size_t i = 0; SupportedMechanisms[i].szName != NULL; i++) { Mechanisms.AddRow(); Mechanisms.SetCell("Mechanism", SupportedMechanisms[i].szName); Mechanisms.SetCell("Description", SupportedMechanisms[i].szDescription); } PutModule("The following mechanisms are available:"); PutModule(Mechanisms); } void Set(const CString& sLine) { SetNV("username", sLine.Token(1)); SetNV("password", sLine.Token(2)); PutModule("Username has been set to [" + GetNV("username") + "]"); PutModule("Password has been set to [" + GetNV("password") + "]"); } void SetMechanismCommand(const CString& sLine) { CString sMechanisms = sLine.Token(1, true).AsUpper(); if (!sMechanisms.empty()) { VCString vsMechanisms; sMechanisms.Split(" ", vsMechanisms); for (VCString::const_iterator it = vsMechanisms.begin(); it != vsMechanisms.end(); ++it) { if (!SupportsMechanism(*it)) { PutModule("Unsupported mechanism: " + *it); return; } } SetNV(NV_MECHANISMS, sMechanisms); } PutModule("Current mechanisms set: " + GetMechanismsString()); } void RequireAuthCommand(const CString& sLine) { if (!sLine.Token(1).empty()) { SetNV(NV_REQUIRE_AUTH, sLine.Token(1)); } if (GetNV(NV_REQUIRE_AUTH).ToBool()) { PutModule("We require SASL negotiation to connect"); } else { PutModule("We will connect even if SASL fails"); } } bool SupportsMechanism(const CString& sMechanism) const { for (size_t i = 0; SupportedMechanisms[i].szName != NULL; i++) { if (sMechanism.Equals(SupportedMechanisms[i].szName)) { return true; } } return false; } CString GetMechanismsString() const { if (GetNV(NV_MECHANISMS).empty()) { CString sDefaults = ""; for (size_t i = 0; SupportedMechanisms[i].szName != NULL; i++) { if (SupportedMechanisms[i].bDefault) { if (!sDefaults.empty()) { sDefaults += " "; } sDefaults += SupportedMechanisms[i].szName; } } return sDefaults; } return GetNV(NV_MECHANISMS); } void CheckRequireAuth() { if (!m_bAuthenticated && GetNV(NV_REQUIRE_AUTH).ToBool()) { GetNetwork()->SetIRCConnectEnabled(false); PutModule("Disabling network, we require authentication."); PutModule("Use 'RequireAuth no' to disable."); } } void Authenticate(const CString& sLine) { if (m_Mechanisms.GetCurrent().Equals("PLAIN") && sLine.Equals("+")) { CString sAuthLine = GetNV("username") + '\0' + GetNV("username") + '\0' + GetNV("password"); sAuthLine.Base64Encode(); PutIRC("AUTHENTICATE " + sAuthLine); } else { /* Send blank authenticate for other mechanisms (like EXTERNAL). */ PutIRC("AUTHENTICATE +"); } } virtual bool OnServerCapAvailable(const CString& sCap) override { return sCap.Equals("sasl"); } virtual void OnServerCapResult(const CString& sCap, bool bSuccess) override { if (sCap.Equals("sasl")) { if (bSuccess) { GetMechanismsString().Split(" ", m_Mechanisms); if (m_Mechanisms.empty()) { CheckRequireAuth(); return; } GetNetwork()->GetIRCSock()->PauseCap(); m_Mechanisms.SetIndex(0); PutIRC("AUTHENTICATE " + m_Mechanisms.GetCurrent()); } else { CheckRequireAuth(); } } } virtual EModRet OnRaw(CString &sLine) override { if (sLine.Token(0).Equals("AUTHENTICATE")) { Authenticate(sLine.Token(1, true)); } else if (sLine.Token(1).Equals("903")) { /* SASL success! */ if (m_bVerbose) { PutModule(m_Mechanisms.GetCurrent() + " mechanism succeeded."); } GetNetwork()->GetIRCSock()->ResumeCap(); m_bAuthenticated = true; DEBUG("sasl: Authenticated with mechanism [" << m_Mechanisms.GetCurrent() << "]"); } else if (sLine.Token(1).Equals("904") || sLine.Token(1).Equals("905")) { DEBUG("sasl: Mechanism [" << m_Mechanisms.GetCurrent() << "] failed."); if (m_bVerbose) { PutModule(m_Mechanisms.GetCurrent() + " mechanism failed."); } if (m_Mechanisms.HasNext()) { m_Mechanisms.IncrementIndex(); PutIRC("AUTHENTICATE " + m_Mechanisms.GetCurrent()); } else { CheckRequireAuth(); GetNetwork()->GetIRCSock()->ResumeCap(); } } else if (sLine.Token(1).Equals("906")) { /* CAP wasn't paused? */ DEBUG("sasl: Reached 906."); CheckRequireAuth(); } else if (sLine.Token(1).Equals("907")) { m_bAuthenticated = true; GetNetwork()->GetIRCSock()->ResumeCap(); DEBUG("sasl: Received 907 -- We are already registered"); } else { return CONTINUE; } return HALT; } virtual void OnIRCConnected() override { /* Just incase something slipped through, perhaps the server doesn't * respond to our CAP negotiation. */ CheckRequireAuth(); } virtual void OnIRCDisconnected() override { m_bAuthenticated = false; } private: Mechanisms m_Mechanisms; bool m_bAuthenticated; bool m_bVerbose = false; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("sasl"); } NETWORKMODULEDEFS(CSASLMod, "Adds support for sasl authentication capability to authenticate to an IRC server") znc-1.6.3/modules/raw.cpp0000644000175000017500000000233512663147131015513 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include class CRawMod : public CModule { public: MODCONSTRUCTOR(CRawMod) {} virtual ~CRawMod() {} virtual EModRet OnRaw(CString& sLine) override { PutModule("IRC -> [" + sLine + "]"); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) override { PutIRC(sCommand); } virtual EModRet OnUserRaw(CString& sLine) override { PutModule("YOU -> [" + sLine + "]"); return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("raw"); Info.AddType(CModInfo::UserModule); } NETWORKMODULEDEFS(CRawMod, "View all of the raw traffic") znc-1.6.3/modules/clientnotify.cpp0000644000175000017500000001026612663147131017433 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::set; class CClientNotifyMod : public CModule { protected: CString m_sMethod; bool m_bNewOnly{}; bool m_bOnDisconnect{}; set m_sClientsSeen; void SaveSettings() { SetNV("method", m_sMethod); SetNV("newonly", m_bNewOnly ? "1" : "0"); SetNV("ondisconnect", m_bOnDisconnect ? "1" : "0"); } void SendNotification(const CString& sMessage) { if(m_sMethod == "message") { GetUser()->PutStatus(sMessage, NULL, GetClient()); } else if(m_sMethod == "notice") { GetUser()->PutStatusNotice(sMessage, NULL, GetClient()); } } public: MODCONSTRUCTOR(CClientNotifyMod) { AddHelpCommand(); AddCommand("Method", static_cast(&CClientNotifyMod::OnMethodCommand), "", "Sets the notify method"); AddCommand("NewOnly", static_cast(&CClientNotifyMod::OnNewOnlyCommand), "", "Turns notifies for unseen IP addresses only on or off"); AddCommand("OnDisconnect", static_cast(&CClientNotifyMod::OnDisconnectCommand), "", "Turns notifies on disconnecting clients on or off"); AddCommand("Show", static_cast(&CClientNotifyMod::OnShowCommand), "", "Show the current settings"); } bool OnLoad(const CString& sArgs, CString& sMessage) override { m_sMethod = GetNV("method"); if(m_sMethod != "notice" && m_sMethod != "message" && m_sMethod != "off") { m_sMethod = "message"; } // default = off for these: m_bNewOnly = (GetNV("newonly") == "1"); m_bOnDisconnect = (GetNV("ondisconnect") == "1"); return true; } void OnClientLogin() override { CString sRemoteIP = GetClient()->GetRemoteIP(); if(!m_bNewOnly || m_sClientsSeen.find(sRemoteIP) == m_sClientsSeen.end()) { SendNotification("Another client authenticated as your user. " "Use the 'ListClients' command to see all " + CString(GetUser()->GetAllClients().size()) + " clients."); // the set<> will automatically disregard duplicates: m_sClientsSeen.insert(sRemoteIP); } } void OnClientDisconnect() override { if(m_bOnDisconnect) { SendNotification("A client disconnected from your user. " "Use the 'ListClients' command to see the " + CString(GetUser()->GetAllClients().size()) + " remaining client(s)."); } } void OnMethodCommand(const CString& sCommand) { const CString& sArg = sCommand.Token(1, true).AsLower(); if (sArg != "notice" && sArg != "message" && sArg != "off") { PutModule("Usage: Method "); return; } m_sMethod = sArg; SaveSettings(); PutModule("Saved."); } void OnNewOnlyCommand(const CString& sCommand) { const CString& sArg = sCommand.Token(1, true).AsLower(); if (sArg.empty()) { PutModule("Usage: NewOnly "); return; } m_bNewOnly = sArg.ToBool(); SaveSettings(); PutModule("Saved."); } void OnDisconnectCommand(const CString& sCommand) { const CString& sArg = sCommand.Token(1, true).AsLower(); if (sArg.empty()) { PutModule("Usage: OnDisconnect "); return; } m_bOnDisconnect = sArg.ToBool(); SaveSettings(); PutModule("Saved."); } void OnShowCommand(const CString& sLine) { PutModule("Current settings: Method: " + m_sMethod + ", for unseen IP addresses only: " + CString(m_bNewOnly) + ", notify on disconnecting clients: " + CString(m_bOnDisconnect)); } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("clientnotify"); } USERMODULEDEFS(CClientNotifyMod, "Notifies you when another IRC client logs into or out of your account. Configurable.") znc-1.6.3/modules/Makefile.in0000644000175000017500000000600612663147131016262 0ustar somebodysomebodyall: SHELL := @SHELL@ # Support out-of-tree builds srcdir := @srcdir@ VPATH := @srcdir@ prefix := @prefix@ exec_prefix := @exec_prefix@ datarootdir := @datarootdir@ bindir := @bindir@ datadir := @datadir@ sysconfdir := @sysconfdir@ libdir := @libdir@ sbindir := @sbindir@ localstatedir := @localstatedir@ CXX := @CXX@ # CXXFLAGS are for the main binary, so don't use them here, use MODFLAGS instead MODFLAGS := -I$(srcdir)/../include -I../include @CPPFLAGS@ @MODFLAGS@ MODLINK := @MODLINK@ LDFLAGS := @LDFLAGS@ ISCYGWIN := @ISCYGWIN@ # LIBS are not and should not be used in here. # The znc binary links already against those. # ...but not on cygwin! LIBS := ifeq "$(ISCYGWIN)" "1" LIBS += @LIBS@ endif PERL_ON := @PERL@ PERL := @PERL_BINARY@ PYTHON_ON:= @PYTHON@ PY_CFLAGS:= @python_CFLAGS@ PY_LDFLAGS:=@python_LIBS@ SWIG := @SWIG@ MODDIR := @MODDIR@ DATADIR := @DATADIR@ LIBZNC := @LIBZNC@ LIBZNCDIR:= @LIBZNCDIR@ INSTALL := @INSTALL@ INSTALL_PROGRAM := @INSTALL_PROGRAM@ INSTALL_SCRIPT := @INSTALL_SCRIPT@ INSTALL_DATA := @INSTALL_DATA@ SED := @SED@ TCL_FLAGS:= @TCL_FLAGS@ ifneq "$(V)" "" VERBOSE=1 endif ifeq "$(VERBOSE)" "" Q=@ E=@echo C=-s else Q= E=@\# C= endif ifneq "$(LIBZNC)" "" LDFLAGS += -L.. -lznc -Wl,-rpath,$(LIBZNCDIR) endif CLEAN := FILES := $(notdir $(wildcard $(srcdir)/*.cpp)) include $(srcdir)/modperl/Makefile.inc include $(srcdir)/modpython/Makefile.inc include $(srcdir)/modtcl/Makefile.inc FILES := $(basename $(FILES)) ifeq "@NOSSL@" "1" FILES := $(foreach file, $(FILES), \ $(if $(shell grep REQUIRESSL $(srcdir)/$(file).cpp), \ , \ $(basename $(file)) \ )) endif ifeq "@CYRUS@" "" FILES := $(shell echo $(FILES) | sed -e "s:cyrusauth::") endif cyrusauthLDFLAGS := -lsasl2 TARGETS := $(addsuffix .so, $(FILES)) CLEAN += *.so *.o .PHONY: all clean install install_datadir uninstall .SECONDARY: all: $(TARGETS) install: all install_datadir $(INSTALL_PROGRAM) $(TARGETS) $(DESTDIR)$(MODDIR) install_datadir: rm -rf $(DESTDIR)$(DATADIR)/modules test -d $(DESTDIR)$(MODDIR) || $(INSTALL) -d $(DESTDIR)$(MODDIR) test -d $(DESTDIR)$(DATADIR)/modules || $(INSTALL) -d $(DESTDIR)$(DATADIR)/modules rm -rf $(DESTDIR)$(MODDIR)/*.so cp -R $(srcdir)/data/* $(DESTDIR)$(DATADIR)/modules find $(DESTDIR)$(DATADIR)/modules -type d -exec chmod 0755 '{}' \; find $(DESTDIR)$(DATADIR)/modules -type f -exec chmod 0644 '{}' \; clean: rm -rf $(CLEAN) %.o: %.cpp Makefile @mkdir -p .depend $(E) Building module $(notdir $(basename $@))... $(Q)$(CXX) $(MODFLAGS) -c -o $@ $< $($(notdir $(basename $@))CXXFLAGS) -MD -MF .depend/$(notdir $@).dep %.so: %.o Makefile $(E) "Linking module" $(notdir $(basename $@))... $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $($(notdir $(basename $@))LDFLAGS) $(LIBS) uninstall: # Yes, we are lazy, just remove everything in there rm -rf $(DESTDIR)$(MODDIR)/* rm -rf $(DESTDIR)$(DATADIR)/* rmdir $(DESTDIR)$(MODDIR) rmdir $(DESTDIR)$(DATADIR) -include $(wildcard .depend/*.dep) znc-1.6.3/modules/autovoice.cpp0000644000175000017500000002221312663147131016715 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include using std::map; using std::set; class CAutoVoiceUser { public: CAutoVoiceUser() {} CAutoVoiceUser(const CString& sLine) { FromString(sLine); } CAutoVoiceUser(const CString& sUsername, const CString& sHostmask, const CString& sChannels) : m_sUsername(sUsername), m_sHostmask(sHostmask) { AddChans(sChannels); } virtual ~CAutoVoiceUser() {} const CString& GetUsername() const { return m_sUsername; } const CString& GetHostmask() const { return m_sHostmask; } bool ChannelMatches(const CString& sChan) const { for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); ++it) { if (sChan.AsLower().WildCmp(*it)) { return true; } } return false; } bool HostMatches(const CString& sHostmask) { return sHostmask.WildCmp(m_sHostmask); } CString GetChannels() const { CString sRet; for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); ++it) { if (!sRet.empty()) { sRet += " "; } sRet += *it; } return sRet; } void DelChans(const CString& sChans) { VCString vsChans; sChans.Split(" ", vsChans); for (unsigned int a = 0; a < vsChans.size(); a++) { m_ssChans.erase(vsChans[a].AsLower()); } } void AddChans(const CString& sChans) { VCString vsChans; sChans.Split(" ", vsChans); for (unsigned int a = 0; a < vsChans.size(); a++) { m_ssChans.insert(vsChans[a].AsLower()); } } CString ToString() const { CString sChans; for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); ++it) { if (!sChans.empty()) { sChans += " "; } sChans += *it; } return m_sUsername + "\t" + m_sHostmask + "\t" + sChans; } bool FromString(const CString& sLine) { m_sUsername = sLine.Token(0, false, "\t"); m_sHostmask = sLine.Token(1, false, "\t"); sLine.Token(2, false, "\t").Split(" ", m_ssChans); return !m_sHostmask.empty(); } private: protected: CString m_sUsername; CString m_sHostmask; set m_ssChans; }; class CAutoVoiceMod : public CModule { public: MODCONSTRUCTOR(CAutoVoiceMod) { AddHelpCommand(); AddCommand("ListUsers", static_cast(&CAutoVoiceMod::OnListUsersCommand), "", "List all users"); AddCommand("AddChans", static_cast(&CAutoVoiceMod::OnAddChansCommand), " [channel] ...", "Adds channels to a user"); AddCommand("DelChans", static_cast(&CAutoVoiceMod::OnDelChansCommand), " [channel] ...", "Removes channels from a user"); AddCommand("AddUser", static_cast(&CAutoVoiceMod::OnAddUserCommand), " [channels]", "Adds a user"); AddCommand("DelUser", static_cast(&CAutoVoiceMod::OnDelUserCommand), "", "Removes a user"); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { // Load the chans from the command line unsigned int a = 0; VCString vsChans; sArgs.Split(" ", vsChans, false); for (VCString::const_iterator it = vsChans.begin(); it != vsChans.end(); ++it) { CString sName = "Args"; sName += CString(a); AddUser(sName, "*", *it); } // Load the saved users for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { const CString& sLine = it->second; CAutoVoiceUser* pUser = new CAutoVoiceUser; if (!pUser->FromString(sLine) || FindUser(pUser->GetUsername().AsLower())) { delete pUser; } else { m_msUsers[pUser->GetUsername().AsLower()] = pUser; } } return true; } virtual ~CAutoVoiceMod() { for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { delete it->second; } m_msUsers.clear(); } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { // If we have ops in this chan if (Channel.HasPerm(CChan::Op) || Channel.HasPerm(CChan::HalfOp)) { for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { // and the nick who joined is a valid user if (it->second->HostMatches(Nick.GetHostMask()) && it->second->ChannelMatches(Channel.GetName())) { PutIRC("MODE " + Channel.GetName() + " +v " + Nick.GetNick()); break; } } } } void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { if (Nick.NickEquals(GetNetwork()->GetNick())) { const map& msNicks = Channel.GetNicks(); for (const auto& it : msNicks) { if (!it.second.HasPerm(CChan::Voice)) { CheckAutoVoice(it.second, Channel); } } } } bool CheckAutoVoice(const CNick& Nick, CChan& Channel) { CAutoVoiceUser *pUser = FindUserByHost(Nick.GetHostMask(), Channel.GetName()); if (!pUser) { return false; } PutIRC("MODE " + Channel.GetName() + " +v " + Nick.GetNick()); return true; } void OnAddUserCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sHost = sLine.Token(2); if (sHost.empty()) { PutModule("Usage: AddUser [channels]"); } else { CAutoVoiceUser* pUser = AddUser(sUser, sHost, sLine.Token(3, true)); if (pUser) { SetNV(sUser, pUser->ToString()); } } } void OnDelUserCommand(const CString& sLine) { CString sUser = sLine.Token(1); if (sUser.empty()) { PutModule("Usage: DelUser "); } else { DelUser(sUser); DelNV(sUser); } } void OnListUsersCommand(const CString& sLine) { if (m_msUsers.empty()) { PutModule("There are no users defined"); return; } CTable Table; Table.AddColumn("User"); Table.AddColumn("Hostmask"); Table.AddColumn("Channels"); for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { Table.AddRow(); Table.SetCell("User", it->second->GetUsername()); Table.SetCell("Hostmask", it->second->GetHostmask()); Table.SetCell("Channels", it->second->GetChannels()); } PutModule(Table); } void OnAddChansCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sChans = sLine.Token(2, true); if (sChans.empty()) { PutModule("Usage: AddChans [channel] ..."); return; } CAutoVoiceUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } pUser->AddChans(sChans); PutModule("Channel(s) added to user [" + pUser->GetUsername() + "]"); SetNV(pUser->GetUsername(), pUser->ToString()); } void OnDelChansCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sChans = sLine.Token(2, true); if (sChans.empty()) { PutModule("Usage: DelChans [channel] ..."); return; } CAutoVoiceUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } pUser->DelChans(sChans); PutModule("Channel(s) Removed from user [" + pUser->GetUsername() + "]"); SetNV(pUser->GetUsername(), pUser->ToString()); } CAutoVoiceUser* FindUser(const CString& sUser) { map::iterator it = m_msUsers.find(sUser.AsLower()); return (it != m_msUsers.end()) ? it->second : NULL; } CAutoVoiceUser* FindUserByHost(const CString& sHostmask, const CString& sChannel = "") { for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { CAutoVoiceUser* pUser = it->second; if (pUser->HostMatches(sHostmask) && (sChannel.empty() || pUser->ChannelMatches(sChannel))) { return pUser; } } return NULL; } void DelUser(const CString& sUser) { map::iterator it = m_msUsers.find(sUser.AsLower()); if (it == m_msUsers.end()) { PutModule("That user does not exist"); return; } delete it->second; m_msUsers.erase(it); PutModule("User [" + sUser + "] removed"); } CAutoVoiceUser* AddUser(const CString& sUser, const CString& sHost, const CString& sChans) { if (m_msUsers.find(sUser) != m_msUsers.end()) { PutModule("That user already exists"); return NULL; } CAutoVoiceUser* pUser = new CAutoVoiceUser(sUser, sHost, sChans); m_msUsers[sUser.AsLower()] = pUser; PutModule("User [" + sUser + "] added with hostmask [" + sHost + "]"); return pUser; } private: map m_msUsers; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("autovoice"); Info.SetHasArgs(true); Info.SetArgsHelpText("Each argument is either a channel you want autovoice for (which can include wildcards) or, if it starts with !, it is an exception for autovoice."); } NETWORKMODULEDEFS(CAutoVoiceMod, "Auto voice the good people") znc-1.6.3/modules/buffextras.cpp0000644000175000017500000000567412663147131017104 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; class CBuffExtras : public CModule { public: MODCONSTRUCTOR(CBuffExtras) {} virtual ~CBuffExtras() {} void AddBuffer(CChan& Channel, const CString& sMessage) { // If they have AutoClearChanBuffer enabled, only add messages if no client is connected if (Channel.AutoClearChanBuffer() && GetNetwork()->IsUserOnline()) return; Channel.AddBuffer(":" + GetModNick() + "!" + GetModName() + "@znc.in PRIVMSG " + _NAMEDFMT(Channel.GetName()) + " :{text}", sMessage); } virtual void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) override { const CString sNickMask = pOpNick ? pOpNick->GetNickMask() : "Server"; AddBuffer(Channel, sNickMask + " set mode: " + sModes + " " + sArgs); } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override { AddBuffer(Channel, OpNick.GetNickMask() + " kicked " + sKickedNick + " Reason: [" + sMessage + "]"); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override { vector::const_iterator it; CString sMsg = Nick.GetNickMask() + " quit with message: [" + sMessage + "]"; for (it = vChans.begin(); it != vChans.end(); ++it) { AddBuffer(**it, sMsg); } } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { AddBuffer(Channel, Nick.GetNickMask() + " joined"); } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override { AddBuffer(Channel, Nick.GetNickMask() + " parted with message: [" + sMessage + "]"); } virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) override { vector::const_iterator it; CString sMsg = OldNick.GetNickMask() + " is now known as " + sNewNick; for (it = vChans.begin(); it != vChans.end(); ++it) { AddBuffer(**it, sMsg); } } virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) override { AddBuffer(Channel, Nick.GetNickMask() + " changed the topic to: " + sTopic); return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("buffextras"); Info.AddType(CModInfo::NetworkModule); } USERMODULEDEFS(CBuffExtras, "Add joins, parts etc. to the playback buffer") znc-1.6.3/modules/autoop.cpp0000644000175000017500000004033712663147131016235 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::map; using std::set; using std::vector; class CAutoOpMod; #define AUTOOP_CHALLENGE_LENGTH 32 class CAutoOpTimer : public CTimer { public: CAutoOpTimer(CAutoOpMod* pModule) : CTimer((CModule*) pModule, 20, 0, "AutoOpChecker", "Check channels for auto op candidates") { m_pParent = pModule; } virtual ~CAutoOpTimer() {} private: protected: virtual void RunJob() override; CAutoOpMod* m_pParent; }; class CAutoOpUser { public: CAutoOpUser() {} CAutoOpUser(const CString& sLine) { FromString(sLine); } CAutoOpUser(const CString& sUsername, const CString& sUserKey, const CString& sHostmasks, const CString& sChannels) : m_sUsername(sUsername), m_sUserKey(sUserKey) { AddHostmasks(sHostmasks); AddChans(sChannels); } virtual ~CAutoOpUser() {} const CString& GetUsername() const { return m_sUsername; } const CString& GetUserKey() const { return m_sUserKey; } bool ChannelMatches(const CString& sChan) const { for (set::const_iterator it = m_ssChans.begin(); it != m_ssChans.end(); ++it) { if (sChan.AsLower().WildCmp(*it)) { return true; } } return false; } bool HostMatches(const CString& sHostmask) { for (set::const_iterator it = m_ssHostmasks.begin(); it != m_ssHostmasks.end(); ++it) { if (sHostmask.WildCmp(*it)) { return true; } } return false; } CString GetHostmasks() const { return CString(",").Join(m_ssHostmasks.begin(), m_ssHostmasks.end()); } CString GetChannels() const { return CString(" ").Join(m_ssChans.begin(), m_ssChans.end()); } bool DelHostmasks(const CString& sHostmasks) { VCString vsHostmasks; sHostmasks.Split(",", vsHostmasks); for (unsigned int a = 0; a < vsHostmasks.size(); a++) { m_ssHostmasks.erase(vsHostmasks[a]); } return m_ssHostmasks.empty(); } void AddHostmasks(const CString& sHostmasks) { VCString vsHostmasks; sHostmasks.Split(",", vsHostmasks); for (unsigned int a = 0; a < vsHostmasks.size(); a++) { m_ssHostmasks.insert(vsHostmasks[a]); } } void DelChans(const CString& sChans) { VCString vsChans; sChans.Split(" ", vsChans); for (unsigned int a = 0; a < vsChans.size(); a++) { m_ssChans.erase(vsChans[a].AsLower()); } } void AddChans(const CString& sChans) { VCString vsChans; sChans.Split(" ", vsChans); for (unsigned int a = 0; a < vsChans.size(); a++) { m_ssChans.insert(vsChans[a].AsLower()); } } CString ToString() const { return m_sUsername + "\t" + GetHostmasks() + "\t" + m_sUserKey + "\t" + GetChannels(); } bool FromString(const CString& sLine) { m_sUsername = sLine.Token(0, false, "\t"); sLine.Token(1, false, "\t").Split(",", m_ssHostmasks); m_sUserKey = sLine.Token(2, false, "\t"); sLine.Token(3, false, "\t").Split(" ", m_ssChans); return !m_sUserKey.empty(); } private: protected: CString m_sUsername; CString m_sUserKey; set m_ssHostmasks; set m_ssChans; }; class CAutoOpMod : public CModule { public: MODCONSTRUCTOR(CAutoOpMod) { AddHelpCommand(); AddCommand("ListUsers", static_cast(&CAutoOpMod::OnListUsersCommand), "", "List all users"); AddCommand("AddChans", static_cast(&CAutoOpMod::OnAddChansCommand), " [channel] ...", "Adds channels to a user"); AddCommand("DelChans", static_cast(&CAutoOpMod::OnDelChansCommand), " [channel] ...", "Removes channels from a user"); AddCommand("AddMasks", static_cast(&CAutoOpMod::OnAddMasksCommand), " ,[mask] ...", "Adds masks to a user"); AddCommand("DelMasks", static_cast(&CAutoOpMod::OnDelMasksCommand), " ,[mask] ...", "Removes masks from a user"); AddCommand("AddUser", static_cast(&CAutoOpMod::OnAddUserCommand), " [,...] [channels]", "Adds a user"); AddCommand("DelUser", static_cast(&CAutoOpMod::OnDelUserCommand), "", "Removes a user"); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { AddTimer(new CAutoOpTimer(this)); // Load the users for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { const CString& sLine = it->second; CAutoOpUser* pUser = new CAutoOpUser; if (!pUser->FromString(sLine) || FindUser(pUser->GetUsername().AsLower())) { delete pUser; } else { m_msUsers[pUser->GetUsername().AsLower()] = pUser; } } return true; } virtual ~CAutoOpMod() { for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { delete it->second; } m_msUsers.clear(); } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { // If we have ops in this chan if (Channel.HasPerm(CChan::Op)) { CheckAutoOp(Nick, Channel); } } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override { MCString::iterator it = m_msQueue.find(Nick.GetNick().AsLower()); if (it != m_msQueue.end()) { m_msQueue.erase(it); } } virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) override { // Update the queue with nick changes MCString::iterator it = m_msQueue.find(OldNick.GetNick().AsLower()); if (it != m_msQueue.end()) { m_msQueue[sNewNick.AsLower()] = it->second; m_msQueue.erase(it); } } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override { if (!sMessage.Token(0).Equals("!ZNCAO")) { return CONTINUE; } CString sCommand = sMessage.Token(1); if (sCommand.Equals("CHALLENGE")) { ChallengeRespond(Nick, sMessage.Token(2)); } else if (sCommand.Equals("RESPONSE")) { VerifyResponse(Nick, sMessage.Token(2)); } return HALTCORE; } virtual void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { if (Nick.GetNick() == GetNetwork()->GetIRCNick().GetNick()) { const map& msNicks = Channel.GetNicks(); for (map::const_iterator it = msNicks.begin(); it != msNicks.end(); ++it) { if (!it->second.HasPerm(CChan::Op)) { CheckAutoOp(it->second, Channel); } } } } void OnModCommand(const CString& sLine) override { CString sCommand = sLine.Token(0).AsUpper(); if (sCommand.Equals("TIMERS")) { // for testing purposes - hidden from help ListTimers(); } else { HandleCommand(sLine); } } void OnAddUserCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sHost = sLine.Token(2); CString sKey = sLine.Token(3); if (sHost.empty()) { PutModule("Usage: AddUser [,...] [channels]"); } else { CAutoOpUser* pUser = AddUser(sUser, sKey, sHost, sLine.Token(4, true)); if (pUser) { SetNV(sUser, pUser->ToString()); } } } void OnDelUserCommand(const CString& sLine) { CString sUser = sLine.Token(1); if (sUser.empty()) { PutModule("Usage: DelUser "); } else { DelUser(sUser); DelNV(sUser); } } void OnListUsersCommand(const CString& sLine) { if (m_msUsers.empty()) { PutModule("There are no users defined"); return; } CTable Table; Table.AddColumn("User"); Table.AddColumn("Hostmasks"); Table.AddColumn("Key"); Table.AddColumn("Channels"); for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { VCString vsHostmasks; it->second->GetHostmasks().Split(",", vsHostmasks); for (unsigned int a = 0; a < vsHostmasks.size(); a++) { Table.AddRow(); if (a == 0) { Table.SetCell("User", it->second->GetUsername()); Table.SetCell("Key", it->second->GetUserKey()); Table.SetCell("Channels", it->second->GetChannels()); } else if (a == vsHostmasks.size()-1) { Table.SetCell("User", "`-"); } else { Table.SetCell("User", "|-"); } Table.SetCell("Hostmasks", vsHostmasks[a]); } } PutModule(Table); } void OnAddChansCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sChans = sLine.Token(2, true); if (sChans.empty()) { PutModule("Usage: AddChans [channel] ..."); return; } CAutoOpUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } pUser->AddChans(sChans); PutModule("Channel(s) added to user [" + pUser->GetUsername() + "]"); SetNV(pUser->GetUsername(), pUser->ToString()); } void OnDelChansCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sChans = sLine.Token(2, true); if (sChans.empty()) { PutModule("Usage: DelChans [channel] ..."); return; } CAutoOpUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } pUser->DelChans(sChans); PutModule("Channel(s) Removed from user [" + pUser->GetUsername() + "]"); SetNV(pUser->GetUsername(), pUser->ToString()); } void OnAddMasksCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sHostmasks = sLine.Token(2, true); if (sHostmasks.empty()) { PutModule("Usage: AddMasks ,[mask] ..."); return; } CAutoOpUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } pUser->AddHostmasks(sHostmasks); PutModule("Hostmasks(s) added to user [" + pUser->GetUsername() + "]"); SetNV(pUser->GetUsername(), pUser->ToString()); } void OnDelMasksCommand(const CString& sLine) { CString sUser = sLine.Token(1); CString sHostmasks = sLine.Token(2, true); if (sHostmasks.empty()) { PutModule("Usage: DelMasks ,[mask] ..."); return; } CAutoOpUser* pUser = FindUser(sUser); if (!pUser) { PutModule("No such user"); return; } if (pUser->DelHostmasks(sHostmasks)) { PutModule("Removed user [" + pUser->GetUsername() + "] with key [" + pUser->GetUserKey() + "] and channels [" + pUser->GetChannels() + "]"); DelUser(sUser); DelNV(sUser); } else { PutModule("Hostmasks(s) Removed from user [" + pUser->GetUsername() + "]"); SetNV(pUser->GetUsername(), pUser->ToString()); } } CAutoOpUser* FindUser(const CString& sUser) { map::iterator it = m_msUsers.find(sUser.AsLower()); return (it != m_msUsers.end()) ? it->second : NULL; } CAutoOpUser* FindUserByHost(const CString& sHostmask, const CString& sChannel = "") { for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { CAutoOpUser* pUser = it->second; if (pUser->HostMatches(sHostmask) && (sChannel.empty() || pUser->ChannelMatches(sChannel))) { return pUser; } } return NULL; } bool CheckAutoOp(const CNick& Nick, CChan& Channel) { CAutoOpUser *pUser = FindUserByHost(Nick.GetHostMask(), Channel.GetName()); if (!pUser) { return false; } if (pUser->GetUserKey().Equals("__NOKEY__")) { PutIRC("MODE " + Channel.GetName() + " +o " + Nick.GetNick()); } else { // then insert this nick into the queue, the timer does the rest CString sNick = Nick.GetNick().AsLower(); if (m_msQueue.find(sNick) == m_msQueue.end()) { m_msQueue[sNick] = ""; } } return true; } void DelUser(const CString& sUser) { map::iterator it = m_msUsers.find(sUser.AsLower()); if (it == m_msUsers.end()) { PutModule("That user does not exist"); return; } delete it->second; m_msUsers.erase(it); PutModule("User [" + sUser + "] removed"); } CAutoOpUser* AddUser(const CString& sUser, const CString& sKey, const CString& sHosts, const CString& sChans) { if (m_msUsers.find(sUser) != m_msUsers.end()) { PutModule("That user already exists"); return NULL; } CAutoOpUser* pUser = new CAutoOpUser(sUser, sKey, sHosts, sChans); m_msUsers[sUser.AsLower()] = pUser; PutModule("User [" + sUser + "] added with hostmask(s) [" + sHosts + "]"); return pUser; } bool ChallengeRespond(const CNick& Nick, const CString& sChallenge) { // Validate before responding - don't blindly trust everyone bool bValid = false; bool bMatchedHost = false; CAutoOpUser* pUser = NULL; for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { pUser = it->second; // First verify that the person who challenged us matches a user's host if (pUser->HostMatches(Nick.GetHostMask())) { const vector& Chans = GetNetwork()->GetChans(); bMatchedHost = true; // Also verify that they are opped in at least one of the user's chans for (size_t a = 0; a < Chans.size(); a++) { const CChan& Chan = *Chans[a]; const CNick* pNick = Chan.FindNick(Nick.GetNick()); if (pNick) { if (pNick->HasPerm(CChan::Op) && pUser->ChannelMatches(Chan.GetName())) { bValid = true; break; } } } if (bValid) { break; } } } if (!bValid) { if (bMatchedHost) { PutModule("[" + Nick.GetHostMask() + "] sent us a challenge but they are not opped in any defined channels."); } else { PutModule("[" + Nick.GetHostMask() + "] sent us a challenge but they do not match a defined user."); } return false; } if (sChallenge.length() != AUTOOP_CHALLENGE_LENGTH) { PutModule("WARNING! [" + Nick.GetHostMask() + "] sent an invalid challenge."); return false; } CString sResponse = pUser->GetUserKey() + "::" + sChallenge; PutIRC("NOTICE " + Nick.GetNick() + " :!ZNCAO RESPONSE " + sResponse.MD5()); return false; } bool VerifyResponse(const CNick& Nick, const CString& sResponse) { MCString::iterator itQueue = m_msQueue.find(Nick.GetNick().AsLower()); if (itQueue == m_msQueue.end()) { PutModule("[" + Nick.GetHostMask() + "] sent an unchallenged response. This could be due to lag."); return false; } CString sChallenge = itQueue->second; m_msQueue.erase(itQueue); for (map::iterator it = m_msUsers.begin(); it != m_msUsers.end(); ++it) { if (it->second->HostMatches(Nick.GetHostMask())) { if (sResponse == CString(it->second->GetUserKey() + "::" + sChallenge).MD5()) { OpUser(Nick, *it->second); return true; } else { PutModule("WARNING! [" + Nick.GetHostMask() + "] sent a bad response. Please verify that you have their correct password."); return false; } } } PutModule("WARNING! [" + Nick.GetHostMask() + "] sent a response but did not match any defined users."); return false; } void ProcessQueue() { bool bRemoved = true; // First remove any stale challenges while (bRemoved) { bRemoved = false; for (MCString::iterator it = m_msQueue.begin(); it != m_msQueue.end(); ++it) { if (!it->second.empty()) { m_msQueue.erase(it); bRemoved = true; break; } } } // Now issue challenges for the new users in the queue for (MCString::iterator it = m_msQueue.begin(); it != m_msQueue.end(); ++it) { it->second = CString::RandomString(AUTOOP_CHALLENGE_LENGTH); PutIRC("NOTICE " + it->first + " :!ZNCAO CHALLENGE " + it->second); } } void OpUser(const CNick& Nick, const CAutoOpUser& User) { const vector& Chans = GetNetwork()->GetChans(); for (size_t a = 0; a < Chans.size(); a++) { const CChan& Chan = *Chans[a]; if (Chan.HasPerm(CChan::Op) && User.ChannelMatches(Chan.GetName())) { const CNick* pNick = Chan.FindNick(Nick.GetNick()); if (pNick && !pNick->HasPerm(CChan::Op)) { PutIRC("MODE " + Chan.GetName() + " +o " + Nick.GetNick()); } } } } private: map m_msUsers; MCString m_msQueue; }; void CAutoOpTimer::RunJob() { m_pParent->ProcessQueue(); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("autoop"); } NETWORKMODULEDEFS(CAutoOpMod, "Auto op the good people") znc-1.6.3/modules/modperl.cpp0000644000175000017500000002131412663147131016362 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include #include #include "modperl/module.h" #include "modperl/swigperlrun.h" #include #include #include #if defined(__APPLE__) && defined(__MACH__) #include // for _NSGetEnviron #endif #include "modperl/pstring.h" using std::set; using std::vector; // Allows perl to load .so files when needed by .pm // For example, it needs to load ZNC.so extern "C" { void boot_DynaLoader (pTHX_ CV* cv); static void xs_init(pTHX) { newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, __FILE__); } } class CModPerl: public CModule { PerlInterpreter *m_pPerl; public: MODCONSTRUCTOR(CModPerl) { m_pPerl = NULL; } #define PSTART dSP; I32 ax; int ret = 0; ENTER; SAVETMPS; PUSHMARK(SP) #define PCALL(name) PUTBACK; ret = call_pv(name, G_EVAL|G_ARRAY); SPAGAIN; SP -= ret; ax = (SP - PL_stack_base) + 1 #define PEND ax += 0; PUTBACK; FREETMPS; LEAVE #define PUSH_STR(s) XPUSHs(PString(s).GetSV()) #define PUSH_PTR(type, p) XPUSHs(SWIG_NewInstanceObj(const_cast(p), SWIG_TypeQuery(#type), SWIG_SHADOW)) bool OnLoad(const CString& sArgsi, CString& sMessage) override { CString sModPath, sTmp; if (!CModules::FindModPath("modperl/startup.pl", sModPath, sTmp)) { sMessage = "startup.pl not found."; return false; } sTmp = CDir::ChangeDir(sModPath, ".."); int argc = 6; char *pArgv[] = {"", "-T", "-w", "-I", const_cast(sTmp.c_str()), const_cast(sModPath.c_str()), NULL}; char **argv = pArgv; char *** const pEnviron = #if defined(__APPLE__) && defined(__MACH__) _NSGetEnviron(); #else &environ; #endif PERL_SYS_INIT3(&argc, &argv, pEnviron); m_pPerl = perl_alloc(); perl_construct(m_pPerl); if (perl_parse(m_pPerl, xs_init, argc, argv, *pEnviron)) { sMessage = "Can't initialize perl. "; if (SvTRUE(ERRSV)) { sMessage += PString(ERRSV); } perl_free(m_pPerl); PERL_SYS_TERM(); m_pPerl = NULL; DEBUG(__PRETTY_FUNCTION__ << " can't init perl"); return false; } PL_exit_flags |= PERL_EXIT_DESTRUCT_END; PSTART; PCALL("ZNC::Core::Init"); PEND; return true; } virtual EModRet OnModuleLoading(const CString& sModName, const CString& sArgs, CModInfo::EModuleType eType, bool& bSuccess, CString& sRetMsg) override { EModRet result = HALT; PSTART; PUSH_STR(sModName); PUSH_STR(sArgs); mXPUSHi(eType); PUSH_PTR(CUser*, GetUser()); PUSH_PTR(CIRCNetwork*, GetNetwork()); PCALL("ZNC::Core::LoadModule"); if (SvTRUE(ERRSV)) { sRetMsg = PString(ERRSV); bSuccess = false; result = HALT; DEBUG("Perl ZNC::Core::LoadModule died: " << sRetMsg); } else if (ret < 1 || 2 < ret) { sRetMsg = "Error: Perl ZNC::Core::LoadModule returned " + CString(ret) + " values."; bSuccess = false; result = HALT; } else { ELoadPerlMod eLPM = static_cast(SvUV(ST(0))); if (Perl_NotFound == eLPM) { result = CONTINUE; // Not a Perl module } else { sRetMsg = PString(ST(1)); result = HALT; bSuccess = eLPM == Perl_Loaded; } } PEND; return result; } virtual EModRet OnModuleUnloading(CModule* pModule, bool& bSuccess, CString& sRetMsg) override { CPerlModule* pMod = AsPerlModule(pModule); if (pMod) { EModRet result = HALT; CString sModName = pMod->GetModName(); PSTART; XPUSHs(pMod->GetPerlObj()); PCALL("ZNC::Core::UnloadModule"); if (SvTRUE(ERRSV)) { bSuccess = false; sRetMsg = PString(ERRSV); } else if (ret < 1 || 2 < ret) { sRetMsg = "Error: Perl ZNC::Core::UnloadModule returned " + CString(ret) + " values."; bSuccess = false; result = HALT; } else { int bUnloaded = SvUV(ST(0)); if (bUnloaded) { bSuccess = true; sRetMsg = "Module [" + sModName + "] unloaded"; result = HALT; } else { result = CONTINUE; // module wasn't loaded by modperl. Perhaps a module-provider written in perl did that. } } PEND; DEBUG(__PRETTY_FUNCTION__ << " " << sRetMsg); return result; } return CONTINUE; } virtual EModRet OnGetModInfo(CModInfo& ModInfo, const CString& sModule, bool& bSuccess, CString& sRetMsg) override { PSTART; PUSH_STR(sModule); PUSH_PTR(CModInfo*, &ModInfo); PCALL("ZNC::Core::GetModInfo"); EModRet result = CONTINUE; if (SvTRUE(ERRSV)) { bSuccess = false; sRetMsg = PString(ERRSV); DEBUG("Perl ZNC::Core::GetModInfo died: " << sRetMsg); } else if (0 < ret) { switch(static_cast(SvUV(ST(0)))) { case Perl_NotFound: result = CONTINUE; break; case Perl_Loaded: result = HALT; if (1 == ret) { bSuccess = true; } else { bSuccess = false; sRetMsg = "Something weird happened"; } break; case Perl_LoadError: result = HALT; bSuccess = false; if (2 == ret) { sRetMsg = PString(ST(1)); } else { sRetMsg = "Something weird happened"; } } } else { result = HALT; bSuccess = false; sRetMsg = "Something weird happened"; } PEND; return result; } virtual void OnGetAvailableMods(set& ssMods, CModInfo::EModuleType eType) override { unsigned int a = 0; CDir Dir; CModules::ModDirList dirs = CModules::GetModDirs(); while (!dirs.empty()) { Dir.FillByWildcard(dirs.front().first, "*.pm"); dirs.pop(); for (a = 0; a < Dir.size(); a++) { CFile& File = *Dir[a]; CString sName = File.GetShortName(); CString sPath = File.GetLongName(); CModInfo ModInfo; sName.RightChomp(3); PSTART; PUSH_STR(sPath); PUSH_STR(sName); PUSH_PTR(CModInfo*, &ModInfo); PCALL("ZNC::Core::ModInfoByPath"); if (SvTRUE(ERRSV)) { DEBUG(__PRETTY_FUNCTION__ << ": " << sPath << ": " << PString(ERRSV)); } else if (ModInfo.SupportsType(eType)) { ssMods.insert(ModInfo); } PEND; } } } virtual ~CModPerl() { if (m_pPerl) { PSTART; PCALL("ZNC::Core::UnloadAll"); PEND; perl_destruct(m_pPerl); perl_free(m_pPerl); PERL_SYS_TERM(); } } }; #include "modperl/functions.cpp" VWebSubPages& CPerlModule::GetSubPages() { VWebSubPages* result = _GetSubPages(); if (!result) { return CModule::GetSubPages(); } return *result; } void CPerlTimer::RunJob() { CPerlModule* pMod = AsPerlModule(GetModule()); if (pMod) { PSTART; XPUSHs(GetPerlObj()); PCALL("ZNC::Core::CallTimer"); PEND; } } CPerlTimer::~CPerlTimer() { CPerlModule* pMod = AsPerlModule(GetModule()); if (pMod) { PSTART; XPUSHs(sv_2mortal(m_perlObj)); PCALL("ZNC::Core::RemoveTimer"); PEND; } } #define SOCKSTART PSTART; XPUSHs(GetPerlObj()) #define SOCKCBCHECK(OnSuccess) PCALL("ZNC::Core::CallSocket"); if (SvTRUE(ERRSV)) { Close(); DEBUG("Perl socket hook died with: " + PString(ERRSV)); } else { OnSuccess; } PEND #define CBSOCK(Func) void CPerlSocket::Func() {\ CPerlModule* pMod = AsPerlModule(GetModule());\ if (pMod) {\ SOCKSTART;\ PUSH_STR("On" #Func);\ SOCKCBCHECK();\ }\ } CBSOCK(Connected); CBSOCK(Disconnected); CBSOCK(Timeout); CBSOCK(ConnectionRefused); void CPerlSocket::ReadData(const char *data, size_t len) { CPerlModule* pMod = AsPerlModule(GetModule()); if (pMod) { SOCKSTART; PUSH_STR("OnReadData"); XPUSHs(sv_2mortal(newSVpvn(data, len))); mXPUSHi(len); SOCKCBCHECK(); } } void CPerlSocket::ReadLine(const CString& sLine) { CPerlModule* pMod = AsPerlModule(GetModule()); if (pMod) { SOCKSTART; PUSH_STR("OnReadLine"); PUSH_STR(sLine); SOCKCBCHECK(); } } Csock* CPerlSocket::GetSockObj(const CString& sHost, unsigned short uPort) { CPerlModule* pMod = AsPerlModule(GetModule()); Csock* result = NULL; if (pMod) { SOCKSTART; PUSH_STR("_Accepted"); PUSH_STR(sHost); mXPUSHi(uPort); SOCKCBCHECK( result = SvToPtr("CPerlSocket*")(ST(0)); ); } return result; } CPerlSocket::~CPerlSocket() { CPerlModule* pMod = AsPerlModule(GetModule()); if (pMod) { PSTART; XPUSHs(sv_2mortal(m_perlObj)); PCALL("ZNC::Core::RemoveSocket"); PEND; } } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("modperl"); } GLOBALMODULEDEFS(CModPerl, "Loads perl scripts as ZNC modules") znc-1.6.3/modules/modperl/0000755000175000017500000000000012663147136015662 5ustar somebodysomebodyznc-1.6.3/modules/modperl/Makefile.inc0000644000175000017500000000506712663147131020075 0ustar somebodysomebody# vim: filetype=make ifeq "$(PERL_ON)" "yes" # We execute this now so that we see the 'beauty' of these flags in make's output PERL_CXX := $(shell $(PERL) -MExtUtils::Embed -e perl_inc) PERL_LD := $(shell $(PERL) -MExtUtils::Embed -e ldopts) # Perl API is ugly, casting string literals to char* and redeclaring functions :( PERL_CXX += -Wno-write-strings -Wno-redundant-decls -Wno-missing-declarations PERL_CXX += -Wno-type-limits -Wno-sign-compare -Wno-strict-overflow -Wno-unused-value # perl 5.20 will fix this warning: https://rt.perl.org/Public/Bug/Display.html?id=120670 PERL_CXX += -Wno-reserved-user-defined-literal -Wno-literal-suffix # This is for SWIG PERL_CXX += -DSWIG_TYPE_TABLE=znc PERLCEXT_EXT := $(shell $(PERL) -MConfig -e'print $$Config::Config{dlext}') modperlCXXFLAGS := $(PERL_CXX) -Wno-unused-function modperlLDFLAGS := $(PERL_LD) # Find additional headers for out-of-tree build modperlCXXFLAGS += -I. ifeq "$(ISCYGWIN)" "1" PERLDEPONMOD := modperl.so else PERLDEPONMOD := endif PERLHOOK := modperl_install CLEAN += modperl/ZNC.$(PERLCEXT_EXT) modperl/ZNC.o modperl/gen ifneq "$(SWIG)" "" # Only delete these files if we can regenerate them CLEAN += modperl/ZNC.pm modperl/swigperlrun.h modperl/ZNC.cpp modperl/functions.cpp endif all: modperl_all else FILES := $(shell echo $(FILES) | sed -e "s/modperl//") endif .PHONY: modperl_install modperl_all install: $(PERLHOOK) modperl_all: modperl/ZNC.$(PERLCEXT_EXT) modperl/swigperlrun.h modperl/functions.cpp modperl/ZNC.$(PERLCEXT_EXT): modperl/ZNC.o Makefile modperl.so $(E) Linking ZNC Perl bindings library... $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -o $@ $< $(PERL_LD) $(PERLDEPONMOD) modperl/ZNC.o: modperl/ZNC.cpp Makefile @mkdir -p modperl @mkdir -p .depend $(E) Building ZNC Perl bindings library... $(Q)$(CXX) $(MODFLAGS) -I$(srcdir) -MD -MF .depend/modperl.library.dep $(PERL_CXX) -Wno-unused-variable -Wno-shadow -o $@ $< -c ifneq "$(SWIG)" "" include $(srcdir)/modperl/Makefile.gen endif modperl.o: modperl/functions.cpp modperl/swigperlrun.h modperl_install: install_datadir modperl_all for i in $(wildcard $(srcdir)/*.pm); do \ $(INSTALL_DATA) $$i $(DESTDIR)$(MODDIR); \ done mkdir -p $(DESTDIR)$(MODDIR)/modperl $(INSTALL_PROGRAM) modperl/ZNC.$(PERLCEXT_EXT) $(DESTDIR)$(MODDIR)/modperl if test -e modperl/ZNC.pm ; then \ $(INSTALL_DATA) modperl/ZNC.pm $(DESTDIR)$(MODDIR)/modperl || exit 1 ; \ else \ $(INSTALL_DATA) $(srcdir)/modperl/ZNC.pm $(DESTDIR)$(MODDIR)/modperl || exit 1 ; \ fi $(INSTALL_DATA) $(srcdir)/modperl/startup.pl $(DESTDIR)$(MODDIR)/modperl znc-1.6.3/modules/modperl/functions.cpp0000644000175000017500000005154112663147136020404 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /*************************************************************************** * This file is generated automatically using codegen.pl from functions.in * * Don't change it manually. * ***************************************************************************/ /*#include "module.h" #include "swigperlrun.h" #include #include #include #include "pstring.h"*/ namespace { template struct SvToPtr { CString m_sType; SvToPtr(const CString& sType) { m_sType = sType; } T* operator()(SV* sv) { T* result; int res = SWIG_ConvertPtr(sv, (void**)&result, SWIG_TypeQuery(m_sType.c_str()), 0); if (SWIG_IsOK(res)) { return result; } return NULL; } }; CModule::EModRet SvToEModRet(SV* sv) { return static_cast(SvUV(sv)); } } /* #define PSTART dSP; I32 ax; int ret = 0; ENTER; SAVETMPS; PUSHMARK(SP) #define PCALL(name) PUTBACK; ret = call_pv(name, G_EVAL|G_ARRAY); SPAGAIN; SP -= ret; ax = (SP - PL_stack_base) + 1 #define PEND PUTBACK; FREETMPS; LEAVE #define PUSH_STR(s) XPUSHs(PString(s).GetSV()) #define PUSH_PTR(type, p) XPUSHs(SWIG_NewInstanceObj(const_cast(p), SWIG_TypeQuery(#type), SWIG_SHADOW)) */ #define PSTART_IDF(Func) PSTART; XPUSHs(GetPerlObj()); PUSH_STR(#Func) #define PCALLMOD(Error, Success) PCALL("ZNC::Core::CallModFunc"); if (SvTRUE(ERRSV)) { DEBUG("Perl hook died with: " + PString(ERRSV)); Error; } else { Success; } PEND bool CPerlModule::OnBoot() { bool result = true; PSTART_IDF(OnBoot); mXPUSHi(static_cast(true)); // Default value PCALLMOD(, result = SvIV(ST(0)); ); return result; } bool CPerlModule::WebRequiresLogin() { bool result = true; PSTART_IDF(WebRequiresLogin); mXPUSHi(static_cast(true)); // Default value PCALLMOD(, result = SvIV(ST(0)); ); return result; } bool CPerlModule::WebRequiresAdmin() { bool result = false; PSTART_IDF(WebRequiresAdmin); mXPUSHi(static_cast(false)); // Default value PCALLMOD(, result = SvIV(ST(0)); ); return result; } CString CPerlModule::GetWebMenuTitle() { CString result = ""; PSTART_IDF(GetWebMenuTitle); PUSH_STR(""); // Default value PCALLMOD(, result = PString(ST(0)); ); return result; } bool CPerlModule::OnWebPreRequest(CWebSock& WebSock, const CString& sPageName) { bool result = false; PSTART_IDF(OnWebPreRequest); mXPUSHi(static_cast(false)); // Default value PUSH_PTR(CWebSock*, &WebSock); PUSH_STR(sPageName); PCALLMOD(, result = SvIV(ST(0)); ); return result; } bool CPerlModule::OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { bool result = false; PSTART_IDF(OnWebRequest); mXPUSHi(static_cast(false)); // Default value PUSH_PTR(CWebSock*, &WebSock); PUSH_STR(sPageName); PUSH_PTR(CTemplate*, &Tmpl); PCALLMOD(, result = SvIV(ST(0)); ); return result; } VWebSubPages* CPerlModule::_GetSubPages() { VWebSubPages* result = (VWebSubPages*)NULL; PSTART_IDF(_GetSubPages); PUSH_PTR(VWebSubPages*, (VWebSubPages*)NULL); // Default value PCALLMOD(, result = SvToPtr("VWebSubPages*")(ST(0)); ); return result; } void CPerlModule::OnPreRehash() { PSTART_IDF(OnPreRehash); mXPUSHi(0); // Default value PCALLMOD(, ); } void CPerlModule::OnPostRehash() { PSTART_IDF(OnPostRehash); mXPUSHi(0); // Default value PCALLMOD(, ); } void CPerlModule::OnIRCDisconnected() { PSTART_IDF(OnIRCDisconnected); mXPUSHi(0); // Default value PCALLMOD(, ); } void CPerlModule::OnIRCConnected() { PSTART_IDF(OnIRCConnected); mXPUSHi(0); // Default value PCALLMOD(, ); } CModule::EModRet CPerlModule::OnIRCConnecting(CIRCSock *pIRCSock) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnIRCConnecting); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CIRCSock *, pIRCSock); PCALLMOD(, result = SvToEModRet(ST(0)); ); return result; } void CPerlModule::OnIRCConnectionError(CIRCSock *pIRCSock) { PSTART_IDF(OnIRCConnectionError); mXPUSHi(0); // Default value PUSH_PTR(CIRCSock *, pIRCSock); PCALLMOD(, ); } CModule::EModRet CPerlModule::OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnIRCRegistration); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sPass); PUSH_STR(sNick); PUSH_STR(sIdent); PUSH_STR(sRealName); PCALLMOD(, result = SvToEModRet(ST(0)); sPass = PString(ST(1)); sNick = PString(ST(2)); sIdent = PString(ST(3)); sRealName = PString(ST(4)); ); return result; } CModule::EModRet CPerlModule::OnBroadcast(CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnBroadcast); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(1)); ); return result; } void CPerlModule::OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) { PSTART_IDF(OnChanPermission2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHu(uMode); mXPUSHi(bAdded); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnOp2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnDeop2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnVoice2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) { PSTART_IDF(OnDevoice2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) { PSTART_IDF(OnMode2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR(CChan*, &Channel); mXPUSHi(uMode); PUSH_STR(sArg); mXPUSHi(bAdded); mXPUSHi(bNoChange); PCALLMOD(, ); } void CPerlModule::OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) { PSTART_IDF(OnRawMode2); mXPUSHi(0); // Default value PUSH_PTR( CNick*, pOpNick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sModes); PUSH_STR(sArgs); PCALLMOD(, ); } CModule::EModRet CPerlModule::OnRaw(CString& sLine) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnRaw); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sLine); PCALLMOD(, result = SvToEModRet(ST(0)); sLine = PString(ST(1)); ); return result; } CModule::EModRet CPerlModule::OnStatusCommand(CString& sCommand) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnStatusCommand); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sCommand); PCALLMOD(, result = SvToEModRet(ST(0)); sCommand = PString(ST(1)); ); return result; } void CPerlModule::OnModCommand(const CString& sCommand) { PSTART_IDF(OnModCommand); mXPUSHi(0); // Default value PUSH_STR(sCommand); PCALLMOD(, ); } void CPerlModule::OnModNotice(const CString& sMessage) { PSTART_IDF(OnModNotice); mXPUSHi(0); // Default value PUSH_STR(sMessage); PCALLMOD(, ); } void CPerlModule::OnModCTCP(const CString& sMessage) { PSTART_IDF(OnModCTCP); mXPUSHi(0); // Default value PUSH_STR(sMessage); PCALLMOD(, ); } void CPerlModule::OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) { PSTART_IDF(OnQuit); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &Nick); PUSH_STR(sMessage); for (vector::const_iterator i = vChans.begin(); i != vChans.end(); ++i) { PUSH_PTR(CChan*, *i); } PCALLMOD(, ); } void CPerlModule::OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) { PSTART_IDF(OnNick); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &Nick); PUSH_STR(sNewNick); for (vector::const_iterator i = vChans.begin(); i != vChans.end(); ++i) { PUSH_PTR(CChan*, *i); } PCALLMOD(, ); } void CPerlModule::OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) { PSTART_IDF(OnKick); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &OpNick); PUSH_STR(sKickedNick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sMessage); PCALLMOD(, ); } CModule::EModRet CPerlModule::OnJoining(CChan& Channel) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnJoining); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CChan*, &Channel); PCALLMOD(, result = SvToEModRet(ST(0)); ); return result; } void CPerlModule::OnJoin(const CNick& Nick, CChan& Channel) { PSTART_IDF(OnJoin); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PCALLMOD(, ); } void CPerlModule::OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) { PSTART_IDF(OnPart); mXPUSHi(0); // Default value PUSH_PTR( CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sMessage); PCALLMOD(, ); } CModule::EModRet CPerlModule::OnChanBufferStarting(CChan& Chan, CClient& Client) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanBufferStarting); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CChan*, &Chan); PUSH_PTR(CClient*, &Client); PCALLMOD(, result = SvToEModRet(ST(0)); ); return result; } CModule::EModRet CPerlModule::OnChanBufferEnding(CChan& Chan, CClient& Client) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanBufferEnding); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CChan*, &Chan); PUSH_PTR(CClient*, &Client); PCALLMOD(, result = SvToEModRet(ST(0)); ); return result; } CModule::EModRet CPerlModule::OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanBufferPlayLine); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CChan*, &Chan); PUSH_PTR(CClient*, &Client); PUSH_STR(sLine); PCALLMOD(, result = SvToEModRet(ST(0)); sLine = PString(ST(3)); ); return result; } CModule::EModRet CPerlModule::OnPrivBufferPlayLine(CClient& Client, CString& sLine) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnPrivBufferPlayLine); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CClient*, &Client); PUSH_STR(sLine); PCALLMOD(, result = SvToEModRet(ST(0)); sLine = PString(ST(2)); ); return result; } void CPerlModule::OnClientLogin() { PSTART_IDF(OnClientLogin); mXPUSHi(0); // Default value PCALLMOD(, ); } void CPerlModule::OnClientDisconnect() { PSTART_IDF(OnClientDisconnect); mXPUSHi(0); // Default value PCALLMOD(, ); } CModule::EModRet CPerlModule::OnUserRaw(CString& sLine) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserRaw); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sLine); PCALLMOD(, result = SvToEModRet(ST(0)); sLine = PString(ST(1)); ); return result; } CModule::EModRet CPerlModule::OnUserCTCPReply(CString& sTarget, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserCTCPReply); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sTarget); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sTarget = PString(ST(1)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserCTCP(CString& sTarget, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserCTCP); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sTarget); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sTarget = PString(ST(1)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserAction(CString& sTarget, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserAction); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sTarget); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sTarget = PString(ST(1)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserMsg(CString& sTarget, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserMsg); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sTarget); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sTarget = PString(ST(1)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserNotice(CString& sTarget, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserNotice); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sTarget); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sTarget = PString(ST(1)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserJoin(CString& sChannel, CString& sKey) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserJoin); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sChannel); PUSH_STR(sKey); PCALLMOD(, result = SvToEModRet(ST(0)); sChannel = PString(ST(1)); sKey = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserPart(CString& sChannel, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserPart); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sChannel); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sChannel = PString(ST(1)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserTopic(CString& sChannel, CString& sTopic) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserTopic); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sChannel); PUSH_STR(sTopic); PCALLMOD(, result = SvToEModRet(ST(0)); sChannel = PString(ST(1)); sTopic = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnUserTopicRequest(CString& sChannel) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnUserTopicRequest); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sChannel); PCALLMOD(, result = SvToEModRet(ST(0)); sChannel = PString(ST(1)); ); return result; } CModule::EModRet CPerlModule::OnCTCPReply(CNick& Nick, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnCTCPReply); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnPrivCTCP(CNick& Nick, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnPrivCTCP); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanCTCP); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(3)); ); return result; } CModule::EModRet CPerlModule::OnPrivAction(CNick& Nick, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnPrivAction); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanAction); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(3)); ); return result; } CModule::EModRet CPerlModule::OnPrivMsg(CNick& Nick, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnPrivMsg); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanMsg); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(3)); ); return result; } CModule::EModRet CPerlModule::OnPrivNotice(CNick& Nick, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnPrivNotice); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnChanNotice); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sMessage); PCALLMOD(, result = SvToEModRet(ST(0)); sMessage = PString(ST(3)); ); return result; } CModule::EModRet CPerlModule::OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnTopic); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CNick*, &Nick); PUSH_PTR(CChan*, &Channel); PUSH_STR(sTopic); PCALLMOD(, result = SvToEModRet(ST(0)); sTopic = PString(ST(3)); ); return result; } bool CPerlModule::OnServerCapAvailable(const CString& sCap) { bool result = false; PSTART_IDF(OnServerCapAvailable); mXPUSHi(static_cast(false)); // Default value PUSH_STR(sCap); PCALLMOD(, result = SvIV(ST(0)); ); return result; } void CPerlModule::OnServerCapResult(const CString& sCap, bool bSuccess) { PSTART_IDF(OnServerCapResult); mXPUSHi(0); // Default value PUSH_STR(sCap); mXPUSHi(bSuccess); PCALLMOD(, ); } CModule::EModRet CPerlModule::OnTimerAutoJoin(CChan& Channel) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnTimerAutoJoin); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CChan*, &Channel); PCALLMOD(, result = SvToEModRet(ST(0)); ); return result; } bool CPerlModule::OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) { bool result = false; PSTART_IDF(OnEmbeddedWebRequest); mXPUSHi(static_cast(false)); // Default value PUSH_PTR(CWebSock*, &WebSock); PUSH_STR(sPageName); PUSH_PTR(CTemplate*, &Tmpl); PCALLMOD(, result = SvIV(ST(0)); ); return result; } CModule::EModRet CPerlModule::OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnAddNetwork); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CIRCNetwork*, &Network); PUSH_STR(sErrorRet); PCALLMOD(, result = SvToEModRet(ST(0)); sErrorRet = PString(ST(2)); ); return result; } CModule::EModRet CPerlModule::OnDeleteNetwork(CIRCNetwork& Network) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnDeleteNetwork); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_PTR(CIRCNetwork*, &Network); PCALLMOD(, result = SvToEModRet(ST(0)); ); return result; } CModule::EModRet CPerlModule::OnSendToClient(CString& sLine, CClient& Client) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnSendToClient); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sLine); PUSH_PTR(CClient*, &Client); PCALLMOD(, result = SvToEModRet(ST(0)); sLine = PString(ST(1)); ); return result; } CModule::EModRet CPerlModule::OnSendToIRC(CString& sLine) { CModule::EModRet result = CONTINUE; PSTART_IDF(OnSendToIRC); mXPUSHi(static_cast(CONTINUE)); // Default value PUSH_STR(sLine); PCALLMOD(, result = SvToEModRet(ST(0)); sLine = PString(ST(1)); ); return result; } znc-1.6.3/modules/modperl/functions.in0000644000175000017500000000731412663147131020222 0ustar somebodysomebodybool OnBoot()=true bool WebRequiresLogin()=true bool WebRequiresAdmin()=false CString GetWebMenuTitle() bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName)=false bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false VWebSubPages* _GetSubPages() void OnPreRehash() void OnPostRehash() void OnIRCDisconnected() void OnIRCConnected() EModRet OnIRCConnecting(CIRCSock *pIRCSock) void OnIRCConnectionError(CIRCSock *pIRCSock) EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) EModRet OnBroadcast(CString& sMessage) void OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) void OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) EModRet OnRaw(CString& sLine) EModRet OnStatusCommand(CString& sCommand) void OnModCommand(const CString& sCommand) void OnModNotice(const CString& sMessage) void OnModCTCP(const CString& sMessage) void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) void OnNick(const CNick& Nick, const CString& sNewNick, const vector& vChans) void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) EModRet OnJoining(CChan& Channel) void OnJoin(const CNick& Nick, CChan& Channel) void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) EModRet OnChanBufferStarting(CChan& Chan, CClient& Client) EModRet OnChanBufferEnding(CChan& Chan, CClient& Client) EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine) void OnClientLogin() void OnClientDisconnect() EModRet OnUserRaw(CString& sLine) EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) EModRet OnUserCTCP(CString& sTarget, CString& sMessage) EModRet OnUserAction(CString& sTarget, CString& sMessage) EModRet OnUserMsg(CString& sTarget, CString& sMessage) EModRet OnUserNotice(CString& sTarget, CString& sMessage) EModRet OnUserJoin(CString& sChannel, CString& sKey) EModRet OnUserPart(CString& sChannel, CString& sMessage) EModRet OnUserTopic(CString& sChannel, CString& sTopic) EModRet OnUserTopicRequest(CString& sChannel) EModRet OnCTCPReply(CNick& Nick, CString& sMessage) EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnPrivAction(CNick& Nick, CString& sMessage) EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnPrivMsg(CNick& Nick, CString& sMessage) EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnPrivNotice(CNick& Nick, CString& sMessage) EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) bool OnServerCapAvailable(const CString& sCap)=false void OnServerCapResult(const CString& sCap, bool bSuccess) EModRet OnTimerAutoJoin(CChan& Channel) bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl)=false EModRet OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) EModRet OnDeleteNetwork(CIRCNetwork& Network) EModRet OnSendToClient(CString& sLine, CClient& Client) EModRet OnSendToIRC(CString& sLine) znc-1.6.3/modules/modperl/CString.i0000644000175000017500000003262512663147131017410 0ustar somebodysomebody/* SWIG-generated sources are used here. This file is generated using: echo '%include ' > foo.i swig -perl -c++ -shadow -E foo.i > string.i Remove unrelated stuff from top of file which is included by default s/std::string/CString/g s/std_string/CString/g */ %fragment(""); %feature("naturalvar") CString; class CString; /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,70,%typemaps_CString@*/ /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,4,%CString_asptr@*/ %fragment("SWIG_" "AsPtr" "_" {CString},"header",fragment="SWIG_AsCharPtrAndSize") { SWIGINTERN int SWIG_AsPtr_CString SWIG_PERL_DECL_ARGS_2(SV * obj, CString **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new CString(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("CString" " *"); init = 1; } if (descriptor) { CString *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,48,%CString_asval@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header", fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERN int SWIG_AsVal_CString SWIG_PERL_DECL_ARGS_2(SV * obj, CString *val) { CString* v = (CString *) 0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { delete v; res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/CStrings.swg,38,%CString_from@*/ %fragment("SWIG_" "From" "_" {CString},"header",fragment="SWIG_FromCharPtrAndSize") { SWIGINTERNINLINE SV * SWIG_From_CString SWIG_PERL_DECL_ARGS_1(const CString& s) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } } /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,201,%typemaps_asptrfromn@*/ /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,190,%typemaps_asptrfrom@*/ /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,160,%typemaps_asptr@*/ %fragment("SWIG_" "AsVal" "_" {CString},"header",fragment="SWIG_" "AsPtr" "_" {CString}) { SWIGINTERNINLINE int SWIG_AsVal_CString SWIG_PERL_CALL_ARGS_2(SV * obj, CString *val) { CString *v = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(obj, &v); if (!SWIG_IsOK(res)) return res; if (v) { if (val) *val = *v; if (SWIG_IsNewObj(res)) { delete v; res = SWIG_DelNewMask(res); } return res; } return SWIG_ERROR; } } /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,28,%ptr_in_typemap@*/ %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } $1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } %typemap(freearg) CString ""; %typemap(in,fragment="SWIG_" "AsPtr" "_" {CString}) const CString & (int res = SWIG_OLDOBJ) { CString *ptr = (CString *)0; res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &ptr); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } $1 = ptr; } %typemap(freearg,noblock=1) const CString & { if (SWIG_IsNewObj(res$argnum)) delete $1; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,53,%ptr_varin_typemap@*/ %typemap(varin,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in variable '""$name""' of type '""$type""'"); } $1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,68,%ptr_directorout_typemap@*/ %typemap(directorargout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *DIRECTOROUT ($*ltype temp, int swig_ores) { CString *swig_optr = 0; swig_ores = $result ? SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($result, &swig_optr) : 0; if (!SWIG_IsOK(swig_ores) || !swig_optr) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""$type""'"); } temp = *swig_optr; $1 = &temp; if (SWIG_IsNewObj(swig_ores)) delete swig_optr; } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &swig_optr); if (!SWIG_IsOK(swig_ores) || !swig_optr) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError((swig_optr ? swig_ores : SWIG_TypeError))), "in output value of type '""$type""'"); } $result = *swig_optr; if (SWIG_IsNewObj(swig_ores)) delete swig_optr; } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString},warning= "473:Returning a pointer or reference in a director method is not recommended." ) CString* { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &swig_optr); if (!SWIG_IsOK(swig_ores)) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_ores)), "in output value of type '""$type""'"); } $result = swig_optr; if (SWIG_IsNewObj(swig_ores)) { swig_acquire_ownership(swig_optr); } } %typemap(directorfree,noblock=1) CString* { if (director) { director->swig_release_ownership(SWIG_as_voidptr($input)); } } %typemap(directorout,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString},warning= "473:Returning a pointer or reference in a director method is not recommended." ) CString& { CString *swig_optr = 0; int swig_ores = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &swig_optr); if (!SWIG_IsOK(swig_ores)) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_ores)), "in output value of type '""$type""'"); } else { if (!swig_optr) { Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ValueError), "invalid null reference " "in output value of type '""$type""'"); } } $result = swig_optr; if (SWIG_IsNewObj(swig_ores)) { swig_acquire_ownership(swig_optr); } } %typemap(directorfree,noblock=1) CString& { if (director) { director->swig_release_ownership(SWIG_as_voidptr($input)); } } %typemap(directorout,fragment="SWIG_" "AsPtr" "_" {CString}) CString &DIRECTOROUT = CString /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/ptrtypes.swg,143,%ptr_typecheck_typemap@*/ %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString * { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, (CString**)(0)); $1 = SWIG_CheckState(res); } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString, const CString& { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, (CString**)(0)); $1 = SWIG_CheckState(res); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,254,%ptr_input_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,117,%_ptr_input_typemap@*/ %typemap(in,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT(int res = 0) { res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &$1); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } res = SWIG_AddTmpMask(res); } %typemap(in,noblock=1,fragment="SWIG_" "AsPtr" "_" {CString}) CString &INPUT(int res = 0) { res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, &$1); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } if (!$1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "$symname" "', argument " "$argnum"" of type '" "$type""'"); } res = SWIG_AddTmpMask(res); } %typemap(freearg,noblock=1,match="in") CString *INPUT, CString &INPUT { if (SWIG_IsNewObj(res$argnum)) delete $1; } %typemap(typecheck,noblock=1,precedence=135,fragment="SWIG_" "AsPtr" "_" {CString}) CString *INPUT, CString &INPUT { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2($input, (CString**)0); $1 = SWIG_CheckState(res); } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG@*/ /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,183,%typemaps_from@*/ /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,55,%value_out_typemap@*/ %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString { $result = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >($1)); argvi++ ; } %typemap(out,noblock=1,fragment="SWIG_" "From" "_" {CString}) const CString& { $result = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*$1)); argvi++ ; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,79,%value_varout_typemap@*/ %typemap(varout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { sv_setsv($result,SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >($1))) ; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,87,%value_constcode_typemap@*/ %typemap(constcode,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { /*@SWIG:/swig/3.0.8/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "$symname", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >($value))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,98,%value_directorin_typemap@*/ %typemap(directorin,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *DIRECTORIN { $input = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*$1)); } %typemap(directorin,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString, const CString& { $input = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >($1)); } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/valtypes.swg,153,%value_throws_typemap@*/ %typemap(throws,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString { sv_setsv(get_sv("@", GV_ADD), SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >($1))); SWIG_fail ; } /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,175,%_value_output_typemap@*/ %typemap(in,numinputs=0,noblock=1) CString *OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ), CString &OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ) { $1 = &temp; } %typemap(argout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *OUTPUT, CString &OUTPUT { if (SWIG_IsTmpObj(res$argnum)) { if (argvi >= items) EXTEND(sp,1); $result = SWIG_From_CString SWIG_PERL_CALL_ARGS_1((*$1)); argvi++ ; } else { int new_flags = SWIG_IsNewObj(res$argnum) ? (SWIG_POINTER_OWN | $shadow) : $shadow; if (argvi >= items) EXTEND(sp,1); $result = SWIG_NewPointerObj((void*)($1), $1_descriptor, new_flags); argvi++ ; } } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,258,%value_output_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,175,%_value_output_typemap@*/ %typemap(in,numinputs=0,noblock=1) CString *OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ), CString &OUTPUT ($*1_ltype temp, int res = SWIG_TMPOBJ) { $1 = &temp; } %typemap(argout,noblock=1,fragment="SWIG_" "From" "_" {CString}) CString *OUTPUT, CString &OUTPUT { if (SWIG_IsTmpObj(res$argnum)) { if (argvi >= items) EXTEND(sp,1); $result = SWIG_From_CString SWIG_PERL_CALL_ARGS_1((*$1)); argvi++ ; } else { int new_flags = SWIG_IsNewObj(res$argnum) ? (SWIG_POINTER_OWN | $shadow) : $shadow; if (argvi >= items) EXTEND(sp,1); $result = SWIG_NewPointerObj((void*)($1), $1_descriptor, new_flags); argvi++ ; } } /*@SWIG@*/ /*@SWIG@*/; /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,240,%_ptr_inout_typemap@*/ /*@SWIG:/swig/3.0.8/typemaps/inoutlist.swg,230,%_value_inout_typemap@*/ %typemap(in) CString *INOUT = CString *INPUT; %typemap(in) CString &INOUT = CString &INPUT; %typemap(typecheck) CString *INOUT = CString *INPUT; %typemap(typecheck) CString &INOUT = CString &INPUT; %typemap(argout) CString *INOUT = CString *OUTPUT; %typemap(argout) CString &INOUT = CString &OUTPUT; /*@SWIG@*/ %typemap(typecheck) CString *INOUT = CString *INPUT; %typemap(typecheck) CString &INOUT = CString &INPUT; %typemap(freearg) CString *INOUT = CString *INPUT; %typemap(freearg) CString &INOUT = CString &INPUT; /*@SWIG@*/; /*@SWIG@*/ ; /*@SWIG@*/; /*@SWIG@*/; znc-1.6.3/modules/modperl/module.h0000644000175000017500000002022312663147131017312 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include #include #include #include #if HAVE_VISIBILITY #pragma GCC visibility push(default) #endif class CPerlModule : public CModule { SV* m_perlObj; VWebSubPages* _GetSubPages(); public: CPerlModule(CUser* pUser, CIRCNetwork* pNetwork, const CString& sModName, const CString& sDataPath, SV* perlObj) : CModule(NULL, pUser, pNetwork, sModName, sDataPath) { m_perlObj = newSVsv(perlObj); } SV* GetPerlObj() { return sv_2mortal(newSVsv(m_perlObj)); } virtual bool OnBoot() override; virtual bool WebRequiresLogin() override; virtual bool WebRequiresAdmin() override; virtual CString GetWebMenuTitle() override; virtual bool OnWebPreRequest(CWebSock& WebSock, const CString& sPageName) override; virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override; virtual VWebSubPages& GetSubPages() override; virtual void OnPreRehash() override; virtual void OnPostRehash() override; virtual void OnIRCDisconnected() override; virtual void OnIRCConnected() override; virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) override; virtual void OnIRCConnectionError(CIRCSock *pIRCSock) override; virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) override; virtual EModRet OnBroadcast(CString& sMessage) override; virtual void OnChanPermission2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) override; virtual void OnOp2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnDeop2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnVoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnDevoice2(const CNick* pOpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override; virtual void OnMode2(const CNick* pOpNick, CChan& Channel, char uMode, const CString& sArg, bool bAdded, bool bNoChange) override; virtual void OnRawMode2(const CNick* pOpNick, CChan& Channel, const CString& sModes, const CString& sArgs) override; virtual EModRet OnRaw(CString& sLine) override; virtual EModRet OnStatusCommand(CString& sCommand) override; virtual void OnModCommand(const CString& sCommand) override; virtual void OnModNotice(const CString& sMessage) override; virtual void OnModCTCP(const CString& sMessage) override; virtual void OnQuit(const CNick& Nick, const CString& sMessage, const std::vector& vChans) override; virtual void OnNick(const CNick& Nick, const CString& sNewNick, const std::vector& vChans) override; virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override; virtual EModRet OnJoining(CChan& Channel) override; virtual void OnJoin(const CNick& Nick, CChan& Channel) override; virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override; virtual EModRet OnChanBufferStarting(CChan& Chan, CClient& Client) override; virtual EModRet OnChanBufferEnding(CChan& Chan, CClient& Client) override; virtual EModRet OnChanBufferPlayLine(CChan& Chan, CClient& Client, CString& sLine) override; virtual EModRet OnPrivBufferPlayLine(CClient& Client, CString& sLine) override; virtual void OnClientLogin() override; virtual void OnClientDisconnect() override; virtual EModRet OnUserRaw(CString& sLine) override; virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override; virtual EModRet OnUserJoin(CString& sChannel, CString& sKey) override; virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) override; virtual EModRet OnUserTopic(CString& sChannel, CString& sTopic) override; virtual EModRet OnUserTopicRequest(CString& sChannel) override; virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) override; virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanAction(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override; virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override; virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) override; virtual bool OnServerCapAvailable(const CString& sCap) override; virtual void OnServerCapResult(const CString& sCap, bool bSuccess) override; virtual EModRet OnTimerAutoJoin(CChan& Channel) override; virtual bool OnEmbeddedWebRequest(CWebSock&, const CString&, CTemplate&) override; virtual EModRet OnAddNetwork(CIRCNetwork& Network, CString& sErrorRet) override; virtual EModRet OnDeleteNetwork(CIRCNetwork& Network) override; virtual EModRet OnSendToClient(CString& sLine, CClient& Client) override; virtual EModRet OnSendToIRC(CString& sLine) override; }; static inline CPerlModule* AsPerlModule(CModule* p) { return dynamic_cast(p); } enum ELoadPerlMod { Perl_NotFound, Perl_Loaded, Perl_LoadError, }; class CPerlTimer : public CTimer { SV* m_perlObj; public: CPerlTimer(CPerlModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription, SV* perlObj) : CTimer (pModule, uInterval, uCycles, sLabel, sDescription), m_perlObj(newSVsv(perlObj)) { pModule->AddTimer(this); } virtual void RunJob() override; SV* GetPerlObj() { return sv_2mortal(newSVsv(m_perlObj)); } ~CPerlTimer(); }; inline CPerlTimer* CreatePerlTimer(CPerlModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription, SV* perlObj) { return new CPerlTimer(pModule, uInterval, uCycles, sLabel, sDescription, perlObj); } class CPerlSocket : public CSocket { SV* m_perlObj; public: CPerlSocket(CPerlModule* pModule, SV* perlObj) : CSocket(pModule), m_perlObj(newSVsv(perlObj)) {} SV* GetPerlObj() { return sv_2mortal(newSVsv(m_perlObj)); } ~CPerlSocket(); virtual void Connected() override; virtual void Disconnected() override; virtual void Timeout() override; virtual void ConnectionRefused() override; virtual void ReadData(const char *data, size_t len) override; virtual void ReadLine(const CString& sLine) override; virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) override; }; inline CPerlSocket* CreatePerlSocket(CPerlModule* pModule, SV* perlObj) { return new CPerlSocket(pModule, perlObj); } inline bool HaveIPv6() { #ifdef HAVE_IPV6 return true; #endif return false; } inline bool HaveSSL() { #ifdef HAVE_LIBSSL return true; #endif return false; } inline bool HaveCharset() { #ifdef HAVE_ICU return true; #endif return false; } inline int _GetSOMAXCONN() { return SOMAXCONN; } inline int GetVersionMajor() { return VERSION_MAJOR; } inline int GetVersionMinor() { return VERSION_MINOR; } inline double GetVersion() { return VERSION; } inline CString GetVersionExtra() { return ZNC_VERSION_EXTRA; } #if HAVE_VISIBILITY #pragma GCC visibility pop #endif znc-1.6.3/modules/modperl/pstring.h0000644000175000017500000000412412663147131017515 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once class PString : public CString { public: enum EType { STRING, INT, UINT, NUM, BOOL }; PString() : CString() { m_eType = STRING; } PString(const char* c) : CString(c) { m_eType = STRING; } PString(const CString& s) : CString(s) { m_eType = STRING; } PString(int i) : CString(i) { m_eType = INT; } PString(u_int i) : CString(i) { m_eType = UINT; } PString(long i) : CString(i) { m_eType = INT; } PString(u_long i) : CString(i) { m_eType = UINT; } PString(long long i) : CString(i) { m_eType = INT; } PString(unsigned long long i) : CString(i) { m_eType = UINT; } PString(double i) : CString(i) { m_eType = NUM; } PString(bool b) : CString((b ? "1" : "0")) { m_eType = BOOL; } PString(SV* sv) { STRLEN len = SvCUR(sv); char* c = SvPV(sv, len); char* c2 = new char[len+1]; memcpy(c2, c, len); c2[len] = 0; *this = c2; delete[] c2; } virtual ~PString() {} EType GetType() const { return m_eType; } void SetType(EType e) { m_eType = e; } SV* GetSV(bool bMakeMortal = true) const { SV* pSV = NULL; switch (GetType()) { case NUM: pSV = newSVnv(ToDouble()); break; case INT: pSV = newSViv(ToLongLong()); break; case UINT: case BOOL: pSV = newSVuv(ToULongLong()); break; case STRING: default: pSV = newSVpv(data(), length()); break; } if (bMakeMortal) { pSV = sv_2mortal(pSV); } return pSV; } private: EType m_eType; }; znc-1.6.3/modules/modperl/startup.pl0000644000175000017500000003127012663147131017717 0ustar somebodysomebody# # Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # use 5.010; use strict; use warnings; use ZNC; use IO::File; use feature 'switch', 'say'; package ZNC::Core; my %modrefcount; my @allmods; sub UnloadModule { my ($pmod) = @_; my @newallmods = grep {$pmod != $_} @allmods; if ($#allmods == $#newallmods) { return 0 } @allmods = @newallmods; $pmod->OnShutdown; my $cmod = $pmod->{_cmod}; my $modpath = $cmod->GetModPath; my $modname = $cmod->GetModName; given ($cmod->GetType()) { when ($ZNC::CModInfo::NetworkModule) { $cmod->GetNetwork->GetModules->removeModule($cmod); } when ($ZNC::CModInfo::UserModule) { $cmod->GetUser->GetModules->removeModule($cmod); } when ($ZNC::CModInfo::GlobalModule) { ZNC::CZNC::Get()->GetModules->removeModule($cmod); } } delete $pmod->{_cmod}; delete $pmod->{_nv}; unless (--$modrefcount{$modname}) { say "Unloading $modpath from perl"; ZNC::_CleanupStash($modname); delete $INC{$modpath}; } return 1 # here $cmod is deleted by perl (using DESTROY) } sub UnloadAll { while (@allmods) { UnloadModule($allmods[0]); } } sub IsModule { my $path = shift; my $modname = shift; my $f = IO::File->new($path); grep {/package\s+$modname\s*;/} <$f>; } sub LoadModule { my ($modname, $args, $type, $user, $network) = @_; $modname =~ /^\w+$/ or return ($ZNC::Perl_LoadError, "Module names can only contain letters, numbers and underscores, [$modname] is invalid."); my $container; given ($type) { when ($ZNC::CModInfo::NetworkModule) { $container = $network; } when ($ZNC::CModInfo::UserModule) { $container = $user; } when ($ZNC::CModInfo::GlobalModule) { $container = ZNC::CZNC::Get(); } } return ($ZNC::Perl_LoadError, "Uhm? No container for the module? Wtf?") unless $container; $container = $container->GetModules; return ($ZNC::Perl_LoadError, "Module [$modname] already loaded.") if defined $container->FindModule($modname); my $modpath = ZNC::String->new; my $datapath = ZNC::String->new; ZNC::CModules::FindModPath("$modname.pm", $modpath, $datapath) or return ($ZNC::Perl_NotFound); $modpath = $modpath->GetPerlStr; return ($ZNC::Perl_LoadError, "Incorrect perl module [$modpath]") unless IsModule $modpath, $modname; my $pmod; my @types = eval { require $modpath; $pmod = bless {}, $modname; $pmod->module_types(); }; if ($@) { # modrefcount was 0 before this, otherwise it couldn't die in the previous time. # so can safely remove module from %INC delete $INC{$modpath}; die $@; } return ($ZNC::Perl_LoadError, "Module [$modname] doesn't support the specified type.") unless $type ~~ @types; $modrefcount{$modname}++; $datapath = $datapath->GetPerlStr; $datapath =~ s/\.pm$//; my $cmod = ZNC::CPerlModule->new($user, $network, $modname, $datapath, $pmod); my %nv; tie %nv, 'ZNC::ModuleNV', $cmod; $pmod->{_cmod} = $cmod; $pmod->{_nv} = \%nv; $cmod->SetDescription($pmod->description); $cmod->SetArgs($args); $cmod->SetModPath($modpath); $cmod->SetType($type); push @allmods, $pmod; $container->push_back($cmod); my $x = ''; my $loaded = 0; eval { $loaded = $pmod->OnLoad($args, $x); }; if ($@) { $x .= ' ' if '' ne $x; $x .= $@; } if (!$loaded) { UnloadModule $pmod; if ($x) { return ($ZNC::Perl_LoadError, "Module [$modname] aborted: $x"); } return ($ZNC::Perl_LoadError, "Module [$modname] aborted."); } if ($x) { return ($ZNC::Perl_Loaded, "[$x] [$modpath]"); } return ($ZNC::Perl_Loaded, "[$modpath]") } sub GetModInfo { my ($modname, $modinfo) = @_; $modname =~ /^\w+$/ or return ($ZNC::Perl_LoadError, "Module names can only contain letters, numbers and underscores, [$modname] is invalid."); my $modpath = ZNC::String->new; my $datapath = ZNC::String->new; ZNC::CModules::FindModPath("$modname.pm", $modpath, $datapath) or return ($ZNC::Perl_NotFound, "Unable to find module [$modname]"); $modpath = $modpath->GetPerlStr; return ($ZNC::Perl_LoadError, "Incorrect perl module.") unless IsModule $modpath, $modname; ModInfoByPath($modpath, $modname, $modinfo); return ($ZNC::Perl_Loaded) } sub ModInfoByPath { my ($modpath, $modname, $modinfo) = @_; die "Incorrect perl module." unless IsModule $modpath, $modname; require $modpath; my $pmod = bless {}, $modname; my @types = $pmod->module_types; $modinfo->SetDefaultType($types[0]); $modinfo->SetDescription($pmod->description); $modinfo->SetWikiPage($pmod->wiki_page); $modinfo->SetArgsHelpText($pmod->args_help_text); $modinfo->SetHasArgs($pmod->has_args); $modinfo->SetName($modname); $modinfo->SetPath($modpath); $modinfo->AddType($_) for @types; unless ($modrefcount{$modname}) { say "Unloading $modpath from perl, because it's not loaded as a module"; ZNC::_CleanupStash($modname); delete $INC{$modpath}; } } sub CallModFunc { my $pmod = shift; my $func = shift; my $default = shift; my @arg = @_; my $res = $pmod->$func(@arg); # print "Returned from $func(@_): $res, (@arg)\n"; unless (defined $res) { $res = $default if defined $default; } ($res, @arg) } sub CallTimer { my $timer = shift; $timer->RunJob; } sub CallSocket { my $socket = shift; my $func = shift; say "Calling socket $func"; $socket->$func(@_) } sub RemoveTimer { my $timer = shift; $timer->OnShutdown; } sub RemoveSocket { my $socket = shift; $socket->OnShutdown; } package ZNC::ModuleNV; sub TIEHASH { my $name = shift; my $cmod = shift; bless {cmod=>$cmod, last=>-1}, $name } sub FETCH { my $self = shift; my $key = shift; return $self->{cmod}->GetNV($key) if $self->{cmod}->ExistsNV($key); return undef } sub STORE { my $self = shift; my $key = shift; my $value = shift; $self->{cmod}->SetNV($key, $value); } sub DELETE { my $self = shift; my $key = shift; $self->{cmod}->DelNV($key); } sub CLEAR { my $self = shift; $self->{cmod}->ClearNV; } sub EXISTS { my $self = shift; my $key = shift; $self->{cmod}->ExistsNV($key) } sub FIRSTKEY { my $self = shift; my @keys = $self->{cmod}->GetNVKeys; $self->{last} = 0; return $keys[0]; return undef; } sub NEXTKEY { my $self = shift; my $last = shift; my @keys = $self->{cmod}->GetNVKeys; if ($#keys < $self->{last}) { $self->{last} = -1; return undef } # Probably caller called delete on last key? if ($last eq $keys[$self->{last}]) { $self->{last}++ } if ($#keys < $self->{last}) { $self->{last} = -1; return undef } return $keys[$self->{last}] } sub SCALAR { my $self = shift; my @keys = $self->{cmod}->GetNVKeys; return $#keys + 1 } package ZNC::Module; sub description { "< Placeholder for a description >" } sub wiki_page { '' } sub module_types { $ZNC::CModInfo::NetworkModule } sub args_help_text { '' } sub has_args { 0 } # Default implementations for module hooks. They can be overriden in derived modules. sub OnLoad {1} sub OnBoot {} sub OnShutdown {} sub WebRequiresLogin {} sub WebRequiresAdmin {} sub GetWebMenuTitle {} sub OnWebPreRequest {} sub OnWebRequest {} sub GetSubPages {} sub _GetSubPages { my $self = shift; $self->GetSubPages } sub OnPreRehash {} sub OnPostRehash {} sub OnIRCDisconnected {} sub OnIRCConnected {} sub OnIRCConnecting {} sub OnIRCConnectionError {} sub OnIRCRegistration {} sub OnBroadcast {} sub OnChanPermission {} sub OnOp {} sub OnDeop {} sub OnVoice {} sub OnDevoice {} sub OnMode {} sub OnRawMode {} sub OnRaw {} sub OnStatusCommand {} sub OnModCommand {} sub OnModNotice {} sub OnModCTCP {} sub OnQuit {} sub OnNick {} sub OnKick {} sub OnJoining {} sub OnJoin {} sub OnPart {} sub OnChanBufferStarting {} sub OnChanBufferEnding {} sub OnChanBufferPlayLine {} sub OnPrivBufferPlayLine {} sub OnClientLogin {} sub OnClientDisconnect {} sub OnUserRaw {} sub OnUserCTCPReply {} sub OnUserCTCP {} sub OnUserAction {} sub OnUserMsg {} sub OnUserNotice {} sub OnUserJoin {} sub OnUserPart {} sub OnUserTopic {} sub OnUserTopicRequest {} sub OnCTCPReply {} sub OnPrivCTCP {} sub OnChanCTCP {} sub OnPrivAction {} sub OnChanAction {} sub OnPrivMsg {} sub OnChanMsg {} sub OnPrivNotice {} sub OnChanNotice {} sub OnTopic {} sub OnServerCapAvailable {} sub OnServerCapResult {} sub OnTimerAutoJoin {} sub OnEmbeddedWebRequest {} sub OnAddNetwork {} sub OnDeleteNetwork {} sub OnSendToClient {} sub OnSendToIRC {} # In Perl "undefined" is allowed value, so perl modules may continue using OnMode and not OnMode2 sub OnChanPermission2 { my $self = shift; $self->OnChanPermission(@_) } sub OnOp2 { my $self = shift; $self->OnOp(@_) } sub OnDeop2 { my $self = shift; $self->OnDeop(@_) } sub OnVoice2 { my $self = shift; $self->OnVoice(@_) } sub OnDevoice2 { my $self = shift; $self->OnDevoice(@_) } sub OnMode2 { my $self = shift; $self->OnMode(@_) } sub OnRawMode2 { my $self = shift; $self->OnRawMode(@_) } # Functions of CModule will be usable from perl modules. our $AUTOLOAD; sub AUTOLOAD { my $name = $AUTOLOAD; $name =~ s/^.*:://; # Strip fully-qualified portion. my $sub = sub { my $self = shift; $self->{_cmod}->$name(@_) }; no strict 'refs'; *{$AUTOLOAD} = $sub; use strict 'refs'; goto &{$sub}; } sub DESTROY {} sub BeginNV { die "Don't use BeginNV from perl modules, use GetNVKeys or NV instead!"; } sub EndNV { die "Don't use EndNV from perl modules, use GetNVKeys or NV instead!"; } sub FindNV { die "Don't use FindNV from perl modules, use GetNVKeys/ExistsNV or NV instead!"; } sub NV { my $self = shift; $self->{_nv} } sub CreateTimer { my $self = shift; my %a = @_; my $ptimer = {}; my $ctimer = ZNC::CreatePerlTimer( $self->{_cmod}, $a{interval}//10, $a{cycles}//1, "perl-timer", $a{description}//'Just Another Perl Timer', $ptimer); $ptimer->{_ctimer} = $ctimer; if (ref($a{task}) eq 'CODE') { bless $ptimer, 'ZNC::Timer'; $ptimer->{job} = $a{task}; $ptimer->{context} = $a{context}; } else { bless $ptimer, $a{task}; } $ptimer; } sub CreateSocket { my $self = shift; my $class = shift; my $psock = bless {}, $class; my $csock = ZNC::CreatePerlSocket($self->{_cmod}, $psock); $psock->{_csock} = $csock; $psock->Init(@_); $psock; } package ZNC::Timer; sub GetModule { my $self = shift; ZNC::AsPerlModule($self->{_ctimer}->GetModule)->GetPerlObj() } sub RunJob { my $self = shift; if (ref($self->{job}) eq 'CODE') { &{$self->{job}}($self->GetModule, context=>$self->{context}, timer=>$self->{_ctimer}); } } sub OnShutdown {} our $AUTOLOAD; sub AUTOLOAD { my $name = $AUTOLOAD; $name =~ s/^.*:://; # Strip fully-qualified portion. my $sub = sub { my $self = shift; $self->{_ctimer}->$name(@_) }; no strict 'refs'; *{$AUTOLOAD} = $sub; use strict 'refs'; goto &{$sub}; } sub DESTROY {} package ZNC::Socket; sub GetModule { my $self = shift; ZNC::AsPerlModule($self->{_csock}->GetModule)->GetPerlObj() } sub Init {} sub OnConnected {} sub OnDisconnected {} sub OnTimeout {} sub OnConnectionRefused {} sub OnReadData {} sub OnReadLine {} sub OnAccepted {} sub OnShutdown {} sub _Accepted { my $self = shift; my $psock = $self->OnAccepted(@_); return $psock->{_csock} if defined $psock; return undef; } our $AUTOLOAD; sub AUTOLOAD { my $name = $AUTOLOAD; $name =~ s/^.*:://; # Strip fully-qualified portion. my $sub = sub { my $self = shift; $self->{_csock}->$name(@_) }; no strict 'refs'; *{$AUTOLOAD} = $sub; use strict 'refs'; goto &{$sub}; } sub DESTROY {} sub Connect { my $self = shift; my $host = shift; my $port = shift; my %arg = @_; $self->GetModule->GetManager->Connect( $host, $port, "perl-socket", $arg{timeout}//60, $arg{ssl}//0, $arg{bindhost}//'', $self->{_csock} ); } sub Listen { my $self = shift; my %arg = @_; my $addrtype = $ZNC::ADDR_ALL; if (defined $arg{addrtype}) { given ($arg{addrtype}) { when (/^ipv4$/i) { $addrtype = $ZNC::ADDR_IPV4ONLY } when (/^ipv6$/i) { $addrtype = $ZNC::ADDR_IPV6ONLY } when (/^all$/i) { } default { die "Specified addrtype [$arg{addrtype}] isn't supported" } } } if (defined $arg{port}) { return $arg{port} if $self->GetModule->GetManager->ListenHost( $arg{port}, "perl-socket", $arg{bindhost}//'', $arg{ssl}//0, $arg{maxconns}//ZNC::_GetSOMAXCONN, $self->{_csock}, $arg{timeout}//0, $addrtype ); return 0; } $self->GetModule->GetManager->ListenRand( "perl-socket", $arg{bindhost}//'', $arg{ssl}//0, $arg{maxconns}//ZNC::_GetSOMAXCONN, $self->{_csock}, $arg{timeout}//0, $addrtype ); } 1 znc-1.6.3/modules/modperl/ZNC.pm0000644000175000017500000036024312663147136016662 0ustar somebodysomebody# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.5 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. package ZNC; use base qw(Exporter); use base qw(DynaLoader); package ZNCc; bootstrap ZNC; package ZNC; @EXPORT = qw(); # ---------- BASE METHODS ------------- package ZNC; sub TIEHASH { my ($classname,$obj) = @_; return bless $obj, $classname; } sub CLEAR { } sub FIRSTKEY { } sub NEXTKEY { } sub FETCH { my ($self,$field) = @_; my $member_func = "swig_${field}_get"; $self->$member_func(); } sub STORE { my ($self,$field,$newval) = @_; my $member_func = "swig_${field}_set"; $self->$member_func($newval); } sub this { my $ptr = shift; return tied(%$ptr); } # ------- FUNCTION WRAPPERS -------- package ZNC; *SetFdCloseOnExec = *ZNCc::SetFdCloseOnExec; *GetAddrInfo = *ZNCc::GetAddrInfo; *GetCsockSSLIdx = *ZNCc::GetCsockSSLIdx; *InitCsocket = *ZNCc::InitCsocket; *ShutdownCsocket = *ZNCc::ShutdownCsocket; *GetSockError = *ZNCc::GetSockError; *TFD_ZERO = *ZNCc::TFD_ZERO; *TFD_SET = *ZNCc::TFD_SET; *TFD_ISSET = *ZNCc::TFD_ISSET; *TFD_CLR = *ZNCc::TFD_CLR; *__Perror = *ZNCc::__Perror; *millitime = *ZNCc::millitime; *AsPerlModule = *ZNCc::AsPerlModule; *CreatePerlTimer = *ZNCc::CreatePerlTimer; *CreatePerlSocket = *ZNCc::CreatePerlSocket; *HaveIPv6 = *ZNCc::HaveIPv6; *HaveSSL = *ZNCc::HaveSSL; *HaveCharset = *ZNCc::HaveCharset; *_GetSOMAXCONN = *ZNCc::_GetSOMAXCONN; *GetVersionMajor = *ZNCc::GetVersionMajor; *GetVersionMinor = *ZNCc::GetVersionMinor; *GetVersion = *ZNCc::GetVersion; *GetVersionExtra = *ZNCc::GetVersionExtra; *_VPair_Add2Str = *ZNCc::_VPair_Add2Str; *_CreateWebSubPage = *ZNCc::_CreateWebSubPage; *_CleanupStash = *ZNCc::_CleanupStash; ############# Class : ZNC::_stringlist ############## package ZNC::_stringlist; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new__stringlist(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::_stringlist_size; *empty = *ZNCc::_stringlist_empty; *clear = *ZNCc::_stringlist_clear; *push = *ZNCc::_stringlist_push; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete__stringlist($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VIRCNetworks ############## package ZNC::VIRCNetworks; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VIRCNetworks(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VIRCNetworks_size; *empty = *ZNCc::VIRCNetworks_empty; *clear = *ZNCc::VIRCNetworks_clear; *push = *ZNCc::VIRCNetworks_push; *pop = *ZNCc::VIRCNetworks_pop; *get = *ZNCc::VIRCNetworks_get; *set = *ZNCc::VIRCNetworks_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VIRCNetworks($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VChannels ############## package ZNC::VChannels; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VChannels(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VChannels_size; *empty = *ZNCc::VChannels_empty; *clear = *ZNCc::VChannels_clear; *push = *ZNCc::VChannels_push; *pop = *ZNCc::VChannels_pop; *get = *ZNCc::VChannels_get; *set = *ZNCc::VChannels_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VChannels($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VCString ############## package ZNC::VCString; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VCString(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VCString_size; *empty = *ZNCc::VCString_empty; *clear = *ZNCc::VCString_clear; *push = *ZNCc::VCString_push; *pop = *ZNCc::VCString_pop; *get = *ZNCc::VCString_get; *set = *ZNCc::VCString_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VCString($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::PerlMCString ############## package ZNC::PerlMCString; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_PerlMCString(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::PerlMCString_size; *empty = *ZNCc::PerlMCString_empty; *clear = *ZNCc::PerlMCString_clear; *get = *ZNCc::PerlMCString_get; *set = *ZNCc::PerlMCString_set; *del = *ZNCc::PerlMCString_del; *has_key = *ZNCc::PerlMCString_has_key; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_PerlMCString($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::MCString ############## package ZNC::MCString; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::PerlMCString ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_MCString(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_MCString($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VListeners ############## package ZNC::VListeners; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VListeners(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VListeners_size; *empty = *ZNCc::VListeners_empty; *clear = *ZNCc::VListeners_clear; *push = *ZNCc::VListeners_push; *pop = *ZNCc::VListeners_pop; *get = *ZNCc::VListeners_get; *set = *ZNCc::VListeners_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VListeners($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::BufLines ############## package ZNC::BufLines; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *empty = *ZNCc::BufLines_empty; sub new { my $pkg = shift; my $self = ZNCc::new_BufLines(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_BufLines($self); delete $OWNER{$self}; } } *assign = *ZNCc::BufLines_assign; *swap = *ZNCc::BufLines_swap; *size = *ZNCc::BufLines_size; *max_size = *ZNCc::BufLines_max_size; *resize = *ZNCc::BufLines_resize; *front = *ZNCc::BufLines_front; *back = *ZNCc::BufLines_back; *push_front = *ZNCc::BufLines_push_front; *push_back = *ZNCc::BufLines_push_back; *pop_front = *ZNCc::BufLines_pop_front; *pop_back = *ZNCc::BufLines_pop_back; *clear = *ZNCc::BufLines_clear; *getitem = *ZNCc::BufLines_getitem; *setitem = *ZNCc::BufLines_setitem; *delitem = *ZNCc::BufLines_delitem; *getslice = *ZNCc::BufLines_getslice; *setslice = *ZNCc::BufLines_setslice; *delslice = *ZNCc::BufLines_delslice; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VVString ############## package ZNC::VVString; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VVString(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VVString_size; *empty = *ZNCc::VVString_empty; *clear = *ZNCc::VVString_clear; *push = *ZNCc::VVString_push; *pop = *ZNCc::VVString_pop; *get = *ZNCc::VVString_get; *set = *ZNCc::VVString_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VVString($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CUtils ############## package ZNC::CUtils; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CUtils(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CUtils($self); delete $OWNER{$self}; } } *GetIP = *ZNCc::CUtils_GetIP; *GetLongIP = *ZNCc::CUtils_GetLongIP; *PrintError = *ZNCc::CUtils_PrintError; *PrintMessage = *ZNCc::CUtils_PrintMessage; *PrintPrompt = *ZNCc::CUtils_PrintPrompt; *PrintAction = *ZNCc::CUtils_PrintAction; *PrintStatus = *ZNCc::CUtils_PrintStatus; *GetSaltedHashPass = *ZNCc::CUtils_GetSaltedHashPass; *GetSalt = *ZNCc::CUtils_GetSalt; *SaltedMD5Hash = *ZNCc::CUtils_SaltedMD5Hash; *SaltedSHA256Hash = *ZNCc::CUtils_SaltedSHA256Hash; *GetPass = *ZNCc::CUtils_GetPass; *GetInput = *ZNCc::CUtils_GetInput; *GetBoolInput = *ZNCc::CUtils_GetBoolInput; *GetNumInput = *ZNCc::CUtils_GetNumInput; *GetMillTime = *ZNCc::CUtils_GetMillTime; *CTime = *ZNCc::CUtils_CTime; *FormatTime = *ZNCc::CUtils_FormatTime; *FormatServerTime = *ZNCc::CUtils_FormatServerTime; *GetTimezones = *ZNCc::CUtils_GetTimezones; *GetEncodings = *ZNCc::CUtils_GetEncodings; *GetMessageTags = *ZNCc::CUtils_GetMessageTags; *SetMessageTags = *ZNCc::CUtils_SetMessageTags; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CException ############## package ZNC::CException; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *EX_Shutdown = *ZNCc::CException_EX_Shutdown; *EX_Restart = *ZNCc::CException_EX_Restart; sub new { my $pkg = shift; my $self = ZNCc::new_CException(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CException($self); delete $OWNER{$self}; } } *GetType = *ZNCc::CException_GetType; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CTable ############## package ZNC::CTable; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CTable(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CTable($self); delete $OWNER{$self}; } } *AddColumn = *ZNCc::CTable_AddColumn; *AddRow = *ZNCc::CTable_AddRow; *SetCell = *ZNCc::CTable_SetCell; *GetLine = *ZNCc::CTable_GetLine; *GetColumnWidth = *ZNCc::CTable_GetColumnWidth; *Clear = *ZNCc::CTable_Clear; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CConfigEntry ############## package ZNC::CConfigEntry; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CConfigEntry(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CConfigEntry($self); delete $OWNER{$self}; } } *swig_m_pSubConfig_get = *ZNCc::CConfigEntry_m_pSubConfig_get; *swig_m_pSubConfig_set = *ZNCc::CConfigEntry_m_pSubConfig_set; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CConfig ############## package ZNC::CConfig; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *BeginEntries = *ZNCc::CConfig_BeginEntries; *EndEntries = *ZNCc::CConfig_EndEntries; *BeginSubConfigs = *ZNCc::CConfig_BeginSubConfigs; *EndSubConfigs = *ZNCc::CConfig_EndSubConfigs; *AddKeyValuePair = *ZNCc::CConfig_AddKeyValuePair; *AddSubConfig = *ZNCc::CConfig_AddSubConfig; *FindStringVector = *ZNCc::CConfig_FindStringVector; *FindStringEntry = *ZNCc::CConfig_FindStringEntry; *FindBoolEntry = *ZNCc::CConfig_FindBoolEntry; *FindUIntEntry = *ZNCc::CConfig_FindUIntEntry; *FindUShortEntry = *ZNCc::CConfig_FindUShortEntry; *FindDoubleEntry = *ZNCc::CConfig_FindDoubleEntry; *FindSubConfig = *ZNCc::CConfig_FindSubConfig; *empty = *ZNCc::CConfig_empty; *Parse = *ZNCc::CConfig_Parse; *Write = *ZNCc::CConfig_Write; sub new { my $pkg = shift; my $self = ZNCc::new_CConfig(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CConfig($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSCharBuffer ############## package ZNC::CSCharBuffer; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSCharBuffer(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSCharBuffer($self); delete $OWNER{$self}; } } *__call__ = *ZNCc::CSCharBuffer___call__; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSSockAddr ############## package ZNC::CSSockAddr; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSSockAddr(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSSockAddr($self); delete $OWNER{$self}; } } *RAF_ANY = *ZNCc::CSSockAddr_RAF_ANY; *RAF_INET = *ZNCc::CSSockAddr_RAF_INET; *SinFamily = *ZNCc::CSSockAddr_SinFamily; *SinPort = *ZNCc::CSSockAddr_SinPort; *SetIPv6 = *ZNCc::CSSockAddr_SetIPv6; *GetIPv6 = *ZNCc::CSSockAddr_GetIPv6; *GetSockAddrLen = *ZNCc::CSSockAddr_GetSockAddrLen; *GetSockAddr = *ZNCc::CSSockAddr_GetSockAddr; *GetAddr = *ZNCc::CSSockAddr_GetAddr; *SetAFRequire = *ZNCc::CSSockAddr_SetAFRequire; *GetAFRequire = *ZNCc::CSSockAddr_GetAFRequire; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CGetAddrInfo ############## package ZNC::CGetAddrInfo; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CGetAddrInfo(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CGetAddrInfo($self); delete $OWNER{$self}; } } *Init = *ZNCc::CGetAddrInfo_Init; *Process = *ZNCc::CGetAddrInfo_Process; *Finish = *ZNCc::CGetAddrInfo_Finish; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CCron ############## package ZNC::CCron; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CCron(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CCron($self); delete $OWNER{$self}; } } *run = *ZNCc::CCron_run; *StartMaxCycles = *ZNCc::CCron_StartMaxCycles; *Start = *ZNCc::CCron_Start; *Stop = *ZNCc::CCron_Stop; *Pause = *ZNCc::CCron_Pause; *UnPause = *ZNCc::CCron_UnPause; *Reset = *ZNCc::CCron_Reset; *GetInterval = *ZNCc::CCron_GetInterval; *GetMaxCycles = *ZNCc::CCron_GetMaxCycles; *GetCyclesLeft = *ZNCc::CCron_GetCyclesLeft; *isValid = *ZNCc::CCron_isValid; *GetName = *ZNCc::CCron_GetName; *SetName = *ZNCc::CCron_SetName; *GetNextRun = *ZNCc::CCron_GetNextRun; *RunJob = *ZNCc::CCron_RunJob; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSMonitorFD ############## package ZNC::CSMonitorFD; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSMonitorFD(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSMonitorFD($self); delete $OWNER{$self}; } } *GatherFDsForSelect = *ZNCc::CSMonitorFD_GatherFDsForSelect; *FDsThatTriggered = *ZNCc::CSMonitorFD_FDsThatTriggered; *CheckFDs = *ZNCc::CSMonitorFD_CheckFDs; *Add = *ZNCc::CSMonitorFD_Add; *Remove = *ZNCc::CSMonitorFD_Remove; *DisableMonitor = *ZNCc::CSMonitorFD_DisableMonitor; *IsEnabled = *ZNCc::CSMonitorFD_IsEnabled; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSockCommon ############## package ZNC::CSockCommon; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSockCommon(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSockCommon($self); delete $OWNER{$self}; } } *CleanupCrons = *ZNCc::CSockCommon_CleanupCrons; *CleanupFDMonitors = *ZNCc::CSockCommon_CleanupFDMonitors; *GetCrons = *ZNCc::CSockCommon_GetCrons; *Cron = *ZNCc::CSockCommon_Cron; *AddCron = *ZNCc::CSockCommon_AddCron; *DelCron = *ZNCc::CSockCommon_DelCron; *DelCronByAddr = *ZNCc::CSockCommon_DelCronByAddr; *CheckFDs = *ZNCc::CSockCommon_CheckFDs; *AssignFDs = *ZNCc::CSockCommon_AssignFDs; *MonitorFD = *ZNCc::CSockCommon_MonitorFD; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::Csock ############## package ZNC::Csock; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CSockCommon ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_Csock(@_); bless $self, $pkg if defined($self); } *GetSockObj = *ZNCc::Csock_GetSockObj; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_Csock($self); delete $OWNER{$self}; } } *Dereference = *ZNCc::Csock_Dereference; *Copy = *ZNCc::Csock_Copy; *OUTBOUND = *ZNCc::Csock_OUTBOUND; *LISTENER = *ZNCc::Csock_LISTENER; *INBOUND = *ZNCc::Csock_INBOUND; *READ_EOF = *ZNCc::Csock_READ_EOF; *READ_ERR = *ZNCc::Csock_READ_ERR; *READ_EAGAIN = *ZNCc::Csock_READ_EAGAIN; *READ_CONNREFUSED = *ZNCc::Csock_READ_CONNREFUSED; *READ_TIMEDOUT = *ZNCc::Csock_READ_TIMEDOUT; *SEL_OK = *ZNCc::Csock_SEL_OK; *SEL_TIMEOUT = *ZNCc::Csock_SEL_TIMEOUT; *SEL_EAGAIN = *ZNCc::Csock_SEL_EAGAIN; *SEL_ERR = *ZNCc::Csock_SEL_ERR; *SSL23 = *ZNCc::Csock_SSL23; *SSL2 = *ZNCc::Csock_SSL2; *SSL3 = *ZNCc::Csock_SSL3; *TLS1 = *ZNCc::Csock_TLS1; *TLS11 = *ZNCc::Csock_TLS11; *TLS12 = *ZNCc::Csock_TLS12; *EDP_None = *ZNCc::Csock_EDP_None; *EDP_SSLv2 = *ZNCc::Csock_EDP_SSLv2; *EDP_SSLv3 = *ZNCc::Csock_EDP_SSLv3; *EDP_TLSv1 = *ZNCc::Csock_EDP_TLSv1; *EDP_TLSv1_1 = *ZNCc::Csock_EDP_TLSv1_1; *EDP_TLSv1_2 = *ZNCc::Csock_EDP_TLSv1_2; *EDP_SSL = *ZNCc::Csock_EDP_SSL; *CST_START = *ZNCc::Csock_CST_START; *CST_DNS = *ZNCc::Csock_CST_DNS; *CST_BINDVHOST = *ZNCc::Csock_CST_BINDVHOST; *CST_DESTDNS = *ZNCc::Csock_CST_DESTDNS; *CST_CONNECT = *ZNCc::Csock_CST_CONNECT; *CST_CONNECTSSL = *ZNCc::Csock_CST_CONNECTSSL; *CST_OK = *ZNCc::Csock_CST_OK; *CLT_DONT = *ZNCc::Csock_CLT_DONT; *CLT_NOW = *ZNCc::Csock_CLT_NOW; *CLT_AFTERWRITE = *ZNCc::Csock_CLT_AFTERWRITE; *CLT_DEREFERENCE = *ZNCc::Csock_CLT_DEREFERENCE; *__lshift__ = *ZNCc::Csock___lshift__; *Connect = *ZNCc::Csock_Connect; *Listen = *ZNCc::Csock_Listen; *Accept = *ZNCc::Csock_Accept; *AcceptSSL = *ZNCc::Csock_AcceptSSL; *SSLClientSetup = *ZNCc::Csock_SSLClientSetup; *SSLServerSetup = *ZNCc::Csock_SSLServerSetup; *ConnectSSL = *ZNCc::Csock_ConnectSSL; *StartTLS = *ZNCc::Csock_StartTLS; *Write = *ZNCc::Csock_Write; *Read = *ZNCc::Csock_Read; *GetLocalIP = *ZNCc::Csock_GetLocalIP; *GetRemoteIP = *ZNCc::Csock_GetRemoteIP; *IsConnected = *ZNCc::Csock_IsConnected; *SetIsConnected = *ZNCc::Csock_SetIsConnected; *GetRSock = *ZNCc::Csock_GetRSock; *SetRSock = *ZNCc::Csock_SetRSock; *GetWSock = *ZNCc::Csock_GetWSock; *SetWSock = *ZNCc::Csock_SetWSock; *SetSock = *ZNCc::Csock_SetSock; *GetSock = *ZNCc::Csock_GetSock; *CallSockError = *ZNCc::Csock_CallSockError; *ResetTimer = *ZNCc::Csock_ResetTimer; *PauseRead = *ZNCc::Csock_PauseRead; *UnPauseRead = *ZNCc::Csock_UnPauseRead; *IsReadPaused = *ZNCc::Csock_IsReadPaused; *TMO_READ = *ZNCc::Csock_TMO_READ; *TMO_WRITE = *ZNCc::Csock_TMO_WRITE; *TMO_ACCEPT = *ZNCc::Csock_TMO_ACCEPT; *TMO_ALL = *ZNCc::Csock_TMO_ALL; *SetTimeout = *ZNCc::Csock_SetTimeout; *SetTimeoutType = *ZNCc::Csock_SetTimeoutType; *GetTimeout = *ZNCc::Csock_GetTimeout; *GetTimeoutType = *ZNCc::Csock_GetTimeoutType; *CheckTimeout = *ZNCc::Csock_CheckTimeout; *PushBuff = *ZNCc::Csock_PushBuff; *GetInternalReadBuffer = *ZNCc::Csock_GetInternalReadBuffer; *GetInternalWriteBuffer = *ZNCc::Csock_GetInternalWriteBuffer; *SetMaxBufferThreshold = *ZNCc::Csock_SetMaxBufferThreshold; *GetMaxBufferThreshold = *ZNCc::Csock_GetMaxBufferThreshold; *GetType = *ZNCc::Csock_GetType; *SetType = *ZNCc::Csock_SetType; *GetSockName = *ZNCc::Csock_GetSockName; *SetSockName = *ZNCc::Csock_SetSockName; *GetHostName = *ZNCc::Csock_GetHostName; *SetHostName = *ZNCc::Csock_SetHostName; *GetStartTime = *ZNCc::Csock_GetStartTime; *ResetStartTime = *ZNCc::Csock_ResetStartTime; *GetBytesRead = *ZNCc::Csock_GetBytesRead; *ResetBytesRead = *ZNCc::Csock_ResetBytesRead; *GetBytesWritten = *ZNCc::Csock_GetBytesWritten; *ResetBytesWritten = *ZNCc::Csock_ResetBytesWritten; *GetAvgRead = *ZNCc::Csock_GetAvgRead; *GetAvgWrite = *ZNCc::Csock_GetAvgWrite; *GetRemotePort = *ZNCc::Csock_GetRemotePort; *GetLocalPort = *ZNCc::Csock_GetLocalPort; *GetPort = *ZNCc::Csock_GetPort; *SetPort = *ZNCc::Csock_SetPort; *Close = *ZNCc::Csock_Close; *GetCloseType = *ZNCc::Csock_GetCloseType; *IsClosed = *ZNCc::Csock_IsClosed; *NonBlockingIO = *ZNCc::Csock_NonBlockingIO; *GetSSL = *ZNCc::Csock_GetSSL; *SetSSL = *ZNCc::Csock_SetSSL; *HasWriteBuffer = *ZNCc::Csock_HasWriteBuffer; *ClearWriteBuffer = *ZNCc::Csock_ClearWriteBuffer; *SslIsEstablished = *ZNCc::Csock_SslIsEstablished; *ConnectInetd = *ZNCc::Csock_ConnectInetd; *ConnectFD = *ZNCc::Csock_ConnectFD; *SetParentSockName = *ZNCc::Csock_SetParentSockName; *GetParentSockName = *ZNCc::Csock_GetParentSockName; *SetRate = *ZNCc::Csock_SetRate; *GetRateBytes = *ZNCc::Csock_GetRateBytes; *GetRateTime = *ZNCc::Csock_GetRateTime; *Connected = *ZNCc::Csock_Connected; *Disconnected = *ZNCc::Csock_Disconnected; *Timeout = *ZNCc::Csock_Timeout; *ReadData = *ZNCc::Csock_ReadData; *ReadLine = *ZNCc::Csock_ReadLine; *EnableReadLine = *ZNCc::Csock_EnableReadLine; *DisableReadLine = *ZNCc::Csock_DisableReadLine; *HasReadLine = *ZNCc::Csock_HasReadLine; *ReachedMaxBuffer = *ZNCc::Csock_ReachedMaxBuffer; *SockError = *ZNCc::Csock_SockError; *ConnectionFrom = *ZNCc::Csock_ConnectionFrom; *Listening = *ZNCc::Csock_Listening; *ConnectionRefused = *ZNCc::Csock_ConnectionRefused; *ReadPaused = *ZNCc::Csock_ReadPaused; *GetTimeSinceLastDataTransaction = *ZNCc::Csock_GetTimeSinceLastDataTransaction; *GetLastCheckTimeout = *ZNCc::Csock_GetLastCheckTimeout; *GetNextCheckTimeout = *ZNCc::Csock_GetNextCheckTimeout; *GetPending = *ZNCc::Csock_GetPending; *GetConState = *ZNCc::Csock_GetConState; *SetConState = *ZNCc::Csock_SetConState; *CreateSocksFD = *ZNCc::Csock_CreateSocksFD; *CloseSocksFD = *ZNCc::Csock_CloseSocksFD; *GetBindHost = *ZNCc::Csock_GetBindHost; *SetBindHost = *ZNCc::Csock_SetBindHost; *DNS_VHOST = *ZNCc::Csock_DNS_VHOST; *DNS_DEST = *ZNCc::Csock_DNS_DEST; *DNSLookup = *ZNCc::Csock_DNSLookup; *SetupVHost = *ZNCc::Csock_SetupVHost; *GetIPv6 = *ZNCc::Csock_GetIPv6; *SetIPv6 = *ZNCc::Csock_SetIPv6; *SetAFRequire = *ZNCc::Csock_SetAFRequire; *AllowWrite = *ZNCc::Csock_AllowWrite; *SetSkipConnect = *ZNCc::Csock_SetSkipConnect; *GetAddrInfo = *ZNCc::Csock_GetAddrInfo; *ConvertAddress = *ZNCc::Csock_ConvertAddress; *GetMaxConns = *ZNCc::Csock_GetMaxConns; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSConnection ############## package ZNC::CSConnection; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSConnection(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSConnection($self); delete $OWNER{$self}; } } *GetHostname = *ZNCc::CSConnection_GetHostname; *GetSockName = *ZNCc::CSConnection_GetSockName; *GetBindHost = *ZNCc::CSConnection_GetBindHost; *GetPort = *ZNCc::CSConnection_GetPort; *GetTimeout = *ZNCc::CSConnection_GetTimeout; *GetIsSSL = *ZNCc::CSConnection_GetIsSSL; *GetAFRequire = *ZNCc::CSConnection_GetAFRequire; *SetHostname = *ZNCc::CSConnection_SetHostname; *SetSockName = *ZNCc::CSConnection_SetSockName; *SetBindHost = *ZNCc::CSConnection_SetBindHost; *SetPort = *ZNCc::CSConnection_SetPort; *SetTimeout = *ZNCc::CSConnection_SetTimeout; *SetIsSSL = *ZNCc::CSConnection_SetIsSSL; *SetAFRequire = *ZNCc::CSConnection_SetAFRequire; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSSSLConnection ############## package ZNC::CSSSLConnection; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CSConnection ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSSSLConnection(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSSSLConnection($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSListener ############## package ZNC::CSListener; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSListener(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSListener($self); delete $OWNER{$self}; } } *SetDetach = *ZNCc::CSListener_SetDetach; *GetDetach = *ZNCc::CSListener_GetDetach; *GetPort = *ZNCc::CSListener_GetPort; *GetSockName = *ZNCc::CSListener_GetSockName; *GetBindHost = *ZNCc::CSListener_GetBindHost; *GetIsSSL = *ZNCc::CSListener_GetIsSSL; *GetMaxConns = *ZNCc::CSListener_GetMaxConns; *GetTimeout = *ZNCc::CSListener_GetTimeout; *GetAFRequire = *ZNCc::CSListener_GetAFRequire; *SetPort = *ZNCc::CSListener_SetPort; *SetSockName = *ZNCc::CSListener_SetSockName; *SetBindHost = *ZNCc::CSListener_SetBindHost; *SetIsSSL = *ZNCc::CSListener_SetIsSSL; *SetMaxConns = *ZNCc::CSListener_SetMaxConns; *SetTimeout = *ZNCc::CSListener_SetTimeout; *SetAFRequire = *ZNCc::CSListener_SetAFRequire; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSocketManager ############## package ZNC::CSocketManager; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CSockCommon ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSocketManager(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSocketManager($self); delete $OWNER{$self}; } } *clear = *ZNCc::CSocketManager_clear; *Cleanup = *ZNCc::CSocketManager_Cleanup; *GetSockObj = *ZNCc::CSocketManager_GetSockObj; *SUCCESS = *ZNCc::CSocketManager_SUCCESS; *SELECT_ERROR = *ZNCc::CSocketManager_SELECT_ERROR; *SELECT_TIMEOUT = *ZNCc::CSocketManager_SELECT_TIMEOUT; *SELECT_TRYAGAIN = *ZNCc::CSocketManager_SELECT_TRYAGAIN; *Connect = *ZNCc::CSocketManager_Connect; *Listen = *ZNCc::CSocketManager_Listen; *HasFDs = *ZNCc::CSocketManager_HasFDs; *Loop = *ZNCc::CSocketManager_Loop; *DynamicSelectLoop = *ZNCc::CSocketManager_DynamicSelectLoop; *AddSock = *ZNCc::CSocketManager_AddSock; *FindSockByRemotePort = *ZNCc::CSocketManager_FindSockByRemotePort; *FindSockByLocalPort = *ZNCc::CSocketManager_FindSockByLocalPort; *FindSockByName = *ZNCc::CSocketManager_FindSockByName; *FindSockByFD = *ZNCc::CSocketManager_FindSockByFD; *FindSocksByName = *ZNCc::CSocketManager_FindSocksByName; *FindSocksByRemoteHost = *ZNCc::CSocketManager_FindSocksByRemoteHost; *GetErrno = *ZNCc::CSocketManager_GetErrno; *GetSelectTimeout = *ZNCc::CSocketManager_GetSelectTimeout; *SetSelectTimeout = *ZNCc::CSocketManager_SetSelectTimeout; *DelSockByAddr = *ZNCc::CSocketManager_DelSockByAddr; *DelSock = *ZNCc::CSocketManager_DelSock; *SwapSockByIdx = *ZNCc::CSocketManager_SwapSockByIdx; *SwapSockByAddr = *ZNCc::CSocketManager_SwapSockByAddr; *GetBytesRead = *ZNCc::CSocketManager_GetBytesRead; *GetBytesWritten = *ZNCc::CSocketManager_GetBytesWritten; *ECT_Read = *ZNCc::CSocketManager_ECT_Read; *ECT_Write = *ZNCc::CSocketManager_ECT_Write; *FDSetCheck = *ZNCc::CSocketManager_FDSetCheck; *FDHasCheck = *ZNCc::CSocketManager_FDHasCheck; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::ZNCSocketManager ############## package ZNC::ZNCSocketManager; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CSocketManager ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_ZNCSocketManager(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_ZNCSocketManager($self); delete $OWNER{$self}; } } *GetSockObj = *ZNCc::ZNCSocketManager_GetSockObj; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CZNCSock ############## package ZNC::CZNCSock; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::Csock ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CZNCSock(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CZNCSock($self); delete $OWNER{$self}; } } *ConvertAddress = *ZNCc::CZNCSock_ConvertAddress; *SetHostToVerifySSL = *ZNCc::CZNCSock_SetHostToVerifySSL; *GetSSLPeerFingerprint = *ZNCc::CZNCSock_GetSSLPeerFingerprint; *SetSSLTrustedPeerFingerprints = *ZNCc::CZNCSock_SetSSLTrustedPeerFingerprints; *SetEncoding = *ZNCc::CZNCSock_SetEncoding; *GetRemoteIP = *ZNCc::CZNCSock_GetRemoteIP; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSockManager ############## package ZNC::CSockManager; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::ZNCSocketManager ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSockManager(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSockManager($self); delete $OWNER{$self}; } } *ListenHost = *ZNCc::CSockManager_ListenHost; *ListenAll = *ZNCc::CSockManager_ListenAll; *ListenRand = *ZNCc::CSockManager_ListenRand; *ListenAllRand = *ZNCc::CSockManager_ListenAllRand; *Connect = *ZNCc::CSockManager_Connect; *GetAnonConnectionCount = *ZNCc::CSockManager_GetAnonConnectionCount; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CSocket ############## package ZNC::CSocket; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CZNCSock ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CSocket(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CSocket($self); delete $OWNER{$self}; } } *ReachedMaxBuffer = *ZNCc::CSocket_ReachedMaxBuffer; *SockError = *ZNCc::CSocket_SockError; *ConnectionFrom = *ZNCc::CSocket_ConnectionFrom; *Connect = *ZNCc::CSocket_Connect; *Listen = *ZNCc::CSocket_Listen; *GetModule = *ZNCc::CSocket_GetModule; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CIRCSocket ############## package ZNC::CIRCSocket; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CZNCSock ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CIRCSocket(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CIRCSocket($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CFile ############## package ZNC::CFile; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CFile(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CFile($self); delete $OWNER{$self}; } } *FT_REGULAR = *ZNCc::CFile_FT_REGULAR; *FT_DIRECTORY = *ZNCc::CFile_FT_DIRECTORY; *FT_CHARACTER = *ZNCc::CFile_FT_CHARACTER; *FT_BLOCK = *ZNCc::CFile_FT_BLOCK; *FT_FIFO = *ZNCc::CFile_FT_FIFO; *FT_LINK = *ZNCc::CFile_FT_LINK; *FT_SOCK = *ZNCc::CFile_FT_SOCK; *SetFileName = *ZNCc::CFile_SetFileName; *IsReg = *ZNCc::CFile_IsReg; *IsDir = *ZNCc::CFile_IsDir; *IsChr = *ZNCc::CFile_IsChr; *IsBlk = *ZNCc::CFile_IsBlk; *IsFifo = *ZNCc::CFile_IsFifo; *IsLnk = *ZNCc::CFile_IsLnk; *IsSock = *ZNCc::CFile_IsSock; *FType = *ZNCc::CFile_FType; *FA_Name = *ZNCc::CFile_FA_Name; *FA_Size = *ZNCc::CFile_FA_Size; *FA_ATime = *ZNCc::CFile_FA_ATime; *FA_MTime = *ZNCc::CFile_FA_MTime; *FA_CTime = *ZNCc::CFile_FA_CTime; *FA_UID = *ZNCc::CFile_FA_UID; *Exists = *ZNCc::CFile_Exists; *GetSize = *ZNCc::CFile_GetSize; *GetATime = *ZNCc::CFile_GetATime; *GetMTime = *ZNCc::CFile_GetMTime; *GetCTime = *ZNCc::CFile_GetCTime; *GetUID = *ZNCc::CFile_GetUID; *GetGID = *ZNCc::CFile_GetGID; *GetInfo = *ZNCc::CFile_GetInfo; *Delete = *ZNCc::CFile_Delete; *Move = *ZNCc::CFile_Move; *Copy = *ZNCc::CFile_Copy; *Chmod = *ZNCc::CFile_Chmod; *Seek = *ZNCc::CFile_Seek; *Truncate = *ZNCc::CFile_Truncate; *Sync = *ZNCc::CFile_Sync; *Open = *ZNCc::CFile_Open; *Read = *ZNCc::CFile_Read; *ReadLine = *ZNCc::CFile_ReadLine; *ReadFile = *ZNCc::CFile_ReadFile; *Write = *ZNCc::CFile_Write; *Close = *ZNCc::CFile_Close; *ClearBuffer = *ZNCc::CFile_ClearBuffer; *TryExLock = *ZNCc::CFile_TryExLock; *ExLock = *ZNCc::CFile_ExLock; *UnLock = *ZNCc::CFile_UnLock; *IsOpen = *ZNCc::CFile_IsOpen; *GetLongName = *ZNCc::CFile_GetLongName; *GetShortName = *ZNCc::CFile_GetShortName; *GetDir = *ZNCc::CFile_GetDir; *HadError = *ZNCc::CFile_HadError; *ResetError = *ZNCc::CFile_ResetError; *InitHomePath = *ZNCc::CFile_InitHomePath; *GetHomePath = *ZNCc::CFile_GetHomePath; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CDir ############## package ZNC::CDir; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CDir(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CDir($self); delete $OWNER{$self}; } } *CleanUp = *ZNCc::CDir_CleanUp; *Fill = *ZNCc::CDir_Fill; *FillByWildcard = *ZNCc::CDir_FillByWildcard; *Chmod = *ZNCc::CDir_Chmod; *Delete = *ZNCc::CDir_Delete; *GetSortAttr = *ZNCc::CDir_GetSortAttr; *IsDescending = *ZNCc::CDir_IsDescending; *CheckPathPrefix = *ZNCc::CDir_CheckPathPrefix; *ChangeDir = *ZNCc::CDir_ChangeDir; *MakeDir = *ZNCc::CDir_MakeDir; *GetCWD = *ZNCc::CDir_GetCWD; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CTimer ############## package ZNC::CTimer; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CCron ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CTimer(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CTimer($self); delete $OWNER{$self}; } } *SetModule = *ZNCc::CTimer_SetModule; *SetDescription = *ZNCc::CTimer_SetDescription; *GetModule = *ZNCc::CTimer_GetModule; *GetDescription = *ZNCc::CTimer_GetDescription; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CFPTimer ############## package ZNC::CFPTimer; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CTimer ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CFPTimer(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CFPTimer($self); delete $OWNER{$self}; } } *SetFPCallback = *ZNCc::CFPTimer_SetFPCallback; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CModInfo ############## package ZNC::CModInfo; use overload "<" => sub { $_[0]->__lt__($_[1])}, "=" => sub { my $class = ref($_[0]); $class->new($_[0]) }, "fallback" => 1; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *GlobalModule = *ZNCc::CModInfo_GlobalModule; *UserModule = *ZNCc::CModInfo_UserModule; *NetworkModule = *ZNCc::CModInfo_NetworkModule; sub new { my $pkg = shift; my $self = ZNCc::new_CModInfo(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CModInfo($self); delete $OWNER{$self}; } } *__lt__ = *ZNCc::CModInfo___lt__; *SupportsType = *ZNCc::CModInfo_SupportsType; *AddType = *ZNCc::CModInfo_AddType; *ModuleTypeToString = *ZNCc::CModInfo_ModuleTypeToString; *GetName = *ZNCc::CModInfo_GetName; *GetPath = *ZNCc::CModInfo_GetPath; *GetDescription = *ZNCc::CModInfo_GetDescription; *GetWikiPage = *ZNCc::CModInfo_GetWikiPage; *GetArgsHelpText = *ZNCc::CModInfo_GetArgsHelpText; *GetHasArgs = *ZNCc::CModInfo_GetHasArgs; *GetLoader = *ZNCc::CModInfo_GetLoader; *GetDefaultType = *ZNCc::CModInfo_GetDefaultType; *SetName = *ZNCc::CModInfo_SetName; *SetPath = *ZNCc::CModInfo_SetPath; *SetDescription = *ZNCc::CModInfo_SetDescription; *SetWikiPage = *ZNCc::CModInfo_SetWikiPage; *SetArgsHelpText = *ZNCc::CModInfo_SetArgsHelpText; *SetHasArgs = *ZNCc::CModInfo_SetHasArgs; *SetLoader = *ZNCc::CModInfo_SetLoader; *SetDefaultType = *ZNCc::CModInfo_SetDefaultType; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CModCommand ############## package ZNC::CModCommand; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CModCommand(@_); bless $self, $pkg if defined($self); } *InitHelp = *ZNCc::CModCommand_InitHelp; *AddHelp = *ZNCc::CModCommand_AddHelp; *GetCommand = *ZNCc::CModCommand_GetCommand; *GetFunction = *ZNCc::CModCommand_GetFunction; *GetArgs = *ZNCc::CModCommand_GetArgs; *GetDescription = *ZNCc::CModCommand_GetDescription; *Call = *ZNCc::CModCommand_Call; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CModCommand($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CModule ############## package ZNC::CModule; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CModule(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CModule($self); delete $OWNER{$self}; } } *CONTINUE = *ZNCc::CModule_CONTINUE; *HALT = *ZNCc::CModule_HALT; *HALTMODS = *ZNCc::CModule_HALTMODS; *HALTCORE = *ZNCc::CModule_HALTCORE; *UNLOAD = *ZNCc::CModule_UNLOAD; *SetUser = *ZNCc::CModule_SetUser; *SetNetwork = *ZNCc::CModule_SetNetwork; *SetClient = *ZNCc::CModule_SetClient; *Unload = *ZNCc::CModule_Unload; *OnLoad = *ZNCc::CModule_OnLoad; *OnBoot = *ZNCc::CModule_OnBoot; *WebRequiresLogin = *ZNCc::CModule_WebRequiresLogin; *WebRequiresAdmin = *ZNCc::CModule_WebRequiresAdmin; *GetWebMenuTitle = *ZNCc::CModule_GetWebMenuTitle; *GetWebPath = *ZNCc::CModule_GetWebPath; *GetWebFilesPath = *ZNCc::CModule_GetWebFilesPath; *OnWebPreRequest = *ZNCc::CModule_OnWebPreRequest; *OnWebRequest = *ZNCc::CModule_OnWebRequest; *AddSubPage = *ZNCc::CModule_AddSubPage; *ClearSubPages = *ZNCc::CModule_ClearSubPages; *GetSubPages = *ZNCc::CModule_GetSubPages; *OnEmbeddedWebRequest = *ZNCc::CModule_OnEmbeddedWebRequest; *OnPreRehash = *ZNCc::CModule_OnPreRehash; *OnPostRehash = *ZNCc::CModule_OnPostRehash; *OnIRCDisconnected = *ZNCc::CModule_OnIRCDisconnected; *OnIRCConnected = *ZNCc::CModule_OnIRCConnected; *OnIRCConnecting = *ZNCc::CModule_OnIRCConnecting; *OnIRCConnectionError = *ZNCc::CModule_OnIRCConnectionError; *OnIRCRegistration = *ZNCc::CModule_OnIRCRegistration; *OnBroadcast = *ZNCc::CModule_OnBroadcast; *OnChanPermission2 = *ZNCc::CModule_OnChanPermission2; *OnChanPermission = *ZNCc::CModule_OnChanPermission; *OnOp2 = *ZNCc::CModule_OnOp2; *OnOp = *ZNCc::CModule_OnOp; *OnDeop2 = *ZNCc::CModule_OnDeop2; *OnDeop = *ZNCc::CModule_OnDeop; *OnVoice2 = *ZNCc::CModule_OnVoice2; *OnVoice = *ZNCc::CModule_OnVoice; *OnDevoice2 = *ZNCc::CModule_OnDevoice2; *OnDevoice = *ZNCc::CModule_OnDevoice; *OnMode2 = *ZNCc::CModule_OnMode2; *OnMode = *ZNCc::CModule_OnMode; *OnRawMode2 = *ZNCc::CModule_OnRawMode2; *OnRawMode = *ZNCc::CModule_OnRawMode; *OnRaw = *ZNCc::CModule_OnRaw; *OnStatusCommand = *ZNCc::CModule_OnStatusCommand; *OnModCommand = *ZNCc::CModule_OnModCommand; *OnUnknownModCommand = *ZNCc::CModule_OnUnknownModCommand; *OnModNotice = *ZNCc::CModule_OnModNotice; *OnModCTCP = *ZNCc::CModule_OnModCTCP; *OnQuit = *ZNCc::CModule_OnQuit; *OnNick = *ZNCc::CModule_OnNick; *OnKick = *ZNCc::CModule_OnKick; *OnJoining = *ZNCc::CModule_OnJoining; *OnJoin = *ZNCc::CModule_OnJoin; *OnPart = *ZNCc::CModule_OnPart; *OnInvite = *ZNCc::CModule_OnInvite; *OnChanBufferStarting = *ZNCc::CModule_OnChanBufferStarting; *OnChanBufferEnding = *ZNCc::CModule_OnChanBufferEnding; *OnChanBufferPlayLine2 = *ZNCc::CModule_OnChanBufferPlayLine2; *OnChanBufferPlayLine = *ZNCc::CModule_OnChanBufferPlayLine; *OnPrivBufferPlayLine2 = *ZNCc::CModule_OnPrivBufferPlayLine2; *OnPrivBufferPlayLine = *ZNCc::CModule_OnPrivBufferPlayLine; *OnClientLogin = *ZNCc::CModule_OnClientLogin; *OnClientDisconnect = *ZNCc::CModule_OnClientDisconnect; *OnUserRaw = *ZNCc::CModule_OnUserRaw; *OnUserCTCPReply = *ZNCc::CModule_OnUserCTCPReply; *OnUserCTCP = *ZNCc::CModule_OnUserCTCP; *OnUserAction = *ZNCc::CModule_OnUserAction; *OnUserMsg = *ZNCc::CModule_OnUserMsg; *OnUserNotice = *ZNCc::CModule_OnUserNotice; *OnUserJoin = *ZNCc::CModule_OnUserJoin; *OnUserPart = *ZNCc::CModule_OnUserPart; *OnUserTopic = *ZNCc::CModule_OnUserTopic; *OnUserTopicRequest = *ZNCc::CModule_OnUserTopicRequest; *OnCTCPReply = *ZNCc::CModule_OnCTCPReply; *OnPrivCTCP = *ZNCc::CModule_OnPrivCTCP; *OnChanCTCP = *ZNCc::CModule_OnChanCTCP; *OnPrivAction = *ZNCc::CModule_OnPrivAction; *OnChanAction = *ZNCc::CModule_OnChanAction; *OnPrivMsg = *ZNCc::CModule_OnPrivMsg; *OnChanMsg = *ZNCc::CModule_OnChanMsg; *OnPrivNotice = *ZNCc::CModule_OnPrivNotice; *OnChanNotice = *ZNCc::CModule_OnChanNotice; *OnTopic = *ZNCc::CModule_OnTopic; *OnServerCapAvailable = *ZNCc::CModule_OnServerCapAvailable; *OnServerCapResult = *ZNCc::CModule_OnServerCapResult; *OnTimerAutoJoin = *ZNCc::CModule_OnTimerAutoJoin; *OnAddNetwork = *ZNCc::CModule_OnAddNetwork; *OnDeleteNetwork = *ZNCc::CModule_OnDeleteNetwork; *OnSendToClient = *ZNCc::CModule_OnSendToClient; *OnSendToIRC = *ZNCc::CModule_OnSendToIRC; *GetDLL = *ZNCc::CModule_GetDLL; *GetCoreVersion = *ZNCc::CModule_GetCoreVersion; *PutIRC = *ZNCc::CModule_PutIRC; *PutUser = *ZNCc::CModule_PutUser; *PutStatus = *ZNCc::CModule_PutStatus; *PutModule = *ZNCc::CModule_PutModule; *PutModNotice = *ZNCc::CModule_PutModNotice; *GetModName = *ZNCc::CModule_GetModName; *GetModNick = *ZNCc::CModule_GetModNick; *GetModDataDir = *ZNCc::CModule_GetModDataDir; *AddTimer = *ZNCc::CModule_AddTimer; *RemTimer = *ZNCc::CModule_RemTimer; *UnlinkTimer = *ZNCc::CModule_UnlinkTimer; *FindTimer = *ZNCc::CModule_FindTimer; *BeginTimers = *ZNCc::CModule_BeginTimers; *EndTimers = *ZNCc::CModule_EndTimers; *ListTimers = *ZNCc::CModule_ListTimers; *AddSocket = *ZNCc::CModule_AddSocket; *RemSocket = *ZNCc::CModule_RemSocket; *UnlinkSocket = *ZNCc::CModule_UnlinkSocket; *FindSocket = *ZNCc::CModule_FindSocket; *BeginSockets = *ZNCc::CModule_BeginSockets; *EndSockets = *ZNCc::CModule_EndSockets; *ListSockets = *ZNCc::CModule_ListSockets; *AddHelpCommand = *ZNCc::CModule_AddHelpCommand; *AddCommand = *ZNCc::CModule_AddCommand; *RemCommand = *ZNCc::CModule_RemCommand; *FindCommand = *ZNCc::CModule_FindCommand; *HandleCommand = *ZNCc::CModule_HandleCommand; *HandleHelpCommand = *ZNCc::CModule_HandleHelpCommand; *LoadRegistry = *ZNCc::CModule_LoadRegistry; *SaveRegistry = *ZNCc::CModule_SaveRegistry; *MoveRegistry = *ZNCc::CModule_MoveRegistry; *SetNV = *ZNCc::CModule_SetNV; *GetNV = *ZNCc::CModule_GetNV; *FindNV = *ZNCc::CModule_FindNV; *EndNV = *ZNCc::CModule_EndNV; *BeginNV = *ZNCc::CModule_BeginNV; *DelNV = *ZNCc::CModule_DelNV; *ClearNV = *ZNCc::CModule_ClearNV; *GetSavePath = *ZNCc::CModule_GetSavePath; *ExpandString = *ZNCc::CModule_ExpandString; *SetType = *ZNCc::CModule_SetType; *SetDescription = *ZNCc::CModule_SetDescription; *SetModPath = *ZNCc::CModule_SetModPath; *SetArgs = *ZNCc::CModule_SetArgs; *GetType = *ZNCc::CModule_GetType; *GetDescription = *ZNCc::CModule_GetDescription; *GetArgs = *ZNCc::CModule_GetArgs; *GetModPath = *ZNCc::CModule_GetModPath; *GetUser = *ZNCc::CModule_GetUser; *GetNetwork = *ZNCc::CModule_GetNetwork; *GetClient = *ZNCc::CModule_GetClient; *GetManager = *ZNCc::CModule_GetManager; *OnAddUser = *ZNCc::CModule_OnAddUser; *OnDeleteUser = *ZNCc::CModule_OnDeleteUser; *OnClientConnect = *ZNCc::CModule_OnClientConnect; *OnLoginAttempt = *ZNCc::CModule_OnLoginAttempt; *OnFailedLogin = *ZNCc::CModule_OnFailedLogin; *OnUnknownUserRaw = *ZNCc::CModule_OnUnknownUserRaw; *OnClientCapLs = *ZNCc::CModule_OnClientCapLs; *IsClientCapSupported = *ZNCc::CModule_IsClientCapSupported; *OnClientCapRequest = *ZNCc::CModule_OnClientCapRequest; *OnModuleLoading = *ZNCc::CModule_OnModuleLoading; *OnModuleUnloading = *ZNCc::CModule_OnModuleUnloading; *OnGetModInfo = *ZNCc::CModule_OnGetModInfo; *OnGetAvailableMods = *ZNCc::CModule_OnGetAvailableMods; *_GetNVKeys = *ZNCc::CModule__GetNVKeys; *ExistsNV = *ZNCc::CModule_ExistsNV; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CModules ############## package ZNC::CModules; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CModules(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CModules($self); delete $OWNER{$self}; } } *SetUser = *ZNCc::CModules_SetUser; *SetNetwork = *ZNCc::CModules_SetNetwork; *SetClient = *ZNCc::CModules_SetClient; *GetUser = *ZNCc::CModules_GetUser; *GetNetwork = *ZNCc::CModules_GetNetwork; *GetClient = *ZNCc::CModules_GetClient; *UnloadAll = *ZNCc::CModules_UnloadAll; *OnBoot = *ZNCc::CModules_OnBoot; *OnPreRehash = *ZNCc::CModules_OnPreRehash; *OnPostRehash = *ZNCc::CModules_OnPostRehash; *OnIRCDisconnected = *ZNCc::CModules_OnIRCDisconnected; *OnIRCConnected = *ZNCc::CModules_OnIRCConnected; *OnIRCConnecting = *ZNCc::CModules_OnIRCConnecting; *OnIRCConnectionError = *ZNCc::CModules_OnIRCConnectionError; *OnIRCRegistration = *ZNCc::CModules_OnIRCRegistration; *OnBroadcast = *ZNCc::CModules_OnBroadcast; *OnChanPermission2 = *ZNCc::CModules_OnChanPermission2; *OnChanPermission = *ZNCc::CModules_OnChanPermission; *OnOp2 = *ZNCc::CModules_OnOp2; *OnOp = *ZNCc::CModules_OnOp; *OnDeop2 = *ZNCc::CModules_OnDeop2; *OnDeop = *ZNCc::CModules_OnDeop; *OnVoice2 = *ZNCc::CModules_OnVoice2; *OnVoice = *ZNCc::CModules_OnVoice; *OnDevoice2 = *ZNCc::CModules_OnDevoice2; *OnDevoice = *ZNCc::CModules_OnDevoice; *OnRawMode2 = *ZNCc::CModules_OnRawMode2; *OnRawMode = *ZNCc::CModules_OnRawMode; *OnMode2 = *ZNCc::CModules_OnMode2; *OnMode = *ZNCc::CModules_OnMode; *OnRaw = *ZNCc::CModules_OnRaw; *OnStatusCommand = *ZNCc::CModules_OnStatusCommand; *OnModCommand = *ZNCc::CModules_OnModCommand; *OnModNotice = *ZNCc::CModules_OnModNotice; *OnModCTCP = *ZNCc::CModules_OnModCTCP; *OnQuit = *ZNCc::CModules_OnQuit; *OnNick = *ZNCc::CModules_OnNick; *OnKick = *ZNCc::CModules_OnKick; *OnJoining = *ZNCc::CModules_OnJoining; *OnJoin = *ZNCc::CModules_OnJoin; *OnPart = *ZNCc::CModules_OnPart; *OnInvite = *ZNCc::CModules_OnInvite; *OnChanBufferStarting = *ZNCc::CModules_OnChanBufferStarting; *OnChanBufferEnding = *ZNCc::CModules_OnChanBufferEnding; *OnChanBufferPlayLine2 = *ZNCc::CModules_OnChanBufferPlayLine2; *OnChanBufferPlayLine = *ZNCc::CModules_OnChanBufferPlayLine; *OnPrivBufferPlayLine2 = *ZNCc::CModules_OnPrivBufferPlayLine2; *OnPrivBufferPlayLine = *ZNCc::CModules_OnPrivBufferPlayLine; *OnClientLogin = *ZNCc::CModules_OnClientLogin; *OnClientDisconnect = *ZNCc::CModules_OnClientDisconnect; *OnUserRaw = *ZNCc::CModules_OnUserRaw; *OnUserCTCPReply = *ZNCc::CModules_OnUserCTCPReply; *OnUserCTCP = *ZNCc::CModules_OnUserCTCP; *OnUserAction = *ZNCc::CModules_OnUserAction; *OnUserMsg = *ZNCc::CModules_OnUserMsg; *OnUserNotice = *ZNCc::CModules_OnUserNotice; *OnUserJoin = *ZNCc::CModules_OnUserJoin; *OnUserPart = *ZNCc::CModules_OnUserPart; *OnUserTopic = *ZNCc::CModules_OnUserTopic; *OnUserTopicRequest = *ZNCc::CModules_OnUserTopicRequest; *OnCTCPReply = *ZNCc::CModules_OnCTCPReply; *OnPrivCTCP = *ZNCc::CModules_OnPrivCTCP; *OnChanCTCP = *ZNCc::CModules_OnChanCTCP; *OnPrivAction = *ZNCc::CModules_OnPrivAction; *OnChanAction = *ZNCc::CModules_OnChanAction; *OnPrivMsg = *ZNCc::CModules_OnPrivMsg; *OnChanMsg = *ZNCc::CModules_OnChanMsg; *OnPrivNotice = *ZNCc::CModules_OnPrivNotice; *OnChanNotice = *ZNCc::CModules_OnChanNotice; *OnTopic = *ZNCc::CModules_OnTopic; *OnTimerAutoJoin = *ZNCc::CModules_OnTimerAutoJoin; *OnAddNetwork = *ZNCc::CModules_OnAddNetwork; *OnDeleteNetwork = *ZNCc::CModules_OnDeleteNetwork; *OnSendToClient = *ZNCc::CModules_OnSendToClient; *OnSendToIRC = *ZNCc::CModules_OnSendToIRC; *OnServerCapAvailable = *ZNCc::CModules_OnServerCapAvailable; *OnServerCapResult = *ZNCc::CModules_OnServerCapResult; *FindModule = *ZNCc::CModules_FindModule; *LoadModule = *ZNCc::CModules_LoadModule; *UnloadModule = *ZNCc::CModules_UnloadModule; *ReloadModule = *ZNCc::CModules_ReloadModule; *GetModInfo = *ZNCc::CModules_GetModInfo; *GetModPathInfo = *ZNCc::CModules_GetModPathInfo; *GetAvailableMods = *ZNCc::CModules_GetAvailableMods; *GetDefaultMods = *ZNCc::CModules_GetDefaultMods; *FindModPath = *ZNCc::CModules_FindModPath; *GetModDirs = *ZNCc::CModules_GetModDirs; *OnAddUser = *ZNCc::CModules_OnAddUser; *OnDeleteUser = *ZNCc::CModules_OnDeleteUser; *OnClientConnect = *ZNCc::CModules_OnClientConnect; *OnLoginAttempt = *ZNCc::CModules_OnLoginAttempt; *OnFailedLogin = *ZNCc::CModules_OnFailedLogin; *OnUnknownUserRaw = *ZNCc::CModules_OnUnknownUserRaw; *OnClientCapLs = *ZNCc::CModules_OnClientCapLs; *IsClientCapSupported = *ZNCc::CModules_IsClientCapSupported; *OnClientCapRequest = *ZNCc::CModules_OnClientCapRequest; *OnModuleLoading = *ZNCc::CModules_OnModuleLoading; *OnModuleUnloading = *ZNCc::CModules_OnModuleUnloading; *OnGetModInfo = *ZNCc::CModules_OnGetModInfo; *OnGetAvailableMods = *ZNCc::CModules_OnGetAvailableMods; *push_back = *ZNCc::CModules_push_back; *removeModule = *ZNCc::CModules_removeModule; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CNick ############## package ZNC::CNick; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CNick(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CNick($self); delete $OWNER{$self}; } } *Reset = *ZNCc::CNick_Reset; *Parse = *ZNCc::CNick_Parse; *GetHostMask = *ZNCc::CNick_GetHostMask; *GetCommonChans = *ZNCc::CNick_GetCommonChans; *NickEquals = *ZNCc::CNick_NickEquals; *SetNetwork = *ZNCc::CNick_SetNetwork; *SetNick = *ZNCc::CNick_SetNick; *SetIdent = *ZNCc::CNick_SetIdent; *SetHost = *ZNCc::CNick_SetHost; *AddPerm = *ZNCc::CNick_AddPerm; *RemPerm = *ZNCc::CNick_RemPerm; *GetPermStr = *ZNCc::CNick_GetPermStr; *GetPermChar = *ZNCc::CNick_GetPermChar; *HasPerm = *ZNCc::CNick_HasPerm; *GetNick = *ZNCc::CNick_GetNick; *GetIdent = *ZNCc::CNick_GetIdent; *GetHost = *ZNCc::CNick_GetHost; *GetNickMask = *ZNCc::CNick_GetNickMask; *Clone = *ZNCc::CNick_Clone; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CChan ############## package ZNC::CChan; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *Voice = *ZNCc::CChan_Voice; *HalfOp = *ZNCc::CChan_HalfOp; *Op = *ZNCc::CChan_Op; *Admin = *ZNCc::CChan_Admin; *Owner = *ZNCc::CChan_Owner; *M_Private = *ZNCc::CChan_M_Private; *M_Secret = *ZNCc::CChan_M_Secret; *M_Moderated = *ZNCc::CChan_M_Moderated; *M_InviteOnly = *ZNCc::CChan_M_InviteOnly; *M_NoMessages = *ZNCc::CChan_M_NoMessages; *M_OpTopic = *ZNCc::CChan_M_OpTopic; *M_Limit = *ZNCc::CChan_M_Limit; *M_Key = *ZNCc::CChan_M_Key; *M_Op = *ZNCc::CChan_M_Op; *M_Voice = *ZNCc::CChan_M_Voice; *M_Ban = *ZNCc::CChan_M_Ban; *M_Except = *ZNCc::CChan_M_Except; sub new { my $pkg = shift; my $self = ZNCc::new_CChan(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CChan($self); delete $OWNER{$self}; } } *Reset = *ZNCc::CChan_Reset; *ToConfig = *ZNCc::CChan_ToConfig; *Clone = *ZNCc::CChan_Clone; *Cycle = *ZNCc::CChan_Cycle; *JoinUser = *ZNCc::CChan_JoinUser; *AttachUser = *ZNCc::CChan_AttachUser; *DetachUser = *ZNCc::CChan_DetachUser; *OnWho = *ZNCc::CChan_OnWho; *SetModes = *ZNCc::CChan_SetModes; *ModeChange = *ZNCc::CChan_ModeChange; *AddMode = *ZNCc::CChan_AddMode; *RemMode = *ZNCc::CChan_RemMode; *GetModeString = *ZNCc::CChan_GetModeString; *GetModeForNames = *ZNCc::CChan_GetModeForNames; *ClearNicks = *ZNCc::CChan_ClearNicks; *FindNick = *ZNCc::CChan_FindNick; *AddNicks = *ZNCc::CChan_AddNicks; *AddNick = *ZNCc::CChan_AddNick; *RemNick = *ZNCc::CChan_RemNick; *ChangeNick = *ZNCc::CChan_ChangeNick; *GetBuffer = *ZNCc::CChan_GetBuffer; *GetBufferCount = *ZNCc::CChan_GetBufferCount; *SetBufferCount = *ZNCc::CChan_SetBufferCount; *InheritBufferCount = *ZNCc::CChan_InheritBufferCount; *AddBuffer = *ZNCc::CChan_AddBuffer; *ClearBuffer = *ZNCc::CChan_ClearBuffer; *SendBuffer = *ZNCc::CChan_SendBuffer; *GetPermStr = *ZNCc::CChan_GetPermStr; *HasPerm = *ZNCc::CChan_HasPerm; *AddPerm = *ZNCc::CChan_AddPerm; *RemPerm = *ZNCc::CChan_RemPerm; *SetModeKnown = *ZNCc::CChan_SetModeKnown; *SetIsOn = *ZNCc::CChan_SetIsOn; *SetKey = *ZNCc::CChan_SetKey; *SetTopic = *ZNCc::CChan_SetTopic; *SetTopicOwner = *ZNCc::CChan_SetTopicOwner; *SetTopicDate = *ZNCc::CChan_SetTopicDate; *SetDefaultModes = *ZNCc::CChan_SetDefaultModes; *SetAutoClearChanBuffer = *ZNCc::CChan_SetAutoClearChanBuffer; *InheritAutoClearChanBuffer = *ZNCc::CChan_InheritAutoClearChanBuffer; *SetDetached = *ZNCc::CChan_SetDetached; *SetInConfig = *ZNCc::CChan_SetInConfig; *SetCreationDate = *ZNCc::CChan_SetCreationDate; *Disable = *ZNCc::CChan_Disable; *Enable = *ZNCc::CChan_Enable; *IncJoinTries = *ZNCc::CChan_IncJoinTries; *ResetJoinTries = *ZNCc::CChan_ResetJoinTries; *IsModeKnown = *ZNCc::CChan_IsModeKnown; *HasMode = *ZNCc::CChan_HasMode; *GetOptions = *ZNCc::CChan_GetOptions; *GetModeArg = *ZNCc::CChan_GetModeArg; *GetPermCounts = *ZNCc::CChan_GetPermCounts; *IsOn = *ZNCc::CChan_IsOn; *GetName = *ZNCc::CChan_GetName; *GetModes = *ZNCc::CChan_GetModes; *GetKey = *ZNCc::CChan_GetKey; *GetTopic = *ZNCc::CChan_GetTopic; *GetTopicOwner = *ZNCc::CChan_GetTopicOwner; *GetTopicDate = *ZNCc::CChan_GetTopicDate; *GetDefaultModes = *ZNCc::CChan_GetDefaultModes; *GetNicks = *ZNCc::CChan_GetNicks; *GetNickCount = *ZNCc::CChan_GetNickCount; *AutoClearChanBuffer = *ZNCc::CChan_AutoClearChanBuffer; *IsDetached = *ZNCc::CChan_IsDetached; *InConfig = *ZNCc::CChan_InConfig; *GetCreationDate = *ZNCc::CChan_GetCreationDate; *IsDisabled = *ZNCc::CChan_IsDisabled; *GetJoinTries = *ZNCc::CChan_GetJoinTries; *HasBufferCountSet = *ZNCc::CChan_HasBufferCountSet; *HasAutoClearChanBufferSet = *ZNCc::CChan_HasAutoClearChanBufferSet; *GetNicks_ = *ZNCc::CChan_GetNicks_; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CUser ############## package ZNC::CUser; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CUser(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CUser($self); delete $OWNER{$self}; } } *ParseConfig = *ZNCc::CUser_ParseConfig; *HASH_NONE = *ZNCc::CUser_HASH_NONE; *HASH_MD5 = *ZNCc::CUser_HASH_MD5; *HASH_SHA256 = *ZNCc::CUser_HASH_SHA256; *HASH_DEFAULT = *ZNCc::CUser_HASH_DEFAULT; *SaltedHash = *ZNCc::CUser_SaltedHash; *ToConfig = *ZNCc::CUser_ToConfig; *CheckPass = *ZNCc::CUser_CheckPass; *AddAllowedHost = *ZNCc::CUser_AddAllowedHost; *IsHostAllowed = *ZNCc::CUser_IsHostAllowed; *IsValid = *ZNCc::CUser_IsValid; *IsValidUserName = *ZNCc::CUser_IsValidUserName; *MakeCleanUserName = *ZNCc::CUser_MakeCleanUserName; *GetModules = *ZNCc::CUser_GetModules; *DeleteNetwork = *ZNCc::CUser_DeleteNetwork; *AddNetwork = *ZNCc::CUser_AddNetwork; *RemoveNetwork = *ZNCc::CUser_RemoveNetwork; *FindNetwork = *ZNCc::CUser_FindNetwork; *GetNetworks = *ZNCc::CUser_GetNetworks; *HasSpaceForNewNetwork = *ZNCc::CUser_HasSpaceForNewNetwork; *PutUser = *ZNCc::CUser_PutUser; *PutAllUser = *ZNCc::CUser_PutAllUser; *PutStatus = *ZNCc::CUser_PutStatus; *PutStatusNotice = *ZNCc::CUser_PutStatusNotice; *PutModule = *ZNCc::CUser_PutModule; *PutModNotice = *ZNCc::CUser_PutModNotice; *IsUserAttached = *ZNCc::CUser_IsUserAttached; *UserConnected = *ZNCc::CUser_UserConnected; *UserDisconnected = *ZNCc::CUser_UserDisconnected; *GetLocalDCCIP = *ZNCc::CUser_GetLocalDCCIP; *ExpandString = *ZNCc::CUser_ExpandString; *AddTimestamp = *ZNCc::CUser_AddTimestamp; *CloneNetworks = *ZNCc::CUser_CloneNetworks; *Clone = *ZNCc::CUser_Clone; *BounceAllClients = *ZNCc::CUser_BounceAllClients; *AddBytesRead = *ZNCc::CUser_AddBytesRead; *AddBytesWritten = *ZNCc::CUser_AddBytesWritten; *SetNick = *ZNCc::CUser_SetNick; *SetAltNick = *ZNCc::CUser_SetAltNick; *SetIdent = *ZNCc::CUser_SetIdent; *SetRealName = *ZNCc::CUser_SetRealName; *SetBindHost = *ZNCc::CUser_SetBindHost; *SetDCCBindHost = *ZNCc::CUser_SetDCCBindHost; *SetPass = *ZNCc::CUser_SetPass; *SetMultiClients = *ZNCc::CUser_SetMultiClients; *SetDenyLoadMod = *ZNCc::CUser_SetDenyLoadMod; *SetAdmin = *ZNCc::CUser_SetAdmin; *SetDenySetBindHost = *ZNCc::CUser_SetDenySetBindHost; *SetStatusPrefix = *ZNCc::CUser_SetStatusPrefix; *SetDefaultChanModes = *ZNCc::CUser_SetDefaultChanModes; *SetClientEncoding = *ZNCc::CUser_SetClientEncoding; *SetQuitMsg = *ZNCc::CUser_SetQuitMsg; *AddCTCPReply = *ZNCc::CUser_AddCTCPReply; *DelCTCPReply = *ZNCc::CUser_DelCTCPReply; *SetBufferCount = *ZNCc::CUser_SetBufferCount; *SetAutoClearChanBuffer = *ZNCc::CUser_SetAutoClearChanBuffer; *SetAutoClearQueryBuffer = *ZNCc::CUser_SetAutoClearQueryBuffer; *SetBeingDeleted = *ZNCc::CUser_SetBeingDeleted; *SetTimestampFormat = *ZNCc::CUser_SetTimestampFormat; *SetTimestampAppend = *ZNCc::CUser_SetTimestampAppend; *SetTimestampPrepend = *ZNCc::CUser_SetTimestampPrepend; *SetTimezone = *ZNCc::CUser_SetTimezone; *SetJoinTries = *ZNCc::CUser_SetJoinTries; *SetMaxJoins = *ZNCc::CUser_SetMaxJoins; *SetSkinName = *ZNCc::CUser_SetSkinName; *SetMaxNetworks = *ZNCc::CUser_SetMaxNetworks; *SetMaxQueryBuffers = *ZNCc::CUser_SetMaxQueryBuffers; *GetUserClients = *ZNCc::CUser_GetUserClients; *GetAllClients = *ZNCc::CUser_GetAllClients; *GetUserName = *ZNCc::CUser_GetUserName; *GetCleanUserName = *ZNCc::CUser_GetCleanUserName; *GetNick = *ZNCc::CUser_GetNick; *GetAltNick = *ZNCc::CUser_GetAltNick; *GetIdent = *ZNCc::CUser_GetIdent; *GetRealName = *ZNCc::CUser_GetRealName; *GetBindHost = *ZNCc::CUser_GetBindHost; *GetDCCBindHost = *ZNCc::CUser_GetDCCBindHost; *GetPass = *ZNCc::CUser_GetPass; *GetPassHashType = *ZNCc::CUser_GetPassHashType; *GetPassSalt = *ZNCc::CUser_GetPassSalt; *GetAllowedHosts = *ZNCc::CUser_GetAllowedHosts; *GetTimestampFormat = *ZNCc::CUser_GetTimestampFormat; *GetClientEncoding = *ZNCc::CUser_GetClientEncoding; *GetTimestampAppend = *ZNCc::CUser_GetTimestampAppend; *GetTimestampPrepend = *ZNCc::CUser_GetTimestampPrepend; *GetUserPath = *ZNCc::CUser_GetUserPath; *DenyLoadMod = *ZNCc::CUser_DenyLoadMod; *IsAdmin = *ZNCc::CUser_IsAdmin; *DenySetBindHost = *ZNCc::CUser_DenySetBindHost; *MultiClients = *ZNCc::CUser_MultiClients; *GetStatusPrefix = *ZNCc::CUser_GetStatusPrefix; *GetDefaultChanModes = *ZNCc::CUser_GetDefaultChanModes; *GetQuitMsg = *ZNCc::CUser_GetQuitMsg; *GetCTCPReplies = *ZNCc::CUser_GetCTCPReplies; *GetBufferCount = *ZNCc::CUser_GetBufferCount; *AutoClearChanBuffer = *ZNCc::CUser_AutoClearChanBuffer; *AutoClearQueryBuffer = *ZNCc::CUser_AutoClearQueryBuffer; *IsBeingDeleted = *ZNCc::CUser_IsBeingDeleted; *GetTimezone = *ZNCc::CUser_GetTimezone; *BytesRead = *ZNCc::CUser_BytesRead; *BytesWritten = *ZNCc::CUser_BytesWritten; *JoinTries = *ZNCc::CUser_JoinTries; *MaxJoins = *ZNCc::CUser_MaxJoins; *GetSkinName = *ZNCc::CUser_GetSkinName; *MaxNetworks = *ZNCc::CUser_MaxNetworks; *MaxQueryBuffers = *ZNCc::CUser_MaxQueryBuffers; *GetNetworks_ = *ZNCc::CUser_GetNetworks_; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CIRCNetwork ############## package ZNC::CIRCNetwork; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *IsValidNetwork = *ZNCc::CIRCNetwork_IsValidNetwork; sub new { my $pkg = shift; my $self = ZNCc::new_CIRCNetwork(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CIRCNetwork($self); delete $OWNER{$self}; } } *JOIN_FREQUENCY = *ZNCc::CIRCNetwork_JOIN_FREQUENCY; *PING_FREQUENCY = *ZNCc::CIRCNetwork_PING_FREQUENCY; *PING_SLACK = *ZNCc::CIRCNetwork_PING_SLACK; *NO_TRAFFIC_TIMEOUT = *ZNCc::CIRCNetwork_NO_TRAFFIC_TIMEOUT; *Clone = *ZNCc::CIRCNetwork_Clone; *GetNetworkPath = *ZNCc::CIRCNetwork_GetNetworkPath; *DelServers = *ZNCc::CIRCNetwork_DelServers; *ParseConfig = *ZNCc::CIRCNetwork_ParseConfig; *ToConfig = *ZNCc::CIRCNetwork_ToConfig; *BounceAllClients = *ZNCc::CIRCNetwork_BounceAllClients; *IsUserAttached = *ZNCc::CIRCNetwork_IsUserAttached; *IsUserOnline = *ZNCc::CIRCNetwork_IsUserOnline; *ClientConnected = *ZNCc::CIRCNetwork_ClientConnected; *ClientDisconnected = *ZNCc::CIRCNetwork_ClientDisconnected; *GetUser = *ZNCc::CIRCNetwork_GetUser; *GetName = *ZNCc::CIRCNetwork_GetName; *IsNetworkAttached = *ZNCc::CIRCNetwork_IsNetworkAttached; *GetClients = *ZNCc::CIRCNetwork_GetClients; *FindClients = *ZNCc::CIRCNetwork_FindClients; *SetUser = *ZNCc::CIRCNetwork_SetUser; *SetName = *ZNCc::CIRCNetwork_SetName; *GetModules = *ZNCc::CIRCNetwork_GetModules; *PutUser = *ZNCc::CIRCNetwork_PutUser; *PutStatus = *ZNCc::CIRCNetwork_PutStatus; *PutModule = *ZNCc::CIRCNetwork_PutModule; *GetChans = *ZNCc::CIRCNetwork_GetChans; *FindChan = *ZNCc::CIRCNetwork_FindChan; *FindChans = *ZNCc::CIRCNetwork_FindChans; *AddChan = *ZNCc::CIRCNetwork_AddChan; *DelChan = *ZNCc::CIRCNetwork_DelChan; *JoinChans = *ZNCc::CIRCNetwork_JoinChans; *GetQueries = *ZNCc::CIRCNetwork_GetQueries; *FindQuery = *ZNCc::CIRCNetwork_FindQuery; *FindQueries = *ZNCc::CIRCNetwork_FindQueries; *AddQuery = *ZNCc::CIRCNetwork_AddQuery; *DelQuery = *ZNCc::CIRCNetwork_DelQuery; *GetChanPrefixes = *ZNCc::CIRCNetwork_GetChanPrefixes; *SetChanPrefixes = *ZNCc::CIRCNetwork_SetChanPrefixes; *IsChan = *ZNCc::CIRCNetwork_IsChan; *GetServers = *ZNCc::CIRCNetwork_GetServers; *HasServers = *ZNCc::CIRCNetwork_HasServers; *FindServer = *ZNCc::CIRCNetwork_FindServer; *DelServer = *ZNCc::CIRCNetwork_DelServer; *AddServer = *ZNCc::CIRCNetwork_AddServer; *GetNextServer = *ZNCc::CIRCNetwork_GetNextServer; *GetCurrentServer = *ZNCc::CIRCNetwork_GetCurrentServer; *SetIRCServer = *ZNCc::CIRCNetwork_SetIRCServer; *SetNextServer = *ZNCc::CIRCNetwork_SetNextServer; *IsLastServer = *ZNCc::CIRCNetwork_IsLastServer; *GetTrustedFingerprints = *ZNCc::CIRCNetwork_GetTrustedFingerprints; *AddTrustedFingerprint = *ZNCc::CIRCNetwork_AddTrustedFingerprint; *DelTrustedFingerprint = *ZNCc::CIRCNetwork_DelTrustedFingerprint; *SetIRCConnectEnabled = *ZNCc::CIRCNetwork_SetIRCConnectEnabled; *GetIRCConnectEnabled = *ZNCc::CIRCNetwork_GetIRCConnectEnabled; *GetIRCSock = *ZNCc::CIRCNetwork_GetIRCSock; *GetIRCServer = *ZNCc::CIRCNetwork_GetIRCServer; *GetIRCNick = *ZNCc::CIRCNetwork_GetIRCNick; *SetIRCNick = *ZNCc::CIRCNetwork_SetIRCNick; *GetCurNick = *ZNCc::CIRCNetwork_GetCurNick; *IsIRCAway = *ZNCc::CIRCNetwork_IsIRCAway; *SetIRCAway = *ZNCc::CIRCNetwork_SetIRCAway; *Connect = *ZNCc::CIRCNetwork_Connect; *IsIRCConnected = *ZNCc::CIRCNetwork_IsIRCConnected; *SetIRCSocket = *ZNCc::CIRCNetwork_SetIRCSocket; *IRCConnected = *ZNCc::CIRCNetwork_IRCConnected; *IRCDisconnected = *ZNCc::CIRCNetwork_IRCDisconnected; *CheckIRCConnect = *ZNCc::CIRCNetwork_CheckIRCConnect; *PutIRC = *ZNCc::CIRCNetwork_PutIRC; *AddRawBuffer = *ZNCc::CIRCNetwork_AddRawBuffer; *UpdateRawBuffer = *ZNCc::CIRCNetwork_UpdateRawBuffer; *UpdateExactRawBuffer = *ZNCc::CIRCNetwork_UpdateExactRawBuffer; *ClearRawBuffer = *ZNCc::CIRCNetwork_ClearRawBuffer; *AddMotdBuffer = *ZNCc::CIRCNetwork_AddMotdBuffer; *UpdateMotdBuffer = *ZNCc::CIRCNetwork_UpdateMotdBuffer; *ClearMotdBuffer = *ZNCc::CIRCNetwork_ClearMotdBuffer; *AddNoticeBuffer = *ZNCc::CIRCNetwork_AddNoticeBuffer; *UpdateNoticeBuffer = *ZNCc::CIRCNetwork_UpdateNoticeBuffer; *ClearNoticeBuffer = *ZNCc::CIRCNetwork_ClearNoticeBuffer; *GetNick = *ZNCc::CIRCNetwork_GetNick; *GetAltNick = *ZNCc::CIRCNetwork_GetAltNick; *GetIdent = *ZNCc::CIRCNetwork_GetIdent; *GetRealName = *ZNCc::CIRCNetwork_GetRealName; *GetBindHost = *ZNCc::CIRCNetwork_GetBindHost; *GetEncoding = *ZNCc::CIRCNetwork_GetEncoding; *GetQuitMsg = *ZNCc::CIRCNetwork_GetQuitMsg; *SetNick = *ZNCc::CIRCNetwork_SetNick; *SetAltNick = *ZNCc::CIRCNetwork_SetAltNick; *SetIdent = *ZNCc::CIRCNetwork_SetIdent; *SetRealName = *ZNCc::CIRCNetwork_SetRealName; *SetBindHost = *ZNCc::CIRCNetwork_SetBindHost; *SetEncoding = *ZNCc::CIRCNetwork_SetEncoding; *SetQuitMsg = *ZNCc::CIRCNetwork_SetQuitMsg; *GetFloodRate = *ZNCc::CIRCNetwork_GetFloodRate; *GetFloodBurst = *ZNCc::CIRCNetwork_GetFloodBurst; *SetFloodRate = *ZNCc::CIRCNetwork_SetFloodRate; *SetFloodBurst = *ZNCc::CIRCNetwork_SetFloodBurst; *GetJoinDelay = *ZNCc::CIRCNetwork_GetJoinDelay; *SetJoinDelay = *ZNCc::CIRCNetwork_SetJoinDelay; *ExpandString = *ZNCc::CIRCNetwork_ExpandString; *GetChans_ = *ZNCc::CIRCNetwork_GetChans_; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CAuthBase ############## package ZNC::CAuthBase; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CAuthBase($self); delete $OWNER{$self}; } } *SetLoginInfo = *ZNCc::CAuthBase_SetLoginInfo; *AcceptLogin = *ZNCc::CAuthBase_AcceptLogin; *RefuseLogin = *ZNCc::CAuthBase_RefuseLogin; *GetUsername = *ZNCc::CAuthBase_GetUsername; *GetPassword = *ZNCc::CAuthBase_GetPassword; *GetSocket = *ZNCc::CAuthBase_GetSocket; *GetRemoteIP = *ZNCc::CAuthBase_GetRemoteIP; *Invalidate = *ZNCc::CAuthBase_Invalidate; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CClientAuth ############## package ZNC::CClientAuth; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CAuthBase ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CClientAuth(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CClientAuth($self); delete $OWNER{$self}; } } *Invalidate = *ZNCc::CClientAuth_Invalidate; *AcceptedLogin = *ZNCc::CClientAuth_AcceptedLogin; *RefusedLogin = *ZNCc::CClientAuth_RefusedLogin; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CClient ############## package ZNC::CClient; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CIRCSocket ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CClient(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CClient($self); delete $OWNER{$self}; } } *SendRequiredPasswordNotice = *ZNCc::CClient_SendRequiredPasswordNotice; *AcceptLogin = *ZNCc::CClient_AcceptLogin; *RefuseLogin = *ZNCc::CClient_RefuseLogin; *GetNick = *ZNCc::CClient_GetNick; *GetNickMask = *ZNCc::CClient_GetNickMask; *GetIdentifier = *ZNCc::CClient_GetIdentifier; *HasNamesx = *ZNCc::CClient_HasNamesx; *HasUHNames = *ZNCc::CClient_HasUHNames; *IsAway = *ZNCc::CClient_IsAway; *HasServerTime = *ZNCc::CClient_HasServerTime; *HasBatch = *ZNCc::CClient_HasBatch; *HasSelfMessage = *ZNCc::CClient_HasSelfMessage; *IsValidIdentifier = *ZNCc::CClient_IsValidIdentifier; *UserCommand = *ZNCc::CClient_UserCommand; *UserPortCommand = *ZNCc::CClient_UserPortCommand; *StatusCTCP = *ZNCc::CClient_StatusCTCP; *BouncedOff = *ZNCc::CClient_BouncedOff; *IsAttached = *ZNCc::CClient_IsAttached; *IsPlaybackActive = *ZNCc::CClient_IsPlaybackActive; *SetPlaybackActive = *ZNCc::CClient_SetPlaybackActive; *PutIRC = *ZNCc::CClient_PutIRC; *PutClient = *ZNCc::CClient_PutClient; *PutStatus = *ZNCc::CClient_PutStatus; *PutStatusNotice = *ZNCc::CClient_PutStatusNotice; *PutModule = *ZNCc::CClient_PutModule; *PutModNotice = *ZNCc::CClient_PutModNotice; *IsCapEnabled = *ZNCc::CClient_IsCapEnabled; *ReadLine = *ZNCc::CClient_ReadLine; *SendMotd = *ZNCc::CClient_SendMotd; *HelpUser = *ZNCc::CClient_HelpUser; *AuthUser = *ZNCc::CClient_AuthUser; *Connected = *ZNCc::CClient_Connected; *Timeout = *ZNCc::CClient_Timeout; *Disconnected = *ZNCc::CClient_Disconnected; *ConnectionRefused = *ZNCc::CClient_ConnectionRefused; *ReachedMaxBuffer = *ZNCc::CClient_ReachedMaxBuffer; *SetNick = *ZNCc::CClient_SetNick; *SetAway = *ZNCc::CClient_SetAway; *GetUser = *ZNCc::CClient_GetUser; *SetNetwork = *ZNCc::CClient_SetNetwork; *GetNetwork = *ZNCc::CClient_GetNetwork; *GetClients = *ZNCc::CClient_GetClients; *GetIRCSock = *ZNCc::CClient_GetIRCSock; *GetFullName = *ZNCc::CClient_GetFullName; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CIRCSock ############## package ZNC::CIRCSock; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CIRCSocket ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CIRCSock(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CIRCSock($self); delete $OWNER{$self}; } } *ListArg = *ZNCc::CIRCSock_ListArg; *HasArg = *ZNCc::CIRCSock_HasArg; *ArgWhenSet = *ZNCc::CIRCSock_ArgWhenSet; *NoArg = *ZNCc::CIRCSock_NoArg; *OnCTCPReply = *ZNCc::CIRCSock_OnCTCPReply; *OnPrivCTCP = *ZNCc::CIRCSock_OnPrivCTCP; *OnChanCTCP = *ZNCc::CIRCSock_OnChanCTCP; *OnGeneralCTCP = *ZNCc::CIRCSock_OnGeneralCTCP; *OnPrivMsg = *ZNCc::CIRCSock_OnPrivMsg; *OnChanMsg = *ZNCc::CIRCSock_OnChanMsg; *OnPrivNotice = *ZNCc::CIRCSock_OnPrivNotice; *OnChanNotice = *ZNCc::CIRCSock_OnChanNotice; *OnServerCapAvailable = *ZNCc::CIRCSock_OnServerCapAvailable; *ReadLine = *ZNCc::CIRCSock_ReadLine; *Connected = *ZNCc::CIRCSock_Connected; *Disconnected = *ZNCc::CIRCSock_Disconnected; *ConnectionRefused = *ZNCc::CIRCSock_ConnectionRefused; *SockError = *ZNCc::CIRCSock_SockError; *Timeout = *ZNCc::CIRCSock_Timeout; *ReachedMaxBuffer = *ZNCc::CIRCSock_ReachedMaxBuffer; *PutIRC = *ZNCc::CIRCSock_PutIRC; *PutIRCQuick = *ZNCc::CIRCSock_PutIRCQuick; *ResetChans = *ZNCc::CIRCSock_ResetChans; *Quit = *ZNCc::CIRCSock_Quit; *PauseCap = *ZNCc::CIRCSock_PauseCap; *ResumeCap = *ZNCc::CIRCSock_ResumeCap; *SetPass = *ZNCc::CIRCSock_SetPass; *GetMaxNickLen = *ZNCc::CIRCSock_GetMaxNickLen; *GetModeType = *ZNCc::CIRCSock_GetModeType; *GetPermFromMode = *ZNCc::CIRCSock_GetPermFromMode; *GetChanModes = *ZNCc::CIRCSock_GetChanModes; *IsPermChar = *ZNCc::CIRCSock_IsPermChar; *IsPermMode = *ZNCc::CIRCSock_IsPermMode; *GetPerms = *ZNCc::CIRCSock_GetPerms; *GetPermModes = *ZNCc::CIRCSock_GetPermModes; *GetNickMask = *ZNCc::CIRCSock_GetNickMask; *GetNick = *ZNCc::CIRCSock_GetNick; *GetPass = *ZNCc::CIRCSock_GetPass; *GetNetwork = *ZNCc::CIRCSock_GetNetwork; *HasNamesx = *ZNCc::CIRCSock_HasNamesx; *HasUHNames = *ZNCc::CIRCSock_HasUHNames; *GetUserModes = *ZNCc::CIRCSock_GetUserModes; *IsAuthed = *ZNCc::CIRCSock_IsAuthed; *IsCapAccepted = *ZNCc::CIRCSock_IsCapAccepted; *GetISupport = *ZNCc::CIRCSock_GetISupport; *ForwardRaw353 = *ZNCc::CIRCSock_ForwardRaw353; *IsFloodProtected = *ZNCc::CIRCSock_IsFloodProtected; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CListener ############## package ZNC::CListener; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *ACCEPT_IRC = *ZNCc::CListener_ACCEPT_IRC; *ACCEPT_HTTP = *ZNCc::CListener_ACCEPT_HTTP; *ACCEPT_ALL = *ZNCc::CListener_ACCEPT_ALL; sub new { my $pkg = shift; my $self = ZNCc::new_CListener(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CListener($self); delete $OWNER{$self}; } } *IsSSL = *ZNCc::CListener_IsSSL; *GetAddrType = *ZNCc::CListener_GetAddrType; *GetPort = *ZNCc::CListener_GetPort; *GetBindHost = *ZNCc::CListener_GetBindHost; *GetRealListener = *ZNCc::CListener_GetRealListener; *GetURIPrefix = *ZNCc::CListener_GetURIPrefix; *GetAcceptType = *ZNCc::CListener_GetAcceptType; *SetAcceptType = *ZNCc::CListener_SetAcceptType; *Listen = *ZNCc::CListener_Listen; *ResetRealListener = *ZNCc::CListener_ResetRealListener; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CRealListener ############## package ZNC::CRealListener; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CZNCSock ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CRealListener(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CRealListener($self); delete $OWNER{$self}; } } *ConnectionFrom = *ZNCc::CRealListener_ConnectionFrom; *GetSockObj = *ZNCc::CRealListener_GetSockObj; *SockError = *ZNCc::CRealListener_SockError; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CIncomingConnection ############## package ZNC::CIncomingConnection; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CZNCSock ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CIncomingConnection(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CIncomingConnection($self); delete $OWNER{$self}; } } *ReadLine = *ZNCc::CIncomingConnection_ReadLine; *ReachedMaxBuffer = *ZNCc::CIncomingConnection_ReachedMaxBuffer; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CHTTPSock ############## package ZNC::CHTTPSock; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CSocket ZNC ); %OWNER = (); %ITERATORS = (); sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CHTTPSock($self); delete $OWNER{$self}; } } *ReadData = *ZNCc::CHTTPSock_ReadData; *ReadLine = *ZNCc::CHTTPSock_ReadLine; *Connected = *ZNCc::CHTTPSock_Connected; *GetSockObj = *ZNCc::CHTTPSock_GetSockObj; *ForceLogin = *ZNCc::CHTTPSock_ForceLogin; *OnLogin = *ZNCc::CHTTPSock_OnLogin; *OnPageRequest = *ZNCc::CHTTPSock_OnPageRequest; *PrintFile = *ZNCc::CHTTPSock_PrintFile; *CheckPost = *ZNCc::CHTTPSock_CheckPost; *SentHeader = *ZNCc::CHTTPSock_SentHeader; *PrintHeader = *ZNCc::CHTTPSock_PrintHeader; *AddHeader = *ZNCc::CHTTPSock_AddHeader; *SetContentType = *ZNCc::CHTTPSock_SetContentType; *PrintNotFound = *ZNCc::CHTTPSock_PrintNotFound; *Redirect = *ZNCc::CHTTPSock_Redirect; *PrintErrorPage = *ZNCc::CHTTPSock_PrintErrorPage; *ParseParams = *ZNCc::CHTTPSock_ParseParams; *ParseURI = *ZNCc::CHTTPSock_ParseURI; *GetPage = *ZNCc::CHTTPSock_GetPage; *GetDate = *ZNCc::CHTTPSock_GetDate; *GetRemoteIP = *ZNCc::CHTTPSock_GetRemoteIP; *GetRequestCookie = *ZNCc::CHTTPSock_GetRequestCookie; *SendCookie = *ZNCc::CHTTPSock_SendCookie; *SetDocRoot = *ZNCc::CHTTPSock_SetDocRoot; *SetLoggedIn = *ZNCc::CHTTPSock_SetLoggedIn; *GetPath = *ZNCc::CHTTPSock_GetPath; *IsLoggedIn = *ZNCc::CHTTPSock_IsLoggedIn; *GetDocRoot = *ZNCc::CHTTPSock_GetDocRoot; *GetUser = *ZNCc::CHTTPSock_GetUser; *GetPass = *ZNCc::CHTTPSock_GetPass; *GetParamString = *ZNCc::CHTTPSock_GetParamString; *GetContentType = *ZNCc::CHTTPSock_GetContentType; *GetURIPrefix = *ZNCc::CHTTPSock_GetURIPrefix; *IsPost = *ZNCc::CHTTPSock_IsPost; *GetParam = *ZNCc::CHTTPSock_GetParam; *GetRawParam = *ZNCc::CHTTPSock_GetRawParam; *HasParam = *ZNCc::CHTTPSock_HasParam; *GetParams = *ZNCc::CHTTPSock_GetParams; *GetParamValues = *ZNCc::CHTTPSock_GetParamValues; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CTemplateTagHandler ############## package ZNC::CTemplateTagHandler; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CTemplateTagHandler(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CTemplateTagHandler($self); delete $OWNER{$self}; } } *HandleVar = *ZNCc::CTemplateTagHandler_HandleVar; *HandleTag = *ZNCc::CTemplateTagHandler_HandleTag; *HandleIf = *ZNCc::CTemplateTagHandler_HandleIf; *HandleValue = *ZNCc::CTemplateTagHandler_HandleValue; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CTemplateOptions ############## package ZNC::CTemplateOptions; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CTemplateOptions(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CTemplateOptions($self); delete $OWNER{$self}; } } *Parse = *ZNCc::CTemplateOptions_Parse; *GetEscapeFrom = *ZNCc::CTemplateOptions_GetEscapeFrom; *GetEscapeTo = *ZNCc::CTemplateOptions_GetEscapeTo; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CTemplateLoopContext ############## package ZNC::CTemplateLoopContext; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CTemplateLoopContext(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CTemplateLoopContext($self); delete $OWNER{$self}; } } *SetHasData = *ZNCc::CTemplateLoopContext_SetHasData; *SetName = *ZNCc::CTemplateLoopContext_SetName; *SetRowIndex = *ZNCc::CTemplateLoopContext_SetRowIndex; *IncRowIndex = *ZNCc::CTemplateLoopContext_IncRowIndex; *DecRowIndex = *ZNCc::CTemplateLoopContext_DecRowIndex; *SetFilePosition = *ZNCc::CTemplateLoopContext_SetFilePosition; *HasData = *ZNCc::CTemplateLoopContext_HasData; *GetName = *ZNCc::CTemplateLoopContext_GetName; *GetFilePosition = *ZNCc::CTemplateLoopContext_GetFilePosition; *GetRowIndex = *ZNCc::CTemplateLoopContext_GetRowIndex; *GetRowCount = *ZNCc::CTemplateLoopContext_GetRowCount; *GetRows = *ZNCc::CTemplateLoopContext_GetRows; *GetNextRow = *ZNCc::CTemplateLoopContext_GetNextRow; *GetCurRow = *ZNCc::CTemplateLoopContext_GetCurRow; *GetRow = *ZNCc::CTemplateLoopContext_GetRow; *GetValue = *ZNCc::CTemplateLoopContext_GetValue; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CTemplate ############## package ZNC::CTemplate; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::MCString ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CTemplate(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CTemplate($self); delete $OWNER{$self}; } } *AddTagHandler = *ZNCc::CTemplate_AddTagHandler; *GetTagHandlers = *ZNCc::CTemplate_GetTagHandlers; *ResolveLiteral = *ZNCc::CTemplate_ResolveLiteral; *Init = *ZNCc::CTemplate_Init; *GetParent = *ZNCc::CTemplate_GetParent; *ExpandFile = *ZNCc::CTemplate_ExpandFile; *SetFile = *ZNCc::CTemplate_SetFile; *SetPath = *ZNCc::CTemplate_SetPath; *MakePath = *ZNCc::CTemplate_MakePath; *PrependPath = *ZNCc::CTemplate_PrependPath; *AppendPath = *ZNCc::CTemplate_AppendPath; *RemovePath = *ZNCc::CTemplate_RemovePath; *ClearPaths = *ZNCc::CTemplate_ClearPaths; *PrintString = *ZNCc::CTemplate_PrintString; *Print = *ZNCc::CTemplate_Print; *ValidIf = *ZNCc::CTemplate_ValidIf; *ValidExpr = *ZNCc::CTemplate_ValidExpr; *IsTrue = *ZNCc::CTemplate_IsTrue; *HasLoop = *ZNCc::CTemplate_HasLoop; *GetValue = *ZNCc::CTemplate_GetValue; *AddRow = *ZNCc::CTemplate_AddRow; *GetRow = *ZNCc::CTemplate_GetRow; *GetLoop = *ZNCc::CTemplate_GetLoop; *DelCurLoopContext = *ZNCc::CTemplate_DelCurLoopContext; *GetCurLoopContext = *ZNCc::CTemplate_GetCurLoopContext; *GetCurTemplate = *ZNCc::CTemplate_GetCurTemplate; *GetFileName = *ZNCc::CTemplate_GetFileName; *set = *ZNCc::CTemplate_set; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CZNCTagHandler ############## package ZNC::CZNCTagHandler; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CTemplateTagHandler ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CZNCTagHandler(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CZNCTagHandler($self); delete $OWNER{$self}; } } *HandleTag = *ZNCc::CZNCTagHandler_HandleTag; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CWebSession ############## package ZNC::CWebSession; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CWebSession(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CWebSession($self); delete $OWNER{$self}; } } *GetId = *ZNCc::CWebSession_GetId; *GetIP = *ZNCc::CWebSession_GetIP; *GetUser = *ZNCc::CWebSession_GetUser; *GetLastActive = *ZNCc::CWebSession_GetLastActive; *IsLoggedIn = *ZNCc::CWebSession_IsLoggedIn; *IsAdmin = *ZNCc::CWebSession_IsAdmin; *UpdateLastActive = *ZNCc::CWebSession_UpdateLastActive; *SetUser = *ZNCc::CWebSession_SetUser; *ClearMessageLoops = *ZNCc::CWebSession_ClearMessageLoops; *FillMessageLoops = *ZNCc::CWebSession_FillMessageLoops; *AddError = *ZNCc::CWebSession_AddError; *AddSuccess = *ZNCc::CWebSession_AddSuccess; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CWebSubPage ############## package ZNC::CWebSubPage; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CWebSubPage(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CWebSubPage($self); delete $OWNER{$self}; } } *F_ADMIN = *ZNCc::CWebSubPage_F_ADMIN; *SetName = *ZNCc::CWebSubPage_SetName; *SetTitle = *ZNCc::CWebSubPage_SetTitle; *AddParam = *ZNCc::CWebSubPage_AddParam; *RequiresAdmin = *ZNCc::CWebSubPage_RequiresAdmin; *GetName = *ZNCc::CWebSubPage_GetName; *GetTitle = *ZNCc::CWebSubPage_GetTitle; *GetParams = *ZNCc::CWebSubPage_GetParams; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CWebSessionMap ############## package ZNC::CWebSessionMap; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CWebSessionMap(@_); bless $self, $pkg if defined($self); } *FinishUserSessions = *ZNCc::CWebSessionMap_FinishUserSessions; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CWebSessionMap($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CWebSock ############## package ZNC::CWebSock; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CHTTPSock ZNC ); %OWNER = (); %ITERATORS = (); *PAGE_NOTFOUND = *ZNCc::CWebSock_PAGE_NOTFOUND; *PAGE_PRINT = *ZNCc::CWebSock_PAGE_PRINT; *PAGE_DEFERRED = *ZNCc::CWebSock_PAGE_DEFERRED; *PAGE_DONE = *ZNCc::CWebSock_PAGE_DONE; sub new { my $pkg = shift; my $self = ZNCc::new_CWebSock(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CWebSock($self); delete $OWNER{$self}; } } *ForceLogin = *ZNCc::CWebSock_ForceLogin; *OnLogin = *ZNCc::CWebSock_OnLogin; *OnPageRequest = *ZNCc::CWebSock_OnPageRequest; *PrintTemplate = *ZNCc::CWebSock_PrintTemplate; *PrintStaticFile = *ZNCc::CWebSock_PrintStaticFile; *FindTmpl = *ZNCc::CWebSock_FindTmpl; *GetSession = *ZNCc::CWebSock_GetSession; *GetSockObj = *ZNCc::CWebSock_GetSockObj; *GetSkinPath = *ZNCc::CWebSock_GetSkinPath; *GetAvailSkins = *ZNCc::CWebSock_GetAvailSkins; *GetSkinName = *ZNCc::CWebSock_GetSkinName; *GetRequestCookie = *ZNCc::CWebSock_GetRequestCookie; *SendCookie = *ZNCc::CWebSock_SendCookie; *FinishUserSessions = *ZNCc::CWebSock_FinishUserSessions; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CZNC ############## package ZNC::CZNC; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CZNC(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CZNC($self); delete $OWNER{$self}; } } *ECONFIG_NOTHING = *ZNCc::CZNC_ECONFIG_NOTHING; *ECONFIG_NEED_REHASH = *ZNCc::CZNC_ECONFIG_NEED_REHASH; *ECONFIG_NEED_WRITE = *ZNCc::CZNC_ECONFIG_NEED_WRITE; *ECONFIG_NEED_VERBOSE_WRITE = *ZNCc::CZNC_ECONFIG_NEED_VERBOSE_WRITE; *DeleteUsers = *ZNCc::CZNC_DeleteUsers; *Loop = *ZNCc::CZNC_Loop; *WritePidFile = *ZNCc::CZNC_WritePidFile; *DeletePidFile = *ZNCc::CZNC_DeletePidFile; *WaitForChildLock = *ZNCc::CZNC_WaitForChildLock; *IsHostAllowed = *ZNCc::CZNC_IsHostAllowed; *AllowConnectionFrom = *ZNCc::CZNC_AllowConnectionFrom; *InitDirs = *ZNCc::CZNC_InitDirs; *OnBoot = *ZNCc::CZNC_OnBoot; *ExpandConfigPath = *ZNCc::CZNC_ExpandConfigPath; *WriteNewConfig = *ZNCc::CZNC_WriteNewConfig; *WriteConfig = *ZNCc::CZNC_WriteConfig; *ParseConfig = *ZNCc::CZNC_ParseConfig; *RehashConfig = *ZNCc::CZNC_RehashConfig; *BackupConfigOnce = *ZNCc::CZNC_BackupConfigOnce; *GetVersion = *ZNCc::CZNC_GetVersion; *GetTag = *ZNCc::CZNC_GetTag; *GetCompileOptionsString = *ZNCc::CZNC_GetCompileOptionsString; *GetUptime = *ZNCc::CZNC_GetUptime; *ClearBindHosts = *ZNCc::CZNC_ClearBindHosts; *AddBindHost = *ZNCc::CZNC_AddBindHost; *RemBindHost = *ZNCc::CZNC_RemBindHost; *ClearTrustedProxies = *ZNCc::CZNC_ClearTrustedProxies; *AddTrustedProxy = *ZNCc::CZNC_AddTrustedProxy; *RemTrustedProxy = *ZNCc::CZNC_RemTrustedProxy; *Broadcast = *ZNCc::CZNC_Broadcast; *AddBytesRead = *ZNCc::CZNC_AddBytesRead; *AddBytesWritten = *ZNCc::CZNC_AddBytesWritten; *BytesRead = *ZNCc::CZNC_BytesRead; *BytesWritten = *ZNCc::CZNC_BytesWritten; *GetTrafficStats = *ZNCc::CZNC_GetTrafficStats; *AuthUser = *ZNCc::CZNC_AuthUser; *SetConfigState = *ZNCc::CZNC_SetConfigState; *SetSkinName = *ZNCc::CZNC_SetSkinName; *SetStatusPrefix = *ZNCc::CZNC_SetStatusPrefix; *SetMaxBufferSize = *ZNCc::CZNC_SetMaxBufferSize; *SetAnonIPLimit = *ZNCc::CZNC_SetAnonIPLimit; *SetServerThrottle = *ZNCc::CZNC_SetServerThrottle; *SetProtectWebSessions = *ZNCc::CZNC_SetProtectWebSessions; *SetHideVersion = *ZNCc::CZNC_SetHideVersion; *SetConnectDelay = *ZNCc::CZNC_SetConnectDelay; *GetConfigState = *ZNCc::CZNC_GetConfigState; *GetManager = *ZNCc::CZNC_GetManager; *GetModules = *ZNCc::CZNC_GetModules; *GetSkinName = *ZNCc::CZNC_GetSkinName; *GetStatusPrefix = *ZNCc::CZNC_GetStatusPrefix; *GetCurPath = *ZNCc::CZNC_GetCurPath; *GetHomePath = *ZNCc::CZNC_GetHomePath; *GetZNCPath = *ZNCc::CZNC_GetZNCPath; *GetConfPath = *ZNCc::CZNC_GetConfPath; *GetUserPath = *ZNCc::CZNC_GetUserPath; *GetModPath = *ZNCc::CZNC_GetModPath; *GetPemLocation = *ZNCc::CZNC_GetPemLocation; *GetConfigFile = *ZNCc::CZNC_GetConfigFile; *WritePemFile = *ZNCc::CZNC_WritePemFile; *GetBindHosts = *ZNCc::CZNC_GetBindHosts; *GetTrustedProxies = *ZNCc::CZNC_GetTrustedProxies; *GetListeners = *ZNCc::CZNC_GetListeners; *TimeStarted = *ZNCc::CZNC_TimeStarted; *GetMaxBufferSize = *ZNCc::CZNC_GetMaxBufferSize; *GetAnonIPLimit = *ZNCc::CZNC_GetAnonIPLimit; *GetConnectDelay = *ZNCc::CZNC_GetConnectDelay; *GetProtectWebSessions = *ZNCc::CZNC_GetProtectWebSessions; *GetHideVersion = *ZNCc::CZNC_GetHideVersion; *GetSSLCiphers = *ZNCc::CZNC_GetSSLCiphers; *GetDisabledSSLProtocols = *ZNCc::CZNC_GetDisabledSSLProtocols; *CreateInstance = *ZNCc::CZNC_CreateInstance; *Get = *ZNCc::CZNC_Get; *DestroyInstance = *ZNCc::CZNC_DestroyInstance; *FindUser = *ZNCc::CZNC_FindUser; *FindModule = *ZNCc::CZNC_FindModule; *UpdateModule = *ZNCc::CZNC_UpdateModule; *DeleteUser = *ZNCc::CZNC_DeleteUser; *AddUser = *ZNCc::CZNC_AddUser; *GetUserMap = *ZNCc::CZNC_GetUserMap; *FindListener = *ZNCc::CZNC_FindListener; *AddListener = *ZNCc::CZNC_AddListener; *DelListener = *ZNCc::CZNC_DelListener; *SetMotd = *ZNCc::CZNC_SetMotd; *AddMotd = *ZNCc::CZNC_AddMotd; *ClearMotd = *ZNCc::CZNC_ClearMotd; *GetMotd = *ZNCc::CZNC_GetMotd; *AddServerThrottle = *ZNCc::CZNC_AddServerThrottle; *GetServerThrottle = *ZNCc::CZNC_GetServerThrottle; *AddNetworkToQueue = *ZNCc::CZNC_AddNetworkToQueue; *GetConnectionQueue = *ZNCc::CZNC_GetConnectionQueue; *EnableConnectQueue = *ZNCc::CZNC_EnableConnectQueue; *DisableConnectQueue = *ZNCc::CZNC_DisableConnectQueue; *PauseConnectQueue = *ZNCc::CZNC_PauseConnectQueue; *ResumeConnectQueue = *ZNCc::CZNC_ResumeConnectQueue; *LeakConnectQueueTimer = *ZNCc::CZNC_LeakConnectQueueTimer; *DumpConfig = *ZNCc::CZNC_DumpConfig; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CServer ############## package ZNC::CServer; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CServer(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CServer($self); delete $OWNER{$self}; } } *GetName = *ZNCc::CServer_GetName; *GetPort = *ZNCc::CServer_GetPort; *GetPass = *ZNCc::CServer_GetPass; *IsSSL = *ZNCc::CServer_IsSSL; *GetString = *ZNCc::CServer_GetString; *IsValidHostName = *ZNCc::CServer_IsValidHostName; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CDebug ############## package ZNC::CDebug; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); *SetStdoutIsTTY = *ZNCc::CDebug_SetStdoutIsTTY; *StdoutIsTTY = *ZNCc::CDebug_StdoutIsTTY; *SetDebug = *ZNCc::CDebug_SetDebug; *Debug = *ZNCc::CDebug_Debug; sub new { my $pkg = shift; my $self = ZNCc::new_CDebug(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CDebug($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CDebugStream ############## package ZNC::CDebugStream; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CDebugStream($self); delete $OWNER{$self}; } } sub new { my $pkg = shift; my $self = ZNCc::new_CDebugStream(@_); bless $self, $pkg if defined($self); } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CExecSock ############## package ZNC::CExecSock; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CZNCSock ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CExecSock(@_); bless $self, $pkg if defined($self); } *Execute = *ZNCc::CExecSock_Execute; *Kill = *ZNCc::CExecSock_Kill; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CExecSock($self); delete $OWNER{$self}; } } *popen2 = *ZNCc::CExecSock_popen2; *close2 = *ZNCc::CExecSock_close2; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CBufLine ############## package ZNC::CBufLine; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CBufLine(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CBufLine($self); delete $OWNER{$self}; } } *GetLine = *ZNCc::CBufLine_GetLine; *UpdateTime = *ZNCc::CBufLine_UpdateTime; *SetFormat = *ZNCc::CBufLine_SetFormat; *SetText = *ZNCc::CBufLine_SetText; *SetTime = *ZNCc::CBufLine_SetTime; *GetFormat = *ZNCc::CBufLine_GetFormat; *GetText = *ZNCc::CBufLine_GetText; *GetTime = *ZNCc::CBufLine_GetTime; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CBuffer ############## package ZNC::CBuffer; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CBuffer(@_); bless $self, $pkg if defined($self); } sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CBuffer($self); delete $OWNER{$self}; } } *AddLine = *ZNCc::CBuffer_AddLine; *UpdateLine = *ZNCc::CBuffer_UpdateLine; *UpdateExactLine = *ZNCc::CBuffer_UpdateExactLine; *GetBufLine = *ZNCc::CBuffer_GetBufLine; *GetLine = *ZNCc::CBuffer_GetLine; *Size = *ZNCc::CBuffer_Size; *IsEmpty = *ZNCc::CBuffer_IsEmpty; *Clear = *ZNCc::CBuffer_Clear; *SetLineCount = *ZNCc::CBuffer_SetLineCount; *GetLineCount = *ZNCc::CBuffer_GetLineCount; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CPerlModule ############## package ZNC::CPerlModule; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CModule ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CPerlModule(@_); bless $self, $pkg if defined($self); } *GetPerlObj = *ZNCc::CPerlModule_GetPerlObj; *OnBoot = *ZNCc::CPerlModule_OnBoot; *WebRequiresLogin = *ZNCc::CPerlModule_WebRequiresLogin; *WebRequiresAdmin = *ZNCc::CPerlModule_WebRequiresAdmin; *GetWebMenuTitle = *ZNCc::CPerlModule_GetWebMenuTitle; *OnWebPreRequest = *ZNCc::CPerlModule_OnWebPreRequest; *OnWebRequest = *ZNCc::CPerlModule_OnWebRequest; *GetSubPages = *ZNCc::CPerlModule_GetSubPages; *OnPreRehash = *ZNCc::CPerlModule_OnPreRehash; *OnPostRehash = *ZNCc::CPerlModule_OnPostRehash; *OnIRCDisconnected = *ZNCc::CPerlModule_OnIRCDisconnected; *OnIRCConnected = *ZNCc::CPerlModule_OnIRCConnected; *OnIRCConnecting = *ZNCc::CPerlModule_OnIRCConnecting; *OnIRCConnectionError = *ZNCc::CPerlModule_OnIRCConnectionError; *OnIRCRegistration = *ZNCc::CPerlModule_OnIRCRegistration; *OnBroadcast = *ZNCc::CPerlModule_OnBroadcast; *OnChanPermission2 = *ZNCc::CPerlModule_OnChanPermission2; *OnOp2 = *ZNCc::CPerlModule_OnOp2; *OnDeop2 = *ZNCc::CPerlModule_OnDeop2; *OnVoice2 = *ZNCc::CPerlModule_OnVoice2; *OnDevoice2 = *ZNCc::CPerlModule_OnDevoice2; *OnMode2 = *ZNCc::CPerlModule_OnMode2; *OnRawMode2 = *ZNCc::CPerlModule_OnRawMode2; *OnRaw = *ZNCc::CPerlModule_OnRaw; *OnStatusCommand = *ZNCc::CPerlModule_OnStatusCommand; *OnModCommand = *ZNCc::CPerlModule_OnModCommand; *OnModNotice = *ZNCc::CPerlModule_OnModNotice; *OnModCTCP = *ZNCc::CPerlModule_OnModCTCP; *OnQuit = *ZNCc::CPerlModule_OnQuit; *OnNick = *ZNCc::CPerlModule_OnNick; *OnKick = *ZNCc::CPerlModule_OnKick; *OnJoining = *ZNCc::CPerlModule_OnJoining; *OnJoin = *ZNCc::CPerlModule_OnJoin; *OnPart = *ZNCc::CPerlModule_OnPart; *OnChanBufferStarting = *ZNCc::CPerlModule_OnChanBufferStarting; *OnChanBufferEnding = *ZNCc::CPerlModule_OnChanBufferEnding; *OnChanBufferPlayLine = *ZNCc::CPerlModule_OnChanBufferPlayLine; *OnPrivBufferPlayLine = *ZNCc::CPerlModule_OnPrivBufferPlayLine; *OnClientLogin = *ZNCc::CPerlModule_OnClientLogin; *OnClientDisconnect = *ZNCc::CPerlModule_OnClientDisconnect; *OnUserRaw = *ZNCc::CPerlModule_OnUserRaw; *OnUserCTCPReply = *ZNCc::CPerlModule_OnUserCTCPReply; *OnUserCTCP = *ZNCc::CPerlModule_OnUserCTCP; *OnUserAction = *ZNCc::CPerlModule_OnUserAction; *OnUserMsg = *ZNCc::CPerlModule_OnUserMsg; *OnUserNotice = *ZNCc::CPerlModule_OnUserNotice; *OnUserJoin = *ZNCc::CPerlModule_OnUserJoin; *OnUserPart = *ZNCc::CPerlModule_OnUserPart; *OnUserTopic = *ZNCc::CPerlModule_OnUserTopic; *OnUserTopicRequest = *ZNCc::CPerlModule_OnUserTopicRequest; *OnCTCPReply = *ZNCc::CPerlModule_OnCTCPReply; *OnPrivCTCP = *ZNCc::CPerlModule_OnPrivCTCP; *OnChanCTCP = *ZNCc::CPerlModule_OnChanCTCP; *OnPrivAction = *ZNCc::CPerlModule_OnPrivAction; *OnChanAction = *ZNCc::CPerlModule_OnChanAction; *OnPrivMsg = *ZNCc::CPerlModule_OnPrivMsg; *OnChanMsg = *ZNCc::CPerlModule_OnChanMsg; *OnPrivNotice = *ZNCc::CPerlModule_OnPrivNotice; *OnChanNotice = *ZNCc::CPerlModule_OnChanNotice; *OnTopic = *ZNCc::CPerlModule_OnTopic; *OnServerCapAvailable = *ZNCc::CPerlModule_OnServerCapAvailable; *OnServerCapResult = *ZNCc::CPerlModule_OnServerCapResult; *OnTimerAutoJoin = *ZNCc::CPerlModule_OnTimerAutoJoin; *OnEmbeddedWebRequest = *ZNCc::CPerlModule_OnEmbeddedWebRequest; *OnAddNetwork = *ZNCc::CPerlModule_OnAddNetwork; *OnDeleteNetwork = *ZNCc::CPerlModule_OnDeleteNetwork; *OnSendToClient = *ZNCc::CPerlModule_OnSendToClient; *OnSendToIRC = *ZNCc::CPerlModule_OnSendToIRC; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CPerlModule($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CPerlTimer ############## package ZNC::CPerlTimer; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CTimer ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CPerlTimer(@_); bless $self, $pkg if defined($self); } *RunJob = *ZNCc::CPerlTimer_RunJob; *GetPerlObj = *ZNCc::CPerlTimer_GetPerlObj; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CPerlTimer($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::CPerlSocket ############## package ZNC::CPerlSocket; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC::CSocket ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_CPerlSocket(@_); bless $self, $pkg if defined($self); } *GetPerlObj = *ZNCc::CPerlSocket_GetPerlObj; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_CPerlSocket($self); delete $OWNER{$self}; } } *Connected = *ZNCc::CPerlSocket_Connected; *Disconnected = *ZNCc::CPerlSocket_Disconnected; *Timeout = *ZNCc::CPerlSocket_Timeout; *ConnectionRefused = *ZNCc::CPerlSocket_ConnectionRefused; *ReadData = *ZNCc::CPerlSocket_ReadData; *ReadLine = *ZNCc::CPerlSocket_ReadLine; *GetSockObj = *ZNCc::CPerlSocket_GetSockObj; sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::String ############## package ZNC::String; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_String(@_); bless $self, $pkg if defined($self); } *GetPerlStr = *ZNCc::String_GetPerlStr; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_String($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::StrPair ############## package ZNC::StrPair; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_StrPair(@_); bless $self, $pkg if defined($self); } *swig_first_get = *ZNCc::StrPair_first_get; *swig_first_set = *ZNCc::StrPair_first_set; *swig_second_get = *ZNCc::StrPair_second_get; *swig_second_set = *ZNCc::StrPair_second_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_StrPair($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VPair ############## package ZNC::VPair; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VPair(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VPair_size; *empty = *ZNCc::VPair_empty; *clear = *ZNCc::VPair_clear; *push = *ZNCc::VPair_push; *pop = *ZNCc::VPair_pop; *get = *ZNCc::VPair_get; *set = *ZNCc::VPair_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VPair($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } ############# Class : ZNC::VWebSubPages ############## package ZNC::VWebSubPages; use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS); @ISA = qw( ZNC ); %OWNER = (); %ITERATORS = (); sub new { my $pkg = shift; my $self = ZNCc::new_VWebSubPages(@_); bless $self, $pkg if defined($self); } *size = *ZNCc::VWebSubPages_size; *empty = *ZNCc::VWebSubPages_empty; *clear = *ZNCc::VWebSubPages_clear; *push = *ZNCc::VWebSubPages_push; *pop = *ZNCc::VWebSubPages_pop; *get = *ZNCc::VWebSubPages_get; *set = *ZNCc::VWebSubPages_set; sub DESTROY { return unless $_[0]->isa('HASH'); my $self = tied(%{$_[0]}); return unless defined $self; delete $ITERATORS{$self}; if (exists $OWNER{$self}) { ZNCc::delete_VWebSubPages($self); delete $OWNER{$self}; } } sub DISOWN { my $self = shift; my $ptr = tied(%$self); delete $OWNER{$ptr}; } sub ACQUIRE { my $self = shift; my $ptr = tied(%$self); $OWNER{$ptr} = 1; } # ------- VARIABLE STUBS -------- package ZNC; *g_HexDigits = *ZNCc::g_HexDigits; *CS_INVALID_SOCK = *ZNCc::CS_INVALID_SOCK; *CS_BLOCKSIZE = *ZNCc::CS_BLOCKSIZE; *ADDR_IPV4ONLY = *ZNCc::ADDR_IPV4ONLY; *ADDR_IPV6ONLY = *ZNCc::ADDR_IPV6ONLY; *ADDR_ALL = *ZNCc::ADDR_ALL; *Perl_NotFound = *ZNCc::Perl_NotFound; *Perl_Loaded = *ZNCc::Perl_Loaded; *Perl_LoadError = *ZNCc::Perl_LoadError; package ZNC::CModule; sub GetNVKeys { my $result = _GetNVKeys(@_); return @$result; } package ZNC; sub CreateWebSubPage { my ($name, %arg) = @_; my $params = $arg{params}//{}; my $vpair = ZNC::VPair->new; while (my ($key, $val) = each %$params) { ZNC::_VPair_Add2Str($vpair, $key, $val); } my $flags = 0; $flags |= $ZNC::CWebSubPage::F_ADMIN if $arg{admin}//0; return _CreateWebSubPage($name, $arg{title}//'', $vpair, $flags); } package ZNC; *CONTINUE = *ZNC::CModule::CONTINUE; *HALT = *ZNC::CModule::HALT; *HALTMODS = *ZNC::CModule::HALTMODS; *HALTCORE = *ZNC::CModule::HALTCORE; *UNLOAD = *ZNC::CModule::UNLOAD; package ZNC::CIRCNetwork; *GetChans = *GetChans_; package ZNC::CUser; *GetNetworks = *GetNetworks_; package ZNC::CChan; sub _GetNicks_ { my $result = GetNicks_(@_); return %$result; } *GetNicks = *_GetNicks_; 1; znc-1.6.3/modules/modperl/codegen.pl0000755000175000017500000001230012663147131017615 0ustar somebodysomebody#!/usr/bin/env perl # # Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # use strict; use warnings; use IO::File; use feature 'switch', 'say'; open my $in, $ARGV[0] or die; open my $out, ">", $ARGV[1] or die; print $out <<'EOF'; /* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /*************************************************************************** * This file is generated automatically using codegen.pl from functions.in * * Don't change it manually. * ***************************************************************************/ /*#include "module.h" #include "swigperlrun.h" #include #include #include #include "pstring.h"*/ namespace { template struct SvToPtr { CString m_sType; SvToPtr(const CString& sType) { m_sType = sType; } T* operator()(SV* sv) { T* result; int res = SWIG_ConvertPtr(sv, (void**)&result, SWIG_TypeQuery(m_sType.c_str()), 0); if (SWIG_IsOK(res)) { return result; } return NULL; } }; CModule::EModRet SvToEModRet(SV* sv) { return static_cast(SvUV(sv)); } } /* #define PSTART dSP; I32 ax; int ret = 0; ENTER; SAVETMPS; PUSHMARK(SP) #define PCALL(name) PUTBACK; ret = call_pv(name, G_EVAL|G_ARRAY); SPAGAIN; SP -= ret; ax = (SP - PL_stack_base) + 1 #define PEND PUTBACK; FREETMPS; LEAVE #define PUSH_STR(s) XPUSHs(PString(s).GetSV()) #define PUSH_PTR(type, p) XPUSHs(SWIG_NewInstanceObj(const_cast(p), SWIG_TypeQuery(#type), SWIG_SHADOW)) */ #define PSTART_IDF(Func) PSTART; XPUSHs(GetPerlObj()); PUSH_STR(#Func) #define PCALLMOD(Error, Success) PCALL("ZNC::Core::CallModFunc"); if (SvTRUE(ERRSV)) { DEBUG("Perl hook died with: " + PString(ERRSV)); Error; } else { Success; } PEND EOF while (<$in>) { my ($type, $name, $args, $default) = /(\S+)\s+(\w+)\((.*)\)(?:=(\w+))?/ or next; $type =~ s/(EModRet)/CModule::$1/; $type =~ s/^\s*(.*?)\s*$/$1/; unless (defined $default) { given ($type) { when ('bool') { $default = 'true' } when ('CModule::EModRet') { $default = 'CONTINUE' } when ('CString') { $default = '""' } when (/\*$/) { $default = "($type)NULL" } } } my @arg = map { my ($t, $v) = /^\s*(.*\W)\s*(\w+)\s*$/; $t =~ s/^\s*(.*?)\s*$/$1/; my ($tt, $tm) = $t =~ /^(.*?)\s*?(\*|&)?$/; {type=>$t, var=>$v, base=>$tt, mod=>$tm//''} } split /,/, $args; say $out "$type CPerlModule::$name($args) {"; say $out "\t$type result = $default;" if $type ne 'void'; say $out "\tPSTART_IDF($name);"; given ($type) { when ('CString') { print $out "\tPUSH_STR($default);" } when (/\*$/) { my $t=$type; $t=~s/^const//; print $out "\tPUSH_PTR($t, $default);" } when ('void') { print $out "\tmXPUSHi(0);" } default { print $out "\tmXPUSHi(static_cast($default));" } } say $out " // Default value"; for my $a (@arg) { given ($a->{type}) { when (/(vector\s*<\s*(.*)\*\s*>)/) { my ($vec, $sub) = ($1, $2); my $dot = '.'; $dot = '->' if $a->{mod} eq '*'; say $out "\tfor (${vec}::const_iterator i = $a->{var}${dot}begin(); i != $a->{var}${dot}end(); ++i) {"; #atm sub is always "...*" so... say $out "\t\tPUSH_PTR($sub*, *i);"; say $out "\t}"; } when (/CString/) { say $out "\tPUSH_STR($a->{var});" } when (/\*$/) { my $t=$a->{type}; $t=~s/^const//; say $out "\tPUSH_PTR($t, $a->{var});" } when (/&$/) { my $b=$a->{base}; $b=~s/^const//; say $out "\tPUSH_PTR($b*, &$a->{var});" } when (/unsigned/){ say $out "\tmXPUSHu($a->{var});" } default { say $out "\tmXPUSHi($a->{var});" } } } say $out "\tPCALLMOD(,"; my $x = 0; say $out "\t\tresult = ".sv($type)."(ST(0));" if $type ne 'void'; for my $a (@arg) { $x++; say $out "\t\t$a->{var} = PString(ST($x));" if $a->{base} eq 'CString' && $a->{mod} eq '&'; } say $out "\t);"; say $out "\treturn result;" if $type ne 'void'; say $out "}\n"; } sub sv { my $type = shift; given ($type) { when (/^(.*)\*$/) { return "SvToPtr<$1>(\"$type\")" } when ('CString') { return 'PString' } when ('CModule::EModRet') { return 'SvToEModRet' } when (/unsigned/) { return 'SvUV' } default { return 'SvIV' } } } znc-1.6.3/modules/modperl/swigperlrun.h0000644000175000017500000011647512663147136020432 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.5 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif #ifdef __cplusplus /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ #include #include extern "C" { #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ #ifndef PERL_REVISION # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) # define PERL_PATCHLEVEL_H_IMPLICIT # include # endif # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) # include # endif # ifndef PERL_REVISION # define PERL_REVISION (5) # define PERL_VERSION PATCHLEVEL # define PERL_SUBVERSION SUBVERSION # endif #endif #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) #define PerlIO_exportFILE(fh,fl) (FILE*)(fh) #endif #ifndef SvIOK_UV # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) #endif #ifndef SvUOK # define SvUOK(sv) SvIOK_UV(sv) #endif #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) # define PL_sv_undef sv_undef # define PL_na na # define PL_errgv errgv # define PL_sv_no sv_no # define PL_sv_yes sv_yes # define PL_markstack_ptr markstack_ptr #endif #ifndef IVSIZE # ifdef LONGSIZE # define IVSIZE LONGSIZE # else # define IVSIZE 4 /* A bold guess, but the best we can make. */ # endif #endif #ifndef INT2PTR # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) # define PTRV UV # define INT2PTR(any,d) (any)(d) # else # if PTRSIZE == LONGSIZE # define PTRV unsigned long # else # define PTRV unsigned # endif # define INT2PTR(any,d) (any)(PTRV)(d) # endif # define NUM2PTR(any,d) (any)(PTRV)(d) # define PTR2IV(p) INT2PTR(IV,p) # define PTR2UV(p) INT2PTR(UV,p) # define PTR2NV(p) NUM2PTR(NV,p) # if PTRSIZE == LONGSIZE # define PTR2ul(p) (unsigned long)(p) # else # define PTR2ul(p) INT2PTR(unsigned long,p) # endif #endif /* !INT2PTR */ #ifndef SvPV_nolen # define SvPV_nolen(x) SvPV(x,PL_na) #endif #ifndef get_sv # define get_sv perl_get_sv #endif #ifndef ERRSV # define ERRSV get_sv("@",FALSE) #endif #ifndef pTHX_ #define pTHX_ #endif #include #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGINTERN const char* SWIG_Perl_ErrorType(int code) { switch(code) { case SWIG_MemoryError: return "MemoryError"; case SWIG_IOError: return "IOError"; case SWIG_RuntimeError: return "RuntimeError"; case SWIG_IndexError: return "IndexError"; case SWIG_TypeError: return "TypeError"; case SWIG_DivisionByZero: return "ZeroDivisionError"; case SWIG_OverflowError: return "OverflowError"; case SWIG_SyntaxError: return "SyntaxError"; case SWIG_ValueError: return "ValueError"; case SWIG_SystemError: return "SystemError"; case SWIG_AttributeError: return "AttributeError"; default: return "RuntimeError"; } } /* ----------------------------------------------------------------------------- * perlrun.swg * * This file contains the runtime support for Perl modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ #ifdef PERL_OBJECT #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), #define SWIG_PERL_OBJECT_CALL pPerl, #else #define SWIG_PERL_OBJECT_DECL #define SWIG_PERL_OBJECT_CALL #endif /* Common SWIG API */ /* for raw pointers */ #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) #define swig_owntype int /* for raw packed data */ #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Perl-specific SWIG API */ #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #ifdef __cplusplus extern "C" { #endif #define SWIG_OWNER SWIG_POINTER_OWN #define SWIG_SHADOW SWIG_OWNER << 1 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL /* SWIG Perl macros */ /* Macro to declare an XS function */ #ifndef XSPROTO # define XSPROTO(name) void name(pTHX_ CV* cv) #endif /* Macro to call an XS function */ #ifdef PERL_OBJECT # define SWIG_CALLXS(_name) _name(cv,pPerl) #else # ifndef MULTIPLICITY # define SWIG_CALLXS(_name) _name(cv) # else # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) # endif #endif #ifdef PERL_OBJECT #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; #ifdef __cplusplus extern "C" { #endif typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #define SWIGCLASS_STATIC #else /* PERL_OBJECT */ #define MAGIC_PPERL #define SWIGCLASS_STATIC static SWIGUNUSED #ifndef MULTIPLICITY #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #ifdef __cplusplus extern "C" { #endif typedef int (*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #else /* MULTIPLICITY */ #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) #ifdef __cplusplus extern "C" { #endif typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); #ifdef __cplusplus } #endif #endif /* MULTIPLICITY */ #endif /* PERL_OBJECT */ # ifdef PERL_OBJECT # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) static void SWIG_Perl_croak_null(CPerlObj *pPerl) # else static void SWIG_croak_null() # endif { SV *err = get_sv("@", GV_ADD); # if (PERL_VERSION < 6) croak("%_", err); # else if (sv_isobject(err)) croak(0); else croak("%s", SvPV_nolen(err)); # endif } /* Define how strict is the cast between strings and integers/doubles when overloading between these types occurs. The default is making it as strict as possible by using SWIG_AddCast when needed. You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to disable the SWIG_AddCast, making the casting between string and numbers less strict. In the end, we try to solve the overloading between strings and numerical types in the more natural way, but if you can avoid it, well, avoid it using %rename, for example. */ #ifndef SWIG_PERL_NO_STRICT_STR2NUM # ifndef SWIG_PERL_STRICT_STR2NUM # define SWIG_PERL_STRICT_STR2NUM # endif #endif #ifdef SWIG_PERL_STRICT_STR2NUM /* string takes precedence */ #define SWIG_Str2NumCast(x) SWIG_AddCast(x) #else /* number takes precedence */ #define SWIG_Str2NumCast(x) x #endif #include SWIGRUNTIME const char * SWIG_Perl_TypeProxyName(const swig_type_info *type) { if (!type) return NULL; if (type->clientdata != NULL) { return (const char*) type->clientdata; } else { return type->name; } } /* Identical to SWIG_TypeCheck, except for strcmp comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Function for getting a pointer value */ SWIGRUNTIME int SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { swig_cast_info *tc; void *voidptr = (void *)0; SV *tsv = 0; if (own) *own = 0; /* If magical, apply more magic */ if (SvGMAGICAL(sv)) mg_get(sv); /* Check to see if this is an object */ if (sv_isobject(sv)) { IV tmp = 0; tsv = (SV*) SvRV(sv); if ((SvTYPE(tsv) == SVt_PVHV)) { MAGIC *mg; if (SvMAGICAL(tsv)) { mg = mg_find(tsv,'P'); if (mg) { sv = mg->mg_obj; if (sv_isobject(sv)) { tsv = (SV*)SvRV(sv); tmp = SvIV(tsv); } } } else { return SWIG_ERROR; } } else { tmp = SvIV(tsv); } voidptr = INT2PTR(void *,tmp); } else if (! SvOK(sv)) { /* Check for undef */ *(ptr) = (void *) 0; return SWIG_OK; } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ if (!SvROK(sv)) { /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */ if (SvIOK(sv)) { return SWIG_ERROR; } else { /* NULL pointer (reference to undef). */ *(ptr) = (void *) 0; return SWIG_OK; } } else { return SWIG_ERROR; } } else { /* Don't know what it is */ return SWIG_ERROR; } if (_t) { /* Now see if the types match */ char *_c = HvNAME(SvSTASH(SvRV(sv))); tc = SWIG_TypeProxyCheck(_c,_t); #ifdef SWIG_DIRECTORS if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) { #else if (!tc) { #endif return SWIG_ERROR; } { int newmemory = 0; *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } } else { *ptr = voidptr; } /* * DISOWN implementation: we need a perl guru to check this one. */ if (tsv && (flags & SWIG_POINTER_DISOWN)) { /* * almost copy paste code from below SWIG_POINTER_OWN setting */ SV *obj = sv; HV *stash = SvSTASH(SvRV(obj)); GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); if (isGV(gv)) { HV *hv = GvHVn(gv); /* * To set ownership (see below), a newSViv(1) entry is added. * Hence, to remove ownership, we delete the entry. */ if (hv_exists_ent(hv, obj, 0)) { hv_delete_ent(hv, obj, 0, 0); } } } return SWIG_OK; } SWIGRUNTIME int SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); } SWIGRUNTIME void SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { SV *self; SV *obj=newSV(0); HV *hash=newHV(); HV *stash; sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr); stash=SvSTASH(SvRV(obj)); if (flags & SWIG_POINTER_OWN) { HV *hv; GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); if (!isGV(gv)) gv_init(gv, stash, "OWNER", 5, FALSE); hv=GvHVn(gv); hv_store_ent(hv, obj, newSViv(1), 0); } sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); SvREFCNT_dec(obj); self=newRV_noinc((SV *)hash); sv_setsv(sv, self); SvREFCNT_dec((SV *)self); sv_bless(sv, stash); } else { sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr); } } SWIGRUNTIMEINLINE SV * SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { SV *result = sv_newmortal(); SWIG_MakePtr(result, ptr, t, flags); return result; } SWIGRUNTIME void SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); strcpy(r,SWIG_Perl_TypeProxyName(type)); sv_setpv(sv, result); } SWIGRUNTIME SV * SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { SV *result = sv_newmortal(); SWIG_Perl_MakePackedObj(result, ptr, sz, type); return result; } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c = 0; if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; c = SvPV_nolen(obj); /* Pointer values must start with leading underscore */ if (*c != '_') return SWIG_ERROR; c++; c = SWIG_UnpackData(c,ptr,sz); if (ty) { tc = SWIG_TypeCheck(c,ty); if (!tc) return SWIG_ERROR; } return SWIG_OK; } /* Macros for low-level exception handling */ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } typedef XSPROTO(SwigPerlWrapper); typedef SwigPerlWrapper *SwigPerlWrapperPtr; /* Structure for command table */ typedef struct { const char *name; SwigPerlWrapperPtr wrapper; } swig_command_info; /* Information for constant table */ #define SWIG_INT 1 #define SWIG_FLOAT 2 #define SWIG_STRING 3 #define SWIG_POINTER 4 #define SWIG_BINARY 5 /* Constant information structure */ typedef struct swig_constant_info { int type; const char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_constant_info; /* Structure for variable table */ typedef struct { const char *name; SwigMagicFunc set; SwigMagicFunc get; swig_type_info **type; } swig_variable_info; /* Magic variable code */ #ifndef PERL_OBJECT # ifdef __cplusplus # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast(a),b,c) # else # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c) # endif # ifndef MULTIPLICITY SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) # else SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) # endif #else # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) #endif { MAGIC *mg; sv_magic(sv,sv,'U',name,strlen(name)); mg = mg_find(sv,'U'); mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); mg->mg_virtual->svt_get = (SwigMagicFunc) get; mg->mg_virtual->svt_set = (SwigMagicFunc) set; mg->mg_virtual->svt_len = 0; mg->mg_virtual->svt_clear = 0; mg->mg_virtual->svt_free = 0; } SWIGRUNTIME swig_module_info * SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; SV *pointer; /* first check if pointer already created */ if (!type_pointer) { pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); if (pointer && SvOK(pointer)) { type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); } } return (swig_module_info *) type_pointer; } SWIGRUNTIME void SWIG_Perl_SetModule(swig_module_info *module) { SV *pointer; /* create a new pointer */ pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); sv_setiv(pointer, PTR2IV(module)); } #ifdef __cplusplus } #endif /* -----------------------------------------------------------------------------* Standard SWIG API for use inside user code. Don't include this file directly, run the command swig -python -external-runtime Also, read the Modules chapter of the SWIG Manual. * -----------------------------------------------------------------------------*/ #ifdef SWIG_MODULE_CLIENTDATA_TYPE SWIGRUNTIMEINLINE swig_type_info * SWIG_TypeQuery(SWIG_MODULE_CLIENTDATA_TYPE clientdata, const char *name) { swig_module_info *module = SWIG_GetModule(clientdata); return SWIG_TypeQueryModule(module, module, name); } SWIGRUNTIMEINLINE swig_type_info * SWIG_MangledTypeQuery(SWIG_MODULE_CLIENTDATA_TYPE clientdata, const char *name) { swig_module_info *module = SWIG_GetModule(clientdata); return SWIG_MangledTypeQueryModule(module, module, name); } #else SWIGRUNTIMEINLINE swig_type_info * SWIG_TypeQuery(const char *name) { swig_module_info *module = SWIG_GetModule(NULL); return SWIG_TypeQueryModule(module, module, name); } SWIGRUNTIMEINLINE swig_type_info * SWIG_MangledTypeQuery(const char *name) { swig_module_info *module = SWIG_GetModule(NULL); return SWIG_MangledTypeQueryModule(module, module, name); } #endif znc-1.6.3/modules/modperl/Makefile.gen0000644000175000017500000000134012663147131020063 0ustar somebodysomebodyall: VPATH := $(srcdir) ifneq "$(V)" "" VERBOSE=1 endif ifeq "$(VERBOSE)" "" Q=@ E=@echo C=-s else Q= E=@\# C= endif .SECONDARY: all: modperl/ZNC.cpp modperl/ZNC.pm modperl/functions.cpp modperl/swigperlrun.h modperl/swigperlrun.h: @mkdir -p modperl $(Q)$(SWIG) -perl5 -c++ -shadow -external-runtime $@ modperl/ZNC.cpp: modperl/modperl.i modperl/module.h modperl/CString.i $(E) Generating ZNC API for Perl... @mkdir -p modperl .depend $(Q)$(SWIG) -perl5 -c++ -shadow -outdir modperl -I$(srcdir) -MD -MF .depend/modperl.swig.dep -w362,315,401,402 -o $@ $< modperl/ZNC.pm: modperl/ZNC.cpp modperl/functions.cpp: modperl/codegen.pl modperl/functions.in @mkdir -p modperl $(Q)$(PERL) $^ $@ -include .depend/modperl.swig.dep znc-1.6.3/modules/modperl/modperl.i0000644000175000017500000001704012663147131017473 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ %module ZNC %{ #ifdef Copy # undef Copy #endif #ifdef Pause # undef Pause #endif #ifdef seed # undef seed #endif #include #include "../include/znc/Utils.h" #include "../include/znc/Threads.h" #include "../include/znc/Config.h" #include "../include/znc/Socket.h" #include "../include/znc/Modules.h" #include "../include/znc/Nick.h" #include "../include/znc/Chan.h" #include "../include/znc/User.h" #include "../include/znc/IRCNetwork.h" #include "../include/znc/Client.h" #include "../include/znc/IRCSock.h" #include "../include/znc/Listener.h" #include "../include/znc/HTTPSock.h" #include "../include/znc/Template.h" #include "../include/znc/WebModules.h" #include "../include/znc/znc.h" #include "../include/znc/Server.h" #include "../include/znc/ZNCString.h" #include "../include/znc/FileUtils.h" #include "../include/znc/ZNCDebug.h" #include "../include/znc/ExecSock.h" #include "../include/znc/Buffer.h" #include "modperl/module.h" #define stat struct stat %} %apply long { off_t }; %apply long { uint16_t }; %apply long { uint32_t }; %apply long { uint64_t }; %begin %{ #include "znc/zncconfig.h" %} %include %include %include %include namespace std { template class set { public: set(); set(const set&); }; } %include "modperl/CString.i" %template(_stringlist) std::list; %typemap(out) std::list { std::list::const_iterator i; unsigned int j; int len = $1.size(); SV **svs = new SV*[len]; for (i=$1.begin(), j=0; i!=$1.end(); i++, j++) { svs[j] = sv_newmortal(); SwigSvFromString(svs[j], *i); } AV *myav = av_make(len, svs); delete[] svs; $result = newRV_noinc((SV*) myav); sv_2mortal($result); argvi++; } %template(VIRCNetworks) std::vector; %template(VChannels) std::vector; %template(VCString) std::vector; typedef std::vector VCString; /*%template(MNicks) std::map;*/ /*%template(SModInfo) std::set; %template(SCString) std::set; typedef std::set SCString;*/ %template(PerlMCString) std::map; class MCString : public std::map {}; /*%template(PerlModulesVector) std::vector;*/ %template(VListeners) std::vector; %template(BufLines) std::deque; %template(VVString) std::vector; %typemap(out) std::map { HV* myhv = newHV(); for (std::map::const_iterator i = $1.begin(); i != $1.end(); ++i) { SV* val = SWIG_NewInstanceObj(const_cast(&i->second), SWIG_TypeQuery("CNick*"), SWIG_SHADOW); SvREFCNT_inc(val);// it was created mortal hv_store(myhv, i->first.c_str(), i->first.length(), val, 0); } $result = newRV_noinc((SV*)myhv); sv_2mortal($result); argvi++; } #define u_short unsigned short #define u_int unsigned int #include "../include/znc/zncconfig.h" #include "../include/znc/ZNCString.h" %include "../include/znc/defines.h" %include "../include/znc/Utils.h" %include "../include/znc/Threads.h" %include "../include/znc/Config.h" %include "../include/znc/Csocket.h" %template(ZNCSocketManager) TSocketManager; %include "../include/znc/Socket.h" %include "../include/znc/FileUtils.h" %include "../include/znc/Modules.h" %include "../include/znc/Nick.h" %include "../include/znc/Chan.h" %include "../include/znc/User.h" %include "../include/znc/IRCNetwork.h" %include "../include/znc/Client.h" %include "../include/znc/IRCSock.h" %include "../include/znc/Listener.h" %include "../include/znc/HTTPSock.h" %include "../include/znc/Template.h" %include "../include/znc/WebModules.h" %include "../include/znc/znc.h" %include "../include/znc/Server.h" %include "../include/znc/ZNCDebug.h" %include "../include/znc/ExecSock.h" %include "../include/znc/Buffer.h" %include "modperl/module.h" %inline %{ class String : public CString { public: String() {} String(const CString& s) : CString(s) {} String(double d, int prec=2): CString(d, prec) {} String(float f, int prec=2) : CString(f, prec) {} String(int i) : CString(i) {} String(unsigned int i) : CString(i) {} String(long int i) : CString(i) {} String(unsigned long int i) : CString(i) {} String(char c) : CString(c) {} String(unsigned char c) : CString(c) {} String(short int i) : CString(i) {} String(unsigned short int i): CString(i) {} String(bool b) : CString(b) {} CString GetPerlStr() { return *this; } }; %} %extend CModule { std::list _GetNVKeys() { std::list res; for (MCString::iterator i = $self->BeginNV(); i != $self->EndNV(); ++i) { res.push_back(i->first); } return res; } bool ExistsNV(const CString& sName) { return $self->EndNV() != $self->FindNV(sName); } } %perlcode %{ package ZNC::CModule; sub GetNVKeys { my $result = _GetNVKeys(@_); return @$result; } %} %extend CModules { void push_back(CModule* p) { $self->push_back(p); } bool removeModule(CModule* p) { for (CModules::iterator i = $self->begin(); $self->end() != i; ++i) { if (*i == p) { $self->erase(i); return true; } } return false; } } %extend CUser { std::vector GetNetworks_() { return $self->GetNetworks(); } } %extend CIRCNetwork { std::vector GetChans_() { return $self->GetChans(); } } %extend CChan { std::map GetNicks_() { return $self->GetNicks(); } } /* Web */ %template(StrPair) std::pair; %template(VPair) std::vector >; typedef std::vector > VPair; %template(VWebSubPages) std::vector; %inline %{ void _VPair_Add2Str(VPair* self, const CString& a, const CString& b) { self->push_back(std::make_pair(a, b)); } %} %extend CTemplate { void set(const CString& key, const CString& value) { (*$self)[key] = value; } } %inline %{ TWebSubPage _CreateWebSubPage(const CString& sName, const CString& sTitle, const VPair& vParams, unsigned int uFlags) { return std::make_shared(sName, sTitle, vParams, uFlags); } %} %perlcode %{ package ZNC; sub CreateWebSubPage { my ($name, %arg) = @_; my $params = $arg{params}//{}; my $vpair = ZNC::VPair->new; while (my ($key, $val) = each %$params) { ZNC::_VPair_Add2Str($vpair, $key, $val); } my $flags = 0; $flags |= $ZNC::CWebSubPage::F_ADMIN if $arg{admin}//0; return _CreateWebSubPage($name, $arg{title}//'', $vpair, $flags); } %} %inline %{ void _CleanupStash(const CString& sModname) { hv_clear(gv_stashpv(sModname.c_str(), 0)); } %} %perlcode %{ package ZNC; *CONTINUE = *ZNC::CModule::CONTINUE; *HALT = *ZNC::CModule::HALT; *HALTMODS = *ZNC::CModule::HALTMODS; *HALTCORE = *ZNC::CModule::HALTCORE; *UNLOAD = *ZNC::CModule::UNLOAD; package ZNC::CIRCNetwork; *GetChans = *GetChans_; package ZNC::CUser; *GetNetworks = *GetNetworks_; package ZNC::CChan; sub _GetNicks_ { my $result = GetNicks_(@_); return %$result; } *GetNicks = *_GetNicks_; %} /* vim: set filetype=cpp: */ znc-1.6.3/modules/modperl/ZNC.cpp0000644000175000017500001514604512663147136017040 0ustar somebodysomebody/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.5 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make * changes to this file unless you know what you are doing--modify the SWIG * interface file instead. * ----------------------------------------------------------------------------- */ #include "znc/zncconfig.h" #define SWIGPERL #define SWIG_CASTRANK_MODE #ifdef __cplusplus /* SwigValueWrapper is described in swig.swg */ template class SwigValueWrapper { struct SwigMovePointer { T *ptr; SwigMovePointer(T *p) : ptr(p) { } ~SwigMovePointer() { delete ptr; } SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } } pointer; SwigValueWrapper& operator=(const SwigValueWrapper& rhs); SwigValueWrapper(const SwigValueWrapper& rhs); public: SwigValueWrapper() : pointer(0) { } SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } operator T&() const { return *pointer.ptr; } T *operator&() { return pointer.ptr; } }; template T SwigValueInit() { return T(); } #endif /* ----------------------------------------------------------------------------- * This section contains generic SWIG labels for method/variable * declarations/attributes, and other compiler dependent labels. * ----------------------------------------------------------------------------- */ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # elif defined(__HP_aCC) /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif #endif /* inline attribute */ #ifndef SWIGINLINE # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) # define SWIGINLINE inline # else # define SWIGINLINE # endif #endif /* attribute recognised by some compilers to avoid 'unused' warnings */ #ifndef SWIGUNUSED # if defined(__GNUC__) # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif # elif defined(__ICC) # define SWIGUNUSED __attribute__ ((__unused__)) # else # define SWIGUNUSED # endif #endif #ifndef SWIG_MSC_UNSUPPRESS_4505 # if defined(_MSC_VER) # pragma warning(disable : 4505) /* unreferenced local function has been removed */ # endif #endif #ifndef SWIGUNUSEDPARM # ifdef __cplusplus # define SWIGUNUSEDPARM(p) # else # define SWIGUNUSEDPARM(p) p SWIGUNUSED # endif #endif /* internal SWIG method */ #ifndef SWIGINTERN # define SWIGINTERN static SWIGUNUSED #endif /* internal inline SWIG method */ #ifndef SWIGINTERNINLINE # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE #endif /* exporting methods */ #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) # ifndef GCC_HASCLASSVISIBILITY # define GCC_HASCLASSVISIBILITY # endif #endif #ifndef SWIGEXPORT # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # if defined(STATIC_LINKED) # define SWIGEXPORT # else # define SWIGEXPORT __declspec(dllexport) # endif # else # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) # define SWIGEXPORT __attribute__ ((visibility("default"))) # else # define SWIGEXPORT # endif # endif #endif /* calling conventions for Windows */ #ifndef SWIGSTDCALL # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) # define SWIGSTDCALL __stdcall # else # define SWIGSTDCALL # endif #endif /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) # define _CRT_SECURE_NO_DEPRECATE #endif /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) # define _SCL_SECURE_NO_DEPRECATE #endif /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic C API SWIG runtime support for pointer * type checking. * ----------------------------------------------------------------------------- */ /* This should only be incremented when either the layout of swig_type_info changes, or for whatever reason, the runtime changes incompatibly */ #define SWIG_RUNTIME_VERSION "4" /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ #ifdef SWIG_TYPE_TABLE # define SWIG_QUOTE_STRING(x) #x # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) #else # define SWIG_TYPE_TABLE_NAME #endif /* You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for creating a static or dynamic library from the SWIG runtime code. In 99.9% of the cases, SWIG just needs to declare them as 'static'. But only do this if strictly necessary, ie, if you have problems with your compiler or suchlike. */ #ifndef SWIGRUNTIME # define SWIGRUNTIME SWIGINTERN #endif #ifndef SWIGRUNTIMEINLINE # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE #endif /* Generic buffer size */ #ifndef SWIG_BUFFER_SIZE # define SWIG_BUFFER_SIZE 1024 #endif /* Flags for pointer conversions */ #define SWIG_POINTER_DISOWN 0x1 #define SWIG_CAST_NEW_MEMORY 0x2 /* Flags for new pointer objects */ #define SWIG_POINTER_OWN 0x1 /* Flags/methods for returning states. The SWIG conversion methods, as ConvertPtr, return an integer that tells if the conversion was successful or not. And if not, an error code can be returned (see swigerrors.swg for the codes). Use the following macros/flags to set or process the returning states. In old versions of SWIG, code such as the following was usually written: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } which is the same really, but now you can also do Type *ptr; int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); if (SWIG_IsOK(res)) { // success code if (SWIG_IsNewObj(res) { ... delete *ptr; } else { ... } } else { // fail code } I.e., now SWIG_ConvertPtr can return new objects and you can identify the case and take care of the deallocation. Of course that also requires SWIG_ConvertPtr to return new result values, such as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; return SWIG_OLDOBJ; } } else { return SWIG_BADOBJ; } } Of course, returning the plain '0(success)/-1(fail)' still works, but you can be more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the SWIG errors code. Finally, if the SWIG_CASTRANK_MODE is enabled, the result code allows to return the 'cast rank', for example, if you have this int food(double) int fooi(int); and you call food(1) // cast rank '1' (1 -> 1.0) fooi(1) // cast rank '0' just use the SWIG_AddCast()/SWIG_CheckState() */ #define SWIG_OK (0) #define SWIG_ERROR (-1) #define SWIG_IsOK(r) (r >= 0) #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) /* The CastRankLimit says how many bits are used for the cast rank */ #define SWIG_CASTRANKLIMIT (1 << 8) /* The NewMask denotes the object was created (using new/malloc) */ #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) /* The TmpMask is for in/out typemaps that use temporal objects */ #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) /* Simple returning values */ #define SWIG_BADOBJ (SWIG_ERROR) #define SWIG_OLDOBJ (SWIG_OK) #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) /* Check, add and del mask methods */ #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) /* Cast-Rank Mode */ #if defined(SWIG_CASTRANK_MODE) # ifndef SWIG_TypeRank # define SWIG_TypeRank unsigned long # endif # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ # define SWIG_MAXCASTRANK (2) # endif # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) SWIGINTERNINLINE int SWIG_AddCast(int r) { return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; } SWIGINTERNINLINE int SWIG_CheckState(int r) { return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; } #else /* no cast-rank mode */ # define SWIG_AddCast(r) (r) # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) #endif #include #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *, int *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store information on one type */ typedef struct swig_type_info { const char *name; /* mangled name of this type */ const char *str; /* human readable name of this type */ swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ struct swig_cast_info *cast; /* linked list of types that can cast into this type */ void *clientdata; /* language specific type data */ int owndata; /* flag if the structure owns the clientdata */ } swig_type_info; /* Structure to store a type and conversion function used for casting */ typedef struct swig_cast_info { swig_type_info *type; /* pointer to type that is equivalent to this type */ swig_converter_func converter; /* function to cast the void pointers */ struct swig_cast_info *next; /* pointer to next cast in linked list */ struct swig_cast_info *prev; /* pointer to the previous cast */ } swig_cast_info; /* Structure used to store module information * Each module generates one structure like this, and the runtime collects * all of these structures and stores them in a circularly linked list.*/ typedef struct swig_module_info { swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ size_t size; /* Number of types in this module */ struct swig_module_info *next; /* Pointer to next element in circularly linked list */ swig_type_info **type_initial; /* Array of initially generated type structures */ swig_cast_info **cast_initial; /* Array of initially generated casting structures */ void *clientdata; /* Language specific module data */ } swig_module_info; /* Compare two type names skipping the space characters, therefore "char*" == "char *" and "Class" == "Class", etc. Return 0 when the two name types are equivalent, as in strncmp, but skipping ' '. */ SWIGRUNTIME int SWIG_TypeNameComp(const char *f1, const char *l1, const char *f2, const char *l2) { for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { while ((*f1 == ' ') && (f1 != l1)) ++f1; while ((*f2 == ' ') && (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; } return (int)((l1 - f1) - (l2 - f2)); } /* Check type equivalence in a name list like ||... Return 0 if equal, -1 if nb < tb, 1 if nb > tb */ SWIGRUNTIME int SWIG_TypeCmp(const char *nb, const char *tb) { int equiv = 1; const char* te = tb + strlen(tb); const char* ne = nb; while (equiv != 0 && *ne) { for (nb = ne; *ne; ++ne) { if (*ne == '|') break; } equiv = SWIG_TypeNameComp(nb, ne, tb, te); if (*ne) ++ne; } return equiv; } /* Check type equivalence in a name list like ||... Return 0 if not equal, 1 if equal */ SWIGRUNTIME int SWIG_TypeEquiv(const char *nb, const char *tb) { return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; } /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(iter->type->name, c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (iter->type == from) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME swig_type_info * SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { ty = (*ty->dcast)(ptr); if (ty) lastty = ty; } return lastty; } /* Return the name associated with this type */ SWIGRUNTIMEINLINE const char * SWIG_TypeName(const swig_type_info *ty) { return ty->name; } /* Return the pretty name associated with this type, that is an unmangled type name in a form presentable to the user. */ SWIGRUNTIME const char * SWIG_TypePrettyName(const swig_type_info *type) { /* The "str" field contains the equivalent pretty names of the type, separated by vertical-bar characters. We choose to print the last name, as it is often (?) the most specific. */ if (!type) return NULL; if (type->str != NULL) { const char *last_name = type->str; const char *s; for (s = type->str; *s; s++) if (*s == '|') last_name = s+1; return last_name; } else return type->name; } /* Set the clientdata field for a type */ SWIGRUNTIME void SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_cast_info *cast = ti->cast; /* if (ti->clientdata == clientdata) return; */ ti->clientdata = clientdata; while (cast) { if (!cast->converter) { swig_type_info *tc = cast->type; if (!tc->clientdata) { SWIG_TypeClientData(tc, clientdata); } } cast = cast->next; } } SWIGRUNTIME void SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { SWIG_TypeClientData(ti, clientdata); ti->owndata = 1; } /* Search for a swig_type_info structure only by mangled name Search is a O(log #types) We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_MangledTypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { swig_module_info *iter = start; do { if (iter->size) { size_t l = 0; size_t r = iter->size - 1; do { /* since l+r >= 0, we can (>> 1) instead (/ 2) */ size_t i = (l + r) >> 1; const char *iname = iter->types[i]->name; if (iname) { int compare = strcmp(name, iname); if (compare == 0) { return iter->types[i]; } else if (compare < 0) { if (i) { r = i - 1; } else { break; } } else if (compare > 0) { l = i + 1; } } else { break; /* should never happen */ } } while (l <= r); } iter = iter->next; } while (iter != end); return 0; } /* Search for a swig_type_info structure for either a mangled name or a human readable name. It first searches the mangled names of the types, which is a O(log #types) If a type is not found it then searches the human readable names, which is O(#types). We start searching at module start, and finish searching when start == end. Note: if start == end at the beginning of the function, we go all the way around the circular list. */ SWIGRUNTIME swig_type_info * SWIG_TypeQueryModule(swig_module_info *start, swig_module_info *end, const char *name) { /* STEP 1: Search the name field using binary search */ swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); if (ret) { return ret; } else { /* STEP 2: If the type hasn't been found, do a complete search of the str field (the human readable name) */ swig_module_info *iter = start; do { size_t i = 0; for (; i < iter->size; ++i) { if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) return iter->types[i]; } iter = iter->next; } while (iter != end); } /* neither found a match */ return 0; } /* Pack binary data into a string */ SWIGRUNTIME char * SWIG_PackData(char *c, void *ptr, size_t sz) { static const char hex[17] = "0123456789abcdef"; const unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { unsigned char uu = *u; *(c++) = hex[(uu & 0xf0) >> 4]; *(c++) = hex[uu & 0xf]; } return c; } /* Unpack binary data from a string */ SWIGRUNTIME const char * SWIG_UnpackData(const char *c, void *ptr, size_t sz) { unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; for (; u != eu; ++u) { char d = *(c++); unsigned char uu; if ((d >= '0') && (d <= '9')) uu = ((d - '0') << 4); else if ((d >= 'a') && (d <= 'f')) uu = ((d - ('a'-10)) << 4); else return (char *) 0; d = *(c++); if ((d >= '0') && (d <= '9')) uu |= (d - '0'); else if ((d >= 'a') && (d <= 'f')) uu |= (d - ('a'-10)); else return (char *) 0; *u = uu; } return c; } /* Pack 'void *' into a string buffer. */ SWIGRUNTIME char * SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { char *r = buff; if ((2*sizeof(void *) + 2) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,&ptr,sizeof(void *)); if (strlen(name) + 1 > (bsz - (r - buff))) return 0; strcpy(r,name); return buff; } SWIGRUNTIME const char * SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { *ptr = (void *) 0; return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sizeof(void *)); } SWIGRUNTIME char * SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { char *r = buff; size_t lname = (name ? strlen(name) : 0); if ((2*sz + 2 + lname) > bsz) return 0; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); if (lname) { strncpy(r,name,lname+1); } else { *r = 0; } return buff; } SWIGRUNTIME const char * SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { if (*c != '_') { if (strcmp(c,"NULL") == 0) { memset(ptr,0,sz); return name; } else { return 0; } } return SWIG_UnpackData(++c,ptr,sz); } #ifdef __cplusplus } #endif /* Errors in SWIG */ #define SWIG_UnknownError -1 #define SWIG_IOError -2 #define SWIG_RuntimeError -3 #define SWIG_IndexError -4 #define SWIG_TypeError -5 #define SWIG_DivisionByZero -6 #define SWIG_OverflowError -7 #define SWIG_SyntaxError -8 #define SWIG_ValueError -9 #define SWIG_SystemError -10 #define SWIG_AttributeError -11 #define SWIG_MemoryError -12 #define SWIG_NullReferenceError -13 #ifdef __cplusplus /* Needed on some windows machines---since MS plays funny games with the header files under C++ */ #include #include extern "C" { #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" /* Add in functionality missing in older versions of Perl. Much of this is based on Devel-PPPort on cpan. */ /* Add PERL_REVISION, PERL_VERSION, PERL_SUBVERSION if missing */ #ifndef PERL_REVISION # if !defined(__PATCHLEVEL_H_INCLUDED__) && !(defined(PATCHLEVEL) && defined(SUBVERSION)) # define PERL_PATCHLEVEL_H_IMPLICIT # include # endif # if !(defined(PERL_VERSION) || (defined(SUBVERSION) && defined(PATCHLEVEL))) # include # endif # ifndef PERL_REVISION # define PERL_REVISION (5) # define PERL_VERSION PATCHLEVEL # define PERL_SUBVERSION SUBVERSION # endif #endif #if defined(WIN32) && defined(PERL_OBJECT) && !defined(PerlIO_exportFILE) #define PerlIO_exportFILE(fh,fl) (FILE*)(fh) #endif #ifndef SvIOK_UV # define SvIOK_UV(sv) (SvIOK(sv) && (SvUVX(sv) == SvIVX(sv))) #endif #ifndef SvUOK # define SvUOK(sv) SvIOK_UV(sv) #endif #if ((PERL_VERSION < 4) || ((PERL_VERSION == 4) && (PERL_SUBVERSION <= 5))) # define PL_sv_undef sv_undef # define PL_na na # define PL_errgv errgv # define PL_sv_no sv_no # define PL_sv_yes sv_yes # define PL_markstack_ptr markstack_ptr #endif #ifndef IVSIZE # ifdef LONGSIZE # define IVSIZE LONGSIZE # else # define IVSIZE 4 /* A bold guess, but the best we can make. */ # endif #endif #ifndef INT2PTR # if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) # define PTRV UV # define INT2PTR(any,d) (any)(d) # else # if PTRSIZE == LONGSIZE # define PTRV unsigned long # else # define PTRV unsigned # endif # define INT2PTR(any,d) (any)(PTRV)(d) # endif # define NUM2PTR(any,d) (any)(PTRV)(d) # define PTR2IV(p) INT2PTR(IV,p) # define PTR2UV(p) INT2PTR(UV,p) # define PTR2NV(p) NUM2PTR(NV,p) # if PTRSIZE == LONGSIZE # define PTR2ul(p) (unsigned long)(p) # else # define PTR2ul(p) INT2PTR(unsigned long,p) # endif #endif /* !INT2PTR */ #ifndef SvPV_nolen # define SvPV_nolen(x) SvPV(x,PL_na) #endif #ifndef get_sv # define get_sv perl_get_sv #endif #ifndef ERRSV # define ERRSV get_sv("@",FALSE) #endif #ifndef pTHX_ #define pTHX_ #endif #include #ifdef __cplusplus } #endif /* ----------------------------------------------------------------------------- * error manipulation * ----------------------------------------------------------------------------- */ SWIGINTERN const char* SWIG_Perl_ErrorType(int code) { switch(code) { case SWIG_MemoryError: return "MemoryError"; case SWIG_IOError: return "IOError"; case SWIG_RuntimeError: return "RuntimeError"; case SWIG_IndexError: return "IndexError"; case SWIG_TypeError: return "TypeError"; case SWIG_DivisionByZero: return "ZeroDivisionError"; case SWIG_OverflowError: return "OverflowError"; case SWIG_SyntaxError: return "SyntaxError"; case SWIG_ValueError: return "ValueError"; case SWIG_SystemError: return "SystemError"; case SWIG_AttributeError: return "AttributeError"; default: return "RuntimeError"; } } /* ----------------------------------------------------------------------------- * perlrun.swg * * This file contains the runtime support for Perl modules * and includes code for managing global variables and pointer * type checking. * ----------------------------------------------------------------------------- */ #ifdef PERL_OBJECT #define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl), #define SWIG_PERL_OBJECT_CALL pPerl, #else #define SWIG_PERL_OBJECT_DECL #define SWIG_PERL_OBJECT_CALL #endif /* Common SWIG API */ /* for raw pointers */ #define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags) #define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own) #define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags) #define swig_owntype int /* for raw packed data */ #define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type) #define SWIG_NewPackedObj(p, s, type) SWIG_Perl_NewPackedObj(SWIG_PERL_OBJECT_CALL p, s, type) /* for class or struct pointers */ #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) /* for C or C++ function pointers */ #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0) #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0) /* for C++ member pointers, ie, member methods */ #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_ConvertPacked(obj, ptr, sz, ty) #define SWIG_NewMemberObj(ptr, sz, type) SWIG_NewPackedObj(ptr, sz, type) /* Runtime API */ #define SWIG_GetModule(clientdata) SWIG_Perl_GetModule(clientdata) #define SWIG_SetModule(clientdata, pointer) SWIG_Perl_SetModule(pointer) /* Error manipulation */ #define SWIG_ErrorType(code) SWIG_Perl_ErrorType(code) #define SWIG_Error(code, msg) sv_setpvf(get_sv("@", GV_ADD), "%s %s", SWIG_ErrorType(code), msg) #define SWIG_fail goto fail /* Perl-specific SWIG API */ #define SWIG_MakePtr(sv, ptr, type, flags) SWIG_Perl_MakePtr(SWIG_PERL_OBJECT_CALL sv, ptr, type, flags) #define SWIG_MakePackedObj(sv, p, s, type) SWIG_Perl_MakePackedObj(SWIG_PERL_OBJECT_CALL sv, p, s, type) #define SWIG_SetError(str) SWIG_Error(SWIG_RuntimeError, str) #define SWIG_PERL_DECL_ARGS_1(arg1) (SWIG_PERL_OBJECT_DECL arg1) #define SWIG_PERL_CALL_ARGS_1(arg1) (SWIG_PERL_OBJECT_CALL arg1) #define SWIG_PERL_DECL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_DECL arg1, arg2) #define SWIG_PERL_CALL_ARGS_2(arg1, arg2) (SWIG_PERL_OBJECT_CALL arg1, arg2) /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ /* For backward compatibility only */ #define SWIG_POINTER_EXCEPTION 0 #ifdef __cplusplus extern "C" { #endif #define SWIG_OWNER SWIG_POINTER_OWN #define SWIG_SHADOW SWIG_OWNER << 1 #define SWIG_MAYBE_PERL_OBJECT SWIG_PERL_OBJECT_DECL /* SWIG Perl macros */ /* Macro to declare an XS function */ #ifndef XSPROTO # define XSPROTO(name) void name(pTHX_ CV* cv) #endif /* Macro to call an XS function */ #ifdef PERL_OBJECT # define SWIG_CALLXS(_name) _name(cv,pPerl) #else # ifndef MULTIPLICITY # define SWIG_CALLXS(_name) _name(cv) # else # define SWIG_CALLXS(_name) _name(PERL_GET_THX, cv) # endif #endif #ifdef PERL_OBJECT #define MAGIC_PPERL CPerlObj *pPerl = (CPerlObj *) this; #ifdef __cplusplus extern "C" { #endif typedef int (CPerlObj::*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #define SWIGCLASS_STATIC #else /* PERL_OBJECT */ #define MAGIC_PPERL #define SWIGCLASS_STATIC static SWIGUNUSED #ifndef MULTIPLICITY #define SWIG_MAGIC(a,b) (SV *a, MAGIC *b) #ifdef __cplusplus extern "C" { #endif typedef int (*SwigMagicFunc)(SV *, MAGIC *); #ifdef __cplusplus } #endif #else /* MULTIPLICITY */ #define SWIG_MAGIC(a,b) (struct interpreter *interp, SV *a, MAGIC *b) #ifdef __cplusplus extern "C" { #endif typedef int (*SwigMagicFunc)(struct interpreter *, SV *, MAGIC *); #ifdef __cplusplus } #endif #endif /* MULTIPLICITY */ #endif /* PERL_OBJECT */ # ifdef PERL_OBJECT # define SWIG_croak_null() SWIG_Perl_croak_null(pPerl) static void SWIG_Perl_croak_null(CPerlObj *pPerl) # else static void SWIG_croak_null() # endif { SV *err = get_sv("@", GV_ADD); # if (PERL_VERSION < 6) croak("%_", err); # else if (sv_isobject(err)) croak(0); else croak("%s", SvPV_nolen(err)); # endif } /* Define how strict is the cast between strings and integers/doubles when overloading between these types occurs. The default is making it as strict as possible by using SWIG_AddCast when needed. You can use -DSWIG_PERL_NO_STRICT_STR2NUM at compilation time to disable the SWIG_AddCast, making the casting between string and numbers less strict. In the end, we try to solve the overloading between strings and numerical types in the more natural way, but if you can avoid it, well, avoid it using %rename, for example. */ #ifndef SWIG_PERL_NO_STRICT_STR2NUM # ifndef SWIG_PERL_STRICT_STR2NUM # define SWIG_PERL_STRICT_STR2NUM # endif #endif #ifdef SWIG_PERL_STRICT_STR2NUM /* string takes precedence */ #define SWIG_Str2NumCast(x) SWIG_AddCast(x) #else /* number takes precedence */ #define SWIG_Str2NumCast(x) x #endif #include SWIGRUNTIME const char * SWIG_Perl_TypeProxyName(const swig_type_info *type) { if (!type) return NULL; if (type->clientdata != NULL) { return (const char*) type->clientdata; } else { return type->name; } } /* Identical to SWIG_TypeCheck, except for strcmp comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeProxyCheck(const char *c, swig_type_info *ty) { if (ty) { swig_cast_info *iter = ty->cast; while (iter) { if (strcmp(SWIG_Perl_TypeProxyName(iter->type), c) == 0) { if (iter == ty->cast) return iter; /* Move iter to the top of the linked list */ iter->prev->next = iter->next; if (iter->next) iter->next->prev = iter->prev; iter->next = ty->cast; iter->prev = 0; if (ty->cast) ty->cast->prev = iter; ty->cast = iter; return iter; } iter = iter->next; } } return 0; } /* Function for getting a pointer value */ SWIGRUNTIME int SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags, int *own) { swig_cast_info *tc; void *voidptr = (void *)0; SV *tsv = 0; if (own) *own = 0; /* If magical, apply more magic */ if (SvGMAGICAL(sv)) mg_get(sv); /* Check to see if this is an object */ if (sv_isobject(sv)) { IV tmp = 0; tsv = (SV*) SvRV(sv); if ((SvTYPE(tsv) == SVt_PVHV)) { MAGIC *mg; if (SvMAGICAL(tsv)) { mg = mg_find(tsv,'P'); if (mg) { sv = mg->mg_obj; if (sv_isobject(sv)) { tsv = (SV*)SvRV(sv); tmp = SvIV(tsv); } } } else { return SWIG_ERROR; } } else { tmp = SvIV(tsv); } voidptr = INT2PTR(void *,tmp); } else if (! SvOK(sv)) { /* Check for undef */ *(ptr) = (void *) 0; return SWIG_OK; } else if (SvTYPE(sv) == SVt_RV) { /* Check for NULL pointer */ if (!SvROK(sv)) { /* In Perl 5.12 and later, SVt_RV == SVt_IV, so sv could be a valid integer value. */ if (SvIOK(sv)) { return SWIG_ERROR; } else { /* NULL pointer (reference to undef). */ *(ptr) = (void *) 0; return SWIG_OK; } } else { return SWIG_ERROR; } } else { /* Don't know what it is */ return SWIG_ERROR; } if (_t) { /* Now see if the types match */ char *_c = HvNAME(SvSTASH(SvRV(sv))); tc = SWIG_TypeProxyCheck(_c,_t); #ifdef SWIG_DIRECTORS if (!tc && !sv_derived_from(sv,SWIG_Perl_TypeProxyName(_t))) { #else if (!tc) { #endif return SWIG_ERROR; } { int newmemory = 0; *ptr = SWIG_TypeCast(tc,voidptr,&newmemory); if (newmemory == SWIG_CAST_NEW_MEMORY) { assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ if (own) *own = *own | SWIG_CAST_NEW_MEMORY; } } } else { *ptr = voidptr; } /* * DISOWN implementation: we need a perl guru to check this one. */ if (tsv && (flags & SWIG_POINTER_DISOWN)) { /* * almost copy paste code from below SWIG_POINTER_OWN setting */ SV *obj = sv; HV *stash = SvSTASH(SvRV(obj)); GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); if (isGV(gv)) { HV *hv = GvHVn(gv); /* * To set ownership (see below), a newSViv(1) entry is added. * Hence, to remove ownership, we delete the entry. */ if (hv_exists_ent(hv, obj, 0)) { hv_delete_ent(hv, obj, 0, 0); } } } return SWIG_OK; } SWIGRUNTIME int SWIG_Perl_ConvertPtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_info *_t, int flags) { return SWIG_Perl_ConvertPtrAndOwn(sv, ptr, _t, flags, 0); } SWIGRUNTIME void SWIG_Perl_MakePtr(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, swig_type_info *t, int flags) { if (ptr && (flags & (SWIG_SHADOW | SWIG_POINTER_OWN))) { SV *self; SV *obj=newSV(0); HV *hash=newHV(); HV *stash; sv_setref_pv(obj, SWIG_Perl_TypeProxyName(t), ptr); stash=SvSTASH(SvRV(obj)); if (flags & SWIG_POINTER_OWN) { HV *hv; GV *gv = *(GV**)hv_fetch(stash, "OWNER", 5, TRUE); if (!isGV(gv)) gv_init(gv, stash, "OWNER", 5, FALSE); hv=GvHVn(gv); hv_store_ent(hv, obj, newSViv(1), 0); } sv_magic((SV *)hash, (SV *)obj, 'P', Nullch, 0); SvREFCNT_dec(obj); self=newRV_noinc((SV *)hash); sv_setsv(sv, self); SvREFCNT_dec((SV *)self); sv_bless(sv, stash); } else { sv_setref_pv(sv, SWIG_Perl_TypeProxyName(t), ptr); } } SWIGRUNTIMEINLINE SV * SWIG_Perl_NewPointerObj(SWIG_MAYBE_PERL_OBJECT void *ptr, swig_type_info *t, int flags) { SV *result = sv_newmortal(); SWIG_MakePtr(result, ptr, t, flags); return result; } SWIGRUNTIME void SWIG_Perl_MakePackedObj(SWIG_MAYBE_PERL_OBJECT SV *sv, void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; *(r++) = '_'; r = SWIG_PackData(r,ptr,sz); strcpy(r,SWIG_Perl_TypeProxyName(type)); sv_setpv(sv, result); } SWIGRUNTIME SV * SWIG_Perl_NewPackedObj(SWIG_MAYBE_PERL_OBJECT void *ptr, int sz, swig_type_info *type) { SV *result = sv_newmortal(); SWIG_Perl_MakePackedObj(result, ptr, sz, type); return result; } /* Convert a packed value value */ SWIGRUNTIME int SWIG_Perl_ConvertPacked(SWIG_MAYBE_PERL_OBJECT SV *obj, void *ptr, int sz, swig_type_info *ty) { swig_cast_info *tc; const char *c = 0; if ((!obj) || (!SvOK(obj))) return SWIG_ERROR; c = SvPV_nolen(obj); /* Pointer values must start with leading underscore */ if (*c != '_') return SWIG_ERROR; c++; c = SWIG_UnpackData(c,ptr,sz); if (ty) { tc = SWIG_TypeCheck(c,ty); if (!tc) return SWIG_ERROR; } return SWIG_OK; } /* Macros for low-level exception handling */ #define SWIG_croak(x) { SWIG_Error(SWIG_RuntimeError, x); SWIG_fail; } typedef XSPROTO(SwigPerlWrapper); typedef SwigPerlWrapper *SwigPerlWrapperPtr; /* Structure for command table */ typedef struct { const char *name; SwigPerlWrapperPtr wrapper; } swig_command_info; /* Information for constant table */ #define SWIG_INT 1 #define SWIG_FLOAT 2 #define SWIG_STRING 3 #define SWIG_POINTER 4 #define SWIG_BINARY 5 /* Constant information structure */ typedef struct swig_constant_info { int type; const char *name; long lvalue; double dvalue; void *pvalue; swig_type_info **ptype; } swig_constant_info; /* Structure for variable table */ typedef struct { const char *name; SwigMagicFunc set; SwigMagicFunc get; swig_type_info **type; } swig_variable_info; /* Magic variable code */ #ifndef PERL_OBJECT # ifdef __cplusplus # define swig_create_magic(s,a,b,c) _swig_create_magic(s,const_cast(a),b,c) # else # define swig_create_magic(s,a,b,c) _swig_create_magic(s,(char*)(a),b,c) # endif # ifndef MULTIPLICITY SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(SV *, MAGIC *), int (*get)(SV *,MAGIC *)) # else SWIGRUNTIME void _swig_create_magic(SV *sv, char *name, int (*set)(struct interpreter*, SV *, MAGIC *), int (*get)(struct interpreter*, SV *,MAGIC *)) # endif #else # define swig_create_magic(s,a,b,c) _swig_create_magic(pPerl,s,a,b,c) SWIGRUNTIME void _swig_create_magic(CPerlObj *pPerl, SV *sv, const char *name, int (CPerlObj::*set)(SV *, MAGIC *), int (CPerlObj::*get)(SV *, MAGIC *)) #endif { MAGIC *mg; sv_magic(sv,sv,'U',name,strlen(name)); mg = mg_find(sv,'U'); mg->mg_virtual = (MGVTBL *) malloc(sizeof(MGVTBL)); mg->mg_virtual->svt_get = (SwigMagicFunc) get; mg->mg_virtual->svt_set = (SwigMagicFunc) set; mg->mg_virtual->svt_len = 0; mg->mg_virtual->svt_clear = 0; mg->mg_virtual->svt_free = 0; } SWIGRUNTIME swig_module_info * SWIG_Perl_GetModule(void *SWIGUNUSEDPARM(clientdata)) { static void *type_pointer = (void *)0; SV *pointer; /* first check if pointer already created */ if (!type_pointer) { pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, FALSE | GV_ADDMULTI); if (pointer && SvOK(pointer)) { type_pointer = INT2PTR(swig_type_info **, SvIV(pointer)); } } return (swig_module_info *) type_pointer; } SWIGRUNTIME void SWIG_Perl_SetModule(swig_module_info *module) { SV *pointer; /* create a new pointer */ pointer = get_sv("swig_runtime_data::type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, TRUE | GV_ADDMULTI); sv_setiv(pointer, PTR2IV(module)); } #ifdef __cplusplus } #endif /* Workaround perl5 global namespace pollution. Note that undefining library * functions like fopen will not solve the problem on all platforms as fopen * might be a macro on Windows but not necessarily on other operating systems. */ #ifdef do_open #undef do_open #endif #ifdef do_close #undef do_close #endif #ifdef do_exec #undef do_exec #endif #ifdef scalar #undef scalar #endif #ifdef list #undef list #endif #ifdef apply #undef apply #endif #ifdef convert #undef convert #endif #ifdef Error #undef Error #endif #ifdef form #undef form #endif #ifdef vform #undef vform #endif #ifdef LABEL #undef LABEL #endif #ifdef METHOD #undef METHOD #endif #ifdef Move #undef Move #endif #ifdef yylex #undef yylex #endif #ifdef yyparse #undef yyparse #endif #ifdef yyerror #undef yyerror #endif #ifdef invert #undef invert #endif #ifdef ref #undef ref #endif #ifdef read #undef read #endif #ifdef write #undef write #endif #ifdef eof #undef eof #endif #ifdef close #undef close #endif #ifdef rewind #undef rewind #endif #ifdef free #undef free #endif #ifdef malloc #undef malloc #endif #ifdef calloc #undef calloc #endif #ifdef Stat #undef Stat #endif #ifdef check #undef check #endif #ifdef seekdir #undef seekdir #endif #ifdef open #undef open #endif #ifdef readdir #undef readdir #endif #ifdef bind #undef bind #endif #ifdef access #undef access #endif #ifdef stat #undef stat #endif #ifdef bool /* Leave if macro is from C99 stdbool.h */ #ifndef __bool_true_false_are_defined #undef bool #endif #endif #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_m_CModule__f_r_q_const__CString__void swig_types[0] #define SWIGTYPE_p_CAuthBase swig_types[1] #define SWIGTYPE_p_CBufLine swig_types[2] #define SWIGTYPE_p_CBuffer swig_types[3] #define SWIGTYPE_p_CChan swig_types[4] #define SWIGTYPE_p_CClient swig_types[5] #define SWIGTYPE_p_CClientAuth swig_types[6] #define SWIGTYPE_p_CConfig swig_types[7] #define SWIGTYPE_p_CConfigEntry swig_types[8] #define SWIGTYPE_p_CConnectQueueTimer swig_types[9] #define SWIGTYPE_p_CCron swig_types[10] #define SWIGTYPE_p_CDebug swig_types[11] #define SWIGTYPE_p_CDebugStream swig_types[12] #define SWIGTYPE_p_CDir swig_types[13] #define SWIGTYPE_p_CException swig_types[14] #define SWIGTYPE_p_CExecSock swig_types[15] #define SWIGTYPE_p_CFPTimer swig_types[16] #define SWIGTYPE_p_CFile swig_types[17] #define SWIGTYPE_p_CGetAddrInfo swig_types[18] #define SWIGTYPE_p_CHTTPSock swig_types[19] #define SWIGTYPE_p_CIRCNetwork swig_types[20] #define SWIGTYPE_p_CIRCSock swig_types[21] #define SWIGTYPE_p_CIRCSocket swig_types[22] #define SWIGTYPE_p_CIncomingConnection swig_types[23] #define SWIGTYPE_p_CListener swig_types[24] #define SWIGTYPE_p_CModCommand swig_types[25] #define SWIGTYPE_p_CModInfo swig_types[26] #define SWIGTYPE_p_CModule swig_types[27] #define SWIGTYPE_p_CModules swig_types[28] #define SWIGTYPE_p_CNick swig_types[29] #define SWIGTYPE_p_CPerlModule swig_types[30] #define SWIGTYPE_p_CPerlSocket swig_types[31] #define SWIGTYPE_p_CPerlTimer swig_types[32] #define SWIGTYPE_p_CQuery swig_types[33] #define SWIGTYPE_p_CRealListener swig_types[34] #define SWIGTYPE_p_CSCharBuffer swig_types[35] #define SWIGTYPE_p_CSConnection swig_types[36] #define SWIGTYPE_p_CSListener swig_types[37] #define SWIGTYPE_p_CSMonitorFD swig_types[38] #define SWIGTYPE_p_CSSSLConnection swig_types[39] #define SWIGTYPE_p_CSSockAddr swig_types[40] #define SWIGTYPE_p_CServer swig_types[41] #define SWIGTYPE_p_CSockCommon swig_types[42] #define SWIGTYPE_p_CSockManager swig_types[43] #define SWIGTYPE_p_CSocket swig_types[44] #define SWIGTYPE_p_CSocketManager swig_types[45] #define SWIGTYPE_p_CString swig_types[46] #define SWIGTYPE_p_CString__EEscape swig_types[47] #define SWIGTYPE_p_CString__size_type swig_types[48] #define SWIGTYPE_p_CTable swig_types[49] #define SWIGTYPE_p_CTemplate swig_types[50] #define SWIGTYPE_p_CTemplateLoopContext swig_types[51] #define SWIGTYPE_p_CTemplateOptions swig_types[52] #define SWIGTYPE_p_CTemplateTagHandler swig_types[53] #define SWIGTYPE_p_CTimer swig_types[54] #define SWIGTYPE_p_CUser swig_types[55] #define SWIGTYPE_p_CUtils swig_types[56] #define SWIGTYPE_p_CWebSession swig_types[57] #define SWIGTYPE_p_CWebSessionMap swig_types[58] #define SWIGTYPE_p_CWebSock swig_types[59] #define SWIGTYPE_p_CWebSubPage swig_types[60] #define SWIGTYPE_p_CZNC swig_types[61] #define SWIGTYPE_p_CZNCSock swig_types[62] #define SWIGTYPE_p_CZNCTagHandler swig_types[63] #define SWIGTYPE_p_CmdFunc swig_types[64] #define SWIGTYPE_p_Csock swig_types[65] #define SWIGTYPE_p_EAcceptType swig_types[66] #define SWIGTYPE_p_EChanModeArgs swig_types[67] #define SWIGTYPE_p_EModException swig_types[68] #define SWIGTYPE_p_EModRet swig_types[69] #define SWIGTYPE_p_EModes swig_types[70] #define SWIGTYPE_p_EModuleType swig_types[71] #define SWIGTYPE_p_EType swig_types[72] #define SWIGTYPE_p_EUserPerms swig_types[73] #define SWIGTYPE_p_EntryMap swig_types[74] #define SWIGTYPE_p_EntryMapIterator swig_types[75] #define SWIGTYPE_p_MCString swig_types[76] #define SWIGTYPE_p_MCString__iterator swig_types[77] #define SWIGTYPE_p_ModCmdFunc swig_types[78] #define SWIGTYPE_p_ModDirList swig_types[79] #define SWIGTYPE_p_SCString swig_types[80] #define SWIGTYPE_p_String swig_types[81] #define SWIGTYPE_p_SubConfig swig_types[82] #define SWIGTYPE_p_SubConfigMap swig_types[83] #define SWIGTYPE_p_SubConfigMapIterator swig_types[84] #define SWIGTYPE_p_TSocketManagerT_CZNCSock_t swig_types[85] #define SWIGTYPE_p_TrafficStatsMap swig_types[86] #define SWIGTYPE_p_TrafficStatsPair swig_types[87] #define SWIGTYPE_p_bool swig_types[88] #define SWIGTYPE_p_char swig_types[89] #define SWIGTYPE_p_difference_type swig_types[90] #define SWIGTYPE_p_double swig_types[91] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule swig_types[92] #define SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule swig_types[93] #define SWIGTYPE_p_f_p_CModule_p_CFPTimer__void swig_types[94] #define SWIGTYPE_p_f_r_std__ostream__r_std__ostream swig_types[95] #define SWIGTYPE_p_fd_set swig_types[96] #define SWIGTYPE_p_gid_t swig_types[97] #define SWIGTYPE_p_in_addr swig_types[98] #define SWIGTYPE_p_int swig_types[99] #define SWIGTYPE_p_int32_t swig_types[100] #define SWIGTYPE_p_int64_t swig_types[101] #define SWIGTYPE_p_key_type swig_types[102] #define SWIGTYPE_p_long swig_types[103] #define SWIGTYPE_p_mapped_type swig_types[104] #define SWIGTYPE_p_mode_t swig_types[105] #define SWIGTYPE_p_size_type swig_types[106] #define SWIGTYPE_p_sockaddr_in swig_types[107] #define SWIGTYPE_p_sockaddr_storage swig_types[108] #define SWIGTYPE_p_socklen_t swig_types[109] #define SWIGTYPE_p_ssize_t swig_types[110] #define SWIGTYPE_p_stat swig_types[111] #define SWIGTYPE_p_std__dequeT_CBufLine_t swig_types[112] #define SWIGTYPE_p_std__functionT_void_fCString_const_RF_t swig_types[113] #define SWIGTYPE_p_std__listT_CIRCNetwork_p_t swig_types[114] #define SWIGTYPE_p_std__listT_CString_t swig_types[115] #define SWIGTYPE_p_std__mapT_CString_CConfigEntry_t swig_types[116] #define SWIGTYPE_p_std__mapT_CString_CNick_t swig_types[117] #define SWIGTYPE_p_std__mapT_CString_CString_t swig_types[118] #define SWIGTYPE_p_std__mapT_CString_CUser_p_t swig_types[119] #define SWIGTYPE_p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator swig_types[120] #define SWIGTYPE_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t swig_types[121] #define SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t swig_types[122] #define SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator swig_types[123] #define SWIGTYPE_p_std__mapT_char_unsigned_int_t swig_types[124] #define SWIGTYPE_p_std__mapT_int_short_t swig_types[125] #define SWIGTYPE_p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t swig_types[126] #define SWIGTYPE_p_std__mapT_unsigned_char_CString_t swig_types[127] #define SWIGTYPE_p_std__ostream swig_types[128] #define SWIGTYPE_p_std__pairT_CString_CString_t swig_types[129] #define SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t swig_types[130] #define SWIGTYPE_p_std__queueT_std__pairT_CString_CString_t_t swig_types[131] #define SWIGTYPE_p_std__setT_CChan_p_t swig_types[132] #define SWIGTYPE_p_std__setT_CModInfo_t swig_types[133] #define SWIGTYPE_p_std__setT_CSocket_p_t__const_iterator swig_types[134] #define SWIGTYPE_p_std__setT_CString_t swig_types[135] #define SWIGTYPE_p_std__setT_CTimer_p_t__const_iterator swig_types[136] #define SWIGTYPE_p_std__setT_unsigned_char_t swig_types[137] #define SWIGTYPE_p_std__shared_ptrT_CAuthBase_t swig_types[138] #define SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t swig_types[139] #define SWIGTYPE_p_std__shared_ptrT_CTemplateTagHandler_t swig_types[140] #define SWIGTYPE_p_std__shared_ptrT_CWebSession_t swig_types[141] #define SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t swig_types[142] #define SWIGTYPE_p_std__vectorT_CChan_p_t swig_types[143] #define SWIGTYPE_p_std__vectorT_CClient_p_t swig_types[144] #define SWIGTYPE_p_std__vectorT_CCron_p_t swig_types[145] #define SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t swig_types[146] #define SWIGTYPE_p_std__vectorT_CListener_p_t swig_types[147] #define SWIGTYPE_p_std__vectorT_CQuery_p_t swig_types[148] #define SWIGTYPE_p_std__vectorT_CServer_p_t swig_types[149] #define SWIGTYPE_p_std__vectorT_CString_t swig_types[150] #define SWIGTYPE_p_std__vectorT_CTemplate_p_t swig_types[151] #define SWIGTYPE_p_std__vectorT_Csock_p_t swig_types[152] #define SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t swig_types[153] #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t swig_types[154] #define SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t swig_types[155] #define SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t swig_types[156] #define SWIGTYPE_p_time_t swig_types[157] #define SWIGTYPE_p_timeval swig_types[158] #define SWIGTYPE_p_uid_t swig_types[159] #define SWIGTYPE_p_uint16_t swig_types[160] #define SWIGTYPE_p_uint64_t swig_types[161] #define SWIGTYPE_p_unsigned_int swig_types[162] #define SWIGTYPE_p_unsigned_short swig_types[163] #define SWIGTYPE_p_value_type swig_types[164] #define SWIGTYPE_p_void swig_types[165] static swig_type_info *swig_types[167]; static swig_module_info swig_module = {swig_types, 166, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) /* -------- TYPES TABLE (END) -------- */ #define SWIG_init boot_ZNC #define SWIG_name "ZNCc::boot_ZNC" #define SWIG_prefix "ZNCc::" #define SWIGVERSION 0x030005 #define SWIG_VERSION SWIGVERSION #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) #include #ifdef __cplusplus extern "C" #endif #ifndef PERL_OBJECT #ifndef MULTIPLICITY SWIGEXPORT void SWIG_init (CV* cv); #else SWIGEXPORT void SWIG_init (pTHXo_ CV* cv); #endif #else SWIGEXPORT void SWIG_init (CV *cv, CPerlObj *); #endif #ifdef Copy # undef Copy #endif #ifdef Pause # undef Pause #endif #ifdef seed # undef seed #endif #include #include "../include/znc/Utils.h" #include "../include/znc/Threads.h" #include "../include/znc/Config.h" #include "../include/znc/Socket.h" #include "../include/znc/Modules.h" #include "../include/znc/Nick.h" #include "../include/znc/Chan.h" #include "../include/znc/User.h" #include "../include/znc/IRCNetwork.h" #include "../include/znc/Client.h" #include "../include/znc/IRCSock.h" #include "../include/znc/Listener.h" #include "../include/znc/HTTPSock.h" #include "../include/znc/Template.h" #include "../include/znc/WebModules.h" #include "../include/znc/znc.h" #include "../include/znc/Server.h" #include "../include/znc/ZNCString.h" #include "../include/znc/FileUtils.h" #include "../include/znc/ZNCDebug.h" #include "../include/znc/ExecSock.h" #include "../include/znc/Buffer.h" #include "modperl/module.h" #define stat struct stat #include #include double SwigSvToNumber(SV* sv) { return SvIOK(sv) ? double(SvIVX(sv)) : SvNVX(sv); } std::string SwigSvToString(SV* sv) { STRLEN len; char *ptr = SvPV(sv, len); return std::string(ptr, len); } void SwigSvFromString(SV* sv, const std::string& s) { sv_setpvn(sv,s.data(),s.size()); } #include #include #include #include #include #include #include SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long value) { SV *sv; if (value <= UV_MAX) sv = newSVuv(value); else sv = newSVpvf("%lu", value); return sv_2mortal(sv); } SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_int SWIG_PERL_DECL_ARGS_1(unsigned int value) { return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); } SWIGINTERNINLINE SV * SWIG_From_bool SWIG_PERL_DECL_ARGS_1(bool value) { return boolSV(value); } SWIGINTERN swig_type_info* SWIG_pchar_descriptor(void) { static int init = 0; static swig_type_info* info = 0; if (!init) { info = SWIG_TypeQuery("_p_char"); init = 1; } return info; } SWIGINTERN int SWIG_AsCharPtrAndSize(SV *obj, char** cptr, size_t* psize, int *alloc) { if (SvMAGICAL(obj)) { SV *tmp = sv_newmortal(); SvSetSV(tmp, obj); obj = tmp; } if (SvPOK(obj)) { STRLEN len = 0; char *cstr = SvPV(obj, len); size_t size = len + 1; if (cptr) { if (alloc) { if (*alloc == SWIG_NEWOBJ) { *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size))); } else { *cptr = cstr; *alloc = SWIG_OLDOBJ; } } } if (psize) *psize = size; return SWIG_OK; } else { swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); if (pchar_descriptor) { char* vptr = 0; if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_descriptor, 0) == SWIG_OK) { if (cptr) *cptr = vptr; if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; if (alloc) *alloc = SWIG_OLDOBJ; return SWIG_OK; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsPtr_CString SWIG_PERL_DECL_ARGS_2(SV * obj, CString **val) { char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ; if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) { if (buf) { if (val) *val = new CString(buf, size - 1); if (alloc == SWIG_NEWOBJ) delete[] buf; return SWIG_NEWOBJ; } else { if (val) *val = 0; return SWIG_OLDOBJ; } } else { static int init = 0; static swig_type_info* descriptor = 0; if (!init) { descriptor = SWIG_TypeQuery("CString" " *"); init = 1; } if (descriptor) { CString *vptr; int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0); if (SWIG_IsOK(res) && val) *val = vptr; return res; } } return SWIG_ERROR; } #include #if !defined(SWIG_NO_LLONG_MAX) # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__) # define LLONG_MAX __LONG_LONG_MAX__ # define LLONG_MIN (-LLONG_MAX - 1LL) # define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL) # endif #endif SWIGINTERN int SWIG_AsVal_double SWIG_PERL_DECL_ARGS_2(SV *obj, double *val) { if (SvNIOK(obj)) { if (val) *val = SvNV(obj); return SWIG_OK; } else if (SvIOK(obj)) { if (val) *val = (double) SvIV(obj); return SWIG_AddCast(SWIG_OK); } else { const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; double v; errno = 0; v = strtod(nptr, &endptr); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } } return SWIG_TypeError; } #include #include SWIGINTERNINLINE int SWIG_CanCastAsInteger(double *d, double min, double max) { double x = *d; if ((min <= x && x <= max)) { double fx = floor(x); double cx = ceil(x); double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ if ((errno == EDOM) || (errno == ERANGE)) { errno = 0; } else { double summ, reps, diff; if (rd < x) { diff = x - rd; } else if (rd > x) { diff = rd - x; } else { return 1; } summ = rd + x; reps = diff/summ; if (reps < 8*DBL_EPSILON) { *d = rd; return 1; } } } return 0; } SWIGINTERN int SWIG_AsVal_unsigned_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long *val) { if (SvUOK(obj)) { UV v = SvUV(obj); if (v <= ULONG_MAX) { if (val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else if (SvIOK(obj)) { IV v = SvIV(obj); if (v >= 0 && v <= ULONG_MAX) { if (val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else { int dispatch = 0; const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; unsigned long v; errno = 0; v = strtoul(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) { if (val) *val = (unsigned long)(d); return res; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_unsigned_SS_int SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned int *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if ((v > UINT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned int >(v); } } return res; } SWIGINTERN CIRCNetwork *std_vector_Sl_CIRCNetwork_Sm__Sg__pop(std::vector< CIRCNetwork * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); CIRCNetwork *x = self->back(); self->pop_back(); return x; } SWIGINTERN int SWIG_AsVal_long SWIG_PERL_DECL_ARGS_2(SV *obj, long* val) { if (SvUOK(obj)) { UV v = SvUV(obj); if (v <= LONG_MAX) { if (val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else if (SvIOK(obj)) { IV v = SvIV(obj); if (v >= LONG_MIN && v <= LONG_MAX) { if(val) *val = v; return SWIG_OK; } return SWIG_OverflowError; } else { int dispatch = 0; const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; long v; errno = 0; v = strtol(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } if (!dispatch) { double d; int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) { if (val) *val = (long)(d); return res; } } } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_int SWIG_PERL_DECL_ARGS_2(SV * obj, int *val) { long v; int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if ((v < INT_MIN || v > INT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< int >(v); } } return res; } SWIGINTERN CIRCNetwork *std_vector_Sl_CIRCNetwork_Sm__Sg__get(std::vector< CIRCNetwork * > *self,int i){ int size = int(self->size()); if (i>=0 && i *self,int i,CIRCNetwork *x){ int size = int(self->size()); if (i>=0 && i *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); CChan *x = self->back(); self->pop_back(); return x; } SWIGINTERN CChan *std_vector_Sl_CChan_Sm__Sg__get(std::vector< CChan * > *self,int i){ int size = int(self->size()); if (i>=0 && i *self,int i,CChan *x){ int size = int(self->size()); if (i>=0 && i *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); CString x = self->back(); self->pop_back(); return x; } SWIGINTERNINLINE SV * SWIG_FromCharPtrAndSize(const char* carray, size_t size) { SV *obj = sv_newmortal(); if (carray) { sv_setpvn(obj, carray, size); } else { sv_setsv(obj, &PL_sv_undef); } return obj; } SWIGINTERNINLINE SV * SWIG_From_CString SWIG_PERL_DECL_ARGS_1(const CString& s) { return SWIG_FromCharPtrAndSize(s.data(), s.size()); } SWIGINTERN CString &std_vector_Sl_CString_Sg__get(std::vector< CString > *self,int i){ int size = int(self->size()); if (i>=0 && i *self,int i,CString const &x){ int size = int(self->size()); if (i>=0 && i *self,CString const &key){ std::map::iterator i = self->find(key); if (i != self->end()) return i->second; else throw std::out_of_range("key not found"); } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg__set(std::map< CString,CString > *self,CString const &key,CString const &x){ (*self)[key] = x; } SWIGINTERN void std_map_Sl_CString_Sc_CString_Sg__del(std::map< CString,CString > *self,CString const &key){ std::map::iterator i = self->find(key); if (i != self->end()) self->erase(i); else throw std::out_of_range("key not found"); } SWIGINTERN bool std_map_Sl_CString_Sc_CString_Sg__has_key(std::map< CString,CString > *self,CString const &key){ std::map::iterator i = self->find(key); return i != self->end(); } SWIGINTERN CListener *std_vector_Sl_CListener_Sm__Sg__pop(std::vector< CListener * > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); CListener *x = self->back(); self->pop_back(); return x; } SWIGINTERN CListener *std_vector_Sl_CListener_Sm__Sg__get(std::vector< CListener * > *self,int i){ int size = int(self->size()); if (i>=0 && i *self,int i,CListener *x){ int size = int(self->size()); if (i>=0 && i::const_reference std_deque_Sl_CBufLine_Sg__getitem(std::deque< CBufLine > *self,int i){ int size = int(self->size()); if (i<0) i += size; if (i>=0 && i *self,int i,CBufLine const &x){ int size = int(self->size()); if (i<0) i+= size; if (i>=0 && i *self,int i){ int size = int(self->size()); if (i<0) i+= size; if (i>=0 && ierase(self->begin()+i); } else { throw std::out_of_range("deque index out of range"); } } SWIGINTERN std::deque< CBufLine > std_deque_Sl_CBufLine_Sg__getslice(std::deque< CBufLine > *self,int i,int j){ int size = int(self->size()); if (i<0) i = size+i; if (j<0) j = size+j; if (i<0) i = 0; if (j>size) j = size; std::deque tmp(j-i); std::copy(self->begin()+i,self->begin()+j,tmp.begin()); return tmp; } SWIGINTERN void std_deque_Sl_CBufLine_Sg__setslice(std::deque< CBufLine > *self,int i,int j,std::deque< CBufLine > const &v){ int size = int(self->size()); if (i<0) i = size+i; if (j<0) j = size+j; if (i<0) i = 0; if (j>size) j = size; if (int(v.size()) == j-i) { std::copy(v.begin(),v.end(),self->begin()+i); } else { self->erase(self->begin()+i,self->begin()+j); if (i+1 <= size) self->insert(self->begin()+i+1,v.begin(),v.end()); else self->insert(self->end(),v.begin(),v.end()); } } SWIGINTERN void std_deque_Sl_CBufLine_Sg__delslice(std::deque< CBufLine > *self,int i,int j){ int size = int(self->size()); if (i<0) i = size+i; if (j<0) j = size+j; if (i<0) i = 0; if (j>size) j = size; self->erase(self->begin()+i,self->begin()+j); } SWIGINTERN std::vector< CString > std_vector_Sl_VCString_Sg__pop(std::vector< VCString > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); std::vector< CString > x = self->back(); self->pop_back(); return x; } SWIGINTERN std::vector< CString > &std_vector_Sl_VCString_Sg__get(std::vector< VCString > *self,int i){ int size = int(self->size()); if (i>=0 && i *self,int i,std::vector< CString > const &x){ int size = int(self->size()); if (i>=0 && i= IV_MIN && value <= IV_MAX) sv = newSViv(value); else sv = newSVpvf("%ld", value); return sv_2mortal(sv); } #include #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) # ifndef snprintf # define snprintf _snprintf # endif #endif SWIGINTERNINLINE SV * SWIG_From_long_SS_long SWIG_PERL_DECL_ARGS_1(long long value) { SV *sv; if (value >= IV_MIN && value <= IV_MAX) sv = newSViv((IV)(value)); else { //sv = newSVpvf("%lld", value); doesn't work in non 64bit Perl char temp[256]; sprintf(temp, "%lld", value); sv = newSVpv(temp, 0); } return sv_2mortal(sv); } SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_1(unsigned long long value) { SV *sv; if (value <= UV_MAX) sv = newSVuv((UV)(value)); else { //sv = newSVpvf("%llu", value); doesn't work in non 64bit Perl char temp[256]; sprintf(temp, "%llu", value); sv = newSVpv(temp, 0); } return sv_2mortal(sv); } SWIGINTERNINLINE SV * SWIG_From_int SWIG_PERL_DECL_ARGS_1(int value) { return SWIG_From_long SWIG_PERL_CALL_ARGS_1(value); } SWIGINTERNINLINE int SWIG_AsVal_size_t SWIG_PERL_DECL_ARGS_2(SV * obj, size_t *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, val ? &v : 0); if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); return res; } SWIGINTERNINLINE SV * SWIG_From_size_t SWIG_PERL_DECL_ARGS_1(size_t value) { return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(value)); } SWIGINTERN int SWIG_AsVal_unsigned_SS_short SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned short *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if ((v > USHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned short >(v); } } return res; } SWIGINTERN int SWIG_AsVal_short SWIG_PERL_DECL_ARGS_2(SV * obj, short *val) { long v; int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if ((v < SHRT_MIN || v > SHRT_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< short >(v); } } return res; } /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */ #ifndef SWIG_isfinite # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) # elif defined(_MSC_VER) # define SWIG_isfinite(X) (_finite(X)) # elif defined(__sun) && defined(__SVR4) # include # define SWIG_isfinite(X) (finite(X)) # endif #endif /* Accept infinite as a valid float value unless we are unable to check if a value is finite */ #ifdef SWIG_isfinite # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X)) #else # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX)) #endif SWIGINTERN int SWIG_AsVal_float SWIG_PERL_DECL_ARGS_2(SV * obj, float *val) { double v; int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if (SWIG_Float_Overflow_Check(v)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< float >(v); } } return res; } SWIGINTERNINLINE SV * SWIG_From_double SWIG_PERL_DECL_ARGS_1(double value) { return sv_2mortal(newSVnv(value)); } SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_short SWIG_PERL_DECL_ARGS_1(unsigned short value) { return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); } SWIGINTERN int SWIG_AsVal_unsigned_SS_char SWIG_PERL_DECL_ARGS_2(SV * obj, unsigned char *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(obj, &v); if (SWIG_IsOK(res)) { if ((v > UCHAR_MAX)) { return SWIG_OverflowError; } else { if (val) *val = static_cast< unsigned char >(v); } } return res; } SWIGINTERN int SWIG_AsCharArray(SV * obj, char *val, size_t size) { char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ; int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc); if (SWIG_IsOK(res)) { /* special case of single char conversion when we don't need space for NUL */ if (size == 1 && csize == 2 && cptr && !cptr[1]) --csize; if (csize <= size) { if (val) { if (csize) memcpy(val, cptr, csize*sizeof(char)); if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char)); } if (alloc == SWIG_NEWOBJ) { delete[] cptr; res = SWIG_DelNewMask(res); } return res; } if (alloc == SWIG_NEWOBJ) delete[] cptr; } return SWIG_TypeError; } SWIGINTERN int SWIG_AsVal_char SWIG_PERL_DECL_ARGS_2(SV * obj, char *val) { int res = SWIG_AsCharArray(obj, val, 1); if (!SWIG_IsOK(res)) { long v; res = SWIG_AddCast(SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(obj, &v)); if (SWIG_IsOK(res)) { if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) { if (val) *val = static_cast< char >(v); } else { res = SWIG_OverflowError; } } } return res; } SWIGINTERN std::list< CString > CModule__GetNVKeys(CModule *self){ std::list res; for (MCString::iterator i = self->BeginNV(); i != self->EndNV(); ++i) { res.push_back(i->first); } return res; } SWIGINTERN bool CModule_ExistsNV(CModule *self,CString const &sName){ return self->EndNV() != self->FindNV(sName); } SWIGINTERN void CModules_push_back(CModules *self,CModule *p){ self->push_back(p); } SWIGINTERN bool CModules_removeModule(CModules *self,CModule *p){ for (CModules::iterator i = self->begin(); self->end() != i; ++i) { if (*i == p) { self->erase(i); return true; } } return false; } SWIGINTERNINLINE SV * SWIG_From_unsigned_SS_char SWIG_PERL_DECL_ARGS_1(unsigned char value) { return SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(value); } SWIGINTERNINLINE SV * SWIG_From_char SWIG_PERL_DECL_ARGS_1(char c) { return SWIG_FromCharPtrAndSize(&c,1); } SWIGINTERN std::map< CString,CNick > CChan_GetNicks_(CChan *self){ return self->GetNicks(); } #include #ifdef _MSC_VER # ifndef strtoull # define strtoull _strtoui64 # endif # ifndef strtoll # define strtoll _strtoi64 # endif #endif SWIGINTERN int SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_DECL_ARGS_2(SV *obj, unsigned long long *val) { if (SvUOK(obj)) { if (val) *val = SvUV(obj); return SWIG_OK; } else if (SvIOK(obj)) { IV v = SvIV(obj); if (v >= 0 && v <= ULLONG_MAX) { if (val) *val = v; return SWIG_OK; } else { return SWIG_OverflowError; } } else { int dispatch = 0; const char *nptr = SvPV_nolen(obj); if (nptr) { char *endptr; unsigned long long v; errno = 0; v = strtoull(nptr, &endptr,0); if (errno == ERANGE) { errno = 0; return SWIG_OverflowError; } else { if (*endptr == '\0') { if (val) *val = v; return SWIG_Str2NumCast(SWIG_OK); } } } if (!dispatch) { const double mant_max = 1LL << DBL_MANT_DIG; double d; int res = SWIG_AddCast(SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(obj,&d)); if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) { if (val) *val = (unsigned long long)(d); return res; } } } return SWIG_TypeError; } SWIGINTERN std::vector< CIRCNetwork * > CUser_GetNetworks_(CUser *self){ return self->GetNetworks(); } SWIGINTERN std::vector< CChan * > CIRCNetwork_GetChans_(CIRCNetwork *self){ return self->GetChans(); } SWIGINTERN void CTemplate_set(CTemplate *self,CString const &key,CString const &value){ (*self)[key] = value; } class String : public CString { public: String() {} String(const CString& s) : CString(s) {} String(double d, int prec=2): CString(d, prec) {} String(float f, int prec=2) : CString(f, prec) {} String(int i) : CString(i) {} String(unsigned int i) : CString(i) {} String(long int i) : CString(i) {} String(unsigned long int i) : CString(i) {} String(char c) : CString(c) {} String(unsigned char c) : CString(c) {} String(short int i) : CString(i) {} String(unsigned short int i): CString(i) {} String(bool b) : CString(b) {} CString GetPerlStr() { return *this; } }; SWIGINTERN std::pair< CString,CString > std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__pop(std::vector< std::pair< CString,CString > > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); std::pair< CString,CString > x = self->back(); self->pop_back(); return x; } SWIGINTERN std::pair< CString,CString > &std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__get(std::vector< std::pair< CString,CString > > *self,int i){ int size = int(self->size()); if (i>=0 && i > *self,int i,std::pair< CString,CString > const &x){ int size = int(self->size()); if (i>=0 && i std_vector_Sl_TWebSubPage_Sg__pop(std::vector< TWebSubPage > *self){ if (self->size() == 0) throw std::out_of_range("pop from empty vector"); std::shared_ptr< CWebSubPage > x = self->back(); self->pop_back(); return x; } SWIGINTERN std::shared_ptr< CWebSubPage > &std_vector_Sl_TWebSubPage_Sg__get(std::vector< TWebSubPage > *self,int i){ int size = int(self->size()); if (i>=0 && i *self,int i,std::shared_ptr< CWebSubPage > const &x){ int size = int(self->size()); if (i>=0 && ipush_back(std::make_pair(a, b)); } TWebSubPage _CreateWebSubPage(const CString& sName, const CString& sTitle, const VPair& vParams, unsigned int uFlags) { return std::make_shared(sName, sTitle, vParams, uFlags); } void _CleanupStash(const CString& sModname) { hv_clear(gv_stashpv(sModname.c_str(), 0)); } #ifdef __cplusplus extern "C" { #endif #ifdef PERL_OBJECT #define MAGIC_CLASS _wrap_ZNC_var:: class _wrap_ZNC_var : public CPerlObj { public: #else #define MAGIC_CLASS #endif SWIGCLASS_STATIC int swig_magic_readonly(pTHX_ SV *SWIGUNUSEDPARM(sv), MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL croak("Value is read-only."); return 0; } SWIGCLASS_STATIC int _wrap_g_HexDigits_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_FromCharPtr(g_HexDigits)) ; return 1; } SWIGCLASS_STATIC int _wrap_CS_BLOCKSIZE_get(pTHX_ SV *sv, MAGIC *SWIGUNUSEDPARM(mg)) { MAGIC_PPERL sv_setsv(sv,SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(CS_BLOCKSIZE))) ; return 1; } #ifdef PERL_OBJECT }; #endif #ifdef __cplusplus } #endif #ifdef __cplusplus extern "C" { #endif XS(_wrap_new__stringlist__SWIG_0) { { int argvi = 0; std::list< CString > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new__stringlist();"); } result = (std::list< CString > *)new std::list< CString >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new__stringlist__SWIG_1) { { std::list< CString > *arg1 = 0 ; std::list< CString > temp1 ; std::list< CString > *v1 ; int argvi = 0; std::list< CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new__stringlist(std::list< CString > const &);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__listT_CString_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new__stringlist. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i *)new std::list< CString >((std::list< CString > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new__stringlist) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped list? */ std::list* v; if (SWIG_ConvertPtr(ST(0),(void **) &v, SWIGTYPE_p_std__listT_CString_t,0) != -1) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { SV **tv; I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ CString* obj; tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_CString,0) != -1) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new__stringlist__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new__stringlist__SWIG_1); return; } } croak("No matching function for overloaded 'new__stringlist'"); XSRETURN(0); } XS(_wrap__stringlist_size) { { std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString > temp1 ; std::list< CString > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: _stringlist_size(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__listT_CString_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of _stringlist_size. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap__stringlist_empty) { { std::list< CString > *arg1 = (std::list< CString > *) 0 ; std::list< CString > temp1 ; std::list< CString > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: _stringlist_empty(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__listT_CString_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of _stringlist_empty. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap__stringlist_clear) { { std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: _stringlist_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__listT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_clear" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap__stringlist_push) { { std::list< CString > *arg1 = (std::list< CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: _stringlist_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__listT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_stringlist_push" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_stringlist_push" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_stringlist_push" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->push_back((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_delete__stringlist) { { std::list< CString > *arg1 = (std::list< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete__stringlist(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__listT_CString_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete__stringlist" "', argument " "1"" of type '" "std::list< CString > *""'"); } arg1 = reinterpret_cast< std::list< CString > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VIRCNetworks__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< CIRCNetwork * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VIRCNetworks(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VIRCNetworks" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VIRCNetworks__SWIG_1) { { int argvi = 0; std::vector< CIRCNetwork * > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VIRCNetworks();"); } result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VIRCNetworks__SWIG_2) { { unsigned int arg1 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; unsigned int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; std::vector< CIRCNetwork * > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VIRCNetworks(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VIRCNetworks" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VIRCNetworks" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VIRCNetworks__SWIG_3) { { std::vector< CIRCNetwork * > *arg1 = 0 ; std::vector< CIRCNetwork * > temp1 ; std::vector< CIRCNetwork * > *v1 ; int argvi = 0; std::vector< CIRCNetwork * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VIRCNetworks(std::vector< CIRCNetwork * > const &);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VIRCNetworks. " "Expected an array of " "CIRCNetwork"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "new_VIRCNetworks. " "Expected an array of " "CIRCNetwork"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VIRCNetworks. " "Expected an array of " "CIRCNetwork"); } } result = (std::vector< CIRCNetwork * > *)new std::vector< CIRCNetwork * >((std::vector< CIRCNetwork * > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VIRCNetworks) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector *v; int res = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&v), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t,0); if (SWIG_IsOK(res)) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ void *v; SV **tv = av_fetch(av, 0, 0); int res = SWIG_ConvertPtr(*tv, &v, SWIGTYPE_p_CIRCNetwork,0); if (SWIG_IsOK(res)) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VIRCNetworks__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VIRCNetworks__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VIRCNetworks__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VIRCNetworks__SWIG_2); return; } } croak("No matching function for overloaded 'new_VIRCNetworks'"); XSRETURN(0); } XS(_wrap_VIRCNetworks_size) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * > temp1 ; std::vector< CIRCNetwork * > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VIRCNetworks_size(self);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VIRCNetworks_size. " "Expected an array of " "CIRCNetwork"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "VIRCNetworks_size. " "Expected an array of " "CIRCNetwork"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VIRCNetworks_size. " "Expected an array of " "CIRCNetwork"); } } result = (unsigned int)((std::vector< CIRCNetwork * > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VIRCNetworks_empty) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; std::vector< CIRCNetwork * > temp1 ; std::vector< CIRCNetwork * > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VIRCNetworks_empty(self);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VIRCNetworks_empty. " "Expected an array of " "CIRCNetwork"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "VIRCNetworks_empty. " "Expected an array of " "CIRCNetwork"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VIRCNetworks_empty. " "Expected an array of " "CIRCNetwork"); } } result = (bool)((std::vector< CIRCNetwork * > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VIRCNetworks_clear) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VIRCNetworks_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_clear" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VIRCNetworks_push) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VIRCNetworks_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_push" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VIRCNetworks_push" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->push_back(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VIRCNetworks_pop) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VIRCNetworks_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_pop" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); try { result = (CIRCNetwork *)std_vector_Sl_CIRCNetwork_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VIRCNetworks_get) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VIRCNetworks_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_get" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (CIRCNetwork *)std_vector_Sl_CIRCNetwork_Sm__Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VIRCNetworks_set) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; int arg2 ; CIRCNetwork *arg3 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VIRCNetworks_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VIRCNetworks_set" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VIRCNetworks_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VIRCNetworks_set" "', argument " "3"" of type '" "CIRCNetwork *""'"); } arg3 = reinterpret_cast< CIRCNetwork * >(argp3); try { std_vector_Sl_CIRCNetwork_Sm__Sg__set(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_VIRCNetworks) { { std::vector< CIRCNetwork * > *arg1 = (std::vector< CIRCNetwork * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VIRCNetworks(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VIRCNetworks" "', argument " "1"" of type '" "std::vector< CIRCNetwork * > *""'"); } arg1 = reinterpret_cast< std::vector< CIRCNetwork * > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VChannels__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< CChan * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VChannels(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VChannels" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< CChan * > *)new std::vector< CChan * >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VChannels__SWIG_1) { { int argvi = 0; std::vector< CChan * > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VChannels();"); } result = (std::vector< CChan * > *)new std::vector< CChan * >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VChannels__SWIG_2) { { unsigned int arg1 ; CChan *arg2 = (CChan *) 0 ; unsigned int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; std::vector< CChan * > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VChannels(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VChannels" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VChannels" "', argument " "2"" of type '" "CChan *""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (std::vector< CChan * > *)new std::vector< CChan * >(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VChannels__SWIG_3) { { std::vector< CChan * > *arg1 = 0 ; std::vector< CChan * > temp1 ; std::vector< CChan * > *v1 ; int argvi = 0; std::vector< CChan * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VChannels(std::vector< CChan * > const &);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VChannels. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "new_VChannels. " "Expected an array of " "CChan"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VChannels. " "Expected an array of " "CChan"); } } result = (std::vector< CChan * > *)new std::vector< CChan * >((std::vector< CChan * > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VChannels) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector *v; int res = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&v), SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ void *v; SV **tv = av_fetch(av, 0, 0); int res = SWIG_ConvertPtr(*tv, &v, SWIGTYPE_p_CChan,0); if (SWIG_IsOK(res)) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VChannels__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VChannels__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VChannels__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VChannels__SWIG_2); return; } } croak("No matching function for overloaded 'new_VChannels'"); XSRETURN(0); } XS(_wrap_VChannels_size) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * > temp1 ; std::vector< CChan * > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VChannels_size(self);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VChannels_size. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "VChannels_size. " "Expected an array of " "CChan"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VChannels_size. " "Expected an array of " "CChan"); } } result = (unsigned int)((std::vector< CChan * > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VChannels_empty) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; std::vector< CChan * > temp1 ; std::vector< CChan * > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VChannels_empty(self);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VChannels_empty. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "VChannels_empty. " "Expected an array of " "CChan"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VChannels_empty. " "Expected an array of " "CChan"); } } result = (bool)((std::vector< CChan * > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VChannels_clear) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VChannels_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CChan_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_clear" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VChannels_push) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; CChan *arg2 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VChannels_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CChan_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_push" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VChannels_push" "', argument " "2"" of type '" "CChan *""'"); } arg2 = reinterpret_cast< CChan * >(argp2); (arg1)->push_back(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VChannels_pop) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CChan *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VChannels_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CChan_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_pop" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); try { result = (CChan *)std_vector_Sl_CChan_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VChannels_get) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; CChan *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VChannels_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CChan_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_get" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (CChan *)std_vector_Sl_CChan_Sm__Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VChannels_set) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; int arg2 ; CChan *arg3 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VChannels_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CChan_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VChannels_set" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VChannels_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VChannels_set" "', argument " "3"" of type '" "CChan *""'"); } arg3 = reinterpret_cast< CChan * >(argp3); try { std_vector_Sl_CChan_Sm__Sg__set(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_VChannels) { { std::vector< CChan * > *arg1 = (std::vector< CChan * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VChannels(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CChan_p_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VChannels" "', argument " "1"" of type '" "std::vector< CChan * > *""'"); } arg1 = reinterpret_cast< std::vector< CChan * > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VCString__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VCString(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VCString" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< CString > *)new std::vector< CString >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VCString__SWIG_1) { { int argvi = 0; std::vector< CString > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VCString();"); } result = (std::vector< CString > *)new std::vector< CString >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VCString__SWIG_2) { { unsigned int arg1 ; CString *arg2 = 0 ; unsigned int val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; std::vector< CString > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VCString(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VCString" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VCString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VCString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (std::vector< CString > *)new std::vector< CString >(arg1,(CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_VCString__SWIG_3) { { std::vector< CString > *arg1 = 0 ; std::vector< CString > temp1 ; std::vector< CString > *v1 ; int argvi = 0; std::vector< CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VCString(std::vector< CString > const &);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CString_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VCString. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i *)new std::vector< CString >((std::vector< CString > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VCString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector* v; if (SWIG_ConvertPtr(ST(0),(void **) &v, SWIGTYPE_p_std__vectorT_CString_t,0) != -1) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ CString* obj; SV **tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_CString,0) != -1) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VCString__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VCString__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VCString__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VCString__SWIG_2); return; } } croak("No matching function for overloaded 'new_VCString'"); XSRETURN(0); } XS(_wrap_VCString_size) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString > temp1 ; std::vector< CString > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VCString_size(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CString_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VCString_size. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VCString_empty) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; std::vector< CString > temp1 ; std::vector< CString > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VCString_empty(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CString_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VCString_empty. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VCString_clear) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VCString_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_clear" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VCString_push) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VCString_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_push" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VCString_push" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_push" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->push_back((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_VCString_pop) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VCString_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_pop" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); try { result = std_vector_Sl_CString_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VCString_get) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VCString_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_get" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (CString *) &std_vector_Sl_CString_Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VCString_set) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VCString_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VCString_set" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VCString_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VCString_set" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VCString_set" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } try { std_vector_Sl_CString_Sg__set(arg1,arg2,(CString const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_delete_VCString) { { std::vector< CString > *arg1 = (std::vector< CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VCString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CString_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VCString" "', argument " "1"" of type '" "std::vector< CString > *""'"); } arg1 = reinterpret_cast< std::vector< CString > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_PerlMCString__SWIG_0) { { int argvi = 0; std::map< CString,CString > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_PerlMCString();"); } result = (std::map< CString,CString > *)new std::map< CString,CString >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_PerlMCString__SWIG_1) { { std::map< CString,CString > *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; std::map< CString,CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_PerlMCString(std::map< CString,CString > const &);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__mapT_CString_CString_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PerlMCString" "', argument " "1"" of type '" "std::map< CString,CString > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PerlMCString" "', argument " "1"" of type '" "std::map< CString,CString > const &""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (std::map< CString,CString > *)new std::map< CString,CString >((std::map< CString,CString > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_PerlMCString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__mapT_CString_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_PerlMCString__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_PerlMCString__SWIG_1); return; } } croak("No matching function for overloaded 'new_PerlMCString'"); XSRETURN(0); } XS(_wrap_PerlMCString_size) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: PerlMCString_size(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_size" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (unsigned int)((std::map< CString,CString > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_PerlMCString_empty) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: PerlMCString_empty(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_empty" "', argument " "1"" of type '" "std::map< CString,CString > const *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); result = (bool)((std::map< CString,CString > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_PerlMCString_clear) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: PerlMCString_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_clear" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_PerlMCString_get) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: PerlMCString_get(self,key);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_get" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PerlMCString_get" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PerlMCString_get" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } try { result = (CString *) &std_map_Sl_CString_Sc_CString_Sg__get(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_PerlMCString_set) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: PerlMCString_set(self,key,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_set" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PerlMCString_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PerlMCString_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PerlMCString_set" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PerlMCString_set" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } std_map_Sl_CString_Sc_CString_Sg__set(arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_PerlMCString_del) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: PerlMCString_del(self,key);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_del" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PerlMCString_del" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PerlMCString_del" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } try { std_map_Sl_CString_Sc_CString_Sg__del(arg1,(CString const &)*arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_PerlMCString_has_key) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: PerlMCString_has_key(self,key);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PerlMCString_has_key" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PerlMCString_has_key" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PerlMCString_has_key" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)std_map_Sl_CString_Sc_CString_Sg__has_key(arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_delete_PerlMCString) { { std::map< CString,CString > *arg1 = (std::map< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_PerlMCString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__mapT_CString_CString_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PerlMCString" "', argument " "1"" of type '" "std::map< CString,CString > *""'"); } arg1 = reinterpret_cast< std::map< CString,CString > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_MCString) { { int argvi = 0; MCString *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_MCString();"); } result = (MCString *)new MCString(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_MCString) { { MCString *arg1 = (MCString *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_MCString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_MCString, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MCString" "', argument " "1"" of type '" "MCString *""'"); } arg1 = reinterpret_cast< MCString * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VListeners__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< CListener * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VListeners(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VListeners" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< CListener * > *)new std::vector< CListener * >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VListeners__SWIG_1) { { int argvi = 0; std::vector< CListener * > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VListeners();"); } result = (std::vector< CListener * > *)new std::vector< CListener * >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VListeners__SWIG_2) { { unsigned int arg1 ; CListener *arg2 = (CListener *) 0 ; unsigned int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; std::vector< CListener * > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VListeners(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VListeners" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VListeners" "', argument " "2"" of type '" "CListener *""'"); } arg2 = reinterpret_cast< CListener * >(argp2); result = (std::vector< CListener * > *)new std::vector< CListener * >(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VListeners__SWIG_3) { { std::vector< CListener * > *arg1 = 0 ; std::vector< CListener * > temp1 ; std::vector< CListener * > *v1 ; int argvi = 0; std::vector< CListener * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VListeners(std::vector< CListener * > const &);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CListener_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VListeners. " "Expected an array of " "CListener"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "new_VListeners. " "Expected an array of " "CListener"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VListeners. " "Expected an array of " "CListener"); } } result = (std::vector< CListener * > *)new std::vector< CListener * >((std::vector< CListener * > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VListeners) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector *v; int res = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&v), SWIGTYPE_p_std__vectorT_CListener_p_t,0); if (SWIG_IsOK(res)) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ void *v; SV **tv = av_fetch(av, 0, 0); int res = SWIG_ConvertPtr(*tv, &v, SWIGTYPE_p_CListener,0); if (SWIG_IsOK(res)) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VListeners__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VListeners__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VListeners__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VListeners__SWIG_2); return; } } croak("No matching function for overloaded 'new_VListeners'"); XSRETURN(0); } XS(_wrap_VListeners_size) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * > temp1 ; std::vector< CListener * > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VListeners_size(self);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CListener_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VListeners_size. " "Expected an array of " "CListener"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "VListeners_size. " "Expected an array of " "CListener"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VListeners_size. " "Expected an array of " "CListener"); } } result = (unsigned int)((std::vector< CListener * > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VListeners_empty) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; std::vector< CListener * > temp1 ; std::vector< CListener * > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VListeners_empty(self);"); } { int res = SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_CListener_p_t,0); if (SWIG_IsOK(res)) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VListeners_empty. " "Expected an array of " "CListener"); I32 len = av_len(av) + 1; for (int i=0; i(v1)); } else { SWIG_croak("Type error in argument 1 of " "VListeners_empty. " "Expected an array of " "CListener"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VListeners_empty. " "Expected an array of " "CListener"); } } result = (bool)((std::vector< CListener * > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VListeners_clear) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VListeners_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CListener_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_clear" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VListeners_push) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; CListener *arg2 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VListeners_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CListener_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_push" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListeners_push" "', argument " "2"" of type '" "CListener *""'"); } arg2 = reinterpret_cast< CListener * >(argp2); (arg1)->push_back(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VListeners_pop) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CListener *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VListeners_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CListener_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_pop" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); try { result = (CListener *)std_vector_Sl_CListener_Sm__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VListeners_get) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; CListener *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VListeners_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CListener_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_get" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (CListener *)std_vector_Sl_CListener_Sm__Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VListeners_set) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; int arg2 ; CListener *arg3 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VListeners_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CListener_p_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListeners_set" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VListeners_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VListeners_set" "', argument " "3"" of type '" "CListener *""'"); } arg3 = reinterpret_cast< CListener * >(argp3); try { std_vector_Sl_CListener_Sm__Sg__set(arg1,arg2,arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_VListeners) { { std::vector< CListener * > *arg1 = (std::vector< CListener * > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VListeners(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_CListener_p_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VListeners" "', argument " "1"" of type '" "std::vector< CListener * > *""'"); } arg1 = reinterpret_cast< std::vector< CListener * > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_empty) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_empty(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_empty" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (bool)((std::deque< CBufLine > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_BufLines__SWIG_0) { { int argvi = 0; std::deque< CBufLine > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_BufLines();"); } result = (std::deque< CBufLine > *)new std::deque< CBufLine >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_BufLines__SWIG_1) { { unsigned int arg1 ; CBufLine *arg2 = 0 ; unsigned int val1 ; int ecode1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; std::deque< CBufLine > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_BufLines(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BufLines" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CBufLine, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufLines" "', argument " "2"" of type '" "CBufLine const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufLines" "', argument " "2"" of type '" "CBufLine const &""'"); } arg2 = reinterpret_cast< CBufLine * >(argp2); result = (std::deque< CBufLine > *)new std::deque< CBufLine >(arg1,(CBufLine const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_BufLines__SWIG_2) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::deque< CBufLine > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_BufLines(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BufLines" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::deque< CBufLine > *)new std::deque< CBufLine >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_BufLines__SWIG_3) { { std::deque< CBufLine > *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; std::deque< CBufLine > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_BufLines(std::deque< CBufLine > const &);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__dequeT_CBufLine_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine > const &""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (std::deque< CBufLine > *)new std::deque< CBufLine >((std::deque< CBufLine > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__dequeT_CBufLine_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_BufLines) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__dequeT_CBufLine_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_BufLines__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_BufLines__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_BufLines__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_BufLines__SWIG_1); return; } } croak("No matching function for overloaded 'new_BufLines'"); XSRETURN(0); } XS(_wrap_delete_BufLines) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_BufLines(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufLines" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_assign) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; unsigned int arg2 ; CBufLine *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: BufLines_assign(self,n,value);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_assign" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_assign" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CBufLine, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines_assign" "', argument " "3"" of type '" "CBufLine const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_assign" "', argument " "3"" of type '" "CBufLine const &""'"); } arg3 = reinterpret_cast< CBufLine * >(argp3); (arg1)->assign(arg2,(CBufLine const &)*arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_swap) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; std::deque< CBufLine > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: BufLines_swap(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_swap" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__dequeT_CBufLine_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_swap" "', argument " "2"" of type '" "std::deque< CBufLine > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_swap" "', argument " "2"" of type '" "std::deque< CBufLine > &""'"); } arg2 = reinterpret_cast< std::deque< CBufLine > * >(argp2); (arg1)->swap(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_size) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_size(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_size" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (unsigned int)((std::deque< CBufLine > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_max_size) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_max_size(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_max_size" "', argument " "1"" of type '" "std::deque< CBufLine > const *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (unsigned int)((std::deque< CBufLine > const *)arg1)->max_size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_resize__SWIG_0) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; unsigned int arg2 ; CBufLine arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: BufLines_resize(self,n,c);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_resize" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_resize" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CBufLine, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines_resize" "', argument " "3"" of type '" "CBufLine""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_resize" "', argument " "3"" of type '" "CBufLine""'"); } else { arg3 = *(reinterpret_cast< CBufLine * >(argp3)); } } (arg1)->resize(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_resize__SWIG_1) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: BufLines_resize(self,n);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_resize" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_resize" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->resize(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_resize) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__dequeT_CBufLine_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__dequeT_CBufLine_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CBufLine, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_BufLines_resize__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_BufLines_resize__SWIG_0); return; } } croak("No matching function for overloaded 'BufLines_resize'"); XSRETURN(0); } XS(_wrap_BufLines_front) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::deque< CBufLine >::value_type *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_front(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_front" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (std::deque< CBufLine >::value_type *) &(arg1)->front(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_back) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::deque< CBufLine >::value_type *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_back(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_back" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); result = (std::deque< CBufLine >::value_type *) &(arg1)->back(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_push_front) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; CBufLine *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: BufLines_push_front(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_push_front" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CBufLine, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_push_front" "', argument " "2"" of type '" "CBufLine const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_push_front" "', argument " "2"" of type '" "CBufLine const &""'"); } arg2 = reinterpret_cast< CBufLine * >(argp2); (arg1)->push_front((CBufLine const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_push_back) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; CBufLine *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: BufLines_push_back(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_push_back" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CBufLine, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BufLines_push_back" "', argument " "2"" of type '" "CBufLine const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_push_back" "', argument " "2"" of type '" "CBufLine const &""'"); } arg2 = reinterpret_cast< CBufLine * >(argp2); (arg1)->push_back((CBufLine const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_pop_front) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_pop_front(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_pop_front" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); (arg1)->pop_front(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_pop_back) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_pop_back(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_pop_back" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); (arg1)->pop_back(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_clear) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: BufLines_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_clear" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_getitem) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; std::deque< CBufLine >::value_type *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: BufLines_getitem(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_getitem" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_getitem" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (std::deque< CBufLine >::value_type *) &std_deque_Sl_CBufLine_Sg__getitem(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_setitem) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; int arg2 ; CBufLine *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: BufLines_setitem(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_setitem" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_setitem" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CBufLine, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BufLines_setitem" "', argument " "3"" of type '" "CBufLine const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_setitem" "', argument " "3"" of type '" "CBufLine const &""'"); } arg3 = reinterpret_cast< CBufLine * >(argp3); try { std_deque_Sl_CBufLine_Sg__setitem(arg1,arg2,(CBufLine const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_delitem) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: BufLines_delitem(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_delitem" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_delitem" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { std_deque_Sl_CBufLine_Sg__delitem(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_getslice) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; std::deque< CBufLine > result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: BufLines_getslice(self,i,j);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_getslice" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_getslice" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines_getslice" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = std_deque_Sl_CBufLine_Sg__getslice(arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj((new std::deque< CBufLine >(static_cast< const std::deque< CBufLine >& >(result))), SWIGTYPE_p_std__dequeT_CBufLine_t, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_setslice) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; int arg2 ; int arg3 ; std::deque< CBufLine > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: BufLines_setslice(self,i,j,v);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_setslice" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_setslice" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines_setslice" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_std__dequeT_CBufLine_t, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "BufLines_setslice" "', argument " "4"" of type '" "std::deque< CBufLine > const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "BufLines_setslice" "', argument " "4"" of type '" "std::deque< CBufLine > const &""'"); } arg4 = reinterpret_cast< std::deque< CBufLine > * >(argp4); std_deque_Sl_CBufLine_Sg__setslice(arg1,arg2,arg3,(std::deque< CBufLine > const &)*arg4); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_BufLines_delslice) { { std::deque< CBufLine > *arg1 = (std::deque< CBufLine > *) 0 ; int arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: BufLines_delslice(self,i,j);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__dequeT_CBufLine_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufLines_delslice" "', argument " "1"" of type '" "std::deque< CBufLine > *""'"); } arg1 = reinterpret_cast< std::deque< CBufLine > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufLines_delslice" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BufLines_delslice" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); std_deque_Sl_CBufLine_Sg__delslice(arg1,arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VVString__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< VCString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VVString(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VVString" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< VCString > *)new std::vector< VCString >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VVString__SWIG_1) { { int argvi = 0; std::vector< VCString > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VVString();"); } result = (std::vector< VCString > *)new std::vector< VCString >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VVString__SWIG_2) { { unsigned int arg1 ; std::vector< CString > *arg2 = 0 ; unsigned int val1 ; int ecode1 = 0 ; std::vector< CString > temp2 ; std::vector< CString > *v2 ; int argvi = 0; std::vector< VCString > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VVString(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VVString" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); { if (SWIG_ConvertPtr(ST(1),(void **) &v2, SWIGTYPE_p_std__vectorT_CString_t,1) != -1) { arg2 = v2; } else if (SvROK(ST(1))) { AV *av = (AV *)SvRV(ST(1)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 2 of new_VVString. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i *)new std::vector< VCString >(arg1,(std::vector< CString > const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VVString__SWIG_3) { { std::vector< std::vector< CString > > *arg1 = 0 ; std::vector< std::vector< CString > > temp1 ; std::vector< std::vector< CString > > *v1 ; int argvi = 0; std::vector< VCString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VVString(std::vector< std::vector< CString > > const &);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VVString. " "Expected an array of " "std::vector< CString >"); SV **tv; I32 len = av_len(av) + 1; std::vector< CString >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VVString. " "Expected an array of " "std::vector< CString >"); } } result = (std::vector< VCString > *)new std::vector< VCString >((std::vector< std::vector< CString > > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VVString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector >* v; if (SWIG_ConvertPtr(ST(0),(void **) &v, SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t,0) != -1) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ std::vector< CString >* obj; SV **tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_std__vectorT_CString_t,0) != -1) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { { /* wrapped vector? */ std::vector* v; if (SWIG_ConvertPtr(ST(1),(void **) &v, SWIGTYPE_p_std__vectorT_CString_t,0) != -1) { _v = 1; } else if (SvROK(ST(1))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(1)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ CString* obj; SV **tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_CString,0) != -1) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VVString__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VVString__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VVString__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VVString__SWIG_2); return; } } croak("No matching function for overloaded 'new_VVString'"); XSRETURN(0); } XS(_wrap_VVString_size) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString > > temp1 ; std::vector< std::vector< CString > > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VVString_size(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VVString_size. " "Expected an array of " "std::vector< CString >"); SV **tv; I32 len = av_len(av) + 1; std::vector< CString >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VVString_size. " "Expected an array of " "std::vector< CString >"); } } result = (unsigned int)((std::vector< VCString > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VVString_empty) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< std::vector< CString > > temp1 ; std::vector< std::vector< CString > > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VVString_empty(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VVString_empty. " "Expected an array of " "std::vector< CString >"); SV **tv; I32 len = av_len(av) + 1; std::vector< CString >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VVString_empty. " "Expected an array of " "std::vector< CString >"); } } result = (bool)((std::vector< VCString > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VVString_clear) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VVString_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_clear" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VVString_push) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; std::vector< CString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; std::vector< CString > temp2 ; std::vector< CString > *v2 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VVString_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_push" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); { if (SWIG_ConvertPtr(ST(1),(void **) &v2, SWIGTYPE_p_std__vectorT_CString_t,1) != -1) { arg2 = v2; } else if (SvROK(ST(1))) { AV *av = (AV *)SvRV(ST(1)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 2 of VVString_push. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; ipush_back((std::vector< CString > const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VVString_pop) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CString > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VVString_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_pop" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); try { result = std_vector_Sl_VCString_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } { size_t len = (&result)->size(); SV **svs = new SV*[len]; for (size_t i=0; i *arg1 = (std::vector< VCString > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; std::vector< CString > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VVString_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_get" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (std::vector< CString > *) &std_vector_Sl_VCString_Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VVString_set) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; int arg2 ; std::vector< CString > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; std::vector< CString > temp3 ; std::vector< CString > *v3 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VVString_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VVString_set" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VVString_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { if (SWIG_ConvertPtr(ST(2),(void **) &v3, SWIGTYPE_p_std__vectorT_CString_t,1) != -1) { arg3 = v3; } else if (SvROK(ST(2))) { AV *av = (AV *)SvRV(ST(2)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 3 of VVString_set. " "Expected an array of " "CString"); SV **tv; I32 len = av_len(av) + 1; CString* obj; for (int i=0; i const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_VVString) { { std::vector< VCString > *arg1 = (std::vector< VCString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VVString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VVString" "', argument " "1"" of type '" "std::vector< VCString > *""'"); } arg1 = reinterpret_cast< std::vector< VCString > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_SetFdCloseOnExec) { { int arg1 ; int val1 ; int ecode1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: SetFdCloseOnExec(fd);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SetFdCloseOnExec" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); SetFdCloseOnExec(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CUtils) { { int argvi = 0; CUtils *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CUtils();"); } result = (CUtils *)new CUtils(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUtils, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CUtils) { { CUtils *arg1 = (CUtils *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CUtils(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUtils, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CUtils" "', argument " "1"" of type '" "CUtils *""'"); } arg1 = reinterpret_cast< CUtils * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_GetIP) { { unsigned long arg1 ; unsigned long val1 ; int ecode1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_GetIP(addr);"); } ecode1 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CUtils_GetIP" "', argument " "1"" of type '" "unsigned long""'"); } arg1 = static_cast< unsigned long >(val1); result = CUtils::GetIP(arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_GetLongIP) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; unsigned long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_GetLongIP(sIP);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetLongIP" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetLongIP" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (unsigned long)CUtils::GetLongIP((CString const &)*arg1); ST(argvi) = SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintError) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_PrintError(sMessage);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintError" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintError" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintError((CString const &)*arg1); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintMessage__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_PrintMessage(sMessage,bStrong);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUtils_PrintMessage" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); CUtils::PrintMessage((CString const &)*arg1,arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintMessage__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_PrintMessage(sMessage);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintMessage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintMessage((CString const &)*arg1); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintMessage) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_PrintMessage__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_PrintMessage__SWIG_0); return; } } croak("No matching function for overloaded 'CUtils_PrintMessage'"); XSRETURN(0); } XS(_wrap_CUtils_PrintPrompt) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_PrintPrompt(sMessage);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintPrompt" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintPrompt" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintPrompt((CString const &)*arg1); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintAction) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_PrintAction(sMessage);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_PrintAction" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintAction" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CUtils::PrintAction((CString const &)*arg1); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintStatus__SWIG_0) { { bool arg1 ; CString *arg2 = 0 ; bool val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_PrintStatus(bSuccess,sMessage);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CUtils_PrintStatus" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_PrintStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_PrintStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } CUtils::PrintStatus(arg1,(CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUtils_PrintStatus__SWIG_1) { { bool arg1 ; bool val1 ; int ecode1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_PrintStatus(bSuccess);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CUtils_PrintStatus" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); CUtils::PrintStatus(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_PrintStatus) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_PrintStatus__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_PrintStatus__SWIG_0); return; } } croak("No matching function for overloaded 'CUtils_PrintStatus'"); XSRETURN(0); } XS(_wrap_CUtils_GetSaltedHashPass) { { CString *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_GetSaltedHashPass(sSalt);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetSaltedHashPass" "', argument " "1"" of type '" "CString &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetSaltedHashPass" "', argument " "1"" of type '" "CString &""'"); } arg1 = reinterpret_cast< CString * >(argp1); result = CUtils::GetSaltedHashPass(*arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_GetSalt) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CUtils_GetSalt();"); } result = CUtils::GetSalt(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_SaltedMD5Hash) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_SaltedMD5Hash(sPass,sSalt);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_SaltedMD5Hash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedMD5Hash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_SaltedMD5Hash" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedMD5Hash" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUtils::SaltedMD5Hash((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUtils_SaltedSHA256Hash) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_SaltedSHA256Hash(sPass,sSalt);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_SaltedSHA256Hash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedSHA256Hash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_SaltedSHA256Hash" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SaltedSHA256Hash" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUtils::SaltedSHA256Hash((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUtils_GetPass) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_GetPass(sPrompt);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetPass" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetPass" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CUtils::GetPass((CString const &)*arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetInput__SWIG_0) { { CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUtils_GetInput(sPrompt,sRet,sDefault,sHint);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetInput" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUtils_GetInput" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)CUtils::GetInput((CString const &)*arg1,*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CUtils_GetInput__SWIG_1) { { CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUtils_GetInput(sPrompt,sRet,sDefault);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetInput" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)CUtils::GetInput((CString const &)*arg1,*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUtils_GetInput__SWIG_2) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_GetInput(sPrompt,sRet);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetInput" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetInput" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)CUtils::GetInput((CString const &)*arg1,*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetInput) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetInput__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetInput__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetInput__SWIG_0); return; } } croak("No matching function for overloaded 'CUtils_GetInput'"); XSRETURN(0); } XS(_wrap_CUtils_GetBoolInput__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_GetBoolInput(sPrompt,bDefault);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUtils_GetBoolInput" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CUtils::GetBoolInput((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetBoolInput__SWIG_1) { { CString *arg1 = 0 ; bool *arg2 = (bool *) 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_GetBoolInput(sPrompt,pbDefault);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_bool, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetBoolInput" "', argument " "2"" of type '" "bool *""'"); } arg2 = reinterpret_cast< bool * >(argp2); result = (bool)CUtils::GetBoolInput((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetBoolInput__SWIG_2) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_GetBoolInput(sPrompt);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetBoolInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CUtils::GetBoolInput((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetBoolInput) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_bool, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetBoolInput__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetBoolInput__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetBoolInput__SWIG_0); return; } } croak("No matching function for overloaded 'CUtils_GetBoolInput'"); XSRETURN(0); } XS(_wrap_CUtils_GetNumInput__SWIG_0) { { CString *arg1 = 0 ; unsigned int *arg2 = 0 ; unsigned int arg3 ; unsigned int arg4 ; unsigned int arg5 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CUtils_GetNumInput(sPrompt,uRet,uMin,uMax,uDefault);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUtils_GetNumInput" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CUtils_GetNumInput" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CUtils_GetNumInput" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2,arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetNumInput__SWIG_1) { { CString *arg1 = 0 ; unsigned int *arg2 = 0 ; unsigned int arg3 ; unsigned int arg4 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUtils_GetNumInput(sPrompt,uRet,uMin,uMax);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUtils_GetNumInput" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CUtils_GetNumInput" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetNumInput__SWIG_2) { { CString *arg1 = 0 ; unsigned int *arg2 = 0 ; unsigned int arg3 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUtils_GetNumInput(sPrompt,uRet,uMin);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUtils_GetNumInput" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetNumInput__SWIG_3) { { CString *arg1 = 0 ; unsigned int *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_GetNumInput(sPrompt,uRet);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetNumInput" "', argument " "2"" of type '" "unsigned int &""'"); } arg2 = reinterpret_cast< unsigned int * >(argp2); result = (bool)CUtils::GetNumInput((CString const &)*arg1,*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_GetNumInput) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetNumInput__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetNumInput__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetNumInput__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUtils_GetNumInput__SWIG_0); return; } } croak("No matching function for overloaded 'CUtils_GetNumInput'"); XSRETURN(0); } XS(_wrap_CUtils_GetMillTime) { { int argvi = 0; unsigned long long result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CUtils_GetMillTime();"); } result = (unsigned long long)CUtils::GetMillTime(); ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_CTime) { { time_t arg1 ; CString *arg2 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_CTime(t,sTZ);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_CTime" "', argument " "1"" of type '" "time_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_CTime" "', argument " "1"" of type '" "time_t""'"); } else { arg1 = *(reinterpret_cast< time_t * >(argp1)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_CTime" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_CTime" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUtils::CTime(arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUtils_FormatTime) { { time_t arg1 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUtils_FormatTime(t,sFormat,sTZ);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_FormatTime" "', argument " "1"" of type '" "time_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatTime" "', argument " "1"" of type '" "time_t""'"); } else { arg1 = *(reinterpret_cast< time_t * >(argp1)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_FormatTime" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatTime" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUtils_FormatTime" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatTime" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = CUtils::FormatTime(arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUtils_FormatServerTime) { { timeval *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_FormatServerTime(tv);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_FormatServerTime" "', argument " "1"" of type '" "timeval const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_FormatServerTime" "', argument " "1"" of type '" "timeval const &""'"); } arg1 = reinterpret_cast< timeval * >(argp1); result = CUtils::FormatServerTime((timeval const &)*arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_GetTimezones) { { int argvi = 0; SCString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CUtils_GetTimezones();"); } result = CUtils::GetTimezones(); ST(argvi) = SWIG_NewPointerObj((new SCString(static_cast< const SCString& >(result))), SWIGTYPE_p_SCString, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_GetEncodings) { { int argvi = 0; SCString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CUtils_GetEncodings();"); } result = CUtils::GetEncodings(); ST(argvi) = SWIG_NewPointerObj((new SCString(static_cast< const SCString& >(result))), SWIGTYPE_p_SCString, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUtils_GetMessageTags) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; MCString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUtils_GetMessageTags(sLine);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_GetMessageTags" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_GetMessageTags" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CUtils::GetMessageTags((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj((new MCString(static_cast< const MCString& >(result))), SWIGTYPE_p_MCString, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUtils_SetMessageTags) { { CString *arg1 = 0 ; MCString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUtils_SetMessageTags(sLine,mssTags);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUtils_SetMessageTags" "', argument " "1"" of type '" "CString &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SetMessageTags" "', argument " "1"" of type '" "CString &""'"); } arg1 = reinterpret_cast< CString * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_MCString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUtils_SetMessageTags" "', argument " "2"" of type '" "MCString const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUtils_SetMessageTags" "', argument " "2"" of type '" "MCString const &""'"); } arg2 = reinterpret_cast< MCString * >(argp2); CUtils::SetMessageTags(*arg1,(MCString const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CException) { { CException::EType arg1 ; int val1 ; int ecode1 = 0 ; int argvi = 0; CException *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CException(e);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CException" "', argument " "1"" of type '" "CException::EType""'"); } arg1 = static_cast< CException::EType >(val1); result = (CException *)new CException(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CException, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CException) { { CException *arg1 = (CException *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CException(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CException, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CException" "', argument " "1"" of type '" "CException *""'"); } arg1 = reinterpret_cast< CException * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CException_GetType) { { CException *arg1 = (CException *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CException::EType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CException_GetType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CException, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CException_GetType" "', argument " "1"" of type '" "CException const *""'"); } arg1 = reinterpret_cast< CException * >(argp1); result = (CException::EType)((CException const *)arg1)->GetType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTable__SWIG_0) { { std::vector< std::vector< CString > >::size_type arg1 ; size_t val1 ; int ecode1 = 0 ; int argvi = 0; CTable *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CTable(uPreferredWidth);"); } ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CTable" "', argument " "1"" of type '" "std::vector< std::vector< CString > >::size_type""'"); } arg1 = static_cast< std::vector< std::vector< CString > >::size_type >(val1); result = (CTable *)new CTable(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTable, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTable__SWIG_1) { { int argvi = 0; CTable *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CTable();"); } result = (CTable *)new CTable(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTable, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTable) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CTable__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CTable__SWIG_0); return; } } croak("No matching function for overloaded 'new_CTable'"); XSRETURN(0); } XS(_wrap_delete_CTable) { { CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CTable(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTable" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTable_AddColumn__SWIG_0) { { CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTable_AddColumn(self,sName,bWrappable);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_AddColumn" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTable_AddColumn" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->AddColumn((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTable_AddColumn__SWIG_1) { { CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTable_AddColumn(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_AddColumn" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_AddColumn" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddColumn((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTable_AddColumn) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTable_AddColumn__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTable_AddColumn__SWIG_0); return; } } croak("No matching function for overloaded 'CTable_AddColumn'"); XSRETURN(0); } XS(_wrap_CTable_AddRow) { { CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< std::vector< CString > >::size_type result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTable_AddRow(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_AddRow" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); result = (arg1)->AddRow(); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTable_SetCell__SWIG_0) { { CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; std::vector< std::vector< CString > >::size_type arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; size_t val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CTable_SetCell(self,sColumn,sValue,uRowIdx);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_SetCell" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CTable_SetCell" "', argument " "4"" of type '" "std::vector< std::vector< CString > >::size_type""'"); } arg4 = static_cast< std::vector< std::vector< CString > >::size_type >(val4); result = (bool)(arg1)->SetCell((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CTable_SetCell__SWIG_1) { { CTable *arg1 = (CTable *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTable_SetCell(self,sColumn,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_SetCell" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_SetCell" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SetCell((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CTable_SetCell) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTable_SetCell__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTable_SetCell__SWIG_0); return; } } croak("No matching function for overloaded 'CTable_SetCell'"); XSRETURN(0); } XS(_wrap_CTable_GetLine) { { CTable *arg1 = (CTable *) 0 ; unsigned int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTable_GetLine(self,uIdx,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_GetLine" "', argument " "1"" of type '" "CTable const *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTable_GetLine" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTable_GetLine" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTable_GetLine" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)((CTable const *)arg1)->GetLine(arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTable_GetColumnWidth) { { CTable *arg1 = (CTable *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; CString::size_type result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTable_GetColumnWidth(self,uIdx);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_GetColumnWidth" "', argument " "1"" of type '" "CTable const *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTable_GetColumnWidth" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = ((CTable const *)arg1)->GetColumnWidth(arg2); ST(argvi) = SWIG_NewPointerObj((new CString::size_type(static_cast< const CString::size_type& >(result))), SWIGTYPE_p_CString__size_type, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTable_Clear) { { CTable *arg1 = (CTable *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTable_Clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTable, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTable_Clear" "', argument " "1"" of type '" "CTable *""'"); } arg1 = reinterpret_cast< CTable * >(argp1); (arg1)->Clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CConfigEntry__SWIG_0) { { int argvi = 0; CConfigEntry *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CConfigEntry();"); } result = (CConfigEntry *)new CConfigEntry(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfigEntry, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CConfigEntry__SWIG_1) { { CConfig *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CConfigEntry *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CConfigEntry(Config);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CConfig, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfig const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfig const &""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = (CConfigEntry *)new CConfigEntry((CConfig const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfigEntry, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CConfigEntry__SWIG_2) { { CConfigEntry *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CConfigEntry *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CConfigEntry(other);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CConfigEntry, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfigEntry const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CConfigEntry" "', argument " "1"" of type '" "CConfigEntry const &""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); result = (CConfigEntry *)new CConfigEntry((CConfigEntry const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfigEntry, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CConfigEntry) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfigEntry, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CConfigEntry__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CConfigEntry__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CConfigEntry__SWIG_2); return; } } croak("No matching function for overloaded 'new_CConfigEntry'"); XSRETURN(0); } XS(_wrap_delete_CConfigEntry) { { CConfigEntry *arg1 = (CConfigEntry *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CConfigEntry(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfigEntry, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CConfigEntry" "', argument " "1"" of type '" "CConfigEntry *""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfigEntry_m_pSubConfig_set) { { CConfigEntry *arg1 = (CConfigEntry *) 0 ; CConfig *arg2 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CConfigEntry_m_pSubConfig_set(self,m_pSubConfig);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfigEntry, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfigEntry_m_pSubConfig_set" "', argument " "1"" of type '" "CConfigEntry *""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CConfig, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfigEntry_m_pSubConfig_set" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); if (arg1) (arg1)->m_pSubConfig = arg2; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfigEntry_m_pSubConfig_get) { { CConfigEntry *arg1 = (CConfigEntry *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CConfig *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CConfigEntry_m_pSubConfig_get(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfigEntry, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfigEntry_m_pSubConfig_get" "', argument " "1"" of type '" "CConfigEntry *""'"); } arg1 = reinterpret_cast< CConfigEntry * >(argp1); result = (CConfig *) ((arg1)->m_pSubConfig); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfig, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_BeginEntries) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::map< CString,std::vector< CString > >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CConfig_BeginEntries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_BeginEntries" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->BeginEntries(); ST(argvi) = SWIG_NewPointerObj((new CConfig::EntryMapIterator(static_cast< const CConfig::EntryMapIterator& >(result))), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_EndEntries) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::map< CString,std::vector< CString > >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CConfig_EndEntries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_EndEntries" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->EndEntries(); ST(argvi) = SWIG_NewPointerObj((new CConfig::EntryMapIterator(static_cast< const CConfig::EntryMapIterator& >(result))), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_BeginSubConfigs) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::map< CString,std::map< CString,CConfigEntry > >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CConfig_BeginSubConfigs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_BeginSubConfigs" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->BeginSubConfigs(); ST(argvi) = SWIG_NewPointerObj((new CConfig::SubConfigMapIterator(static_cast< const CConfig::SubConfigMapIterator& >(result))), SWIGTYPE_p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_EndSubConfigs) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::map< CString,std::map< CString,CConfigEntry > >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CConfig_EndSubConfigs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_EndSubConfigs" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = ((CConfig const *)arg1)->EndSubConfigs(); ST(argvi) = SWIG_NewPointerObj((new CConfig::SubConfigMapIterator(static_cast< const CConfig::SubConfigMapIterator& >(result))), SWIGTYPE_p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_AddKeyValuePair) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_AddKeyValuePair(self,sName,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_AddKeyValuePair" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_AddKeyValuePair" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddKeyValuePair" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_AddKeyValuePair" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddKeyValuePair" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddKeyValuePair((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CConfig_AddSubConfig) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CConfig arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_AddSubConfig(self,sTag,sName,Config);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_AddSubConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_AddSubConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddSubConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_AddSubConfig" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddSubConfig" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CConfig, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CConfig_AddSubConfig" "', argument " "4"" of type '" "CConfig""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_AddSubConfig" "', argument " "4"" of type '" "CConfig""'"); } else { arg4 = *(reinterpret_cast< CConfig * >(argp4)); } } result = (bool)(arg1)->AddSubConfig((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CConfig_FindStringVector__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindStringVector(self,sName,vsList,bErase);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringVector" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindStringVector" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->FindStringVector((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindStringVector__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindStringVector(self,sName,vsList);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringVector" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringVector" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); result = (bool)(arg1)->FindStringVector((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindStringVector) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindStringVector__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindStringVector__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindStringVector'"); XSRETURN(0); } XS(_wrap_CConfig_FindStringEntry__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindStringEntry(self,sName,sRes,sDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindStringEntry" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CConfig_FindStringEntry" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->FindStringEntry((CString const &)*arg2,*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CConfig_FindStringEntry__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindStringEntry(self,sName,sRes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindStringEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindStringEntry" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindStringEntry" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->FindStringEntry((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindStringEntry) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindStringEntry__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindStringEntry__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindStringEntry'"); XSRETURN(0); } XS(_wrap_CConfig_FindBoolEntry__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; bool *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindBoolEntry(self,sName,bRes,bDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindBoolEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindBoolEntry" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->FindBoolEntry((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindBoolEntry__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; bool *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindBoolEntry(self,sName,bRes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindBoolEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindBoolEntry" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); result = (bool)(arg1)->FindBoolEntry((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindBoolEntry) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_bool, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_bool, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindBoolEntry__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindBoolEntry__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindBoolEntry'"); XSRETURN(0); } XS(_wrap_CConfig_FindUIntEntry__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned int *arg3 = 0 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindUIntEntry(self,sName,uRes,uDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUIntEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } arg3 = reinterpret_cast< unsigned int * >(argp3); ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindUIntEntry" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->FindUIntEntry((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindUIntEntry__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned int *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindUIntEntry(self,sName,uRes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUIntEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_unsigned_int, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUIntEntry" "', argument " "3"" of type '" "unsigned int &""'"); } arg3 = reinterpret_cast< unsigned int * >(argp3); result = (bool)(arg1)->FindUIntEntry((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindUIntEntry) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_unsigned_int, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindUIntEntry__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindUIntEntry__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindUIntEntry'"); XSRETURN(0); } XS(_wrap_CConfig_FindUShortEntry__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned short *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; unsigned short val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindUShortEntry(self,sName,uRes,uDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUShortEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_unsigned_short, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } arg3 = reinterpret_cast< unsigned short * >(argp3); ecode4 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindUShortEntry" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); result = (bool)(arg1)->FindUShortEntry((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindUShortEntry__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; unsigned short *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindUShortEntry(self,sName,uRes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindUShortEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_unsigned_short, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindUShortEntry" "', argument " "3"" of type '" "unsigned short &""'"); } arg3 = reinterpret_cast< unsigned short * >(argp3); result = (bool)(arg1)->FindUShortEntry((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindUShortEntry) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_unsigned_short, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindUShortEntry__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindUShortEntry__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindUShortEntry'"); XSRETURN(0); } XS(_wrap_CConfig_FindDoubleEntry__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; double *arg3 = 0 ; double arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; double val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindDoubleEntry(self,sName,fRes,fDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindDoubleEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_double, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } arg3 = reinterpret_cast< double * >(argp3); ecode4 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindDoubleEntry" "', argument " "4"" of type '" "double""'"); } arg4 = static_cast< double >(val4); result = (bool)(arg1)->FindDoubleEntry((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindDoubleEntry__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; double *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindDoubleEntry(self,sName,fRes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindDoubleEntry" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_double, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindDoubleEntry" "', argument " "3"" of type '" "double &""'"); } arg3 = reinterpret_cast< double * >(argp3); result = (bool)(arg1)->FindDoubleEntry((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindDoubleEntry) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_double, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindDoubleEntry__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindDoubleEntry__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindDoubleEntry'"); XSRETURN(0); } XS(_wrap_CConfig_FindSubConfig__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CConfig::SubConfig *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CConfig_FindSubConfig(self,sName,Config,bErase);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindSubConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__mapT_CString_CConfigEntry_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } arg3 = reinterpret_cast< CConfig::SubConfig * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CConfig_FindSubConfig" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->FindSubConfig((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindSubConfig__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CString *arg2 = 0 ; CConfig::SubConfig *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_FindSubConfig(self,sName,Config);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_FindSubConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__mapT_CString_CConfigEntry_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_FindSubConfig" "', argument " "3"" of type '" "CConfig::SubConfig &""'"); } arg3 = reinterpret_cast< CConfig::SubConfig * >(argp3); result = (bool)(arg1)->FindSubConfig((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CConfig_FindSubConfig) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__mapT_CString_CConfigEntry_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__mapT_CString_CConfigEntry_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindSubConfig__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_FindSubConfig__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_FindSubConfig'"); XSRETURN(0); } XS(_wrap_CConfig_empty) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CConfig_empty(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_empty" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); result = (bool)((CConfig const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_Parse) { { CConfig *arg1 = (CConfig *) 0 ; CFile *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_Parse(self,file,sErrorMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_Parse" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CFile, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_Parse" "', argument " "2"" of type '" "CFile &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Parse" "', argument " "2"" of type '" "CFile &""'"); } arg2 = reinterpret_cast< CFile * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CConfig_Parse" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Parse" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->Parse(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_Write__SWIG_0) { { CConfig *arg1 = (CConfig *) 0 ; CFile *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CConfig_Write(self,file,iIndentation);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_Write" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CFile, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } arg2 = reinterpret_cast< CFile * >(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CConfig_Write" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); (arg1)->Write(*arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_Write__SWIG_1) { { CConfig *arg1 = (CConfig *) 0 ; CFile *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CConfig_Write(self,file);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CConfig_Write" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CFile, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CConfig_Write" "', argument " "2"" of type '" "CFile &""'"); } arg2 = reinterpret_cast< CFile * >(argp2); (arg1)->Write(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CConfig_Write) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_Write__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CConfig_Write__SWIG_0); return; } } croak("No matching function for overloaded 'CConfig_Write'"); XSRETURN(0); } XS(_wrap_new_CConfig) { { int argvi = 0; CConfig *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CConfig();"); } result = (CConfig *)new CConfig(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CConfig, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CConfig) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CConfig(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CConfig" "', argument " "1"" of type '" "CConfig *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSCharBuffer) { { size_t arg1 ; size_t val1 ; int ecode1 = 0 ; int argvi = 0; CSCharBuffer *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CSCharBuffer(iSize);"); } ecode1 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSCharBuffer" "', argument " "1"" of type '" "size_t""'"); } arg1 = static_cast< size_t >(val1); result = (CSCharBuffer *)new CSCharBuffer(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSCharBuffer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CSCharBuffer) { { CSCharBuffer *arg1 = (CSCharBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSCharBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSCharBuffer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSCharBuffer" "', argument " "1"" of type '" "CSCharBuffer *""'"); } arg1 = reinterpret_cast< CSCharBuffer * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSCharBuffer___call__) { { CSCharBuffer *arg1 = (CSCharBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; char *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSCharBuffer___call__(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSCharBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSCharBuffer___call__" "', argument " "1"" of type '" "CSCharBuffer *""'"); } arg1 = reinterpret_cast< CSCharBuffer * >(argp1); result = (char *)(arg1)->operator ()(); ST(argvi) = SWIG_FromCharPtr((const char *)result); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSSockAddr) { { int argvi = 0; CSSockAddr *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CSSockAddr();"); } result = (CSSockAddr *)new CSSockAddr(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSSockAddr, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CSSockAddr) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSSockAddr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSSockAddr" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_SinFamily) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSSockAddr_SinFamily(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SinFamily" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); (arg1)->SinFamily(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_SinPort) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSSockAddr_SinPort(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SinPort" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSSockAddr_SinPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SinPort(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_SetIPv6) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSSockAddr_SetIPv6(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SetIPv6" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSSockAddr_SetIPv6" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIPv6(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_GetIPv6) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSSockAddr_GetIPv6(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetIPv6" "', argument " "1"" of type '" "CSSockAddr const *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (bool)((CSSockAddr const *)arg1)->GetIPv6(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_GetSockAddrLen) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; socklen_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSSockAddr_GetSockAddrLen(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetSockAddrLen" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (arg1)->GetSockAddrLen(); ST(argvi) = SWIG_NewPointerObj((new socklen_t(static_cast< const socklen_t& >(result))), SWIGTYPE_p_socklen_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_GetSockAddr) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; sockaddr_in *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSSockAddr_GetSockAddr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetSockAddr" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (sockaddr_in *)(arg1)->GetSockAddr(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sockaddr_in, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_GetAddr) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; in_addr *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSSockAddr_GetAddr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetAddr" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (in_addr *)(arg1)->GetAddr(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_in_addr, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_SetAFRequire) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSSockAddr_SetAFRequire(self,iWhich);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_SetAFRequire" "', argument " "1"" of type '" "CSSockAddr *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSSockAddr_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSSockAddr_GetAFRequire) { { CSSockAddr *arg1 = (CSSockAddr *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSSockAddr::EAFRequire result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSSockAddr_GetAFRequire(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSockAddr, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSSockAddr_GetAFRequire" "', argument " "1"" of type '" "CSSockAddr const *""'"); } arg1 = reinterpret_cast< CSSockAddr * >(argp1); result = (CSSockAddr::EAFRequire)((CSSockAddr const *)arg1)->GetAFRequire(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CGetAddrInfo) { { CString *arg1 = 0 ; Csock *arg2 = (Csock *) 0 ; CSSockAddr *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CGetAddrInfo *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CGetAddrInfo(sHostname,pSock,csSockAddr);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CGetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CGetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CGetAddrInfo" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CSSockAddr, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CGetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CGetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } arg3 = reinterpret_cast< CSSockAddr * >(argp3); result = (CGetAddrInfo *)new CGetAddrInfo((CString const &)*arg1,arg2,*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CGetAddrInfo, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_delete_CGetAddrInfo) { { CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CGetAddrInfo(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CGetAddrInfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CGetAddrInfo" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CGetAddrInfo_Init) { { CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CGetAddrInfo_Init(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CGetAddrInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CGetAddrInfo_Init" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); (arg1)->Init(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CGetAddrInfo_Process) { { CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CGetAddrInfo_Process(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CGetAddrInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CGetAddrInfo_Process" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); result = (int)(arg1)->Process(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CGetAddrInfo_Finish) { { CGetAddrInfo *arg1 = (CGetAddrInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CGetAddrInfo_Finish(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CGetAddrInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CGetAddrInfo_Finish" "', argument " "1"" of type '" "CGetAddrInfo *""'"); } arg1 = reinterpret_cast< CGetAddrInfo * >(argp1); result = (int)(arg1)->Finish(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_GetAddrInfo) { { CString *arg1 = 0 ; Csock *arg2 = (Csock *) 0 ; CSSockAddr *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: GetAddrInfo(sHostname,pSock,csSockAddr);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetAddrInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GetAddrInfo" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CSSockAddr, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } arg3 = reinterpret_cast< CSSockAddr * >(argp3); result = (int)GetAddrInfo((CString const &)*arg1,arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_GetCsockSSLIdx) { { int argvi = 0; int result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetCsockSSLIdx();"); } result = (int)GetCsockSSLIdx(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_InitCsocket) { { int argvi = 0; bool result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: InitCsocket();"); } result = (bool)InitCsocket(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_ShutdownCsocket) { { int argvi = 0; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: ShutdownCsocket();"); } ShutdownCsocket(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_GetSockError) { { int argvi = 0; int result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetSockError();"); } result = (int)GetSockError(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_TFD_ZERO) { { fd_set *arg1 = (fd_set *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: TFD_ZERO(set);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TFD_ZERO" "', argument " "1"" of type '" "fd_set *""'"); } arg1 = reinterpret_cast< fd_set * >(argp1); TFD_ZERO(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_TFD_SET) { { cs_sock_t arg1 ; fd_set *arg2 = (fd_set *) 0 ; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: TFD_SET(iSock,set);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TFD_SET" "', argument " "1"" of type '" "cs_sock_t""'"); } arg1 = static_cast< cs_sock_t >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TFD_SET" "', argument " "2"" of type '" "fd_set *""'"); } arg2 = reinterpret_cast< fd_set * >(argp2); TFD_SET(arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_TFD_ISSET) { { cs_sock_t arg1 ; fd_set *arg2 = (fd_set *) 0 ; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: TFD_ISSET(iSock,set);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TFD_ISSET" "', argument " "1"" of type '" "cs_sock_t""'"); } arg1 = static_cast< cs_sock_t >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TFD_ISSET" "', argument " "2"" of type '" "fd_set *""'"); } arg2 = reinterpret_cast< fd_set * >(argp2); result = (bool)TFD_ISSET(arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_TFD_CLR) { { cs_sock_t arg1 ; fd_set *arg2 = (fd_set *) 0 ; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: TFD_CLR(iSock,set);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TFD_CLR" "', argument " "1"" of type '" "cs_sock_t""'"); } arg1 = static_cast< cs_sock_t >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_fd_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TFD_CLR" "', argument " "2"" of type '" "fd_set *""'"); } arg2 = reinterpret_cast< fd_set * >(argp2); TFD_CLR(arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap___Perror) { { CString *arg1 = 0 ; char *arg2 = (char *) 0 ; uint32_t arg3 ; int res1 = SWIG_OLDOBJ ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: __Perror(s,pszFile,iLineNo);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "__Perror" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__Perror" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__Perror" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__Perror" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); __Perror((CString const &)*arg1,(char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_millitime) { { int argvi = 0; uint64_t result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: millitime();"); } result = millitime(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CCron) { { int argvi = 0; CCron *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CCron();"); } result = (CCron *)new CCron(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CCron, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CCron) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CCron(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CCron" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_run) { { CCron *arg1 = (CCron *) 0 ; timeval *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CCron_run(self,tNow);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_run" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_run" "', argument " "2"" of type '" "timeval &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_run" "', argument " "2"" of type '" "timeval &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); (arg1)->run(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_StartMaxCycles__SWIG_0) { { CCron *arg1 = (CCron *) 0 ; double arg2 ; uint32_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CCron_StartMaxCycles(self,dTimeSequence,iMaxCycles);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_StartMaxCycles" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CCron_StartMaxCycles" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); (arg1)->StartMaxCycles(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_StartMaxCycles__SWIG_1) { { CCron *arg1 = (CCron *) 0 ; timeval *arg2 = 0 ; uint32_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CCron_StartMaxCycles(self,tTimeSequence,iMaxCycles);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_StartMaxCycles" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_StartMaxCycles" "', argument " "2"" of type '" "timeval const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_StartMaxCycles" "', argument " "2"" of type '" "timeval const &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CCron_StartMaxCycles" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); (arg1)->StartMaxCycles((timeval const &)*arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_StartMaxCycles) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CCron_StartMaxCycles__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CCron_StartMaxCycles__SWIG_0); return; } } croak("No matching function for overloaded 'CCron_StartMaxCycles'"); XSRETURN(0); } XS(_wrap_CCron_Start__SWIG_0) { { CCron *arg1 = (CCron *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CCron_Start(self,dTimeSequence);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Start" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CCron_Start" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); (arg1)->Start(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_Start__SWIG_1) { { CCron *arg1 = (CCron *) 0 ; timeval *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CCron_Start(self,TimeSequence);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Start" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_Start" "', argument " "2"" of type '" "timeval const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_Start" "', argument " "2"" of type '" "timeval const &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); (arg1)->Start((timeval const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_Start) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CCron, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CCron_Start__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CCron_Start__SWIG_0); return; } } croak("No matching function for overloaded 'CCron_Start'"); XSRETURN(0); } XS(_wrap_CCron_Stop) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_Stop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Stop" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->Stop(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_Pause) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_Pause(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Pause" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->Pause(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_UnPause) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_UnPause(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_UnPause" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->UnPause(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_Reset) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_Reset(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_Reset" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->Reset(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_GetInterval) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; timeval result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_GetInterval(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetInterval" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetInterval(); ST(argvi) = SWIG_NewPointerObj((new timeval(static_cast< const timeval& >(result))), SWIGTYPE_p_timeval, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_GetMaxCycles) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint32_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_GetMaxCycles(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetMaxCycles" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetMaxCycles(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_GetCyclesLeft) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint32_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_GetCyclesLeft(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetCyclesLeft" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetCyclesLeft(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_isValid) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_isValid(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_isValid" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = (bool)((CCron const *)arg1)->isValid(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_GetName) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetName" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = (CString *) &((CCron const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_SetName) { { CCron *arg1 = (CCron *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CCron_SetName(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_SetName" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CCron_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CCron_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CCron_GetNextRun) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; timeval result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_GetNextRun(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_GetNextRun" "', argument " "1"" of type '" "CCron const *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); result = ((CCron const *)arg1)->GetNextRun(); ST(argvi) = SWIG_NewPointerObj((new timeval(static_cast< const timeval& >(result))), SWIGTYPE_p_timeval, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CCron_RunJob) { { CCron *arg1 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CCron_RunJob(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CCron_RunJob" "', argument " "1"" of type '" "CCron *""'"); } arg1 = reinterpret_cast< CCron * >(argp1); (arg1)->RunJob(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSMonitorFD) { { int argvi = 0; CSMonitorFD *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CSMonitorFD();"); } result = (CSMonitorFD *)new CSMonitorFD(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSMonitorFD, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CSMonitorFD) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSMonitorFD(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSMonitorFD" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_GatherFDsForSelect) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; std::map< cs_sock_t,short > *arg2 = 0 ; long *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSMonitorFD_GatherFDsForSelect(self,miiReadyFds,iTimeoutMS);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "2"" of type '" "std::map< cs_sock_t,short > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "2"" of type '" "std::map< cs_sock_t,short > &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_long, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "3"" of type '" "long &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_GatherFDsForSelect" "', argument " "3"" of type '" "long &""'"); } arg3 = reinterpret_cast< long * >(argp3); result = (bool)(arg1)->GatherFDsForSelect(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_FDsThatTriggered) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; std::map< cs_sock_t,short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSMonitorFD_FDsThatTriggered(self,miiReadyFds);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "2"" of type '" "std::map< cs_sock_t,short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_FDsThatTriggered" "', argument " "2"" of type '" "std::map< cs_sock_t,short > const &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp2); result = (bool)(arg1)->FDsThatTriggered((std::map< cs_sock_t,short > const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_CheckFDs) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; std::map< cs_sock_t,short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSMonitorFD_CheckFDs(self,miiReadyFds);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_CheckFDs" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSMonitorFD_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSMonitorFD_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short > const &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp2); result = (bool)(arg1)->CheckFDs((std::map< cs_sock_t,short > const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_Add) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; cs_sock_t arg2 ; short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; short val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSMonitorFD_Add(self,iFD,iMonitorEvents);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_Add" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSMonitorFD_Add" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); ecode3 = SWIG_AsVal_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSMonitorFD_Add" "', argument " "3"" of type '" "short""'"); } arg3 = static_cast< short >(val3); (arg1)->Add(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_Remove) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSMonitorFD_Remove(self,iFD);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_Remove" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSMonitorFD_Remove" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->Remove(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_DisableMonitor) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSMonitorFD_DisableMonitor(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_DisableMonitor" "', argument " "1"" of type '" "CSMonitorFD *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); (arg1)->DisableMonitor(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSMonitorFD_IsEnabled) { { CSMonitorFD *arg1 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSMonitorFD_IsEnabled(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSMonitorFD_IsEnabled" "', argument " "1"" of type '" "CSMonitorFD const *""'"); } arg1 = reinterpret_cast< CSMonitorFD * >(argp1); result = (bool)((CSMonitorFD const *)arg1)->IsEnabled(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSockCommon) { { int argvi = 0; CSockCommon *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CSockCommon();"); } result = (CSockCommon *)new CSockCommon(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockCommon, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CSockCommon) { { CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSockCommon(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSockCommon" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_CleanupCrons) { { CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSockCommon_CleanupCrons(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_CleanupCrons" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); (arg1)->CleanupCrons(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_CleanupFDMonitors) { { CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSockCommon_CleanupFDMonitors(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_CleanupFDMonitors" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); (arg1)->CleanupFDMonitors(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_GetCrons) { { CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CCron * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSockCommon_GetCrons(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_GetCrons" "', argument " "1"" of type '" "CSockCommon const *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); result = (std::vector< CCron * > *) &((CSockCommon const *)arg1)->GetCrons(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CCron_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_Cron) { { CSockCommon *arg1 = (CSockCommon *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSockCommon_Cron(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_Cron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); (arg1)->Cron(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_AddCron) { { CSockCommon *arg1 = (CSockCommon *) 0 ; CCron *arg2 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockCommon_AddCron(self,pcCron);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_AddCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_AddCron" "', argument " "2"" of type '" "CCron *""'"); } arg2 = reinterpret_cast< CCron * >(argp2); (arg1)->AddCron(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_DelCron__SWIG_0) { { CSockCommon *arg1 = (CSockCommon *) 0 ; CString *arg2 = 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSockCommon_DelCron(self,sName,bDeleteAll,bCaseSensitive);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockCommon_DelCron" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockCommon_DelCron" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->DelCron((CString const &)*arg2,arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockCommon_DelCron__SWIG_1) { { CSockCommon *arg1 = (CSockCommon *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSockCommon_DelCron(self,sName,bDeleteAll);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockCommon_DelCron" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->DelCron((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockCommon_DelCron__SWIG_2) { { CSockCommon *arg1 = (CSockCommon *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockCommon_DelCron(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->DelCron((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockCommon_DelCron__SWIG_3) { { CSockCommon *arg1 = (CSockCommon *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockCommon_DelCron(self,iPos);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCron" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockCommon_DelCron" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->DelCron(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_DelCron) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockCommon, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockCommon_DelCron__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockCommon_DelCron__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockCommon_DelCron__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockCommon_DelCron__SWIG_0); return; } } croak("No matching function for overloaded 'CSockCommon_DelCron'"); XSRETURN(0); } XS(_wrap_CSockCommon_DelCronByAddr) { { CSockCommon *arg1 = (CSockCommon *) 0 ; CCron *arg2 = (CCron *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockCommon_DelCronByAddr(self,pcCron);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_DelCronByAddr" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CCron, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_DelCronByAddr" "', argument " "2"" of type '" "CCron *""'"); } arg2 = reinterpret_cast< CCron * >(argp2); (arg1)->DelCronByAddr(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_CheckFDs) { { CSockCommon *arg1 = (CSockCommon *) 0 ; std::map< cs_sock_t,short > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockCommon_CheckFDs(self,miiReadyFds);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_CheckFDs" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_CheckFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short > const &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp2); (arg1)->CheckFDs((std::map< cs_sock_t,short > const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_AssignFDs) { { CSockCommon *arg1 = (CSockCommon *) 0 ; std::map< cs_sock_t,short > *arg2 = 0 ; timeval *arg3 = (timeval *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSockCommon_AssignFDs(self,miiReadyFds,tvtimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_AssignFDs" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_AssignFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockCommon_AssignFDs" "', argument " "2"" of type '" "std::map< cs_sock_t,short > &""'"); } arg2 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockCommon_AssignFDs" "', argument " "3"" of type '" "timeval *""'"); } arg3 = reinterpret_cast< timeval * >(argp3); (arg1)->AssignFDs(*arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockCommon_MonitorFD) { { CSockCommon *arg1 = (CSockCommon *) 0 ; CSMonitorFD *arg2 = (CSMonitorFD *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockCommon_MonitorFD(self,pMonitorFD);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockCommon, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockCommon_MonitorFD" "', argument " "1"" of type '" "CSockCommon *""'"); } arg1 = reinterpret_cast< CSockCommon * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CSMonitorFD, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockCommon_MonitorFD" "', argument " "2"" of type '" "CSMonitorFD *""'"); } arg2 = reinterpret_cast< CSMonitorFD * >(argp2); (arg1)->MonitorFD(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_Csock__SWIG_0) { { int arg1 ; int val1 ; int ecode1 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_Csock(iTimeout);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Csock" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); result = (Csock *)new Csock(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_Csock__SWIG_1) { { int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_Csock();"); } result = (Csock *)new Csock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_Csock__SWIG_2) { { CString *arg1 = 0 ; uint16_t arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_Csock(sHostname,uPort,itimeout);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Csock" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (Csock *)new Csock((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_Csock__SWIG_3) { { CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_Csock(sHostname,uPort);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Csock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Csock" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (Csock *)new Csock((CString const &)*arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_Csock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Csock__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Csock__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Csock__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_Csock__SWIG_2); return; } } croak("No matching function for overloaded 'new_Csock'"); XSRETURN(0); } XS(_wrap_Csock_GetSockObj) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_GetSockObj(self,sHostname,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSockObj" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_delete_Csock) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_Csock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Csock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Dereference) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_Dereference(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Dereference" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Dereference(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Copy) { { Csock *arg1 = (Csock *) 0 ; Csock *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_Copy(self,cCopy);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Copy" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_Csock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Copy" "', argument " "2"" of type '" "Csock const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Copy" "', argument " "2"" of type '" "Csock const &""'"); } arg2 = reinterpret_cast< Csock * >(argp2); (arg1)->Copy((Csock const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_0) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (Csock *) &(arg1)->operator <<((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_1) { { Csock *arg1 = (Csock *) 0 ; std::ostream &(*arg2)(std::ostream &) = (std::ostream &(*)(std::ostream &)) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,io);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_r_std__ostream__r_std__ostream); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "std::ostream &(*)(std::ostream &)""'"); } } result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_2) { { Csock *arg1 = (Csock *) 0 ; int32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_int32_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int32_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int32_t""'"); } else { arg2 = *(reinterpret_cast< int32_t * >(argp2)); } } result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_3) { { Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_4) { { Csock *arg1 = (Csock *) 0 ; int64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_int64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int64_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock___lshift__" "', argument " "2"" of type '" "int64_t""'"); } else { arg2 = *(reinterpret_cast< int64_t * >(argp2)); } } result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_5) { { Csock *arg1 = (Csock *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_6) { { Csock *arg1 = (Csock *) 0 ; float arg2 ; void *argp1 = 0 ; int res1 = 0 ; float val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "float""'"); } arg2 = static_cast< float >(val2); result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift____SWIG_7) { { Csock *arg1 = (Csock *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock___lshift__(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock___lshift__" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock___lshift__" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); result = (Csock *) &(arg1)->operator <<(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock___lshift__) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(ST(1), &ptr, SWIGTYPE_p_f_r_std__ostream__r_std__ostream); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_int32_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_int64_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 7; if (_rank == _rankm) goto dispatch; } } check_7: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_8; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_8; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 8; if (_rank == _rankm) goto dispatch; } } check_8: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_4); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_3); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_5); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_6); return; case 7: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_7); return; case 8: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock___lshift____SWIG_0); return; } } croak("No matching function for overloaded 'Csock___lshift__'"); XSRETURN(0); } XS(_wrap_Csock_Connect) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_Connect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Connect" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->Connect(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Listen__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: Csock_Listen(self,iPort,iMaxConns,sBindHost,iTimeout,bDetach);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Csock_Listen" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5,arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_Csock_Listen__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: Csock_Listen(self,iPort,iMaxConns,sBindHost,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_Csock_Listen__SWIG_2) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: Csock_Listen(self,iPort,iMaxConns,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_Csock_Listen__SWIG_3) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_Listen(self,iPort,iMaxConns);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->Listen(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Listen__SWIG_4) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_Listen(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listen" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (bool)(arg1)->Listen(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Listen) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Listen__SWIG_4); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Listen__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Listen__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Listen__SWIG_1); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Listen__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_Listen'"); XSRETURN(0); } XS(_wrap_Csock_Accept) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; cs_sock_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_Accept(self,sHost,iRPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Accept" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Accept" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Accept" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_uint16_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_Accept" "', argument " "3"" of type '" "uint16_t &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Accept" "', argument " "3"" of type '" "uint16_t &""'"); } arg3 = reinterpret_cast< uint16_t * >(argp3); result = (cs_sock_t)(arg1)->Accept(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_AcceptSSL) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_AcceptSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_AcceptSSL" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->AcceptSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SSLClientSetup) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_SSLClientSetup(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SSLClientSetup" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->SSLClientSetup(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SSLServerSetup) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_SSLServerSetup(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SSLServerSetup" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->SSLServerSetup(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ConnectSSL) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ConnectSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectSSL" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->ConnectSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_StartTLS) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_StartTLS(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_StartTLS" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->StartTLS(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Write__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_Write(self,data,len);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Write" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Write" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Write" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->Write((char const *)arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_Csock_Write__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_Write(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Write" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Write" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Write" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Write((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_Write) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Write__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Write__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_Write'"); XSRETURN(0); } XS(_wrap_Csock_Read) { { Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; cs_ssize_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_Read(self,data,len);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Read" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Read" "', argument " "2"" of type '" "char *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Read" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (arg1)->Read(arg2,arg3); ST(argvi) = SWIG_NewPointerObj((new cs_ssize_t(static_cast< const cs_ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_Csock_GetLocalIP) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetLocalIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetLocalIP" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetLocalIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetRemoteIP) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetRemoteIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRemoteIP" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRemoteIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_IsConnected) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_IsConnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_IsConnected" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->IsConnected(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetIsConnected) { { Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetIsConnected(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetIsConnected" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetIsConnected" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsConnected(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetRSock__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; cs_sock_t *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetRSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &(arg1)->GetRSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetRSock__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; cs_sock_t *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetRSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRSock" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &((Csock const *)arg1)->GetRSock(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetRSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetRSock__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetRSock__SWIG_1); return; } } croak("No matching function for overloaded 'Csock_GetRSock'"); XSRETURN(0); } XS(_wrap_Csock_SetRSock) { { Csock *arg1 = (Csock *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetRSock(self,iSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetRSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetRSock" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->SetRSock(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetWSock__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; cs_sock_t *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetWSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetWSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &(arg1)->GetWSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetWSock__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; cs_sock_t *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetWSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetWSock" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &((Csock const *)arg1)->GetWSock(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetWSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetWSock__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetWSock__SWIG_1); return; } } croak("No matching function for overloaded 'Csock_GetWSock'"); XSRETURN(0); } XS(_wrap_Csock_SetWSock) { { Csock *arg1 = (Csock *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetWSock(self,iSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetWSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetWSock" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->SetWSock(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetSock) { { Csock *arg1 = (Csock *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetSock(self,iSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetSock" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); (arg1)->SetSock(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetSock__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; cs_sock_t *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSock" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &(arg1)->GetSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetSock__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; cs_sock_t *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSock" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (cs_sock_t *) &((Csock const *)arg1)->GetSock(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetSock__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetSock__SWIG_1); return; } } croak("No matching function for overloaded 'Csock_GetSock'"); XSRETURN(0); } XS(_wrap_Csock_CallSockError__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_CallSockError(self,iErrno,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CallSockError" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_CallSockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_CallSockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_CallSockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->CallSockError(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_Csock_CallSockError__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_CallSockError(self,iErrno);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CallSockError" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_CallSockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->CallSockError(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_CallSockError) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_CallSockError__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_CallSockError__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_CallSockError'"); XSRETURN(0); } XS(_wrap_Csock_ResetTimer) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ResetTimer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetTimer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetTimer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_PauseRead) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_PauseRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_PauseRead" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->PauseRead(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_UnPauseRead) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_UnPauseRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_UnPauseRead" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->UnPauseRead(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_IsReadPaused) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_IsReadPaused(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_IsReadPaused" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->IsReadPaused(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetTimeout__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; uint32_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_SetTimeout(self,iTimeout,iTimeoutType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetTimeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetTimeout" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_SetTimeout" "', argument " "3"" of type '" "uint32_t""'"); } arg3 = static_cast< uint32_t >(val3); (arg1)->SetTimeout(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetTimeout__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetTimeout(self,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetTimeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetTimeout" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetTimeout(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetTimeout) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_SetTimeout__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_SetTimeout__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_SetTimeout'"); XSRETURN(0); } XS(_wrap_Csock_SetTimeoutType) { { Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetTimeoutType(self,iTimeoutType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetTimeoutType" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetTimeoutType" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->SetTimeoutType(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetTimeout) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetTimeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetTimeout(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetTimeoutType) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint32_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetTimeoutType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeoutType" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetTimeoutType(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_CheckTimeout) { { Csock *arg1 = (Csock *) 0 ; time_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_CheckTimeout(self,iNow);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CheckTimeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_CheckTimeout" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_CheckTimeout" "', argument " "2"" of type '" "time_t""'"); } else { arg2 = *(reinterpret_cast< time_t * >(argp2)); } } result = (bool)(arg1)->CheckTimeout(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_PushBuff__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: Csock_PushBuff(self,data,len,bStartAtZero);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_PushBuff" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_PushBuff" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_PushBuff" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Csock_PushBuff" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->PushBuff((char const *)arg2,arg3,arg4); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_Csock_PushBuff__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_PushBuff(self,data,len);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_PushBuff" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_PushBuff" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_PushBuff" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->PushBuff((char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_Csock_PushBuff) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_PushBuff__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_PushBuff__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_PushBuff'"); XSRETURN(0); } XS(_wrap_Csock_GetInternalReadBuffer) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetInternalReadBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetInternalReadBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetInternalReadBuffer(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetInternalWriteBuffer) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetInternalWriteBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetInternalWriteBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &(arg1)->GetInternalWriteBuffer(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetMaxBufferThreshold) { { Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetMaxBufferThreshold(self,iThreshold);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetMaxBufferThreshold" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetMaxBufferThreshold" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->SetMaxBufferThreshold(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetMaxBufferThreshold) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint32_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetMaxBufferThreshold(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetMaxBufferThreshold" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetMaxBufferThreshold(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetType) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetType" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetType) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetType(self,iType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetType" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetType" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetType(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetSockName) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetSockName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSockName" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetSockName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetSockName) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetSockName(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSockName" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSockName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_GetHostName) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetHostName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetHostName" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetHostName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetHostName) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetHostName(self,sHostname);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetHostName" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetHostName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetHostName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHostName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_GetStartTime) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetStartTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetStartTime" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetStartTime(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ResetStartTime) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ResetStartTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetStartTime" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetStartTime(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetBytesRead) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetBytesRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetBytesRead" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetBytesRead(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ResetBytesRead) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ResetBytesRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetBytesRead" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetBytesRead(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetBytesWritten) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetBytesWritten(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetBytesWritten" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetBytesWritten(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ResetBytesWritten) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ResetBytesWritten(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ResetBytesWritten" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ResetBytesWritten(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetAvgRead__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; double result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_GetAvgRead(self,iSample);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgRead" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_GetAvgRead" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); result = (double)((Csock const *)arg1)->GetAvgRead(arg2); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetAvgRead__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; double result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetAvgRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgRead" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)((Csock const *)arg1)->GetAvgRead(); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetAvgRead) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetAvgRead__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetAvgRead__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_GetAvgRead'"); XSRETURN(0); } XS(_wrap_Csock_GetAvgWrite__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; double result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_GetAvgWrite(self,iSample);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgWrite" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_GetAvgWrite" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); result = (double)((Csock const *)arg1)->GetAvgWrite(arg2); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetAvgWrite__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; double result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetAvgWrite(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAvgWrite" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (double)((Csock const *)arg1)->GetAvgWrite(); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetAvgWrite) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetAvgWrite__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetAvgWrite__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_GetAvgWrite'"); XSRETURN(0); } XS(_wrap_Csock_GetRemotePort) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint16_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetRemotePort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRemotePort" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRemotePort(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetLocalPort) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint16_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetLocalPort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetLocalPort" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetLocalPort(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetPort) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint16_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetPort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetPort" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetPort(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetPort) { { Csock *arg1 = (Csock *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetPort(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetPort" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SetPort(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Close__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; Csock::ECloseType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_Close(self,eCloseType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Close" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_Close" "', argument " "2"" of type '" "Csock::ECloseType""'"); } arg2 = static_cast< Csock::ECloseType >(val2); (arg1)->Close(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Close__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_Close(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Close" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Close(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Close) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Close__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_Close__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_Close'"); XSRETURN(0); } XS(_wrap_Csock_GetCloseType) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; Csock::ECloseType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetCloseType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetCloseType" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (Csock::ECloseType)((Csock const *)arg1)->GetCloseType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_IsClosed) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_IsClosed(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_IsClosed" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->IsClosed(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_NonBlockingIO) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_NonBlockingIO(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_NonBlockingIO" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->NonBlockingIO(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetSSL) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetSSL" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->GetSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetSSL) { { Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetSSL(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSSL" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetSSL" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetSSL(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_HasWriteBuffer) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_HasWriteBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_HasWriteBuffer" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->HasWriteBuffer(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ClearWriteBuffer) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ClearWriteBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ClearWriteBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ClearWriteBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SslIsEstablished) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_SslIsEstablished(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SslIsEstablished" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->SslIsEstablished(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ConnectInetd__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; bool arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_ConnectInetd(self,bIsSSL,sHostname);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectInetd" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectInetd" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_ConnectInetd" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectInetd" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ConnectInetd(arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_Csock_ConnectInetd__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_ConnectInetd(self,bIsSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectInetd" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectInetd" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)(arg1)->ConnectInetd(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ConnectInetd__SWIG_2) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ConnectInetd(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectInetd" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->ConnectInetd(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ConnectInetd) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_ConnectInetd__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_ConnectInetd__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_ConnectInetd__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_ConnectInetd'"); XSRETURN(0); } XS(_wrap_Csock_ConnectFD__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; int arg3 ; CString *arg4 = 0 ; bool arg5 ; Csock::ETConn arg6 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: Csock_ConnectFD(self,iReadFD,iWriteFD,sName,bIsSSL,eDirection);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectFD" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectFD" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_ConnectFD" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Csock_ConnectFD" "', argument " "6"" of type '" "Csock::ETConn""'"); } arg6 = static_cast< Csock::ETConn >(val6); result = (bool)(arg1)->ConnectFD(arg2,arg3,(CString const &)*arg4,arg5,arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_Csock_ConnectFD__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; int arg3 ; CString *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: Csock_ConnectFD(self,iReadFD,iWriteFD,sName,bIsSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectFD" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectFD" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Csock_ConnectFD" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->ConnectFD(arg2,arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_Csock_ConnectFD__SWIG_2) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; int arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: Csock_ConnectFD(self,iReadFD,iWriteFD,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_ConnectFD" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectFD" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectFD" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->ConnectFD(arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_Csock_ConnectFD) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_ConnectFD__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_ConnectFD__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_ConnectFD__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_ConnectFD'"); XSRETURN(0); } XS(_wrap_Csock_SetParentSockName) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetParentSockName(self,sParentName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetParentSockName" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetParentSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetParentSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetParentSockName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_GetParentSockName) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetParentSockName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetParentSockName" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetParentSockName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetRate) { { Csock *arg1 = (Csock *) 0 ; uint32_t arg2 ; uint64_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_SetRate(self,iBytes,iMilliseconds);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetRate" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetRate" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_SetRate" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = static_cast< uint64_t >(val3); (arg1)->SetRate(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetRateBytes) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint32_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetRateBytes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRateBytes" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRateBytes(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetRateTime) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetRateTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetRateTime" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetRateTime(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Connected) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_Connected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Connected" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Connected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Disconnected) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_Disconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Disconnected" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Disconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_Timeout) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_Timeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Timeout" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->Timeout(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ReadData) { { Csock *arg1 = (Csock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_ReadData(self,data,len);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReadData" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ReadData" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ReadData" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->ReadData((char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_Csock_ReadLine) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_ReadLine(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReadLine" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_EnableReadLine) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_EnableReadLine(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_EnableReadLine" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->EnableReadLine(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_DisableReadLine) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_DisableReadLine(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_DisableReadLine" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->DisableReadLine(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_HasReadLine) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_HasReadLine(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_HasReadLine" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->HasReadLine(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ReachedMaxBuffer) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ReachedMaxBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReachedMaxBuffer" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ReachedMaxBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SockError) { { Csock *arg1 = (Csock *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_SockError(self,iErrno,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SockError" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_Csock_ConnectionFrom) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_ConnectionFrom(self,sHost,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectionFrom" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_ConnectionFrom" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_Listening) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_Listening(self,sBindIP,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_Listening" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_Listening" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_Listening" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Csock_Listening" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); (arg1)->Listening((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_ConnectionRefused) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ConnectionRefused(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConnectionRefused" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ConnectionRefused(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_ReadPaused) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_ReadPaused(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ReadPaused" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->ReadPaused(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; time_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_GetTimeSinceLastDataTransaction(self,iNow);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "2"" of type '" "time_t""'"); } else { arg2 = *(reinterpret_cast< time_t * >(argp2)); } } result = ((Csock const *)arg1)->GetTimeSinceLastDataTransaction(arg2); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetTimeSinceLastDataTransaction(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetTimeSinceLastDataTransaction" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetTimeSinceLastDataTransaction(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetTimeSinceLastDataTransaction) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetTimeSinceLastDataTransaction__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_GetTimeSinceLastDataTransaction'"); XSRETURN(0); } XS(_wrap_Csock_GetLastCheckTimeout) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetLastCheckTimeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetLastCheckTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetLastCheckTimeout(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetNextCheckTimeout__SWIG_0) { { Csock *arg1 = (Csock *) 0 ; time_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_GetNextCheckTimeout(self,iNow);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetNextCheckTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetNextCheckTimeout" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetNextCheckTimeout" "', argument " "2"" of type '" "time_t""'"); } else { arg2 = *(reinterpret_cast< time_t * >(argp2)); } } result = ((Csock const *)arg1)->GetNextCheckTimeout(arg2); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetNextCheckTimeout__SWIG_1) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetNextCheckTimeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetNextCheckTimeout" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = ((Csock const *)arg1)->GetNextCheckTimeout(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetNextCheckTimeout) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetNextCheckTimeout__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_Csock_GetNextCheckTimeout__SWIG_0); return; } } croak("No matching function for overloaded 'Csock_GetNextCheckTimeout'"); XSRETURN(0); } XS(_wrap_Csock_GetPending) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetPending(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetPending" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetPending(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetConState) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; Csock::ECONState result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetConState(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetConState" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (Csock::ECONState)((Csock const *)arg1)->GetConState(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetConState) { { Csock *arg1 = (Csock *) 0 ; Csock::ECONState arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetConState(self,eState);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetConState" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetConState" "', argument " "2"" of type '" "Csock::ECONState""'"); } arg2 = static_cast< Csock::ECONState >(val2); (arg1)->SetConState(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_CreateSocksFD) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_CreateSocksFD(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CreateSocksFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->CreateSocksFD(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_CloseSocksFD) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_CloseSocksFD(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_CloseSocksFD" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); (arg1)->CloseSocksFD(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetBindHost) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetBindHost" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (CString *) &((Csock const *)arg1)->GetBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetBindHost) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetBindHost(self,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetBindHost" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_DNSLookup) { { Csock *arg1 = (Csock *) 0 ; Csock::EDNSLType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_DNSLookup(self,eDNSLType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_DNSLookup" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_DNSLookup" "', argument " "2"" of type '" "Csock::EDNSLType""'"); } arg2 = static_cast< Csock::EDNSLType >(val2); result = (int)(arg1)->DNSLookup(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetupVHost) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_SetupVHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetupVHost" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)(arg1)->SetupVHost(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetIPv6) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetIPv6(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetIPv6" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (bool)((Csock const *)arg1)->GetIPv6(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetIPv6) { { Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetIPv6(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetIPv6" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetIPv6" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIPv6(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetAFRequire) { { Csock *arg1 = (Csock *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetAFRequire(self,iAFRequire);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetAFRequire" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_AllowWrite) { { Csock *arg1 = (Csock *) 0 ; uint64_t *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_AllowWrite(self,iNOW);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_AllowWrite" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_uint64_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_AllowWrite" "', argument " "2"" of type '" "uint64_t &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_AllowWrite" "', argument " "2"" of type '" "uint64_t &""'"); } arg2 = reinterpret_cast< uint64_t * >(argp2); result = (bool)((Csock const *)arg1)->AllowWrite(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_SetSkipConnect) { { Csock *arg1 = (Csock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: Csock_SetSkipConnect(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_SetSkipConnect" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Csock_SetSkipConnect" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetSkipConnect(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetAddrInfo) { { Csock *arg1 = (Csock *) 0 ; CString *arg2 = 0 ; CSSockAddr *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: Csock_GetAddrInfo(self,sHostname,csSockAddr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetAddrInfo" "', argument " "1"" of type '" "Csock *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_GetAddrInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAddrInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CSSockAddr, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_GetAddrInfo" "', argument " "3"" of type '" "CSSockAddr &""'"); } arg3 = reinterpret_cast< CSSockAddr * >(argp3); result = (int)(arg1)->GetAddrInfo((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_Csock_ConvertAddress) { { Csock *arg1 = (Csock *) 0 ; sockaddr_storage *arg2 = (sockaddr_storage *) 0 ; socklen_t arg3 ; CString *arg4 = 0 ; uint16_t *arg5 = (uint16_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: Csock_ConvertAddress(self,pAddr,iAddrLen,sIP,piPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_ConvertAddress" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_sockaddr_storage, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Csock_ConvertAddress" "', argument " "2"" of type '" "sockaddr_storage const *""'"); } arg2 = reinterpret_cast< sockaddr_storage * >(argp2); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_socklen_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Csock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } else { arg3 = *(reinterpret_cast< socklen_t * >(argp3)); } } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Csock_ConvertAddress" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Csock_ConvertAddress" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_uint16_t, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Csock_ConvertAddress" "', argument " "5"" of type '" "uint16_t *""'"); } arg5 = reinterpret_cast< uint16_t * >(argp5); result = (int)((Csock const *)arg1)->ConvertAddress((sockaddr_storage const *)arg2,arg3,*arg4,arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_Csock_GetMaxConns) { { Csock *arg1 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: Csock_GetMaxConns(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Csock_GetMaxConns" "', argument " "1"" of type '" "Csock const *""'"); } arg1 = reinterpret_cast< Csock * >(argp1); result = (int)((Csock const *)arg1)->GetMaxConns(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSConnection__SWIG_0) { { CString *arg1 = 0 ; uint16_t arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; CSConnection *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CSConnection(sHostname,iPort,iTimeout);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSConnection" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (CSConnection *)new CSConnection((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSConnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CSConnection__SWIG_1) { { CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int argvi = 0; CSConnection *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CSConnection(sHostname,iPort);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (CSConnection *)new CSConnection((CString const &)*arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSConnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CSConnection) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSConnection__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSConnection__SWIG_0); return; } } croak("No matching function for overloaded 'new_CSConnection'"); XSRETURN(0); } XS(_wrap_delete_CSConnection) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSConnection(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSConnection" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetHostname) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetHostname(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetHostname" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CString *) &((CSConnection const *)arg1)->GetHostname(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetSockName) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetSockName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetSockName" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CString *) &((CSConnection const *)arg1)->GetSockName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetBindHost) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetBindHost" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CString *) &((CSConnection const *)arg1)->GetBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetPort) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint16_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetPort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetPort" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = ((CSConnection const *)arg1)->GetPort(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetTimeout) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetTimeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetTimeout" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (int)((CSConnection const *)arg1)->GetTimeout(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetIsSSL) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetIsSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetIsSSL" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (bool)((CSConnection const *)arg1)->GetIsSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_GetAFRequire) { { CSConnection *arg1 = (CSConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSSockAddr::EAFRequire result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSConnection_GetAFRequire(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_GetAFRequire" "', argument " "1"" of type '" "CSConnection const *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); result = (CSSockAddr::EAFRequire)((CSConnection const *)arg1)->GetAFRequire(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_SetHostname) { { CSConnection *arg1 = (CSConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetHostname(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetHostname" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetHostname" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetHostname" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHostname((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSConnection_SetSockName) { { CSConnection *arg1 = (CSConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetSockName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetSockName" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSockName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSConnection_SetBindHost) { { CSConnection *arg1 = (CSConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetBindHost(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetBindHost" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSConnection_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSConnection_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSConnection_SetPort) { { CSConnection *arg1 = (CSConnection *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetPort(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetPort" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SetPort(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_SetTimeout) { { CSConnection *arg1 = (CSConnection *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetTimeout(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetTimeout" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetTimeout" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetTimeout(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_SetIsSSL) { { CSConnection *arg1 = (CSConnection *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetIsSSL(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetIsSSL" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetIsSSL" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsSSL(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSConnection_SetAFRequire) { { CSConnection *arg1 = (CSConnection *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSConnection_SetAFRequire(self,iAFRequire);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSConnection_SetAFRequire" "', argument " "1"" of type '" "CSConnection *""'"); } arg1 = reinterpret_cast< CSConnection * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSConnection_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSSSLConnection__SWIG_0) { { CString *arg1 = 0 ; uint16_t arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; CSSSLConnection *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CSSSLConnection(sHostname,iPort,iTimeout);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSSSLConnection" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (CSSSLConnection *)new CSSSLConnection((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSSSLConnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CSSSLConnection__SWIG_1) { { CString *arg1 = 0 ; uint16_t arg2 ; int res1 = SWIG_OLDOBJ ; long val2 ; int ecode2 = 0 ; int argvi = 0; CSSSLConnection *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CSSSLConnection(sHostname,iPort);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSSSLConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CSSSLConnection" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (CSSSLConnection *)new CSSSLConnection((CString const &)*arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSSSLConnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CSSSLConnection) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSSSLConnection__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSSSLConnection__SWIG_0); return; } } croak("No matching function for overloaded 'new_CSSSLConnection'"); XSRETURN(0); } XS(_wrap_delete_CSSSLConnection) { { CSSSLConnection *arg1 = (CSSSLConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSSSLConnection(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSSSLConnection, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSSSLConnection" "', argument " "1"" of type '" "CSSSLConnection *""'"); } arg1 = reinterpret_cast< CSSSLConnection * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSListener__SWIG_0) { { uint16_t arg1 ; CString *arg2 = 0 ; bool arg3 ; long val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CSListener *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CSListener(iPort,sBindHost,bDetach);"); } ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } arg1 = static_cast< uint16_t >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSListener" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (CSListener *)new CSListener(arg1,(CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSListener, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CSListener__SWIG_1) { { uint16_t arg1 ; CString *arg2 = 0 ; long val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CSListener *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CSListener(iPort,sBindHost);"); } ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } arg1 = static_cast< uint16_t >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSListener" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CSListener *)new CSListener(arg1,(CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSListener, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CSListener__SWIG_2) { { uint16_t arg1 ; long val1 ; int ecode1 = 0 ; int argvi = 0; CSListener *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CSListener(iPort);"); } ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CSListener" "', argument " "1"" of type '" "uint16_t""'"); } arg1 = static_cast< uint16_t >(val1); result = (CSListener *)new CSListener(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSListener, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSListener) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSListener__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSListener__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSListener__SWIG_0); return; } } croak("No matching function for overloaded 'new_CSListener'"); XSRETURN(0); } XS(_wrap_delete_CSListener) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSListener(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSListener" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_SetDetach) { { CSListener *arg1 = (CSListener *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetDetach(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetDetach" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetDetach" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDetach(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetDetach) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetDetach(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetDetach" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (bool)((CSListener const *)arg1)->GetDetach(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetPort) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint16_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetPort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetPort" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = ((CSListener const *)arg1)->GetPort(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetSockName) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetSockName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetSockName" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (CString *) &((CSListener const *)arg1)->GetSockName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetBindHost) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetBindHost" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (CString *) &((CSListener const *)arg1)->GetBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetIsSSL) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetIsSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetIsSSL" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (bool)((CSListener const *)arg1)->GetIsSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetMaxConns) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetMaxConns(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetMaxConns" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (int)((CSListener const *)arg1)->GetMaxConns(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetTimeout) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint32_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetTimeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetTimeout" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = ((CSListener const *)arg1)->GetTimeout(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_GetAFRequire) { { CSListener *arg1 = (CSListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSSockAddr::EAFRequire result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSListener_GetAFRequire(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_GetAFRequire" "', argument " "1"" of type '" "CSListener const *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); result = (CSSockAddr::EAFRequire)((CSListener const *)arg1)->GetAFRequire(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_SetPort) { { CSListener *arg1 = (CSListener *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetPort(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetPort" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); (arg1)->SetPort(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_SetSockName) { { CSListener *arg1 = (CSListener *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetSockName(self,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetSockName" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetSockName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSockName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSListener_SetBindHost) { { CSListener *arg1 = (CSListener *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetBindHost(self,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetBindHost" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSListener_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSListener_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSListener_SetIsSSL) { { CSListener *arg1 = (CSListener *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetIsSSL(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetIsSSL" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetIsSSL" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsSSL(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_SetMaxConns) { { CSListener *arg1 = (CSListener *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetMaxConns(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetMaxConns" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetMaxConns" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->SetMaxConns(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_SetTimeout) { { CSListener *arg1 = (CSListener *) 0 ; uint32_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetTimeout(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetTimeout" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetTimeout" "', argument " "2"" of type '" "uint32_t""'"); } arg2 = static_cast< uint32_t >(val2); (arg1)->SetTimeout(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSListener_SetAFRequire) { { CSListener *arg1 = (CSListener *) 0 ; CSSockAddr::EAFRequire arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSListener_SetAFRequire(self,iAFRequire);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSListener_SetAFRequire" "', argument " "1"" of type '" "CSListener *""'"); } arg1 = reinterpret_cast< CSListener * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSListener_SetAFRequire" "', argument " "2"" of type '" "CSSockAddr::EAFRequire""'"); } arg2 = static_cast< CSSockAddr::EAFRequire >(val2); (arg1)->SetAFRequire(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSocketManager) { { int argvi = 0; CSocketManager *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CSocketManager();"); } result = (CSocketManager *)new CSocketManager(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocketManager, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CSocketManager) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSocketManager(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSocketManager" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_clear) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_clear" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Cleanup) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_Cleanup(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Cleanup" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); (arg1)->Cleanup(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetSockObj__SWIG_0) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocketManager_GetSockObj(self,sHostname,uPort,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetSockObj" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocketManager_GetSockObj" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetSockObj__SWIG_1) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_GetSockObj(self,sHostname,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetSockObj" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetSockObj) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_GetSockObj__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_GetSockObj__SWIG_0); return; } } croak("No matching function for overloaded 'CSocketManager_GetSockObj'"); XSRETURN(0); } XS(_wrap_CSocketManager_Connect__SWIG_0) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CSConnection *arg2 = 0 ; Csock *arg3 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_Connect(self,cCon,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Connect" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CSConnection, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } arg2 = reinterpret_cast< CSConnection * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_Connect" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); (arg1)->Connect((CSConnection const &)*arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Connect__SWIG_1) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CSConnection *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_Connect(self,cCon);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Connect" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CSConnection, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Connect" "', argument " "2"" of type '" "CSConnection const &""'"); } arg2 = reinterpret_cast< CSConnection * >(argp2); (arg1)->Connect((CSConnection const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Connect) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CSConnection, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CSConnection, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_Connect__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_Connect__SWIG_0); return; } } croak("No matching function for overloaded 'CSocketManager_Connect'"); XSRETURN(0); } XS(_wrap_CSocketManager_Listen__SWIG_0) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CSListener *arg2 = 0 ; Csock *arg3 = (Csock *) 0 ; uint16_t *arg4 = (uint16_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocketManager_Listen(self,cListen,pcSock,piRandPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Listen" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CSListener, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } arg2 = reinterpret_cast< CSListener * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_Listen" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_uint16_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocketManager_Listen" "', argument " "4"" of type '" "uint16_t *""'"); } arg4 = reinterpret_cast< uint16_t * >(argp4); result = (bool)(arg1)->Listen((CSListener const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Listen__SWIG_1) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CSListener *arg2 = 0 ; Csock *arg3 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_Listen(self,cListen,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Listen" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CSListener, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } arg2 = reinterpret_cast< CSListener * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_Listen" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); result = (bool)(arg1)->Listen((CSListener const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Listen__SWIG_2) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CSListener *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_Listen(self,cListen);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Listen" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CSListener, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_Listen" "', argument " "2"" of type '" "CSListener const &""'"); } arg2 = reinterpret_cast< CSListener * >(argp2); result = (bool)(arg1)->Listen((CSListener const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Listen) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CSListener, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CSListener, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CSListener, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_Csock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_uint16_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_Listen__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_Listen__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_Listen__SWIG_0); return; } } croak("No matching function for overloaded 'CSocketManager_Listen'"); XSRETURN(0); } XS(_wrap_CSocketManager_HasFDs) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_HasFDs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_HasFDs" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (bool)((CSocketManager const *)arg1)->HasFDs(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_Loop) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_Loop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_Loop" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); (arg1)->Loop(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_DynamicSelectLoop__SWIG_0) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; uint64_t arg3 ; time_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocketManager_DynamicSelectLoop(self,iLowerBounds,iUpperBounds,iMaxResolution);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = static_cast< uint64_t >(val3); { res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "4"" of type '" "time_t""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "4"" of type '" "time_t""'"); } else { arg4 = *(reinterpret_cast< time_t * >(argp4)); } } (arg1)->DynamicSelectLoop(arg2,arg3,arg4); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_DynamicSelectLoop__SWIG_1) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; uint64_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; long val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_DynamicSelectLoop(self,iLowerBounds,iUpperBounds);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_DynamicSelectLoop" "', argument " "3"" of type '" "uint64_t""'"); } arg3 = static_cast< uint64_t >(val3); (arg1)->DynamicSelectLoop(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_DynamicSelectLoop) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocketManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_DynamicSelectLoop__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocketManager_DynamicSelectLoop__SWIG_0); return; } } croak("No matching function for overloaded 'CSocketManager_DynamicSelectLoop'"); XSRETURN(0); } XS(_wrap_CSocketManager_AddSock) { { CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_AddSock(self,pcSock,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_AddSock" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_AddSock" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_AddSock" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_AddSock" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddSock(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSockByRemotePort) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_FindSockByRemotePort(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FindSockByRemotePort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (Csock *)(arg1)->FindSockByRemotePort(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSockByLocalPort) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_FindSockByLocalPort(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FindSockByLocalPort" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (Csock *)(arg1)->FindSockByLocalPort(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSockByName) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_FindSockByName(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByName" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSockByName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSockByName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (Csock *)(arg1)->FindSockByName((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSockByFD) { { CSocketManager *arg1 = (CSocketManager *) 0 ; cs_sock_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_FindSockByFD(self,iFD);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSockByFD" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FindSockByFD" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); result = (Csock *)(arg1)->FindSockByFD(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSocksByName) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; SwigValueWrapper< std::vector< Csock * > > result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_FindSocksByName(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSocksByName" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSocksByName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSocksByName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->FindSocksByName((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj((new std::vector< Csock * >(static_cast< const std::vector< Csock * >& >(result))), SWIGTYPE_p_std__vectorT_Csock_p_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocketManager_FindSocksByRemoteHost) { { CSocketManager *arg1 = (CSocketManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; SwigValueWrapper< std::vector< Csock * > > result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_FindSocksByRemoteHost(self,sHostname);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FindSocksByRemoteHost" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_FindSocksByRemoteHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FindSocksByRemoteHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->FindSocksByRemoteHost((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj((new std::vector< Csock * >(static_cast< const std::vector< Csock * >& >(result))), SWIGTYPE_p_std__vectorT_Csock_p_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetErrno) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_GetErrno(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetErrno" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = (int)((CSocketManager const *)arg1)->GetErrno(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetSelectTimeout) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_GetSelectTimeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetSelectTimeout" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = ((CSocketManager const *)arg1)->GetSelectTimeout(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_SetSelectTimeout) { { CSocketManager *arg1 = (CSocketManager *) 0 ; uint64_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_SetSelectTimeout(self,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_SetSelectTimeout" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_SetSelectTimeout" "', argument " "2"" of type '" "uint64_t""'"); } arg2 = static_cast< uint64_t >(val2); (arg1)->SetSelectTimeout(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_DelSockByAddr) { { CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_DelSockByAddr(self,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DelSockByAddr" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_DelSockByAddr" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); (arg1)->DelSockByAddr(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_DelSock) { { CSocketManager *arg1 = (CSocketManager *) 0 ; size_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocketManager_DelSock(self,iPos);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_DelSock" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_DelSock" "', argument " "2"" of type '" "size_t""'"); } arg2 = static_cast< size_t >(val2); (arg1)->DelSock(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_SwapSockByIdx) { { CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_SwapSockByIdx(self,pNewSock,iOrginalSockIdx);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_SwapSockByIdx" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_SwapSockByIdx" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocketManager_SwapSockByIdx" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->SwapSockByIdx(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_SwapSockByAddr) { { CSocketManager *arg1 = (CSocketManager *) 0 ; Csock *arg2 = (Csock *) 0 ; Csock *arg3 = (Csock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocketManager_SwapSockByAddr(self,pNewSock,pOrigSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_SwapSockByAddr" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocketManager_SwapSockByAddr" "', argument " "2"" of type '" "Csock *""'"); } arg2 = reinterpret_cast< Csock * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_Csock, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_SwapSockByAddr" "', argument " "3"" of type '" "Csock *""'"); } arg3 = reinterpret_cast< Csock * >(argp3); result = (bool)(arg1)->SwapSockByAddr(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetBytesRead) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_GetBytesRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetBytesRead" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = ((CSocketManager const *)arg1)->GetBytesRead(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_GetBytesWritten) { { CSocketManager *arg1 = (CSocketManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uint64_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocketManager_GetBytesWritten(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_GetBytesWritten" "', argument " "1"" of type '" "CSocketManager const *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); result = ((CSocketManager const *)arg1)->GetBytesWritten(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_FDSetCheck) { { CSocketManager *arg1 = (CSocketManager *) 0 ; cs_sock_t arg2 ; std::map< cs_sock_t,short > *arg3 = 0 ; CSocketManager::ECheckType arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocketManager_FDSetCheck(self,iFd,miiReadyFds,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FDSetCheck" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FDSetCheck" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_FDSetCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDSetCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short > &""'"); } arg3 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocketManager_FDSetCheck" "', argument " "4"" of type '" "CSocketManager::ECheckType""'"); } arg4 = static_cast< CSocketManager::ECheckType >(val4); (arg1)->FDSetCheck(arg2,*arg3,arg4); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocketManager_FDHasCheck) { { CSocketManager *arg1 = (CSocketManager *) 0 ; cs_sock_t arg2 ; std::map< cs_sock_t,short > *arg3 = 0 ; CSocketManager::ECheckType arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocketManager_FDHasCheck(self,iFd,miiReadyFds,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocketManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocketManager_FDHasCheck" "', argument " "1"" of type '" "CSocketManager *""'"); } arg1 = reinterpret_cast< CSocketManager * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocketManager_FDHasCheck" "', argument " "2"" of type '" "cs_sock_t""'"); } arg2 = static_cast< cs_sock_t >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__mapT_int_short_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocketManager_FDHasCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocketManager_FDHasCheck" "', argument " "3"" of type '" "std::map< cs_sock_t,short > &""'"); } arg3 = reinterpret_cast< std::map< cs_sock_t,short > * >(argp3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocketManager_FDHasCheck" "', argument " "4"" of type '" "CSocketManager::ECheckType""'"); } arg4 = static_cast< CSocketManager::ECheckType >(val4); result = (bool)(arg1)->FDHasCheck(arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_ZNCSocketManager) { { int argvi = 0; TSocketManager< CZNCSock > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_ZNCSocketManager();"); } result = (TSocketManager< CZNCSock > *)new TSocketManager< CZNCSock >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_TSocketManagerT_CZNCSock_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_ZNCSocketManager) { { TSocketManager< CZNCSock > *arg1 = (TSocketManager< CZNCSock > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_ZNCSocketManager(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_TSocketManagerT_CZNCSock_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ZNCSocketManager" "', argument " "1"" of type '" "TSocketManager< CZNCSock > *""'"); } arg1 = reinterpret_cast< TSocketManager< CZNCSock > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_ZNCSocketManager_GetSockObj__SWIG_0) { { TSocketManager< CZNCSock > *arg1 = (TSocketManager< CZNCSock > *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; CZNCSock *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: ZNCSocketManager_GetSockObj(self,sHostname,uPort,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "1"" of type '" "TSocketManager< CZNCSock > *""'"); } arg1 = reinterpret_cast< TSocketManager< CZNCSock > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (CZNCSock *)(arg1)->GetSockObj((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_ZNCSocketManager_GetSockObj__SWIG_1) { { TSocketManager< CZNCSock > *arg1 = (TSocketManager< CZNCSock > *) 0 ; CString *arg2 = 0 ; uint16_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; long val3 ; int ecode3 = 0 ; int argvi = 0; CZNCSock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: ZNCSocketManager_GetSockObj(self,sHostname,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "1"" of type '" "TSocketManager< CZNCSock > *""'"); } arg1 = reinterpret_cast< TSocketManager< CZNCSock > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZNCSocketManager_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZNCSocketManager_GetSockObj" "', argument " "3"" of type '" "uint16_t""'"); } arg3 = static_cast< uint16_t >(val3); result = (CZNCSock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_ZNCSocketManager_GetSockObj) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_TSocketManagerT_CZNCSock_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_ZNCSocketManager_GetSockObj__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_ZNCSocketManager_GetSockObj__SWIG_0); return; } } croak("No matching function for overloaded 'ZNCSocketManager_GetSockObj'"); XSRETURN(0); } XS(_wrap_new_CZNCSock__SWIG_0) { { int arg1 ; int val1 ; int ecode1 = 0 ; int argvi = 0; CZNCSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CZNCSock(timeout);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CZNCSock" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); result = (CZNCSock *)new CZNCSock(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CZNCSock__SWIG_1) { { int argvi = 0; CZNCSock *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CZNCSock();"); } result = (CZNCSock *)new CZNCSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CZNCSock__SWIG_2) { { CString *arg1 = 0 ; unsigned short arg2 ; int arg3 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; CZNCSock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CZNCSock(sHost,port,timeout);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CZNCSock" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CZNCSock" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (CZNCSock *)new CZNCSock((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CZNCSock__SWIG_3) { { CString *arg1 = 0 ; unsigned short arg2 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int argvi = 0; CZNCSock *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CZNCSock(sHost,port);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CZNCSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CZNCSock" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); result = (CZNCSock *)new CZNCSock((CString const &)*arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CZNCSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CZNCSock__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CZNCSock__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CZNCSock__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CZNCSock__SWIG_2); return; } } croak("No matching function for overloaded 'new_CZNCSock'"); XSRETURN(0); } XS(_wrap_delete_CZNCSock) { { CZNCSock *arg1 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CZNCSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZNCSock" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNCSock_ConvertAddress) { { CZNCSock *arg1 = (CZNCSock *) 0 ; sockaddr_storage *arg2 = (sockaddr_storage *) 0 ; socklen_t arg3 ; CString *arg4 = 0 ; unsigned short *arg5 = (unsigned short *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CZNCSock_ConvertAddress(self,pAddr,iAddrLen,sIP,piPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_ConvertAddress" "', argument " "1"" of type '" "CZNCSock const *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_sockaddr_storage, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_ConvertAddress" "', argument " "2"" of type '" "sockaddr_storage const *""'"); } arg2 = reinterpret_cast< sockaddr_storage * >(argp2); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_socklen_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNCSock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_ConvertAddress" "', argument " "3"" of type '" "socklen_t""'"); } else { arg3 = *(reinterpret_cast< socklen_t * >(argp3)); } } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNCSock_ConvertAddress" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_ConvertAddress" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_unsigned_short, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CZNCSock_ConvertAddress" "', argument " "5"" of type '" "unsigned short *""'"); } arg5 = reinterpret_cast< unsigned short * >(argp5); result = (int)((CZNCSock const *)arg1)->ConvertAddress((sockaddr_storage const *)arg2,arg3,*arg4,arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNCSock_SetHostToVerifySSL) { { CZNCSock *arg1 = (CZNCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNCSock_SetHostToVerifySSL(self,sHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_SetHostToVerifySSL" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_SetHostToVerifySSL" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_SetHostToVerifySSL" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHostToVerifySSL((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNCSock_GetSSLPeerFingerprint) { { CZNCSock *arg1 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNCSock_GetSSLPeerFingerprint(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_GetSSLPeerFingerprint" "', argument " "1"" of type '" "CZNCSock const *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); result = ((CZNCSock const *)arg1)->GetSSLPeerFingerprint(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNCSock_SetSSLTrustedPeerFingerprints) { { CZNCSock *arg1 = (CZNCSock *) 0 ; SCString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNCSock_SetSSLTrustedPeerFingerprints(self,ssFPs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_SetSSLTrustedPeerFingerprints" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_SCString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_SetSSLTrustedPeerFingerprints" "', argument " "2"" of type '" "SCString const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_SetSSLTrustedPeerFingerprints" "', argument " "2"" of type '" "SCString const &""'"); } arg2 = reinterpret_cast< SCString * >(argp2); (arg1)->SetSSLTrustedPeerFingerprints((SCString const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNCSock_SetEncoding) { { CZNCSock *arg1 = (CZNCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNCSock_SetEncoding(self,CString const &);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_SetEncoding" "', argument " "1"" of type '" "CZNCSock *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCSock_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCSock_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetEncoding((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNCSock_GetRemoteIP) { { CZNCSock *arg1 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNCSock_GetRemoteIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCSock_GetRemoteIP" "', argument " "1"" of type '" "CZNCSock const *""'"); } arg1 = reinterpret_cast< CZNCSock * >(argp1); result = ((CZNCSock const *)arg1)->GetRemoteIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSockManager) { { int argvi = 0; CSockManager *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CSockManager();"); } result = (CSockManager *)new CSockManager(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CSockManager) { { CSockManager *arg1 = (CSockManager *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSockManager(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSockManager" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost__SWIG_0) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; CZNCSock *arg7 = (CZNCSock *) 0 ; unsigned int arg8 ; EAddrType arg9 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; unsigned int val8 ; int ecode8 = 0 ; int val9 ; int ecode9 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 9) || (items > 9)) { SWIG_croak("Usage: CSockManager_ListenHost(self,iPort,sSockName,sBindHost,bSSL,iMaxConns,pcSock,iTimeout,eAddr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_ListenHost" "', argument " "7"" of type '" "CZNCSock *""'"); } arg7 = reinterpret_cast< CZNCSock * >(argp7); ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenHost" "', argument " "8"" of type '" "unsigned int""'"); } arg8 = static_cast< unsigned int >(val8); ecode9 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(8), &val9); if (!SWIG_IsOK(ecode9)) { SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "CSockManager_ListenHost" "', argument " "9"" of type '" "EAddrType""'"); } arg9 = static_cast< EAddrType >(val9); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7,arg8,arg9); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost__SWIG_1) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; CZNCSock *arg7 = (CZNCSock *) 0 ; unsigned int arg8 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; unsigned int val8 ; int ecode8 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 8) || (items > 8)) { SWIG_croak("Usage: CSockManager_ListenHost(self,iPort,sSockName,sBindHost,bSSL,iMaxConns,pcSock,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_ListenHost" "', argument " "7"" of type '" "CZNCSock *""'"); } arg7 = reinterpret_cast< CZNCSock * >(argp7); ecode8 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenHost" "', argument " "8"" of type '" "unsigned int""'"); } arg8 = static_cast< unsigned int >(val8); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7,arg8); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost__SWIG_2) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; CZNCSock *arg7 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CSockManager_ListenHost(self,iPort,sSockName,sBindHost,bSSL,iMaxConns,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); res7 = SWIG_ConvertPtr(ST(6), &argp7,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_ListenHost" "', argument " "7"" of type '" "CZNCSock *""'"); } arg7 = reinterpret_cast< CZNCSock * >(argp7); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost__SWIG_3) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; int arg6 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CSockManager_ListenHost(self,iPort,sSockName,sBindHost,bSSL,iMaxConns);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenHost" "', argument " "6"" of type '" "int""'"); } arg6 = static_cast< int >(val6); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost__SWIG_4) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSockManager_ListenHost(self,iPort,sSockName,sBindHost,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenHost" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost__SWIG_5) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSockManager_ListenHost(self,iPort,sSockName,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenHost" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenHost" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenHost" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->ListenHost(arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenHost) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 7) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(6), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 8) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(6), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 9) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(6), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(8), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenHost__SWIG_5); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenHost__SWIG_4); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenHost__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenHost__SWIG_2); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenHost__SWIG_1); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenHost__SWIG_0); return; } } croak("No matching function for overloaded 'CSockManager_ListenHost'"); XSRETURN(0); } XS(_wrap_CSockManager_ListenAll__SWIG_0) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; EAddrType arg8 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 8) || (items > 8)) { SWIG_croak("Usage: CSockManager_ListenAll(self,iPort,sSockName,bSSL,iMaxConns,pcSock,iTimeout,eAddr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenAll" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenAll" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); ecode8 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenAll" "', argument " "8"" of type '" "EAddrType""'"); } arg8 = static_cast< EAddrType >(val8); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7,arg8); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAll__SWIG_1) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CSockManager_ListenAll(self,iPort,sSockName,bSSL,iMaxConns,pcSock,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenAll" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenAll" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAll__SWIG_2) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CSockManager_ListenAll(self,iPort,sSockName,bSSL,iMaxConns,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenAll" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5,arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAll__SWIG_3) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSockManager_ListenAll(self,iPort,sSockName,bSSL,iMaxConns);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenAll" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAll__SWIG_4) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSockManager_ListenAll(self,iPort,sSockName,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAll" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAll__SWIG_5) { { CSockManager *arg1 = (CSockManager *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSockManager_ListenAll(self,iPort,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAll" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSockManager_ListenAll" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAll" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ListenAll(arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAll) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(5), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 7) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(5), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 8) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(5), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAll__SWIG_5); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAll__SWIG_4); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAll__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAll__SWIG_2); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAll__SWIG_1); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAll__SWIG_0); return; } } croak("No matching function for overloaded 'CSockManager_ListenAll'"); XSRETURN(0); } XS(_wrap_CSockManager_ListenRand__SWIG_0) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; EAddrType arg8 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; int val8 ; int ecode8 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 8) || (items > 8)) { SWIG_croak("Usage: CSockManager_ListenRand(self,sSockName,sBindHost,bSSL,iMaxConns,pcSock,iTimeout,eAddr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenRand" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenRand" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); ecode8 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(7), &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "CSockManager_ListenRand" "', argument " "8"" of type '" "EAddrType""'"); } arg8 = static_cast< EAddrType >(val8); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7,arg8); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenRand__SWIG_1) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; unsigned int arg7 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; unsigned int val7 ; int ecode7 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CSockManager_ListenRand(self,sSockName,sBindHost,bSSL,iMaxConns,pcSock,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenRand" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); ecode7 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenRand" "', argument " "7"" of type '" "unsigned int""'"); } arg7 = static_cast< unsigned int >(val7); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenRand__SWIG_2) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; CZNCSock *arg6 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CSockManager_ListenRand(self,sSockName,sBindHost,bSSL,iMaxConns,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CSockManager_ListenRand" "', argument " "6"" of type '" "CZNCSock *""'"); } arg6 = reinterpret_cast< CZNCSock * >(argp6); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenRand__SWIG_3) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSockManager_ListenRand(self,sSockName,sBindHost,bSSL,iMaxConns);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_ListenRand" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenRand__SWIG_4) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSockManager_ListenRand(self,sSockName,sBindHost,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenRand" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenRand__SWIG_5) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSockManager_ListenRand(self,sSockName,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenRand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (unsigned short)(arg1)->ListenRand((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenRand) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(5), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 7) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(5), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 8) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(5), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(7), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenRand__SWIG_5); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenRand__SWIG_4); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenRand__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenRand__SWIG_2); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenRand__SWIG_1); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenRand__SWIG_0); return; } } croak("No matching function for overloaded 'CSockManager_ListenRand'"); XSRETURN(0); } XS(_wrap_CSockManager_ListenAllRand__SWIG_0) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; CZNCSock *arg5 = (CZNCSock *) 0 ; unsigned int arg6 ; EAddrType arg7 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CSockManager_ListenAllRand(self,sSockName,bSSL,iMaxConns,pcSock,iTimeout,eAddr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSockManager_ListenAllRand" "', argument " "5"" of type '" "CZNCSock *""'"); } arg5 = reinterpret_cast< CZNCSock * >(argp5); ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenAllRand" "', argument " "6"" of type '" "unsigned int""'"); } arg6 = static_cast< unsigned int >(val6); ecode7 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CSockManager_ListenAllRand" "', argument " "7"" of type '" "EAddrType""'"); } arg7 = static_cast< EAddrType >(val7); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAllRand__SWIG_1) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; CZNCSock *arg5 = (CZNCSock *) 0 ; unsigned int arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; unsigned int val6 ; int ecode6 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CSockManager_ListenAllRand(self,sSockName,bSSL,iMaxConns,pcSock,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSockManager_ListenAllRand" "', argument " "5"" of type '" "CZNCSock *""'"); } arg5 = reinterpret_cast< CZNCSock * >(argp5); ecode6 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_ListenAllRand" "', argument " "6"" of type '" "unsigned int""'"); } arg6 = static_cast< unsigned int >(val6); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4,arg5,arg6); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAllRand__SWIG_2) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; CZNCSock *arg5 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSockManager_ListenAllRand(self,sSockName,bSSL,iMaxConns,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CSockManager_ListenAllRand" "', argument " "5"" of type '" "CZNCSock *""'"); } arg5 = reinterpret_cast< CZNCSock * >(argp5); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4,arg5); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAllRand__SWIG_3) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSockManager_ListenAllRand(self,sSockName,bSSL,iMaxConns);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSockManager_ListenAllRand" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAllRand__SWIG_4) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSockManager_ListenAllRand(self,sSockName,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_ListenAllRand" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAllRand__SWIG_5) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockManager_ListenAllRand(self,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_ListenAllRand" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_ListenAllRand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned short)(arg1)->ListenAllRand((CString const &)*arg2); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSockManager_ListenAllRand) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 7) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAllRand__SWIG_5); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAllRand__SWIG_4); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAllRand__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAllRand__SWIG_2); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAllRand__SWIG_1); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_ListenAllRand__SWIG_0); return; } } croak("No matching function for overloaded 'CSockManager_ListenAllRand'"); XSRETURN(0); } XS(_wrap_CSockManager_Connect__SWIG_0) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; bool arg6 ; CString *arg7 = 0 ; CZNCSock *arg8 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int res7 = SWIG_OLDOBJ ; void *argp8 = 0 ; int res8 = 0 ; int argvi = 0; dXSARGS; if ((items < 8) || (items > 8)) { SWIG_croak("Usage: CSockManager_Connect(self,sHostname,iPort,sSockName,iTimeout,bSSL,sBindHost,pcSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_Connect" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); { CString *ptr = (CString *)0; res7 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(6), &ptr); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } arg7 = ptr; } res8 = SWIG_ConvertPtr(ST(7), &argp8,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CSockManager_Connect" "', argument " "8"" of type '" "CZNCSock *""'"); } arg8 = reinterpret_cast< CZNCSock * >(argp8); (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5,arg6,(CString const &)*arg7,arg8); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; SWIG_croak_null(); } } XS(_wrap_CSockManager_Connect__SWIG_1) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; bool arg6 ; CString *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int res7 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CSockManager_Connect(self,sHostname,iPort,sSockName,iTimeout,bSSL,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_Connect" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); { CString *ptr = (CString *)0; res7 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(6), &ptr); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "7"" of type '" "CString const &""'"); } arg7 = ptr; } (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5,arg6,(CString const &)*arg7); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res7)) delete arg7; SWIG_croak_null(); } } XS(_wrap_CSockManager_Connect__SWIG_2) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int argvi = 0; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CSockManager_Connect(self,sHostname,iPort,sSockName,iTimeout,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSockManager_Connect" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5,arg6); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_Connect__SWIG_3) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSockManager_Connect(self,sHostname,iPort,sSockName,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSockManager_Connect" "', argument " "5"" of type '" "int""'"); } arg5 = static_cast< int >(val5); (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4,arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_Connect__SWIG_4) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSockManager_Connect(self,sHostname,iPort,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_Connect" "', argument " "1"" of type '" "CSockManager *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSockManager_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_Connect" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->Connect((CString const &)*arg2,arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSockManager_Connect) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 7) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(6), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 8) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSockManager, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(6), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(7), &vptr, SWIGTYPE_p_CZNCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_Connect__SWIG_4); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_Connect__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_Connect__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_Connect__SWIG_1); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSockManager_Connect__SWIG_0); return; } } croak("No matching function for overloaded 'CSockManager_Connect'"); XSRETURN(0); } XS(_wrap_CSockManager_GetAnonConnectionCount) { { CSockManager *arg1 = (CSockManager *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSockManager_GetAnonConnectionCount(self,sIP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSockManager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSockManager_GetAnonConnectionCount" "', argument " "1"" of type '" "CSockManager const *""'"); } arg1 = reinterpret_cast< CSockManager * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSockManager_GetAnonConnectionCount" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSockManager_GetAnonConnectionCount" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned int)((CSockManager const *)arg1)->GetAnonConnectionCount((CString const &)*arg2); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CSocket__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSocket *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CSocket(pModule);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CSocket *)new CSocket(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CSocket__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; CSocket *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CSocket(pModule,sHostname,uPort,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSocket" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CSocket" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); result = (CSocket *)new CSocket(arg1,(CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CSocket__SWIG_2) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; CSocket *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CSocket(pModule,sHostname,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CSocket" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (CSocket *)new CSocket(arg1,(CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CSocket) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSocket__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSocket__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CSocket__SWIG_1); return; } } croak("No matching function for overloaded 'new_CSocket'"); XSRETURN(0); } XS(_wrap_delete_CSocket) { { CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CSocket(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CSocket" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_Connect__SWIG_0_0) { { CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocket_Connect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); result = (bool)(arg1)->Connect(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_Listen__SWIG_0_0) { { CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; bool arg6 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CSocket_Listen(self,iPort,iMaxConns,sBindHost,iTimeout,bDetach);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CSocket_Listen" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5,arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSocket_Listen__SWIG_0_1) { { CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; uint32_t arg5 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; long val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSocket_Listen(self,iPort,iMaxConns,sBindHost,iTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSocket_Listen" "', argument " "5"" of type '" "uint32_t""'"); } arg5 = static_cast< uint32_t >(val5); result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSocket_Listen__SWIG_0_2) { { CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocket_Listen(self,iPort,iMaxConns,sBindHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Listen" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->Listen(arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CSocket_Listen__SWIG_0_3) { { CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocket_Listen(self,iPort,iMaxConns);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->Listen(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_Listen__SWIG_0_4) { { CSocket *arg1 = (CSocket *) 0 ; uint16_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CSocket_Listen(self,iPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "uint16_t""'"); } arg2 = static_cast< uint16_t >(val2); result = (bool)(arg1)->Listen(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_ReachedMaxBuffer) { { CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocket_ReachedMaxBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_ReachedMaxBuffer" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); (arg1)->ReachedMaxBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_SockError) { { CSocket *arg1 = (CSocket *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocket_SockError(self,iErrno,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_SockError" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CSocket_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CSocket_ConnectionFrom) { { CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocket_ConnectionFrom(self,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_ConnectionFrom" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_ConnectionFrom" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocket_Connect__SWIG_1) { { CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; bool arg4 ; unsigned int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CSocket_Connect(self,sHostname,uPort,bSSL,uTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocket_Connect" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CSocket_Connect" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); result = (bool)(arg1)->Connect((CString const &)*arg2,arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocket_Connect__SWIG_2) { { CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocket_Connect(self,sHostname,uPort,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocket_Connect" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->Connect((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocket_Connect__SWIG_3) { { CSocket *arg1 = (CSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocket_Connect(self,sHostname,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Connect" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CSocket_Connect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Connect" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->Connect((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CSocket_Connect) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Connect__SWIG_0_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Connect__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Connect__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Connect__SWIG_1); return; } } croak("No matching function for overloaded 'CSocket_Connect'"); XSRETURN(0); } XS(_wrap_CSocket_Listen__SWIG_1) { { CSocket *arg1 = (CSocket *) 0 ; unsigned short arg2 ; bool arg3 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CSocket_Listen(self,uPort,bSSL,uTimeout);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CSocket_Listen" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->Listen(arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_Listen__SWIG_2) { { CSocket *arg1 = (CSocket *) 0 ; unsigned short arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CSocket_Listen(self,uPort,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_Listen" "', argument " "1"" of type '" "CSocket *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CSocket_Listen" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CSocket_Listen" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->Listen(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CSocket_Listen) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 7; if (_rank == _rankm) goto dispatch; } } check_7: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_0_4); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_0_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_1); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_0_2); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_0_1); return; case 7: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CSocket_Listen__SWIG_0_0); return; } } croak("No matching function for overloaded 'CSocket_Listen'"); XSRETURN(0); } XS(_wrap_CSocket_GetModule) { { CSocket *arg1 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CSocket_GetModule(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CSocket_GetModule" "', argument " "1"" of type '" "CSocket const *""'"); } arg1 = reinterpret_cast< CSocket * >(argp1); result = (CModule *)((CSocket const *)arg1)->GetModule(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CIRCSocket) { { int argvi = 0; CIRCSocket *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CIRCSocket();"); } result = (CIRCSocket *)new CIRCSocket(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSocket, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CIRCSocket) { { CIRCSocket *arg1 = (CIRCSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CIRCSocket(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSocket, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIRCSocket" "', argument " "1"" of type '" "CIRCSocket *""'"); } arg1 = reinterpret_cast< CIRCSocket * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CFile__SWIG_0) { { int argvi = 0; CFile *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CFile();"); } result = (CFile *)new CFile(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CFile, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CFile__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CFile *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CFile(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CFile" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CFile" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CFile *)new CFile((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CFile, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CFile) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CFile__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CFile__SWIG_1); return; } } croak("No matching function for overloaded 'new_CFile'"); XSRETURN(0); } XS(_wrap_delete_CFile) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CFile(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CFile" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_SetFileName) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_SetFileName(self,sLongName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_SetFileName" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_SetFileName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_SetFileName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetFileName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_IsReg__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsReg(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsReg" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsReg((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsReg__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsReg(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsReg((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsDir__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsDir(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsDir" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsDir((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsDir__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsDir(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsDir((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsChr__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsChr(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsChr" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsChr((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsChr__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsChr(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsChr((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsBlk__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsBlk(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsBlk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsBlk((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsBlk__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsBlk(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsBlk((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsFifo__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsFifo(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsFifo" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsFifo((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsFifo__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsFifo(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsFifo((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsLnk__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsLnk(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsLnk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsLnk((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsLnk__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsLnk(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsLnk((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsSock__SWIG_0) { { CString *arg1 = 0 ; bool arg2 ; int res1 = SWIG_OLDOBJ ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsSock(sLongName,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsSock" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)CFile::IsSock((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsSock__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsSock(sLongName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::IsSock((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_IsReg__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsReg(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsReg" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsReg(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsReg__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsReg(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsReg" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsReg(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsReg) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsReg__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsReg__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsReg__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsReg__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsReg'"); XSRETURN(0); } XS(_wrap_CFile_IsDir__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsDir(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsDir" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsDir(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsDir__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsDir(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsDir" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsDir(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsDir) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsDir__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsDir__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsDir__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsDir__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsDir'"); XSRETURN(0); } XS(_wrap_CFile_IsChr__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsChr(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsChr" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsChr(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsChr__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsChr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsChr" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsChr(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsChr) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsChr__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsChr__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsChr__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsChr__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsChr'"); XSRETURN(0); } XS(_wrap_CFile_IsBlk__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsBlk(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsBlk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsBlk(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsBlk__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsBlk(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsBlk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsBlk(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsBlk) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsBlk__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsBlk__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsBlk__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsBlk__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsBlk'"); XSRETURN(0); } XS(_wrap_CFile_IsFifo__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsFifo(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsFifo" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsFifo(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsFifo__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsFifo(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsFifo" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsFifo(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsFifo) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsFifo__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsFifo__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsFifo__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsFifo__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsFifo'"); XSRETURN(0); } XS(_wrap_CFile_IsLnk__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsLnk(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsLnk" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsLnk(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsLnk__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsLnk(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsLnk" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsLnk(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsLnk) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsLnk__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsLnk__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsLnk__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsLnk__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsLnk'"); XSRETURN(0); } XS(_wrap_CFile_IsSock__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_IsSock(self,bUseLstat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_IsSock" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)((CFile const *)arg1)->IsSock(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsSock__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsSock" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsSock(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsSock__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsSock__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsSock__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_IsSock__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_IsSock'"); XSRETURN(0); } XS(_wrap_CFile_FType__SWIG_0) { { CString *arg1 = 0 ; CFile::EFileTypes arg2 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_FType(sFileName,eType,bUseLstat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_FType" "', argument " "2"" of type '" "CFile::EFileTypes""'"); } arg2 = static_cast< CFile::EFileTypes >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_FType" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)CFile::FType((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_FType__SWIG_1) { { CString *arg1 = 0 ; CFile::EFileTypes arg2 ; int res1 = SWIG_OLDOBJ ; int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_FType(sFileName,eType);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_FType" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_FType" "', argument " "2"" of type '" "CFile::EFileTypes""'"); } arg2 = static_cast< CFile::EFileTypes >(val2); result = (bool)CFile::FType((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_FType) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_FType__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_FType__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_FType'"); XSRETURN(0); } XS(_wrap_CFile_Exists__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Exists(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Exists" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->Exists(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetSize__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; off_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetSize(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetSize" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetSize(); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetATime__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetATime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetATime" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetATime(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetMTime__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetMTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetMTime" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetMTime(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetCTime__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetCTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetCTime" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetCTime(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetUID__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; uid_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetUID(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetUID" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetUID(); ST(argvi) = SWIG_NewPointerObj((new uid_t(static_cast< const uid_t& >(result))), SWIGTYPE_p_uid_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetGID__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; gid_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetGID(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetGID" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetGID(); ST(argvi) = SWIG_NewPointerObj((new gid_t(static_cast< const gid_t& >(result))), SWIGTYPE_p_gid_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Exists__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Exists(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Exists" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Exists" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::Exists((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_Exists) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Exists__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Exists__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_Exists'"); XSRETURN(0); } XS(_wrap_CFile_GetSize__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; off_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetSize(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetSize" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetSize" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetSize((CString const &)*arg1); ST(argvi) = SWIG_From_long SWIG_PERL_CALL_ARGS_1(static_cast< long >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetSize) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetSize__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetSize__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_GetSize'"); XSRETURN(0); } XS(_wrap_CFile_GetATime__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetATime(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetATime" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetATime" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetATime((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetATime) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetATime__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetATime__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_GetATime'"); XSRETURN(0); } XS(_wrap_CFile_GetMTime__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetMTime(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetMTime" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetMTime" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetMTime((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetMTime) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetMTime__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetMTime__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_GetMTime'"); XSRETURN(0); } XS(_wrap_CFile_GetCTime__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetCTime(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetCTime" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetCTime" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetCTime((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetCTime) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetCTime__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetCTime__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_GetCTime'"); XSRETURN(0); } XS(_wrap_CFile_GetUID__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; uid_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetUID(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetUID" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetUID" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetUID((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj((new uid_t(static_cast< const uid_t& >(result))), SWIGTYPE_p_uid_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetUID) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetUID__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetUID__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_GetUID'"); XSRETURN(0); } XS(_wrap_CFile_GetGID__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; gid_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetGID(sFile);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetGID" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetGID" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CFile::GetGID((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj((new gid_t(static_cast< const gid_t& >(result))), SWIGTYPE_p_gid_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetGID) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetGID__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_GetGID__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_GetGID'"); XSRETURN(0); } XS(_wrap_CFile_GetInfo) { { CString *arg1 = 0 ; stat *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_GetInfo(sFile,st);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_stat, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_GetInfo" "', argument " "2"" of type '" "stat &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_GetInfo" "', argument " "2"" of type '" "stat &""'"); } arg2 = reinterpret_cast< stat * >(argp2); result = (int)CFile::GetInfo((CString const &)*arg1,*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_Delete__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Delete(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Delete" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Delete(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Move__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Move(self,sNewFileName,bOverwrite);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Move" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->Move((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Move__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Move(self,sNewFileName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Move((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Copy__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Copy(self,sNewFileName,bOverwrite);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Copy" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->Copy((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Copy__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Copy(self,sNewFileName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Copy((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Delete__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Delete(sFileName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Delete" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Delete" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CFile::Delete((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_Delete) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Delete__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Delete__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_Delete'"); XSRETURN(0); } XS(_wrap_CFile_Move__SWIG_2) { { CString *arg1 = 0 ; CString *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Move(sOldFileName,sNewFileName,bOverwrite);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Move" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)CFile::Move((CString const &)*arg1,(CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Move__SWIG_3) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Move(sOldFileName,sNewFileName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Move" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)CFile::Move((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Move) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Move__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Move__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Move__SWIG_0); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Move__SWIG_2); return; } } croak("No matching function for overloaded 'CFile_Move'"); XSRETURN(0); } XS(_wrap_CFile_Copy__SWIG_2) { { CString *arg1 = 0 ; CString *arg2 = 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Copy(sOldFileName,sNewFileName,bOverwrite);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Copy" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)CFile::Copy((CString const &)*arg1,(CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Copy__SWIG_3) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Copy(sOldFileName,sNewFileName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Copy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)CFile::Copy((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Copy) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Copy__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Copy__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Copy__SWIG_0); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Copy__SWIG_2); return; } } croak("No matching function for overloaded 'CFile_Copy'"); XSRETURN(0); } XS(_wrap_CFile_Chmod__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Chmod(self,mode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Chmod" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } else { arg2 = *(reinterpret_cast< mode_t * >(argp2)); } } result = (bool)(arg1)->Chmod(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Chmod__SWIG_1) { { CString *arg1 = 0 ; mode_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Chmod(sFile,mode);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Chmod" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Chmod" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Chmod" "', argument " "2"" of type '" "mode_t""'"); } else { arg2 = *(reinterpret_cast< mode_t * >(argp2)); } } result = (bool)CFile::Chmod((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_Chmod) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Chmod__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Chmod__SWIG_1); return; } } croak("No matching function for overloaded 'CFile_Chmod'"); XSRETURN(0); } XS(_wrap_CFile_Seek) { { CFile *arg1 = (CFile *) 0 ; off_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Seek(self,uPos);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Seek" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_Seek" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); result = (bool)(arg1)->Seek(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Truncate) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Truncate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Truncate" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Truncate(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Sync) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Sync(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Sync" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Sync(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Open__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; int arg3 ; mode_t arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CFile_Open(self,sFileName,iFlags,iMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Open" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); { res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CFile_Open" "', argument " "4"" of type '" "mode_t""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "4"" of type '" "mode_t""'"); } else { arg4 = *(reinterpret_cast< mode_t * >(argp4)); } } result = (bool)(arg1)->Open((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Open__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Open(self,sFileName,iFlags);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Open" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->Open((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Open__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Open(self,sFileName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Open((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Open__SWIG_3) { { CFile *arg1 = (CFile *) 0 ; int arg2 ; mode_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Open(self,iFlags,iMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_Open" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CFile_Open" "', argument " "3"" of type '" "mode_t""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Open" "', argument " "3"" of type '" "mode_t""'"); } else { arg3 = *(reinterpret_cast< mode_t * >(argp3)); } } result = (bool)(arg1)->Open(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Open__SWIG_4) { { CFile *arg1 = (CFile *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Open(self,iFlags);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CFile_Open" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (bool)(arg1)->Open(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Open__SWIG_5) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Open(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Open" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->Open(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_Open) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Open__SWIG_5); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Open__SWIG_4); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Open__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Open__SWIG_3); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Open__SWIG_1); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Open__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_Open'"); XSRETURN(0); } XS(_wrap_CFile_Read) { { CFile *arg1 = (CFile *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; ssize_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Read(self,pszBuffer,iBytes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Read" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Read" "', argument " "2"" of type '" "char *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Read" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (arg1)->Read(arg2,arg3); ST(argvi) = SWIG_NewPointerObj((new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_CFile_ReadLine__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_ReadLine(self,sData,sDelimiter);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadLine" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_ReadLine" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_ReadLine" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CFile_ReadLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_ReadLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ReadLine(*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CFile_ReadLine__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_ReadLine(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadLine" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_ReadLine" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_ReadLine" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->ReadLine(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_ReadLine) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_ReadLine__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_ReadLine__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_ReadLine'"); XSRETURN(0); } XS(_wrap_CFile_ReadFile__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_ReadFile(self,sData,iMaxSize);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadFile" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_ReadFile" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_ReadFile" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_ReadFile" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (bool)(arg1)->ReadFile(*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_ReadFile__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_ReadFile(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ReadFile" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_ReadFile" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_ReadFile" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->ReadFile(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_ReadFile) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_ReadFile__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_ReadFile__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_ReadFile'"); XSRETURN(0); } XS(_wrap_CFile_Write__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; ssize_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_Write(self,pszBuffer,iBytes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Write" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Write" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_Write" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); result = (arg1)->Write((char const *)arg2,arg3); ST(argvi) = SWIG_NewPointerObj((new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0); argvi++ ; if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_CFile_Write__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; ssize_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_Write(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Write" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_Write" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_Write" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->Write((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj((new ssize_t(static_cast< const ssize_t& >(result))), SWIGTYPE_p_ssize_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_Write) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsCharPtrAndSize(ST(1), 0, NULL, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Write__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_Write__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_Write'"); XSRETURN(0); } XS(_wrap_CFile_Close) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_Close(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_Close" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); (arg1)->Close(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_ClearBuffer) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_ClearBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ClearBuffer" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); (arg1)->ClearBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_TryExLock__SWIG_0) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CFile_TryExLock(self,sLockFile,iFlags);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_TryExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CFile_TryExLock" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); result = (bool)(arg1)->TryExLock((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_TryExLock__SWIG_1) { { CFile *arg1 = (CFile *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFile_TryExLock(self,sLockFile);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_TryExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_TryExLock" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->TryExLock((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CFile_TryExLock__SWIG_2) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_TryExLock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_TryExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->TryExLock(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_TryExLock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CFile, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_TryExLock__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_TryExLock__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CFile_TryExLock__SWIG_0); return; } } croak("No matching function for overloaded 'CFile_TryExLock'"); XSRETURN(0); } XS(_wrap_CFile_ExLock) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_ExLock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ExLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->ExLock(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_UnLock) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_UnLock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_UnLock" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)(arg1)->UnLock(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_IsOpen) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_IsOpen(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_IsOpen" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->IsOpen(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetLongName) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetLongName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetLongName" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetLongName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetShortName) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetShortName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetShortName" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetShortName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_GetDir) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_GetDir(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_GetDir" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = ((CFile const *)arg1)->GetDir(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_HadError) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_HadError(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_HadError" "', argument " "1"" of type '" "CFile const *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); result = (bool)((CFile const *)arg1)->HadError(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_ResetError) { { CFile *arg1 = (CFile *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_ResetError(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_ResetError" "', argument " "1"" of type '" "CFile *""'"); } arg1 = reinterpret_cast< CFile * >(argp1); (arg1)->ResetError(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFile_InitHomePath) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CFile_InitHomePath(sFallback);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFile_InitHomePath" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CFile_InitHomePath" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } CFile::InitHomePath((CString const &)*arg1); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CFile_GetHomePath) { { int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CFile_GetHomePath();"); } result = (CString *) &CFile::GetHomePath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CDir__SWIG_0) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CDir *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CDir(sDir);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CDir *)new CDir((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDir, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CDir__SWIG_1) { { int argvi = 0; CDir *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CDir();"); } result = (CDir *)new CDir(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDir, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CDir) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CDir__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CDir__SWIG_0); return; } } croak("No matching function for overloaded 'new_CDir'"); XSRETURN(0); } XS(_wrap_delete_CDir) { { CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CDir(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CDir" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDir_CleanUp) { { CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDir_CleanUp(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_CleanUp" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); (arg1)->CleanUp(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDir_Fill) { { CDir *arg1 = (CDir *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_Fill(self,sDir);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Fill" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Fill" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Fill" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->Fill((CString const &)*arg2); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CDir_FillByWildcard) { { CDir *arg1 = (CDir *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CDir_FillByWildcard(self,sDir,sWildcard);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_FillByWildcard" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_FillByWildcard" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_FillByWildcard" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_FillByWildcard" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_FillByWildcard" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->FillByWildcard((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CDir_Chmod__SWIG_0) { { mode_t arg1 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CDir_Chmod(mode,sWildcard,sDir);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } else { arg1 = *(reinterpret_cast< mode_t * >(argp1)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_Chmod" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (unsigned int)CDir::Chmod(arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CDir_Chmod__SWIG_1) { { mode_t arg1 ; CString *arg2 = 0 ; void *argp1 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_Chmod(mode,sWildcard);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "1"" of type '" "mode_t""'"); } else { arg1 = *(reinterpret_cast< mode_t * >(argp1)); } } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned int)CDir::Chmod(arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CDir_Chmod__SWIG_2) { { CDir *arg1 = (CDir *) 0 ; mode_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_Chmod(self,mode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Chmod" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Chmod" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Chmod" "', argument " "2"" of type '" "mode_t""'"); } else { arg2 = *(reinterpret_cast< mode_t * >(argp2)); } } result = (unsigned int)(arg1)->Chmod(arg2); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDir_Chmod) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CDir, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_Chmod__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_Chmod__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_Chmod__SWIG_0); return; } } croak("No matching function for overloaded 'CDir_Chmod'"); XSRETURN(0); } XS(_wrap_CDir_Delete__SWIG_0) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_Delete(sWildcard,sDir);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_Delete" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Delete" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (unsigned int)CDir::Delete((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CDir_Delete__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDir_Delete(sWildcard);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_Delete" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (unsigned int)CDir::Delete((CString const &)*arg1); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CDir_Delete__SWIG_2) { { CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDir_Delete(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_Delete" "', argument " "1"" of type '" "CDir *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (unsigned int)(arg1)->Delete(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDir_Delete) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CDir, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_Delete__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_Delete__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_Delete__SWIG_0); return; } } croak("No matching function for overloaded 'CDir_Delete'"); XSRETURN(0); } XS(_wrap_CDir_GetSortAttr) { { CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CFile::EFileAttr result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDir_GetSortAttr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_GetSortAttr" "', argument " "1"" of type '" "CDir const *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (CFile::EFileAttr)((CDir const *)arg1)->GetSortAttr(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDir_IsDescending) { { CDir *arg1 = (CDir *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDir_IsDescending(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDir, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_IsDescending" "', argument " "1"" of type '" "CDir const *""'"); } arg1 = reinterpret_cast< CDir * >(argp1); result = (bool)((CDir const *)arg1)->IsDescending(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDir_CheckPathPrefix__SWIG_0) { { CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CDir_CheckPathPrefix(sPath,sAdd,sHomeDir);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_CheckPathPrefix" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = CDir::CheckPathPrefix((CString const &)*arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CDir_CheckPathPrefix__SWIG_1) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_CheckPathPrefix(sPath,sAdd);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_CheckPathPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CDir::CheckPathPrefix((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CDir_CheckPathPrefix) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_CheckPathPrefix__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_CheckPathPrefix__SWIG_0); return; } } croak("No matching function for overloaded 'CDir_CheckPathPrefix'"); XSRETURN(0); } XS(_wrap_CDir_ChangeDir__SWIG_0) { { CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CDir_ChangeDir(sPath,sAdd,sHomeDir);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CDir_ChangeDir" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = CDir::ChangeDir((CString const &)*arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CDir_ChangeDir__SWIG_1) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_ChangeDir(sPath,sAdd);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_ChangeDir" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CDir::ChangeDir((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CDir_ChangeDir) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_ChangeDir__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_ChangeDir__SWIG_0); return; } } croak("No matching function for overloaded 'CDir_ChangeDir'"); XSRETURN(0); } XS(_wrap_CDir_MakeDir__SWIG_0) { { CString *arg1 = 0 ; mode_t arg2 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CDir_MakeDir(sPath,iMode);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_mode_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CDir_MakeDir" "', argument " "2"" of type '" "mode_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_MakeDir" "', argument " "2"" of type '" "mode_t""'"); } else { arg2 = *(reinterpret_cast< mode_t * >(argp2)); } } result = (bool)CDir::MakeDir((CString const &)*arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CDir_MakeDir__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDir_MakeDir(sPath);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CDir_MakeDir" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CDir::MakeDir((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CDir_MakeDir) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_mode_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_MakeDir__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CDir_MakeDir__SWIG_0); return; } } croak("No matching function for overloaded 'CDir_MakeDir'"); XSRETURN(0); } XS(_wrap_CDir_GetCWD) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CDir_GetCWD();"); } result = CDir::GetCWD(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTimer) { { CModule *arg1 = (CModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; CTimer *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: new_CTimer(pModule,uInterval,uCycles,sLabel,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CTimer *)new CTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTimer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_delete_CTimer) { { CTimer *arg1 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CTimer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTimer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTimer" "', argument " "1"" of type '" "CTimer *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTimer_SetModule) { { CTimer *arg1 = (CTimer *) 0 ; CModule *arg2 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTimer_SetModule(self,p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_SetModule" "', argument " "1"" of type '" "CTimer *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTimer_SetModule" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); (arg1)->SetModule(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTimer_SetDescription) { { CTimer *arg1 = (CTimer *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTimer_SetDescription(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_SetDescription" "', argument " "1"" of type '" "CTimer *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTimer_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTimer_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDescription((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTimer_GetModule) { { CTimer *arg1 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTimer_GetModule(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_GetModule" "', argument " "1"" of type '" "CTimer const *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); result = (CModule *)((CTimer const *)arg1)->GetModule(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTimer_GetDescription) { { CTimer *arg1 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTimer_GetDescription(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTimer_GetDescription" "', argument " "1"" of type '" "CTimer const *""'"); } arg1 = reinterpret_cast< CTimer * >(argp1); result = (CString *) &((CTimer const *)arg1)->GetDescription(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CFPTimer) { { CModule *arg1 = (CModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; CFPTimer *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: new_CFPTimer(pModule,uInterval,uCycles,sLabel,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CFPTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CFPTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CFPTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CFPTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CFPTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CFPTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CFPTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CFPTimer *)new CFPTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CFPTimer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_delete_CFPTimer) { { CFPTimer *arg1 = (CFPTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CFPTimer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFPTimer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CFPTimer" "', argument " "1"" of type '" "CFPTimer *""'"); } arg1 = reinterpret_cast< CFPTimer * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CFPTimer_SetFPCallback) { { CFPTimer *arg1 = (CFPTimer *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CFPTimer_SetFPCallback(self,p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CFPTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CFPTimer_SetFPCallback" "', argument " "1"" of type '" "CFPTimer *""'"); } arg1 = reinterpret_cast< CFPTimer * >(argp1); { int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CFPTimer_SetFPCallback" "', argument " "2"" of type '" "FPTimer_t""'"); } } (arg1)->SetFPCallback(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CModInfo__SWIG_0) { { int argvi = 0; CModInfo *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CModInfo();"); } result = (CModInfo *)new CModInfo(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModInfo, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CModInfo__SWIG_1) { { CString *arg1 = 0 ; CString *arg2 = 0 ; CModInfo::EModuleType arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int argvi = 0; CModInfo *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CModInfo(sName,sPath,eType);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModInfo" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModInfo" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CModInfo" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); result = (CModInfo *)new CModInfo((CString const &)*arg1,(CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModInfo, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CModInfo) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModInfo__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModInfo__SWIG_1); return; } } croak("No matching function for overloaded 'new_CModInfo'"); XSRETURN(0); } XS(_wrap_delete_CModInfo) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CModInfo(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModInfo" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo___lt__) { { CModInfo *arg1 = (CModInfo *) 0 ; CModInfo *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo___lt__(self,Info);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo___lt__" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo___lt__" "', argument " "2"" of type '" "CModInfo const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo___lt__" "', argument " "2"" of type '" "CModInfo const &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); result = (bool)((CModInfo const *)arg1)->operator <((CModInfo const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_SupportsType) { { CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SupportsType(self,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SupportsType" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_SupportsType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); result = (bool)((CModInfo const *)arg1)->SupportsType(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_AddType) { { CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_AddType(self,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_AddType" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_AddType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); (arg1)->AddType(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_ModuleTypeToString) { { CModInfo::EModuleType arg1 ; int val1 ; int ecode1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_ModuleTypeToString(eType);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CModInfo_ModuleTypeToString" "', argument " "1"" of type '" "CModInfo::EModuleType""'"); } arg1 = static_cast< CModInfo::EModuleType >(val1); result = CModInfo::ModuleTypeToString(arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetName) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetName" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetPath) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetPath" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetDescription) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetDescription(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetDescription" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetDescription(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetWikiPage) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetWikiPage(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetWikiPage" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetWikiPage(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetArgsHelpText) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetArgsHelpText(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetArgsHelpText" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CString *) &((CModInfo const *)arg1)->GetArgsHelpText(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetHasArgs) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetHasArgs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetHasArgs" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (bool)((CModInfo const *)arg1)->GetHasArgs(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetLoader) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModInfo::ModLoader result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetLoader(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetLoader" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CModInfo::ModLoader)((CModInfo const *)arg1)->GetLoader(); ST(argvi) = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_GetDefaultType) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModInfo::EModuleType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_GetDefaultType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_GetDefaultType" "', argument " "1"" of type '" "CModInfo const *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); result = (CModInfo::EModuleType)((CModInfo const *)arg1)->GetDefaultType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_SetName) { { CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetName" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModInfo_SetPath) { { CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetPath(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetPath" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetPath((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModInfo_SetDescription) { { CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetDescription(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetDescription" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDescription((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModInfo_SetWikiPage) { { CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetWikiPage(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetWikiPage" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetWikiPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetWikiPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetWikiPage((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModInfo_SetArgsHelpText) { { CModInfo *arg1 = (CModInfo *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetArgsHelpText(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetArgsHelpText" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModInfo_SetArgsHelpText" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModInfo_SetArgsHelpText" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetArgsHelpText((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModInfo_SetHasArgs__SWIG_0) { { CModInfo *arg1 = (CModInfo *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetHasArgs(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetHasArgs" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_SetHasArgs" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetHasArgs(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_SetHasArgs__SWIG_1) { { CModInfo *arg1 = (CModInfo *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModInfo_SetHasArgs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetHasArgs" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); (arg1)->SetHasArgs(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_SetHasArgs) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModInfo, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModInfo, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModInfo_SetHasArgs__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModInfo_SetHasArgs__SWIG_0); return; } } croak("No matching function for overloaded 'CModInfo_SetHasArgs'"); XSRETURN(0); } XS(_wrap_CModInfo_SetLoader) { { CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::ModLoader arg2 = (CModInfo::ModLoader) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetLoader(self,fLoader);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetLoader" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModInfo_SetLoader" "', argument " "2"" of type '" "CModInfo::ModLoader""'"); } } (arg1)->SetLoader(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModInfo_SetDefaultType) { { CModInfo *arg1 = (CModInfo *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModInfo_SetDefaultType(self,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModInfo, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModInfo_SetDefaultType" "', argument " "1"" of type '" "CModInfo *""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModInfo_SetDefaultType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); (arg1)->SetDefaultType(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CModCommand__SWIG_0) { { int argvi = 0; CModCommand *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CModCommand();"); } result = (CModCommand *)new CModCommand(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CModCommand__SWIG_1) { { CString *arg1 = 0 ; CModule *arg2 = (CModule *) 0 ; CModCommand::ModCmdFunc arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; CModCommand *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: new_CModCommand(sCmd,pMod,func,sArgs,sDesc);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModCommand" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); { int res = SWIG_ConvertMember(ST(2), SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CModCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CModCommand" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CModCommand *)new CModCommand((CString const &)*arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_new_CModCommand__SWIG_2) { { CString *arg1 = 0 ; SwigValueWrapper< std::function< void (CString const &) > > arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; CModCommand *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CModCommand(sCmd,func,sArgs,sDesc);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModCommand" "', argument " "2"" of type '" "CModCommand::CmdFunc""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "2"" of type '" "CModCommand::CmdFunc""'"); } else { arg2 = *(reinterpret_cast< CModCommand::CmdFunc * >(argp2)); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CModCommand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (CModCommand *)new CModCommand((CString const &)*arg1,arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_new_CModCommand__SWIG_3) { { CModCommand *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CModCommand *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CModCommand(other);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CModCommand, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModCommand" "', argument " "1"" of type '" "CModCommand const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModCommand" "', argument " "1"" of type '" "CModCommand const &""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CModCommand *)new CModCommand((CModCommand const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CModCommand) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModCommand, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModCommand__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModCommand__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModCommand__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CModCommand__SWIG_1); return; } } croak("No matching function for overloaded 'new_CModCommand'"); XSRETURN(0); } XS(_wrap_CModCommand_InitHelp) { { CTable *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModCommand_InitHelp(Table);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CTable, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_InitHelp" "', argument " "1"" of type '" "CTable &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_InitHelp" "', argument " "1"" of type '" "CTable &""'"); } arg1 = reinterpret_cast< CTable * >(argp1); CModCommand::InitHelp(*arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_AddHelp) { { CModCommand *arg1 = (CModCommand *) 0 ; CTable *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModCommand_AddHelp(self,Table);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_AddHelp" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModCommand_AddHelp" "', argument " "2"" of type '" "CTable &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_AddHelp" "', argument " "2"" of type '" "CTable &""'"); } arg2 = reinterpret_cast< CTable * >(argp2); ((CModCommand const *)arg1)->AddHelp(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_GetCommand) { { CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModCommand_GetCommand(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetCommand" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CString *) &((CModCommand const *)arg1)->GetCommand(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_GetFunction) { { CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::function< void (CString const &) > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModCommand_GetFunction(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetFunction" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = ((CModCommand const *)arg1)->GetFunction(); ST(argvi) = SWIG_NewPointerObj((new CModCommand::CmdFunc(static_cast< const CModCommand::CmdFunc& >(result))), SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_GetArgs) { { CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModCommand_GetArgs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetArgs" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CString *) &((CModCommand const *)arg1)->GetArgs(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_GetDescription) { { CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModCommand_GetDescription(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_GetDescription" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); result = (CString *) &((CModCommand const *)arg1)->GetDescription(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModCommand_Call) { { CModCommand *arg1 = (CModCommand *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModCommand_Call(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModCommand_Call" "', argument " "1"" of type '" "CModCommand const *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModCommand_Call" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModCommand_Call" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ((CModCommand const *)arg1)->Call((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_delete_CModCommand) { { CModCommand *arg1 = (CModCommand *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CModCommand(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModCommand, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModCommand" "', argument " "1"" of type '" "CModCommand *""'"); } arg1 = reinterpret_cast< CModCommand * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CModule) { { ModHandle arg1 = (ModHandle) 0 ; CUser *arg2 = (CUser *) 0 ; CIRCNetwork *arg3 = (CIRCNetwork *) 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; int res1 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: new_CModule(pDLL,pUser,pNetwork,sModName,sDataDir);"); } res1 = SWIG_ConvertPtr(ST(0),SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CModule" "', argument " "1"" of type '" "ModHandle""'"); } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CModule" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CModule" "', argument " "3"" of type '" "CIRCNetwork *""'"); } arg3 = reinterpret_cast< CIRCNetwork * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CModule" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModule" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CModule" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CModule" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (CModule *)new CModule(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_delete_CModule) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CModule(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_SetUser) { { CModule *arg1 = (CModule *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetUser(self,pUser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->SetUser(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_SetNetwork) { { CModule *arg1 = (CModule *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetNetwork(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetNetwork" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_SetClient) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetClient(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetClient" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetClient" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->SetClient(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_Unload) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_Unload(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_Unload" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->Unload(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnLoad) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnLoad(self,sArgsi,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnLoad" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnLoad" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnLoad" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnLoad" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnLoad" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnLoad((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnBoot) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnBoot(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnBoot" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->OnBoot(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_WebRequiresLogin) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_WebRequiresLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_WebRequiresLogin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->WebRequiresLogin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_WebRequiresAdmin) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_WebRequiresAdmin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_WebRequiresAdmin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->WebRequiresAdmin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetWebMenuTitle) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetWebMenuTitle(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetWebMenuTitle" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->GetWebMenuTitle(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetWebPath) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetWebPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetWebPath" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->GetWebPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetWebFilesPath) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetWebFilesPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetWebFilesPath" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->GetWebFilesPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnWebPreRequest) { { CModule *arg1 = (CModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnWebPreRequest(self,WebSock,sPageName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnWebPreRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnWebPreRequest(*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnWebRequest) { { CModule *arg1 = (CModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnWebRequest(self,WebSock,sPageName,Tmpl);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnWebRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnWebRequest(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_AddSubPage) { { CModule *arg1 = (CModule *) 0 ; SwigValueWrapper< std::shared_ptr< CWebSubPage > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_AddSubPage(self,spSubPage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddSubPage" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddSubPage" "', argument " "2"" of type '" "TWebSubPage""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddSubPage" "', argument " "2"" of type '" "TWebSubPage""'"); } else { arg2 = *(reinterpret_cast< TWebSubPage * >(argp2)); } } (arg1)->AddSubPage(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ClearSubPages) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_ClearSubPages(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ClearSubPages" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->ClearSubPages(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetSubPages) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; VWebSubPages *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetSubPages(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetSubPages" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (VWebSubPages *) &(arg1)->GetSubPages(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnEmbeddedWebRequest) { { CModule *arg1 = (CModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnEmbeddedWebRequest(self,WebSock,sPageName,Tmpl);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnEmbeddedWebRequest(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnPreRehash) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnPreRehash(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPreRehash" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnPreRehash(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPostRehash) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnPostRehash(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPostRehash" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnPostRehash(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnIRCDisconnected) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnIRCDisconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCDisconnected" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnIRCDisconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnIRCConnected) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnIRCConnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCConnected" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnIRCConnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnIRCConnecting) { { CModule *arg1 = (CModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnIRCConnecting(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCConnecting" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnIRCConnecting" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (CModule::EModRet)(arg1)->OnIRCConnecting(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnIRCConnectionError) { { CModule *arg1 = (CModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnIRCConnectionError(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCConnectionError" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnIRCConnectionError" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); (arg1)->OnIRCConnectionError(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnIRCRegistration) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnIRCRegistration(self,sPass,sNick,sIdent,sRealName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnIRCRegistration" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnIRCRegistration" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnIRCRegistration" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnIRCRegistration" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnIRCRegistration" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnIRCRegistration" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnIRCRegistration" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnIRCRegistration" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnIRCRegistration" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (CModule::EModRet)(arg1)->OnIRCRegistration(*arg2,*arg3,*arg4,*arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnBroadcast) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnBroadcast(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnBroadcast" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnBroadcast" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnBroadcast" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnBroadcast(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanPermission2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModule_OnChanPermission2(self,pOpNick,Nick,Channel,uMode,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanPermission2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanPermission2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnChanPermission2" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnChanPermission2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnChanPermission2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnChanPermission2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanPermission) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModule_OnChanPermission(self,OpNick,Nick,Channel,uMode,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanPermission" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnChanPermission" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnChanPermission" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnChanPermission" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnChanPermission((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnOp2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnOp2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnOp2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnOp2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnOp2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnOp2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnOp) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnOp(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnOp" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnOp" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnOp" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnOp" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnOp((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnDeop2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnDeop2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeop2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeop2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDeop2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDeop2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnDeop) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnDeop(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeop" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDeop" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDeop((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnVoice2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnVoice2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnVoice2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnVoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnVoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnVoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnVoice) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnVoice(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnVoice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnVoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnVoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnDevoice2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnDevoice2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDevoice2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDevoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDevoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDevoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnDevoice) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnDevoice(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDevoice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_OnDevoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDevoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnMode2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModule_OnMode2(self,pOpNick,Channel,uMode,sArg,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnMode2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnMode2" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnMode2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnMode2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnMode2((CNick const *)arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModule_OnMode) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModule_OnMode(self,OpNick,Channel,uMode,sArg,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnMode" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnMode" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModule_OnMode" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModule_OnMode" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnMode((CNick const &)*arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModule_OnRawMode2) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnRawMode2(self,pOpNick,Channel,sModes,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnRawMode2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnRawMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnRawMode2((CNick const *)arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModule_OnRawMode) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnRawMode(self,OpNick,Channel,sModes,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnRawMode" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnRawMode((CNick const &)*arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModule_OnRaw) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnRaw(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnRaw" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnRaw" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnRaw" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnRaw(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnStatusCommand) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnStatusCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnStatusCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnStatusCommand" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnStatusCommand" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnStatusCommand(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnModCommand) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnModCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCommand((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnUnknownModCommand) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnUnknownModCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUnknownModCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUnknownModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUnknownModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnUnknownModCommand((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnModNotice) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnModNotice(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModNotice((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnModCTCP) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnModCTCP(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCTCP((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnQuit) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; std::vector< CChan * > temp4 ; std::vector< CChan * > *v4 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnQuit(self,Nick,sMessage,vChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnQuit" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { int res = SWIG_ConvertPtr(ST(3),(void **) &v4, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg4 = v4; } else if (SvROK(ST(3))) { AV *av = (AV *)SvRV(ST(3)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 4 of CModule_OnQuit. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v4)); } else { SWIG_croak("Type error in argument 4 of " "CModule_OnQuit. " "Expected an array of " "CChan"); } } arg4 = &temp4; } else { SWIG_croak("Type error in argument 4 of CModule_OnQuit. " "Expected an array of " "CChan"); } } (arg1)->OnQuit((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan * > const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnNick) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; std::vector< CChan * > temp4 ; std::vector< CChan * > *v4 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnNick(self,Nick,sNewNick,vChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnNick" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { int res = SWIG_ConvertPtr(ST(3),(void **) &v4, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg4 = v4; } else if (SvROK(ST(3))) { AV *av = (AV *)SvRV(ST(3)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 4 of CModule_OnNick. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v4)); } else { SWIG_croak("Type error in argument 4 of " "CModule_OnNick. " "Expected an array of " "CChan"); } } arg4 = &temp4; } else { SWIG_croak("Type error in argument 4 of CModule_OnNick. " "Expected an array of " "CChan"); } } (arg1)->OnNick((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan * > const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnKick) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CChan *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int res5 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnKick(self,OpNick,sKickedNick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnKick" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnKick((CNick const &)*arg2,(CString const &)*arg3,*arg4,(CString const &)*arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModule_OnJoining) { { CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnJoining(self,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnJoining" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnJoining(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnJoin) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnJoin(self,Nick,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnJoin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); (arg1)->OnJoin((CNick const &)*arg2,*arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPart) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnPart(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPart" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->OnPart((CNick const &)*arg2,*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CModule_OnInvite) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnInvite(self,Nick,sChan);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnInvite" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CModule::EModRet)(arg1)->OnInvite((CNick const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnChanBufferStarting) { { CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnChanBufferStarting(self,Chan,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferStarting" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferStarting(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanBufferEnding) { { CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnChanBufferEnding(self,Chan,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferEnding" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferEnding(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanBufferPlayLine2) { { CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; timeval *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 ; int res5 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnChanBufferPlayLine2(self,Chan,Client,sLine,tv);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } arg5 = reinterpret_cast< timeval * >(argp5); result = (CModule::EModRet)(arg1)->OnChanBufferPlayLine2(*arg2,*arg3,*arg4,(timeval const &)*arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanBufferPlayLine) { { CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnChanBufferPlayLine(self,Chan,Client,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanBufferPlayLine" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanBufferPlayLine" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanBufferPlayLine(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPrivBufferPlayLine2) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnPrivBufferPlayLine2(self,Client,sLine,tv);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (CModule::EModRet)(arg1)->OnPrivBufferPlayLine2(*arg2,*arg3,(timeval const &)*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPrivBufferPlayLine) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnPrivBufferPlayLine(self,Client,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivBufferPlayLine" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivBufferPlayLine(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnClientLogin) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnClientLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientLogin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnClientLogin(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnClientDisconnect) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_OnClientDisconnect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientDisconnect" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->OnClientDisconnect(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserRaw) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnUserRaw(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserRaw" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserRaw" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserRaw" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnUserRaw(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserCTCPReply) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserCTCPReply(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserCTCPReply" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserCTCPReply" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserCTCPReply" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserCTCP) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserCTCP(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserCTCP" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserCTCP" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserAction) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserAction(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserAction" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserAction" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserAction" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserAction" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserAction" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserAction(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserMsg) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserMsg(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserMsg" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserMsg" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserMsg" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserMsg(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserNotice) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserNotice(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserNotice" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserNotice" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserNotice(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserJoin) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserJoin(self,sChannel,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserJoin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserJoin" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserJoin" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserJoin" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserJoin" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserJoin(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserPart) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserPart(self,sChannel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserPart" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserPart" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserPart" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserPart" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserPart" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserPart(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserTopic) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUserTopic(self,sChannel,sTopic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserTopic" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserTopic" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserTopic" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUserTopic" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserTopic" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserTopic(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnUserTopicRequest) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnUserTopicRequest(self,sChannel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUserTopicRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUserTopicRequest" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUserTopicRequest" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnUserTopicRequest(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnCTCPReply) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnCTCPReply(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnCTCPReply" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPrivCTCP) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnPrivCTCP(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanCTCP) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnChanCTCP(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanCTCP" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanCTCP(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPrivAction) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnPrivAction(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivAction" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPrivAction" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivAction" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivAction(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanAction) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnChanAction(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanAction" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanAction" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanAction" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanAction(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPrivMsg) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnPrivMsg(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivMsg" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivMsg(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanMsg) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnChanMsg(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanMsg" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanMsg(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnPrivNotice) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnPrivNotice(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnPrivNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivNotice(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnChanNotice) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnChanNotice(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnChanNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanNotice(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnTopic) { { CModule *arg1 = (CModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnTopic(self,Nick,Channel,sTopic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnTopic" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnTopic" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTopic" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnTopic(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnServerCapAvailable) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnServerCapAvailable(self,sCap);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnServerCapAvailable" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnServerCapResult) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnServerCapResult(self,sCap,bSuccess);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnServerCapResult" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModule_OnServerCapResult" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->OnServerCapResult((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_OnTimerAutoJoin) { { CModule *arg1 = (CModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnTimerAutoJoin(self,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnTimerAutoJoin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnTimerAutoJoin(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnAddNetwork) { { CModule *arg1 = (CModule *) 0 ; CIRCNetwork *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnAddNetwork(self,Network,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnAddNetwork" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnAddNetwork" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnAddNetwork" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnAddNetwork(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnDeleteNetwork) { { CModule *arg1 = (CModule *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnDeleteNetwork(self,Network);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeleteNetwork" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteNetwork(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnSendToClient) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnSendToClient(self,sLine,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnSendToClient" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnSendToClient" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnSendToClient" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnSendToClient(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnSendToIRC) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnSendToIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnSendToIRC" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnSendToIRC" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnSendToIRC" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnSendToIRC(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetDLL) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; ModHandle result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetDLL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetDLL" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (ModHandle)(arg1)->GetDLL(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetCoreVersion) { { int argvi = 0; double result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CModule_GetCoreVersion();"); } result = (double)CModule::GetCoreVersion(); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_PutIRC) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_PutIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutIRC" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutIRC((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_PutUser) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_PutUser(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutUser((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_PutStatus) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_PutStatus(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutStatus" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatus((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_PutModule__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_PutModule(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutModule((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_PutModule__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CTable *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_PutModule(self,table);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutModule" "', argument " "2"" of type '" "CTable const &""'"); } arg2 = reinterpret_cast< CTable * >(argp2); result = (unsigned int)(arg1)->PutModule((CTable const &)*arg2); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_PutModule) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_PutModule__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_PutModule__SWIG_0); return; } } croak("No matching function for overloaded 'CModule_PutModule'"); XSRETURN(0); } XS(_wrap_CModule_PutModNotice) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_PutModNotice(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_PutModNotice" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutModNotice((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_GetModName) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetModName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModName" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetModName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetModNick) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetModNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModNick" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->GetModNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetModDataDir) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetModDataDir(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModDataDir" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetModDataDir(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_AddTimer__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CTimer *arg2 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_AddTimer(self,pTimer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "CTimer *""'"); } arg2 = reinterpret_cast< CTimer * >(argp2); result = (bool)(arg1)->AddTimer(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_AddTimer__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; CString *arg3 = 0 ; unsigned int arg4 ; unsigned int arg5 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; int res6 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CModule_AddTimer(self,pFBCallback,sLabel,uInterval,uCycles,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "FPTimer_t""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_AddTimer" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_AddTimer" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); { CString *ptr = (CString *)0; res6 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(5), &ptr); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModule_AddTimer" "', argument " "6"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "6"" of type '" "CString const &""'"); } arg6 = ptr; } result = (bool)(arg1)->AddTimer(arg2,(CString const &)*arg3,arg4,arg5,(CString const &)*arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res6)) delete arg6; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res6)) delete arg6; SWIG_croak_null(); } } XS(_wrap_CModule_AddTimer__SWIG_2) { { CModule *arg1 = (CModule *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; CString *arg3 = 0 ; unsigned int arg4 ; unsigned int arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_AddTimer(self,pFBCallback,sLabel,uInterval,uCycles);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "FPTimer_t""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_AddTimer" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); ecode5 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModule_AddTimer" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = static_cast< unsigned int >(val5); result = (bool)(arg1)->AddTimer(arg2,(CString const &)*arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_AddTimer__SWIG_3) { { CModule *arg1 = (CModule *) 0 ; FPTimer_t arg2 = (FPTimer_t) 0 ; CString *arg3 = 0 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_AddTimer(self,pFBCallback,sLabel,uInterval);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { int res = SWIG_ConvertFunctionPtr(ST(1), (void**)(&arg2), SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddTimer" "', argument " "2"" of type '" "FPTimer_t""'"); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddTimer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_AddTimer" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->AddTimer(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_AddTimer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CTimer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(ST(1), &ptr, SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(ST(1), &ptr, SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 6) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *ptr = 0; int res = SWIG_ConvertFunctionPtr(ST(1), &ptr, SWIGTYPE_p_f_p_CModule_p_CFPTimer__void); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(5), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddTimer__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddTimer__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddTimer__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddTimer__SWIG_1); return; } } croak("No matching function for overloaded 'CModule_AddTimer'"); XSRETURN(0); } XS(_wrap_CModule_RemTimer__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CTimer *arg2 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_RemTimer(self,pTimer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemTimer" "', argument " "2"" of type '" "CTimer *""'"); } arg2 = reinterpret_cast< CTimer * >(argp2); result = (bool)(arg1)->RemTimer(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_RemTimer__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_RemTimer(self,sLabel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemTimer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_RemTimer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemTimer((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_RemTimer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CTimer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_RemTimer__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_RemTimer__SWIG_1); return; } } croak("No matching function for overloaded 'CModule_RemTimer'"); XSRETURN(0); } XS(_wrap_CModule_UnlinkTimer) { { CModule *arg1 = (CModule *) 0 ; CTimer *arg2 = (CTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_UnlinkTimer(self,pTimer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_UnlinkTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_UnlinkTimer" "', argument " "2"" of type '" "CTimer *""'"); } arg2 = reinterpret_cast< CTimer * >(argp2); result = (bool)(arg1)->UnlinkTimer(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_FindTimer) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CTimer *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_FindTimer(self,sLabel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindTimer" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindTimer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindTimer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CTimer *)(arg1)->FindTimer((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTimer, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_BeginTimers) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::set< CTimer * >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_BeginTimers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginTimers" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->BeginTimers(); ST(argvi) = SWIG_NewPointerObj((new std::set< CTimer * >::const_iterator(static_cast< const std::set< CTimer * >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CTimer_p_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_EndTimers) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::set< CTimer * >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_EndTimers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_EndTimers" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->EndTimers(); ST(argvi) = SWIG_NewPointerObj((new std::set< CTimer * >::const_iterator(static_cast< const std::set< CTimer * >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CTimer_p_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ListTimers) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_ListTimers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ListTimers" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->ListTimers(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_AddSocket) { { CModule *arg1 = (CModule *) 0 ; CSocket *arg2 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_AddSocket(self,pSocket);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddSocket" "', argument " "2"" of type '" "CSocket *""'"); } arg2 = reinterpret_cast< CSocket * >(argp2); result = (bool)(arg1)->AddSocket(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_RemSocket__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CSocket *arg2 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_RemSocket(self,pSocket);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemSocket" "', argument " "2"" of type '" "CSocket *""'"); } arg2 = reinterpret_cast< CSocket * >(argp2); result = (bool)(arg1)->RemSocket(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_RemSocket__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_RemSocket(self,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_RemSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemSocket((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_RemSocket) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CSocket, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_RemSocket__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_RemSocket__SWIG_1); return; } } croak("No matching function for overloaded 'CModule_RemSocket'"); XSRETURN(0); } XS(_wrap_CModule_UnlinkSocket) { { CModule *arg1 = (CModule *) 0 ; CSocket *arg2 = (CSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_UnlinkSocket(self,pSocket);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_UnlinkSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CSocket, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_UnlinkSocket" "', argument " "2"" of type '" "CSocket *""'"); } arg2 = reinterpret_cast< CSocket * >(argp2); result = (bool)(arg1)->UnlinkSocket(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_FindSocket) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CSocket *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_FindSocket(self,sSockName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindSocket" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindSocket" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindSocket" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CSocket *)(arg1)->FindSocket((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSocket, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_BeginSockets) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::set< CSocket * >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_BeginSockets(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginSockets" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->BeginSockets(); ST(argvi) = SWIG_NewPointerObj((new std::set< CSocket * >::const_iterator(static_cast< const std::set< CSocket * >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CSocket_p_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_EndSockets) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::set< CSocket * >::const_iterator > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_EndSockets(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_EndSockets" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = ((CModule const *)arg1)->EndSockets(); ST(argvi) = SWIG_NewPointerObj((new std::set< CSocket * >::const_iterator(static_cast< const std::set< CSocket * >::const_iterator& >(result))), SWIGTYPE_p_std__setT_CSocket_p_t__const_iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ListSockets) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_ListSockets(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ListSockets" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->ListSockets(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_AddHelpCommand) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_AddHelpCommand(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddHelpCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->AddHelpCommand(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_AddCommand__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CModCommand *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_AddCommand(self,Command);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CModCommand, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CModCommand const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CModCommand const &""'"); } arg2 = reinterpret_cast< CModCommand * >(argp2); result = (bool)(arg1)->AddCommand((CModCommand const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_AddCommand__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CModCommand::ModCmdFunc arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_AddCommand(self,sCmd,func,sArgs,sDesc);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { int res = SWIG_ConvertMember(ST(2), SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->AddCommand((CString const &)*arg2,arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModule_AddCommand__SWIG_2) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CModCommand::ModCmdFunc arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_AddCommand(self,sCmd,func,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { int res = SWIG_ConvertMember(ST(2), SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->AddCommand((CString const &)*arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CModule_AddCommand__SWIG_3) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CModCommand::ModCmdFunc arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_AddCommand(self,sCmd,func);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { int res = SWIG_ConvertMember(ST(2), SWIG_as_voidptr(&arg3), sizeof(CModCommand::ModCmdFunc),SWIGTYPE_m_CModule__f_r_q_const__CString__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CModCommand::ModCmdFunc""'"); } } result = (bool)(arg1)->AddCommand((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_AddCommand__SWIG_4) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; SwigValueWrapper< std::function< void (CString const &) > > arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp5 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_AddCommand(self,sCmd,sArgs,sDesc,func);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_AddCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "std::function< void (CString const &) >""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_AddCommand" "', argument " "5"" of type '" "std::function< void (CString const &) >""'"); } else { arg5 = *(reinterpret_cast< std::function< void (CString const &) > * >(argp5)); } } result = (bool)(arg1)->AddCommand((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CModule_AddCommand) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CModCommand, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_m_CModule__f_r_q_const__CString__void, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_std__functionT_void_fCString_const_RF_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddCommand__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddCommand__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddCommand__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddCommand__SWIG_1); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_AddCommand__SWIG_4); return; } } croak("No matching function for overloaded 'CModule_AddCommand'"); XSRETURN(0); } XS(_wrap_CModule_RemCommand) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_RemCommand(self,sCmd);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_RemCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_RemCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_RemCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemCommand((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_FindCommand) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CModCommand *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_FindCommand(self,sCmd);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindCommand" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CModCommand *)((CModule const *)arg1)->FindCommand((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModCommand, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_HandleCommand) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_HandleCommand(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_HandleCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_HandleCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_HandleCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->HandleCommand((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_HandleHelpCommand__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_HandleHelpCommand(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_HandleHelpCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_HandleHelpCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_HandleHelpCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->HandleHelpCommand((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_HandleHelpCommand__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_HandleHelpCommand(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_HandleHelpCommand" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); (arg1)->HandleHelpCommand(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_HandleHelpCommand) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_HandleHelpCommand__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_HandleHelpCommand__SWIG_0); return; } } croak("No matching function for overloaded 'CModule_HandleHelpCommand'"); XSRETURN(0); } XS(_wrap_CModule_LoadRegistry) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_LoadRegistry(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_LoadRegistry" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->LoadRegistry(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_SaveRegistry) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_SaveRegistry(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SaveRegistry" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)((CModule const *)arg1)->SaveRegistry(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_MoveRegistry) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_MoveRegistry(self,sPath);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_MoveRegistry" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_MoveRegistry" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_MoveRegistry" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->MoveRegistry((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_SetNV__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_SetNV(self,sName,sValue,bWriteToDisk);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_SetNV" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->SetNV((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_SetNV__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_SetNV(self,sName,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetNV" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SetNV((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_SetNV) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_SetNV__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_SetNV__SWIG_0); return; } } croak("No matching function for overloaded 'CModule_SetNV'"); XSRETURN(0); } XS(_wrap_CModule_GetNV) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_GetNV(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetNV" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_GetNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_GetNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CModule const *)arg1)->GetNV((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_DelNV__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_DelNV(self,sName,bWriteToDisk);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_DelNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModule_DelNV" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->DelNV((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_DelNV__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_DelNV(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_DelNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_DelNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelNV((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_FindNV) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; MCString::iterator result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_FindNV(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_FindNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_FindNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_FindNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->FindNV((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj((new MCString::iterator(static_cast< const MCString::iterator& >(result))), SWIGTYPE_p_MCString__iterator, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_EndNV) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; MCString::iterator result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_EndNV(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_EndNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->EndNV(); ST(argvi) = SWIG_NewPointerObj((new MCString::iterator(static_cast< const MCString::iterator& >(result))), SWIGTYPE_p_MCString__iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_BeginNV) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; MCString::iterator result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_BeginNV(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_BeginNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (arg1)->BeginNV(); ST(argvi) = SWIG_NewPointerObj((new MCString::iterator(static_cast< const MCString::iterator& >(result))), SWIGTYPE_p_MCString__iterator, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_DelNV__SWIG_2) { { CModule *arg1 = (CModule *) 0 ; MCString::iterator arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_DelNV(self,it);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_DelNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_MCString__iterator, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_DelNV" "', argument " "2"" of type '" "MCString::iterator""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_DelNV" "', argument " "2"" of type '" "MCString::iterator""'"); } else { arg2 = *(reinterpret_cast< MCString::iterator * >(argp2)); } } (arg1)->DelNV(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_DelNV) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_MCString__iterator, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_DelNV__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_DelNV__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_DelNV__SWIG_0); return; } } croak("No matching function for overloaded 'CModule_DelNV'"); XSRETURN(0); } XS(_wrap_CModule_ClearNV__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_ClearNV(self,bWriteToDisk);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ClearNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModule_ClearNV" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (bool)(arg1)->ClearNV(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ClearNV__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_ClearNV(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ClearNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (bool)(arg1)->ClearNV(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ClearNV) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_ClearNV__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_ClearNV__SWIG_0); return; } } croak("No matching function for overloaded 'CModule_ClearNV'"); XSRETURN(0); } XS(_wrap_CModule_GetSavePath) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetSavePath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetSavePath" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetSavePath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ExpandString__SWIG_0) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_ExpandString(self,sStr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ExpandString" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CModule const *)arg1)->ExpandString((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_ExpandString__SWIG_1) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_ExpandString(self,sStr,sRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ExpandString" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_ExpandString" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExpandString" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CString *) &((CModule const *)arg1)->ExpandString((CString const &)*arg2,*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, 0 | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_ExpandString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_ExpandString__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModule_ExpandString__SWIG_1); return; } } croak("No matching function for overloaded 'CModule_ExpandString'"); XSRETURN(0); } XS(_wrap_CModule_SetType) { { CModule *arg1 = (CModule *) 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetType(self,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetType" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModule_SetType" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); (arg1)->SetType(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_SetDescription) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetDescription(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetDescription" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetDescription" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDescription((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_SetModPath) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetModPath(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetModPath" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetModPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetModPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetModPath((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_SetArgs) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_SetArgs(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_SetArgs" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_SetArgs" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_SetArgs" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetArgs((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModule_GetType) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModInfo::EModuleType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetType" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CModInfo::EModuleType)((CModule const *)arg1)->GetType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetDescription) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetDescription(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetDescription" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetDescription(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetArgs) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetArgs(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetArgs" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetArgs(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetModPath) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetModPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetModPath" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CString *) &((CModule const *)arg1)->GetModPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetUser) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetUser" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CUser *)((CModule const *)arg1)->GetUser(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetNetwork) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetNetwork(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetNetwork" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CIRCNetwork *)((CModule const *)arg1)->GetNetwork(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetClient) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CClient *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetClient(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetClient" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CClient *)((CModule const *)arg1)->GetClient(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_GetManager) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSockManager *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule_GetManager(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_GetManager" "', argument " "1"" of type '" "CModule const *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CSockManager *)((CModule const *)arg1)->GetManager(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnAddUser) { { CModule *arg1 = (CModule *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnAddUser(self,User,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnAddUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnAddUser" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnAddUser" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnAddUser(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnDeleteUser) { { CModule *arg1 = (CModule *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnDeleteUser(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnDeleteUser" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteUser(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnClientConnect) { { CModule *arg1 = (CModule *) 0 ; CZNCSock *arg2 = (CZNCSock *) 0 ; CString *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned short val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnClientConnect(self,pSock,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientConnect" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnClientConnect" "', argument " "2"" of type '" "CZNCSock *""'"); } arg2 = reinterpret_cast< CZNCSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnClientConnect" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); (arg1)->OnClientConnect(arg2,(CString const &)*arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnLoginAttempt) { { CModule *arg1 = (CModule *) 0 ; SwigValueWrapper< std::shared_ptr< CAuthBase > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_OnLoginAttempt(self,Auth);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnLoginAttempt" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } else { arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); } } result = (CModule::EModRet)(arg1)->OnLoginAttempt(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnFailedLogin) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnFailedLogin(self,sUsername,sRemoteIP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnFailedLogin" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->OnFailedLogin((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnUnknownUserRaw) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnUnknownUserRaw(self,pClient,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnUnknownUserRaw" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnUnknownUserRaw" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnUnknownUserRaw" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnUnknownUserRaw" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUnknownUserRaw(arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnClientCapLs) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; SCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnClientCapLs(self,pClient,ssCaps);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientCapLs" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnClientCapLs" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_SCString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } arg3 = reinterpret_cast< SCString * >(argp3); (arg1)->OnClientCapLs(arg2,*arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_IsClientCapSupported) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_IsClientCapSupported(self,pClient,sCap,bState);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_IsClientCapSupported" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_IsClientCapSupported" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_IsClientCapSupported" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->IsClientCapSupported(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnClientCapRequest) { { CModule *arg1 = (CModule *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnClientCapRequest(self,pClient,sCap,bState);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnClientCapRequest" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnClientCapRequest" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnClientCapRequest" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->OnClientCapRequest(arg2,(CString const &)*arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnModuleLoading) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; bool *arg5 = 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CModule_OnModuleLoading(self,sModName,sArgs,eType,bSuccess,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModuleLoading" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModule_OnModuleLoading" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } arg5 = reinterpret_cast< bool * >(argp5); res6 = SWIG_ConvertPtr(ST(5), &argp6, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModule_OnModuleLoading" "', argument " "6"" of type '" "CString &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleLoading" "', argument " "6"" of type '" "CString &""'"); } arg6 = reinterpret_cast< CString * >(argp6); result = (CModule::EModRet)(arg1)->OnModuleLoading((CString const &)*arg2,(CString const &)*arg3,arg4,*arg5,*arg6); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnModuleUnloading) { { CModule *arg1 = (CModule *) 0 ; CModule *arg2 = (CModule *) 0 ; bool *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModule_OnModuleUnloading(self,pModule,bSuccess,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnModuleUnloading" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnModuleUnloading" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnModuleUnloading" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnModuleUnloading" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnModuleUnloading(arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_OnGetModInfo) { { CModule *arg1 = (CModule *) 0 ; CModInfo *arg2 = 0 ; CString *arg3 = 0 ; bool *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModule_OnGetModInfo(self,ModInfo,sModule,bSuccess,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnGetModInfo" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModule_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModule_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } arg4 = reinterpret_cast< bool * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModule_OnGetModInfo" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetModInfo" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (CModule::EModRet)(arg1)->OnGetModInfo(*arg2,(CString const &)*arg3,*arg4,*arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModule_OnGetAvailableMods) { { CModule *arg1 = (CModule *) 0 ; std::set< CModInfo > *arg2 = 0 ; CModInfo::EModuleType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModule_OnGetAvailableMods(self,ssMods,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_OnGetAvailableMods" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__setT_CModInfo_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo > * >(argp2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModule_OnGetAvailableMods" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); (arg1)->OnGetAvailableMods(*arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule__GetNVKeys) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::list< CString > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModule__GetNVKeys(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule__GetNVKeys" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = CModule__GetNVKeys(arg1); { std::list::const_iterator i; unsigned int j; int len = (&result)->size(); SV **svs = new SV*[len]; for (i=(&result)->begin(), j=0; i!=(&result)->end(); i++, j++) { svs[j] = sv_newmortal(); SwigSvFromString(svs[j], *i); } AV *myav = av_make(len, svs); delete[] svs; ST(argvi) = newRV_noinc((SV*) myav); sv_2mortal(ST(argvi)); argvi++; } XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModule_ExistsNV) { { CModule *arg1 = (CModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModule_ExistsNV(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModule_ExistsNV" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModule_ExistsNV" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModule_ExistsNV" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)CModule_ExistsNV(arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CModules) { { int argvi = 0; CModules *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CModules();"); } result = (CModules *)new CModules(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CModules) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CModules(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CModules" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_SetUser) { { CModules *arg1 = (CModules *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_SetUser(self,pUser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_SetUser" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->SetUser(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_SetNetwork) { { CModules *arg1 = (CModules *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_SetNetwork(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_SetNetwork" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_SetClient) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_SetClient(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_SetClient" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_SetClient" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->SetClient(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetUser) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_GetUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetUser" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CUser *)((CModules const *)arg1)->GetUser(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetNetwork) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_GetNetwork(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetNetwork" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CIRCNetwork *)((CModules const *)arg1)->GetNetwork(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetClient) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CClient *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_GetClient(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetClient" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (CClient *)((CModules const *)arg1)->GetClient(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_UnloadAll) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_UnloadAll(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_UnloadAll" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); (arg1)->UnloadAll(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnBoot) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnBoot(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnBoot" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnBoot(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPreRehash) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnPreRehash(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPreRehash" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnPreRehash(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPostRehash) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnPostRehash(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPostRehash" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnPostRehash(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnIRCDisconnected) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnIRCDisconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCDisconnected" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnIRCDisconnected(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnIRCConnected) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnIRCConnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCConnected" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnIRCConnected(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnIRCConnecting) { { CModules *arg1 = (CModules *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnIRCConnecting(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCConnecting" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnIRCConnecting" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (bool)(arg1)->OnIRCConnecting(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnIRCConnectionError) { { CModules *arg1 = (CModules *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnIRCConnectionError(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCConnectionError" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnIRCConnectionError" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (bool)(arg1)->OnIRCConnectionError(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnIRCRegistration) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnIRCRegistration(self,sPass,sNick,sIdent,sRealName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnIRCRegistration" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnIRCRegistration" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnIRCRegistration" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnIRCRegistration" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnIRCRegistration" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnIRCRegistration" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnIRCRegistration" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnIRCRegistration" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnIRCRegistration" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (bool)(arg1)->OnIRCRegistration(*arg2,*arg3,*arg4,*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnBroadcast) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnBroadcast(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnBroadcast" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnBroadcast" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnBroadcast" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->OnBroadcast(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanPermission2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModules_OnChanPermission2(self,pOpNick,Nick,Channel,uMode,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanPermission2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanPermission2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnChanPermission2" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnChanPermission2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnChanPermission2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnChanPermission2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanPermission) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModules_OnChanPermission(self,OpNick,Nick,Channel,uMode,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanPermission" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanPermission" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnChanPermission" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnChanPermission" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnChanPermission" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnChanPermission((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnOp2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnOp2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnOp2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnOp2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnOp2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnOp2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnOp) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnOp(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnOp" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnOp" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnOp" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnOp" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnOp((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnDeop2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnDeop2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeop2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeop2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDeop2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDeop2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnDeop) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnDeop(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeop" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeop" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDeop" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDeop((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnVoice2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnVoice2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnVoice2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnVoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnVoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnVoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnVoice) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnVoice(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnVoice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnVoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnVoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnVoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnDevoice2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnDevoice2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDevoice2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDevoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDevoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDevoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnDevoice) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnDevoice(self,OpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDevoice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDevoice" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CModules_OnDevoice" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->OnDevoice((CNick const &)*arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnRawMode2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnRawMode2(self,pOpNick,Channel,sModes,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnRawMode2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnRawMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->OnRawMode2((CNick const *)arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModules_OnRawMode) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnRawMode(self,OpNick,Channel,sModes,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnRawMode" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRawMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->OnRawMode((CNick const &)*arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModules_OnMode2) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModules_OnMode2(self,pOpNick,Channel,uMode,sArg,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnMode2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnMode2" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnMode2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnMode2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnMode2((CNick const *)arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModules_OnMode) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModules_OnMode(self,OpNick,Channel,uMode,sArg,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnMode" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnMode" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnMode" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnMode" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnMode" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CModules_OnMode" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CModules_OnMode" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); result = (bool)(arg1)->OnMode((CNick const &)*arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModules_OnRaw) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnRaw(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnRaw" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnRaw" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnRaw" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->OnRaw(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnStatusCommand) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnStatusCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnStatusCommand" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnStatusCommand" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnStatusCommand" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->OnStatusCommand(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnModCommand) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnModCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModCommand" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnModCommand((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_OnModNotice) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnModNotice(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnModNotice((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_OnModCTCP) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnModCTCP(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnModCTCP((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_OnQuit) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; std::vector< CChan * > temp4 ; std::vector< CChan * > *v4 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnQuit(self,Nick,sMessage,vChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnQuit" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { int res = SWIG_ConvertPtr(ST(3),(void **) &v4, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg4 = v4; } else if (SvROK(ST(3))) { AV *av = (AV *)SvRV(ST(3)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 4 of CModules_OnQuit. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v4)); } else { SWIG_croak("Type error in argument 4 of " "CModules_OnQuit. " "Expected an array of " "CChan"); } } arg4 = &temp4; } else { SWIG_croak("Type error in argument 4 of CModules_OnQuit. " "Expected an array of " "CChan"); } } result = (bool)(arg1)->OnQuit((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan * > const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnNick) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; std::vector< CChan * > temp4 ; std::vector< CChan * > *v4 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnNick(self,Nick,sNewNick,vChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnNick" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { int res = SWIG_ConvertPtr(ST(3),(void **) &v4, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg4 = v4; } else if (SvROK(ST(3))) { AV *av = (AV *)SvRV(ST(3)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 4 of CModules_OnNick. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v4)); } else { SWIG_croak("Type error in argument 4 of " "CModules_OnNick. " "Expected an array of " "CChan"); } } arg4 = &temp4; } else { SWIG_croak("Type error in argument 4 of CModules_OnNick. " "Expected an array of " "CChan"); } } result = (bool)(arg1)->OnNick((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan * > const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnKick) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CChan *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int res5 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnKick(self,Nick,sOpNick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnKick" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnKick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnKick" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnKick" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnKick" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->OnKick((CNick const &)*arg2,(CString const &)*arg3,*arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CModules_OnJoining) { { CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnJoining(self,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnJoining" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (bool)(arg1)->OnJoining(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnJoin) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnJoin(self,Nick,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnJoin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); result = (bool)(arg1)->OnJoin((CNick const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPart) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnPart(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPart" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPart" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPart" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnPart" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPart" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->OnPart((CNick const &)*arg2,*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CModules_OnInvite) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnInvite(self,Nick,sChan);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnInvite" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnInvite" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnInvite" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnInvite((CNick const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnChanBufferStarting) { { CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnChanBufferStarting(self,Chan,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferStarting" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->OnChanBufferStarting(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanBufferEnding) { { CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnChanBufferEnding(self,Chan,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferEnding" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->OnChanBufferEnding(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanBufferPlayLine2) { { CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; timeval *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnChanBufferPlayLine2(self,Chan,Client,sLine,tv);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine2" "', argument " "5"" of type '" "timeval const &""'"); } arg5 = reinterpret_cast< timeval * >(argp5); result = (bool)(arg1)->OnChanBufferPlayLine2(*arg2,*arg3,*arg4,(timeval const &)*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanBufferPlayLine) { { CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnChanBufferPlayLine(self,Chan,Client,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanBufferPlayLine" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanBufferPlayLine" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanBufferPlayLine(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPrivBufferPlayLine2) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnPrivBufferPlayLine2(self,Client,sLine,tv);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine2" "', argument " "4"" of type '" "timeval const &""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (bool)(arg1)->OnPrivBufferPlayLine2(*arg2,*arg3,(timeval const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPrivBufferPlayLine) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnPrivBufferPlayLine(self,Client,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivBufferPlayLine" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivBufferPlayLine(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnClientLogin) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnClientLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientLogin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnClientLogin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnClientDisconnect) { { CModules *arg1 = (CModules *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_OnClientDisconnect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientDisconnect" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); result = (bool)(arg1)->OnClientDisconnect(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserRaw) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnUserRaw(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserRaw" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserRaw" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserRaw" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->OnUserRaw(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserCTCPReply) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserCTCPReply(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserCTCPReply" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserCTCPReply" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserCTCPReply" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserCTCP) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserCTCP(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserCTCP" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserCTCP" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserAction) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserAction(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserAction" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserAction" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserAction" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserAction" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserAction" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserAction(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserMsg) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserMsg(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserMsg" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserMsg" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserMsg" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserMsg(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserNotice) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserNotice(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserNotice" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserNotice" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserNotice(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserJoin) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserJoin(self,sChannel,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserJoin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserJoin" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserJoin" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserJoin" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserJoin" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserJoin(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserPart) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserPart(self,sChannel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserPart" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserPart" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserPart" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserPart" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserPart" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserPart(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserTopic) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUserTopic(self,sChannel,sTopic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserTopic" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserTopic" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserTopic" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUserTopic" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserTopic" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUserTopic(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnUserTopicRequest) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnUserTopicRequest(self,sChannel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUserTopicRequest" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUserTopicRequest" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUserTopicRequest" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->OnUserTopicRequest(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnCTCPReply) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnCTCPReply(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnCTCPReply" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPrivCTCP) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnPrivCTCP(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanCTCP) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnChanCTCP(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanCTCP" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanCTCP(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPrivAction) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnPrivAction(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivAction" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPrivAction" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivAction" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivAction(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanAction) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnChanAction(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanAction" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanAction" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanAction" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanAction(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPrivMsg) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnPrivMsg(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivMsg" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivMsg(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanMsg) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnChanMsg(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanMsg" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanMsg(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnPrivNotice) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnPrivNotice(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnPrivNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivNotice(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnChanNotice) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnChanNotice(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnChanNotice" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanNotice(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnTopic) { { CModules *arg1 = (CModules *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnTopic(self,Nick,Channel,sTopic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnTopic" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnTopic" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTopic" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnTopic(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnTimerAutoJoin) { { CModules *arg1 = (CModules *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnTimerAutoJoin(self,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnTimerAutoJoin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (bool)(arg1)->OnTimerAutoJoin(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnAddNetwork) { { CModules *arg1 = (CModules *) 0 ; CIRCNetwork *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnAddNetwork(self,Network,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnAddNetwork" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnAddNetwork" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnAddNetwork" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnAddNetwork(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnDeleteNetwork) { { CModules *arg1 = (CModules *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnDeleteNetwork(self,Network);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeleteNetwork" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (bool)(arg1)->OnDeleteNetwork(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnSendToClient) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnSendToClient(self,sLine,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnSendToClient" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnSendToClient" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnSendToClient" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->OnSendToClient(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnSendToIRC) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnSendToIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnSendToIRC" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnSendToIRC" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnSendToIRC" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->OnSendToIRC(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnServerCapAvailable) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnServerCapAvailable(self,sCap);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnServerCapAvailable" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_OnServerCapResult) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnServerCapResult(self,sCap,bSuccess);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnServerCapResult" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModules_OnServerCapResult" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->OnServerCapResult((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_FindModule) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_FindModule(self,sModule);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_FindModule" "', argument " "1"" of type '" "CModules const *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_FindModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_FindModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CModule *)((CModules const *)arg1)->FindModule((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_LoadModule) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; CUser *arg5 = (CUser *) 0 ; CIRCNetwork *arg6 = (CIRCNetwork *) 0 ; CString *arg7 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; void *argp7 = 0 ; int res7 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CModules_LoadModule(self,sModule,sArgs,eType,pUser,pNetwork,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_LoadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_LoadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_LoadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_LoadModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_LoadModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_LoadModule" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_LoadModule" "', argument " "5"" of type '" "CUser *""'"); } arg5 = reinterpret_cast< CUser * >(argp5); res6 = SWIG_ConvertPtr(ST(5), &argp6,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModules_LoadModule" "', argument " "6"" of type '" "CIRCNetwork *""'"); } arg6 = reinterpret_cast< CIRCNetwork * >(argp6); res7 = SWIG_ConvertPtr(ST(6), &argp7, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "CModules_LoadModule" "', argument " "7"" of type '" "CString &""'"); } if (!argp7) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_LoadModule" "', argument " "7"" of type '" "CString &""'"); } arg7 = reinterpret_cast< CString * >(argp7); result = (bool)(arg1)->LoadModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6,*arg7); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_UnloadModule__SWIG_0) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_UnloadModule(self,sModule);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_UnloadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->UnloadModule((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_UnloadModule__SWIG_1) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_UnloadModule(self,sModule,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_UnloadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_UnloadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_UnloadModule" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_UnloadModule" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->UnloadModule((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_UnloadModule) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModules, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CModules, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModules_UnloadModule__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModules_UnloadModule__SWIG_1); return; } } croak("No matching function for overloaded 'CModules_UnloadModule'"); XSRETURN(0); } XS(_wrap_CModules_ReloadModule) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CUser *arg4 = (CUser *) 0 ; CIRCNetwork *arg5 = (CIRCNetwork *) 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CModules_ReloadModule(self,sModule,sArgs,pUser,pNetwork,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_ReloadModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_ReloadModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_ReloadModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_ReloadModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_ReloadModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_ReloadModule" "', argument " "4"" of type '" "CUser *""'"); } arg4 = reinterpret_cast< CUser * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_ReloadModule" "', argument " "5"" of type '" "CIRCNetwork *""'"); } arg5 = reinterpret_cast< CIRCNetwork * >(argp5); res6 = SWIG_ConvertPtr(ST(5), &argp6, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModules_ReloadModule" "', argument " "6"" of type '" "CString &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_ReloadModule" "', argument " "6"" of type '" "CString &""'"); } arg6 = reinterpret_cast< CString * >(argp6); result = (bool)(arg1)->ReloadModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5,*arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_GetModInfo) { { CModInfo *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_GetModInfo(ModInfo,sModule,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetModInfo" "', argument " "1"" of type '" "CModInfo &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModInfo" "', argument " "1"" of type '" "CModInfo &""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_GetModInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_GetModInfo" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModInfo" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)CModules::GetModInfo(*arg1,(CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CModules_GetModPathInfo) { { CModInfo *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_GetModPathInfo(ModInfo,sModule,sModPath,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetModPathInfo" "', argument " "1"" of type '" "CModInfo &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "1"" of type '" "CModInfo &""'"); } arg1 = reinterpret_cast< CModInfo * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_GetModPathInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_GetModPathInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_GetModPathInfo" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetModPathInfo" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)CModules::GetModPathInfo(*arg1,(CString const &)*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_GetAvailableMods__SWIG_0) { { std::set< CModInfo > *arg1 = 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_GetAvailableMods(ssMods,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__setT_CModInfo_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModules_GetAvailableMods" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); CModules::GetAvailableMods(*arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetAvailableMods__SWIG_1) { { std::set< CModInfo > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_GetAvailableMods(ssMods);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__setT_CModInfo_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetAvailableMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); CModules::GetAvailableMods(*arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetAvailableMods) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__setT_CModInfo_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__setT_CModInfo_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModules_GetAvailableMods__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModules_GetAvailableMods__SWIG_0); return; } } croak("No matching function for overloaded 'CModules_GetAvailableMods'"); XSRETURN(0); } XS(_wrap_CModules_GetDefaultMods__SWIG_0) { { std::set< CModInfo > *arg1 = 0 ; CModInfo::EModuleType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_GetDefaultMods(ssMods,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__setT_CModInfo_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CModules_GetDefaultMods" "', argument " "2"" of type '" "CModInfo::EModuleType""'"); } arg2 = static_cast< CModInfo::EModuleType >(val2); CModules::GetDefaultMods(*arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetDefaultMods__SWIG_1) { { std::set< CModInfo > *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CModules_GetDefaultMods(ssMods);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__setT_CModInfo_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_GetDefaultMods" "', argument " "1"" of type '" "std::set< CModInfo > &""'"); } arg1 = reinterpret_cast< std::set< CModInfo > * >(argp1); CModules::GetDefaultMods(*arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_GetDefaultMods) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__setT_CModInfo_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__setT_CModInfo_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModules_GetDefaultMods__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CModules_GetDefaultMods__SWIG_0); return; } } croak("No matching function for overloaded 'CModules_GetDefaultMods'"); XSRETURN(0); } XS(_wrap_CModules_FindModPath) { { CString *arg1 = 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_FindModPath(sModule,sModPath,sDataPath);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_FindModPath" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_FindModPath" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_FindModPath" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_FindModPath" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_FindModPath" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_FindModPath" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)CModules::FindModPath((CString const &)*arg1,*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CModules_GetModDirs) { { int argvi = 0; SwigValueWrapper< std::queue< std::pair< CString,CString > > > result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CModules_GetModDirs();"); } result = CModules::GetModDirs(); ST(argvi) = SWIG_NewPointerObj((new CModules::ModDirList(static_cast< const CModules::ModDirList& >(result))), SWIGTYPE_p_std__queueT_std__pairT_CString_CString_t_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnAddUser) { { CModules *arg1 = (CModules *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnAddUser(self,User,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnAddUser" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnAddUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnAddUser" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnAddUser" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnAddUser(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnDeleteUser) { { CModules *arg1 = (CModules *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnDeleteUser(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnDeleteUser" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnDeleteUser" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (bool)(arg1)->OnDeleteUser(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnClientConnect) { { CModules *arg1 = (CModules *) 0 ; CZNCSock *arg2 = (CZNCSock *) 0 ; CString *arg3 = 0 ; unsigned short arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned short val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnClientConnect(self,pSock,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientConnect" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnClientConnect" "', argument " "2"" of type '" "CZNCSock *""'"); } arg2 = reinterpret_cast< CZNCSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnClientConnect" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnClientConnect" "', argument " "4"" of type '" "unsigned short""'"); } arg4 = static_cast< unsigned short >(val4); result = (bool)(arg1)->OnClientConnect(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnLoginAttempt) { { CModules *arg1 = (CModules *) 0 ; SwigValueWrapper< std::shared_ptr< CAuthBase > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_OnLoginAttempt(self,Auth);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnLoginAttempt" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnLoginAttempt" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } else { arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); } } result = (bool)(arg1)->OnLoginAttempt(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnFailedLogin) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnFailedLogin(self,sUsername,sRemoteIP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnFailedLogin" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnFailedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnFailedLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnFailedLogin((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnUnknownUserRaw) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnUnknownUserRaw(self,pClient,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnUnknownUserRaw" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnUnknownUserRaw" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnUnknownUserRaw" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnUnknownUserRaw" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnUnknownUserRaw(arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnClientCapLs) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; SCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnClientCapLs(self,pClient,ssCaps);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientCapLs" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnClientCapLs" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_SCString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnClientCapLs" "', argument " "3"" of type '" "SCString &""'"); } arg3 = reinterpret_cast< SCString * >(argp3); result = (bool)(arg1)->OnClientCapLs(arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_IsClientCapSupported) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_IsClientCapSupported(self,pClient,sCap,bState);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_IsClientCapSupported" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_IsClientCapSupported" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_IsClientCapSupported" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_IsClientCapSupported" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->IsClientCapSupported(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnClientCapRequest) { { CModules *arg1 = (CModules *) 0 ; CClient *arg2 = (CClient *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnClientCapRequest(self,pClient,sCap,bState);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnClientCapRequest" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnClientCapRequest" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnClientCapRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnClientCapRequest" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->OnClientCapRequest(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnModuleLoading) { { CModules *arg1 = (CModules *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModInfo::EModuleType arg4 ; bool *arg5 = 0 ; CString *arg6 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; void *argp6 = 0 ; int res6 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CModules_OnModuleLoading(self,sModName,sArgs,eType,bSuccess,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModuleLoading" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CModules_OnModuleLoading" "', argument " "4"" of type '" "CModInfo::EModuleType""'"); } arg4 = static_cast< CModInfo::EModuleType >(val4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "5"" of type '" "bool &""'"); } arg5 = reinterpret_cast< bool * >(argp5); res6 = SWIG_ConvertPtr(ST(5), &argp6, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "CModules_OnModuleLoading" "', argument " "6"" of type '" "CString &""'"); } if (!argp6) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleLoading" "', argument " "6"" of type '" "CString &""'"); } arg6 = reinterpret_cast< CString * >(argp6); result = (bool)(arg1)->OnModuleLoading((CString const &)*arg2,(CString const &)*arg3,arg4,*arg5,*arg6); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnModuleUnloading) { { CModules *arg1 = (CModules *) 0 ; CModule *arg2 = (CModule *) 0 ; bool *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CModules_OnModuleUnloading(self,pModule,bSuccess,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnModuleUnloading" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnModuleUnloading" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleUnloading" "', argument " "3"" of type '" "bool &""'"); } arg3 = reinterpret_cast< bool * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnModuleUnloading" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnModuleUnloading" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnModuleUnloading(arg2,*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_OnGetModInfo) { { CModules *arg1 = (CModules *) 0 ; CModInfo *arg2 = 0 ; CString *arg3 = 0 ; bool *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CModules_OnGetModInfo(self,ModInfo,sModule,bSuccess,sRetMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnGetModInfo" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CModInfo, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "2"" of type '" "CModInfo &""'"); } arg2 = reinterpret_cast< CModInfo * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CModules_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_bool, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CModules_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "4"" of type '" "bool &""'"); } arg4 = reinterpret_cast< bool * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CModules_OnGetModInfo" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetModInfo" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (bool)(arg1)->OnGetModInfo(*arg2,(CString const &)*arg3,*arg4,*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CModules_OnGetAvailableMods) { { CModules *arg1 = (CModules *) 0 ; std::set< CModInfo > *arg2 = 0 ; CModInfo::EModuleType arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CModules_OnGetAvailableMods(self,ssMods,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_OnGetAvailableMods" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__setT_CModInfo_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CModules_OnGetAvailableMods" "', argument " "2"" of type '" "std::set< CModInfo > &""'"); } arg2 = reinterpret_cast< std::set< CModInfo > * >(argp2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CModules_OnGetAvailableMods" "', argument " "3"" of type '" "CModInfo::EModuleType""'"); } arg3 = static_cast< CModInfo::EModuleType >(val3); result = (bool)(arg1)->OnGetAvailableMods(*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_push_back) { { CModules *arg1 = (CModules *) 0 ; CModule *arg2 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_push_back(self,p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_push_back" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_push_back" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); CModules_push_back(arg1,arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CModules_removeModule) { { CModules *arg1 = (CModules *) 0 ; CModule *arg2 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CModules_removeModule(self,p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModules, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CModules_removeModule" "', argument " "1"" of type '" "CModules *""'"); } arg1 = reinterpret_cast< CModules * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CModules_removeModule" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); result = (bool)CModules_removeModule(arg1,arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CNick__SWIG_0) { { int argvi = 0; CNick *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CNick();"); } result = (CNick *)new CNick(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CNick__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CNick *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CNick(sNick);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CNick" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CNick" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CNick *)new CNick((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CNick__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CNick__SWIG_1); return; } } croak("No matching function for overloaded 'new_CNick'"); XSRETURN(0); } XS(_wrap_delete_CNick) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CNick" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_Reset) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_Reset(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_Reset" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); (arg1)->Reset(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_Parse) { { CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_Parse(self,sNickMask);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_Parse" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_Parse" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_Parse" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Parse((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CNick_GetHostMask) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetHostMask(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetHostMask" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = ((CNick const *)arg1)->GetHostMask(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetCommonChans) { { CNick *arg1 = (CNick *) 0 ; std::vector< CChan * > *arg2 = 0 ; CIRCNetwork *arg3 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CNick_GetCommonChans(self,vChans,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetCommonChans" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__vectorT_CChan_p_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_GetCommonChans" "', argument " "2"" of type '" "std::vector< CChan * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_GetCommonChans" "', argument " "2"" of type '" "std::vector< CChan * > &""'"); } arg2 = reinterpret_cast< std::vector< CChan * > * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CNick_GetCommonChans" "', argument " "3"" of type '" "CIRCNetwork *""'"); } arg3 = reinterpret_cast< CIRCNetwork * >(argp3); result = ((CNick const *)arg1)->GetCommonChans(*arg2,arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_NickEquals) { { CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_NickEquals(self,nickname);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_NickEquals" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_NickEquals" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_NickEquals" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CNick const *)arg1)->NickEquals((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CNick_SetNetwork) { { CNick *arg1 = (CNick *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_SetNetwork(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetNetwork" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_SetNick) { { CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_SetNick(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetNick" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CNick_SetIdent) { { CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_SetIdent(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetIdent" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIdent((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CNick_SetHost) { { CNick *arg1 = (CNick *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_SetHost(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_SetHost" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_SetHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_SetHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CNick_AddPerm) { { CNick *arg1 = (CNick *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_AddPerm(self,uPerm);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_AddPerm" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CNick_AddPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->AddPerm(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_RemPerm) { { CNick *arg1 = (CNick *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_RemPerm(self,uPerm);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_RemPerm" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CNick_RemPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->RemPerm(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetPermStr) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetPermStr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetPermStr" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = ((CNick const *)arg1)->GetPermStr(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetPermChar) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned char result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetPermChar(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetPermChar" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (unsigned char)((CNick const *)arg1)->GetPermChar(); ST(argvi) = SWIG_From_unsigned_SS_char SWIG_PERL_CALL_ARGS_1(static_cast< unsigned char >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_HasPerm) { { CNick *arg1 = (CNick *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_HasPerm(self,uPerm);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_HasPerm" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CNick_HasPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)((CNick const *)arg1)->HasPerm(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetNick) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetNick" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (CString *) &((CNick const *)arg1)->GetNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetIdent) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetIdent(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetIdent" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (CString *) &((CNick const *)arg1)->GetIdent(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetHost) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetHost" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = (CString *) &((CNick const *)arg1)->GetHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_GetNickMask) { { CNick *arg1 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CNick_GetNickMask(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_GetNickMask" "', argument " "1"" of type '" "CNick const *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); result = ((CNick const *)arg1)->GetNickMask(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CNick_Clone) { { CNick *arg1 = (CNick *) 0 ; CNick *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CNick_Clone(self,SourceNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CNick_Clone" "', argument " "1"" of type '" "CNick *""'"); } arg1 = reinterpret_cast< CNick * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CNick_Clone" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CNick_Clone" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); (arg1)->Clone((CNick const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CChan__SWIG_0) { { CString *arg1 = 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; CConfig *arg4 = (CConfig *) 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CChan *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CChan(sName,pNetwork,bInConfig,pConfig);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CChan" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CChan" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CChan" "', argument " "4"" of type '" "CConfig *""'"); } arg4 = reinterpret_cast< CConfig * >(argp4); result = (CChan *)new CChan((CString const &)*arg1,arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CChan__SWIG_1) { { CString *arg1 = 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CChan *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CChan(sName,pNetwork,bInConfig);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CChan" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CChan" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CChan" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (CChan *)new CChan((CString const &)*arg1,arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CChan) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CChan__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CChan__SWIG_0); return; } } croak("No matching function for overloaded 'new_CChan'"); XSRETURN(0); } XS(_wrap_delete_CChan) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CChan(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CChan" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_Reset) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_Reset(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Reset" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->Reset(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_ToConfig) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CConfig result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_ToConfig(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ToConfig" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->ToConfig(); ST(argvi) = SWIG_NewPointerObj((new CConfig(static_cast< const CConfig& >(result))), SWIGTYPE_p_CConfig, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_Clone) { { CChan *arg1 = (CChan *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_Clone(self,chan);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Clone" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_Clone" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_Clone" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); (arg1)->Clone(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_Cycle) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_Cycle(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Cycle" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ((CChan const *)arg1)->Cycle(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_JoinUser__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_JoinUser(self,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_JoinUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_JoinUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_JoinUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->JoinUser((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_JoinUser__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_JoinUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_JoinUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->JoinUser(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_JoinUser) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_JoinUser__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_JoinUser__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_JoinUser'"); XSRETURN(0); } XS(_wrap_CChan_AttachUser__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_AttachUser(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AttachUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AttachUser" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->AttachUser(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_AttachUser__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_AttachUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AttachUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->AttachUser(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_AttachUser) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_AttachUser__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_AttachUser__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_AttachUser'"); XSRETURN(0); } XS(_wrap_CChan_DetachUser) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_DetachUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_DetachUser" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->DetachUser(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_OnWho) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CChan_OnWho(self,sNick,sIdent,sHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_OnWho" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_OnWho" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_OnWho" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_OnWho" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_OnWho" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CChan_OnWho" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_OnWho" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->OnWho((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CChan_SetModes) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetModes(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetModes" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetModes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetModes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetModes((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_ModeChange__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CNick *arg3 = (CNick *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_ModeChange(self,sModes,OpNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ModeChange" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_ModeChange" "', argument " "3"" of type '" "CNick const *""'"); } arg3 = reinterpret_cast< CNick * >(argp3); (arg1)->ModeChange((CString const &)*arg2,(CNick const *)arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_ModeChange__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_ModeChange(self,sModes);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ModeChange" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ModeChange" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ModeChange((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_ModeChange) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CNick, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_ModeChange__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_ModeChange__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_ModeChange'"); XSRETURN(0); } XS(_wrap_CChan_AddMode) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_AddMode(self,uMode,sArg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddMode" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_AddMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_AddMode" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddMode" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->AddMode(arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CChan_RemMode) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_RemMode(self,uMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_RemMode" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_RemMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->RemMode(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetModeString) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetModeString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeString" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetModeString(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetModeArg__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_GetModeArg(self,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeArg" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_GetModeArg" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_GetModeArg" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = ((CChan const *)arg1)->GetModeArg(*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetModeForNames) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetModeForNames(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeForNames" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetModeForNames(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_ClearNicks) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_ClearNicks(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ClearNicks" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->ClearNicks(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_FindNick__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CNick *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_FindNick(self,sNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_FindNick" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CNick *)((CChan const *)arg1)->FindNick((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_FindNick__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CNick *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_FindNick(self,sNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_FindNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_FindNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CNick *)(arg1)->FindNick((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_FindNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_FindNick__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_FindNick__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_FindNick'"); XSRETURN(0); } XS(_wrap_CChan_AddNicks) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_AddNicks(self,sNicks);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddNicks" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddNicks" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddNicks" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (int)(arg1)->AddNicks((CString const &)*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_AddNick) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_AddNick(self,sNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddNick((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_RemNick) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_RemNick(self,sNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_RemNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_RemNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_RemNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemNick((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_ChangeNick) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_ChangeNick(self,sOldNick,sNewNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ChangeNick" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_ChangeNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ChangeNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_ChangeNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_ChangeNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->ChangeNick((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CChan_GetBuffer) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CBuffer *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetBuffer" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CBuffer *) &((CChan const *)arg1)->GetBuffer(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBuffer, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetBufferCount) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetBufferCount(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetBufferCount" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned int)((CChan const *)arg1)->GetBufferCount(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetBufferCount__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_SetBufferCount(self,u,bForce);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CChan_SetBufferCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->SetBufferCount(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetBufferCount__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetBufferCount(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (bool)(arg1)->SetBufferCount(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetBufferCount) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_SetBufferCount__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_SetBufferCount__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_SetBufferCount'"); XSRETURN(0); } XS(_wrap_CChan_InheritBufferCount__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_InheritBufferCount(self,u,bForce);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InheritBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_InheritBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CChan_InheritBufferCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->InheritBufferCount(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_InheritBufferCount__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_InheritBufferCount(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InheritBufferCount" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_InheritBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->InheritBufferCount(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_InheritBufferCount) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_InheritBufferCount__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_InheritBufferCount__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_InheritBufferCount'"); XSRETURN(0); } XS(_wrap_CChan_AddBuffer__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = (timeval *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CChan_AddBuffer(self,sFormat,sText,ts);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CChan_AddBuffer" "', argument " "4"" of type '" "timeval const *""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (arg1)->AddBuffer((CString const &)*arg2,(CString const &)*arg3,(timeval const *)arg4); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CChan_AddBuffer__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_AddBuffer(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->AddBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CChan_AddBuffer__SWIG_2) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_AddBuffer(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_AddBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddBuffer((CString const &)*arg2); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_AddBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_AddBuffer__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_AddBuffer__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_AddBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_AddBuffer'"); XSRETURN(0); } XS(_wrap_CChan_ClearBuffer) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_ClearBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ClearBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->ClearBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SendBuffer__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SendBuffer(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SendBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SendBuffer" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->SendBuffer(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SendBuffer__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; CClient *arg2 = (CClient *) 0 ; CBuffer *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CChan_SendBuffer(self,pClient,Buffer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SendBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SendBuffer" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CBuffer, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CChan_SendBuffer" "', argument " "3"" of type '" "CBuffer const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SendBuffer" "', argument " "3"" of type '" "CBuffer const &""'"); } arg3 = reinterpret_cast< CBuffer * >(argp3); (arg1)->SendBuffer(arg2,(CBuffer const &)*arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SendBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_SendBuffer__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_SendBuffer__SWIG_1); return; } } croak("No matching function for overloaded 'CChan_SendBuffer'"); XSRETURN(0); } XS(_wrap_CChan_GetPermStr) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetPermStr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetPermStr" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetPermStr(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_HasPerm) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_HasPerm(self,uPerm);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasPerm" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_HasPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)((CChan const *)arg1)->HasPerm(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_AddPerm) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_AddPerm(self,uPerm);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AddPerm" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_AddPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->AddPerm(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_RemPerm) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_RemPerm(self,uPerm);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_RemPerm" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_RemPerm" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)(arg1)->RemPerm(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetModeKnown) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetModeKnown(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetModeKnown" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetModeKnown" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetModeKnown(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetIsOn) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetIsOn(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetIsOn" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetIsOn" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIsOn(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetKey) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetKey(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetKey" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetKey" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetKey" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetKey((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_SetTopic) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetTopic(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetTopic" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetTopic" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetTopic" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTopic((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_SetTopicOwner) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetTopicOwner(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetTopicOwner" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetTopicOwner" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetTopicOwner" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTopicOwner((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_SetTopicDate) { { CChan *arg1 = (CChan *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetTopicDate(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetTopicDate" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetTopicDate" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); (arg1)->SetTopicDate(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetDefaultModes) { { CChan *arg1 = (CChan *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetDefaultModes(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetDefaultModes" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CChan_SetDefaultModes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CChan_SetDefaultModes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDefaultModes((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CChan_SetAutoClearChanBuffer) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetAutoClearChanBuffer(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetAutoClearChanBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetAutoClearChanBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAutoClearChanBuffer(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_InheritAutoClearChanBuffer) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_InheritAutoClearChanBuffer(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InheritAutoClearChanBuffer" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_InheritAutoClearChanBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->InheritAutoClearChanBuffer(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetDetached__SWIG_0) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetDetached(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetDetached" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetDetached" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDetached(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetDetached__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_SetDetached(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetDetached" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->SetDetached(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetDetached) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_SetDetached__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_SetDetached__SWIG_0); return; } } croak("No matching function for overloaded 'CChan_SetDetached'"); XSRETURN(0); } XS(_wrap_CChan_SetInConfig) { { CChan *arg1 = (CChan *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetInConfig(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetInConfig" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetInConfig" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetInConfig(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_SetCreationDate) { { CChan *arg1 = (CChan *) 0 ; unsigned long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_SetCreationDate(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_SetCreationDate" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_SetCreationDate" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = static_cast< unsigned long >(val2); (arg1)->SetCreationDate(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_Disable) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_Disable(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Disable" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->Disable(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_Enable) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_Enable(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_Enable" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->Enable(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_IncJoinTries) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_IncJoinTries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IncJoinTries" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->IncJoinTries(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_ResetJoinTries) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_ResetJoinTries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_ResetJoinTries" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); (arg1)->ResetJoinTries(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_IsModeKnown) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_IsModeKnown(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsModeKnown" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsModeKnown(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_HasMode) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_HasMode(self,uMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasMode" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_HasMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (bool)((CChan const *)arg1)->HasMode(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetOptions) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetOptions(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetOptions" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetOptions(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetModeArg__SWIG_1) { { CChan *arg1 = (CChan *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CChan_GetModeArg(self,uMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModeArg" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CChan_GetModeArg" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = ((CChan const *)arg1)->GetModeArg(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetModeArg) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_GetModeArg__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CChan_GetModeArg__SWIG_1); return; } } croak("No matching function for overloaded 'CChan_GetModeArg'"); XSRETURN(0); } XS(_wrap_CChan_GetPermCounts) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::map< char,unsigned int > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetPermCounts(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetPermCounts" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetPermCounts(); ST(argvi) = SWIG_NewPointerObj((new std::map< char,unsigned int >(static_cast< const std::map< char,unsigned int >& >(result))), SWIGTYPE_p_std__mapT_char_unsigned_int_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_IsOn) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_IsOn(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsOn" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsOn(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetName) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetName" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetModes) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::map< unsigned char,CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetModes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetModes" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (std::map< unsigned char,CString > *) &((CChan const *)arg1)->GetModes(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_unsigned_char_CString_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetKey) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetKey(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetKey" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetKey(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetTopic) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetTopic(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetTopic" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetTopic(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetTopicOwner) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetTopicOwner(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetTopicOwner" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetTopicOwner(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetTopicDate) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetTopicDate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetTopicDate" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned long)((CChan const *)arg1)->GetTopicDate(); ST(argvi) = SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetDefaultModes) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetDefaultModes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetDefaultModes" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (CString *) &((CChan const *)arg1)->GetDefaultModes(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetNicks) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::map< CString,CNick > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetNicks(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetNicks" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (std::map< CString,CNick > *) &((CChan const *)arg1)->GetNicks(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CNick_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetNickCount) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetNickCount(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetNickCount" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = ((CChan const *)arg1)->GetNickCount(); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_AutoClearChanBuffer) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_AutoClearChanBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_AutoClearChanBuffer" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->AutoClearChanBuffer(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_IsDetached) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_IsDetached(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsDetached" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsDetached(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_InConfig) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_InConfig(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_InConfig" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->InConfig(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetCreationDate) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetCreationDate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetCreationDate" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned long)((CChan const *)arg1)->GetCreationDate(); ST(argvi) = SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_IsDisabled) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_IsDisabled(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_IsDisabled" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->IsDisabled(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetJoinTries) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetJoinTries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetJoinTries" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (unsigned int)((CChan const *)arg1)->GetJoinTries(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_HasBufferCountSet) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_HasBufferCountSet(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasBufferCountSet" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->HasBufferCountSet(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_HasAutoClearChanBufferSet) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_HasAutoClearChanBufferSet(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_HasAutoClearChanBufferSet" "', argument " "1"" of type '" "CChan const *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = (bool)((CChan const *)arg1)->HasAutoClearChanBufferSet(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CChan_GetNicks_) { { CChan *arg1 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::map< CString,CNick > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CChan_GetNicks_(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CChan_GetNicks_" "', argument " "1"" of type '" "CChan *""'"); } arg1 = reinterpret_cast< CChan * >(argp1); result = CChan_GetNicks_(arg1); { HV* myhv = newHV(); for (std::map::const_iterator i = (&result)->begin(); i != (&result)->end(); ++i) { SV* val = SWIG_NewInstanceObj(const_cast(&i->second), SWIG_TypeQuery("CNick*"), SWIG_SHADOW); SvREFCNT_inc(val);// it was created mortal hv_store(myhv, i->first.c_str(), i->first.length(), val, 0); } ST(argvi) = newRV_noinc((SV*)myhv); sv_2mortal(ST(argvi)); argvi++; } XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CUser) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CUser(sUserName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CUser" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CUser" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CUser *)new CUser((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_delete_CUser) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_ParseConfig) { { CUser *arg1 = (CUser *) 0 ; CConfig *arg2 = (CConfig *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_ParseConfig(self,Config,sError);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ParseConfig" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_ParseConfig" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->ParseConfig(arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SaltedHash) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SaltedHash(sPass,sSalt);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SaltedHash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SaltedHash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SaltedHash" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SaltedHash" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = CUser::SaltedHash((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_ToConfig) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CConfig result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_ToConfig(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ToConfig" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->ToConfig(); ST(argvi) = SWIG_NewPointerObj((new CConfig(static_cast< const CConfig& >(result))), SWIGTYPE_p_CConfig, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_CheckPass) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_CheckPass(self,sPass);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_CheckPass" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_CheckPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_CheckPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CUser const *)arg1)->CheckPass((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_AddAllowedHost) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_AddAllowedHost(self,sHostMask);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddAllowedHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddAllowedHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddAllowedHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddAllowedHost((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_IsHostAllowed) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_IsHostAllowed(self,sHostMask);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsHostAllowed" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CUser const *)arg1)->IsHostAllowed((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_IsValid__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_IsValid(self,sErrMsg,bSkipPass);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsValid" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_IsValid" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_IsValid" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_IsValid" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)((CUser const *)arg1)->IsValid(*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_IsValid__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_IsValid(self,sErrMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsValid" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_IsValid" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_IsValid" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)((CUser const *)arg1)->IsValid(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_IsValid) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_IsValid__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_IsValid__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_IsValid'"); XSRETURN(0); } XS(_wrap_CUser_IsValidUserName) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_IsValidUserName(sUserName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsValidUserName" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_IsValidUserName" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CUser::IsValidUserName((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUser_MakeCleanUserName) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_MakeCleanUserName(sUserName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MakeCleanUserName" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_MakeCleanUserName" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CUser::MakeCleanUserName((CString const &)*arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CUser_GetModules__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModules *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetModules(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetModules" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CModules *) &(arg1)->GetModules(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetModules__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModules *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetModules(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetModules" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CModules *) &((CUser const *)arg1)->GetModules(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetModules) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetModules__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetModules__SWIG_1); return; } } croak("No matching function for overloaded 'CUser_GetModules'"); XSRETURN(0); } XS(_wrap_CUser_AddNetwork__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_AddNetwork(self,sNetwork,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_AddNetwork" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddNetwork" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CIRCNetwork *)(arg1)->AddNetwork((CString const &)*arg2,*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_DeleteNetwork) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_DeleteNetwork(self,sNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DeleteNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_DeleteNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_DeleteNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DeleteNetwork((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_AddNetwork__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_AddNetwork(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (bool)(arg1)->AddNetwork(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_AddNetwork) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_AddNetwork__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_AddNetwork__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_AddNetwork'"); XSRETURN(0); } XS(_wrap_CUser_RemoveNetwork) { { CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_RemoveNetwork(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_RemoveNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_RemoveNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->RemoveNetwork(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_FindNetwork) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_FindNetwork(self,sNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_FindNetwork" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_FindNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_FindNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CIRCNetwork *)((CUser const *)arg1)->FindNetwork((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_GetNetworks) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CIRCNetwork * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetNetworks(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNetworks" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::vector< CIRCNetwork * > *) &((CUser const *)arg1)->GetNetworks(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_HasSpaceForNewNetwork) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_HasSpaceForNewNetwork(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_HasSpaceForNewNetwork" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->HasSpaceForNewNetwork(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_PutUser__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_PutUser(self,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutUser__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_PutUser(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutUser__SWIG_2) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_PutUser(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutUser((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutUser) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutUser__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutUser__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutUser__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_PutUser'"); XSRETURN(0); } XS(_wrap_CUser_PutAllUser__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_PutAllUser(self,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutAllUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutAllUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutAllUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutAllUser((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutAllUser__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_PutAllUser(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutAllUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutAllUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutAllUser((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutAllUser__SWIG_2) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_PutAllUser(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutAllUser" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutAllUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutAllUser((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutAllUser) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutAllUser__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutAllUser__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutAllUser__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_PutAllUser'"); XSRETURN(0); } XS(_wrap_CUser_PutStatus__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_PutStatus(self,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatus" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutStatus" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutStatus__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_PutStatus(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatus" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutStatus__SWIG_2) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_PutStatus(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatus" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatus((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutStatus) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutStatus__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutStatus__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutStatus__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_PutStatus'"); XSRETURN(0); } XS(_wrap_CUser_PutStatusNotice__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_PutStatusNotice(self,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatusNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatusNotice" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutStatusNotice" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutStatusNotice((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutStatusNotice__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_PutStatusNotice(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatusNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutStatusNotice" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutStatusNotice((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutStatusNotice__SWIG_2) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_PutStatusNotice(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutStatusNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatusNotice((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_PutStatusNotice) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutStatusNotice__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutStatusNotice__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutStatusNotice__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_PutStatusNotice'"); XSRETURN(0); } XS(_wrap_CUser_PutModule__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CUser_PutModule(self,sModule,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CUser_PutModule" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_PutModule__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_PutModule(self,sModule,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_PutModule__SWIG_2) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_PutModule(self,sModule,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_PutModule) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutModule__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutModule__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutModule__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_PutModule'"); XSRETURN(0); } XS(_wrap_CUser_PutModNotice__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CUser_PutModNotice(self,sModule,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModNotice" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CUser_PutModNotice" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); result = (bool)(arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_PutModNotice__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_PutModNotice(self,sModule,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_PutModNotice" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_PutModNotice__SWIG_2) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_PutModNotice(self,sModule,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_PutModNotice" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_PutModNotice) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutModNotice__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutModNotice__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_PutModNotice__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_PutModNotice'"); XSRETURN(0); } XS(_wrap_CUser_IsUserAttached) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_IsUserAttached(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsUserAttached" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->IsUserAttached(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_UserConnected) { { CUser *arg1 = (CUser *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_UserConnected(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_UserConnected" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_UserConnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->UserConnected(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_UserDisconnected) { { CUser *arg1 = (CUser *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_UserDisconnected(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_UserDisconnected" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_UserDisconnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->UserDisconnected(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetLocalDCCIP) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetLocalDCCIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetLocalDCCIP" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetLocalDCCIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_ExpandString__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_ExpandString(self,sStr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ExpandString" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CUser const *)arg1)->ExpandString((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_ExpandString__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_ExpandString(self,sStr,sRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_ExpandString" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_ExpandString" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_ExpandString" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CString *) &((CUser const *)arg1)->ExpandString((CString const &)*arg2,*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, 0 | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_ExpandString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_ExpandString__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_ExpandString__SWIG_1); return; } } croak("No matching function for overloaded 'CUser_ExpandString'"); XSRETURN(0); } XS(_wrap_CUser_AddTimestamp__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_AddTimestamp(self,sStr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddTimestamp" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CUser const *)arg1)->AddTimestamp((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_AddTimestamp__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; time_t arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_AddTimestamp(self,tm,sStr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddTimestamp" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "time_t""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddTimestamp" "', argument " "2"" of type '" "time_t""'"); } else { arg2 = *(reinterpret_cast< time_t * >(argp2)); } } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_AddTimestamp" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddTimestamp" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = ((CUser const *)arg1)->AddTimestamp(arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_AddTimestamp) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_AddTimestamp__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_AddTimestamp__SWIG_1); return; } } croak("No matching function for overloaded 'CUser_AddTimestamp'"); XSRETURN(0); } XS(_wrap_CUser_CloneNetworks) { { CUser *arg1 = (CUser *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_CloneNetworks(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_CloneNetworks" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_CloneNetworks" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_CloneNetworks" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->CloneNetworks((CUser const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_Clone__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_Clone(self,User,sErrorRet,bCloneNetworks);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_Clone" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_Clone" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_Clone" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CUser_Clone" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->Clone((CUser const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_Clone__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CUser *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_Clone(self,User,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_Clone" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_Clone" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_Clone" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_Clone" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->Clone((CUser const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_Clone) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_Clone__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_Clone__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_Clone'"); XSRETURN(0); } XS(_wrap_CUser_BounceAllClients) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_BounceAllClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_BounceAllClients" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); (arg1)->BounceAllClients(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_AddBytesRead) { { CUser *arg1 = (CUser *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_AddBytesRead(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddBytesRead" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_AddBytesRead" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesRead(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_AddBytesWritten) { { CUser *arg1 = (CUser *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_AddBytesWritten(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddBytesWritten" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_AddBytesWritten" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesWritten(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetNick) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetNick(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetNick" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetAltNick) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetAltNick(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAltNick" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetAltNick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetIdent) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetIdent(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetIdent" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIdent((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetRealName) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetRealName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetRealName" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetRealName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetBindHost) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetBindHost(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBindHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetDCCBindHost) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetDCCBindHost(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDCCBindHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetDCCBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetDCCBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDCCBindHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetPass__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CUser::eHashType arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CUser_SetPass(self,s,eHash,sSalt);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetPass" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_SetPass" "', argument " "3"" of type '" "CUser::eHashType""'"); } arg3 = static_cast< CUser::eHashType >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CUser_SetPass" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetPass" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->SetPass((CString const &)*arg2,arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CUser_SetPass__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CUser::eHashType arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_SetPass(self,s,eHash);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetPass" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_SetPass" "', argument " "3"" of type '" "CUser::eHashType""'"); } arg3 = static_cast< CUser::eHashType >(val3); (arg1)->SetPass((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetPass) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_SetPass__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_SetPass__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_SetPass'"); XSRETURN(0); } XS(_wrap_CUser_SetMultiClients) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetMultiClients(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMultiClients" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMultiClients" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetMultiClients(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetDenyLoadMod) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetDenyLoadMod(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDenyLoadMod" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetDenyLoadMod" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDenyLoadMod(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetAdmin) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetAdmin(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAdmin" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetAdmin" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAdmin(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetDenySetBindHost) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetDenySetBindHost(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDenySetBindHost" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetDenySetBindHost" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetDenySetBindHost(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetStatusPrefix) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetStatusPrefix(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetStatusPrefix" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->SetStatusPrefix((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetDefaultChanModes) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetDefaultChanModes(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetDefaultChanModes" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetDefaultChanModes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetDefaultChanModes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDefaultChanModes((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetClientEncoding) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetClientEncoding(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetClientEncoding" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetClientEncoding" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetClientEncoding" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetClientEncoding((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetQuitMsg) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetQuitMsg(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetQuitMsg" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetQuitMsg((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_AddCTCPReply) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_AddCTCPReply(self,sCTCP,sReply);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AddCTCPReply" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_AddCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CUser_AddCTCPReply" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_AddCTCPReply" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->AddCTCPReply((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CUser_DelCTCPReply) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_DelCTCPReply(self,sCTCP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DelCTCPReply" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_DelCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_DelCTCPReply" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelCTCPReply((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetBufferCount__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CUser_SetBufferCount(self,u,bForce);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBufferCount" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CUser_SetBufferCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->SetBufferCount(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetBufferCount__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetBufferCount(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBufferCount" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetBufferCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (bool)(arg1)->SetBufferCount(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetBufferCount) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_SetBufferCount__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_SetBufferCount__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_SetBufferCount'"); XSRETURN(0); } XS(_wrap_CUser_SetAutoClearChanBuffer) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetAutoClearChanBuffer(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAutoClearChanBuffer" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetAutoClearChanBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAutoClearChanBuffer(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetAutoClearQueryBuffer) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetAutoClearQueryBuffer(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetAutoClearQueryBuffer" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetAutoClearQueryBuffer" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAutoClearQueryBuffer(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetBeingDeleted) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetBeingDeleted(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetBeingDeleted" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetBeingDeleted" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetBeingDeleted(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetTimestampFormat) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetTimestampFormat(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimestampFormat" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetTimestampFormat" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetTimestampFormat" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTimestampFormat((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetTimestampAppend) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetTimestampAppend(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimestampAppend" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetTimestampAppend" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetTimestampAppend(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetTimestampPrepend) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetTimestampPrepend(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimestampPrepend" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetTimestampPrepend" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetTimestampPrepend(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetTimezone) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetTimezone(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetTimezone" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetTimezone" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetTimezone" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTimezone((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetJoinTries) { { CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetJoinTries(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetJoinTries" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetJoinTries" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetJoinTries(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetMaxJoins) { { CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetMaxJoins(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMaxJoins" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMaxJoins" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxJoins(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetSkinName) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetSkinName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetSkinName" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CUser_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CUser_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSkinName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CUser_SetMaxNetworks) { { CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetMaxNetworks(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMaxNetworks" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMaxNetworks" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxNetworks(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_SetMaxQueryBuffers) { { CUser *arg1 = (CUser *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_SetMaxQueryBuffers(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_SetMaxQueryBuffers" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_SetMaxQueryBuffers" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxQueryBuffers(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetUserClients) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CClient * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetUserClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetUserClients" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::vector< CClient * > *) &((CUser const *)arg1)->GetUserClients(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetAllClients) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::vector< CClient * > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetAllClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAllClients" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetAllClients(); ST(argvi) = SWIG_NewPointerObj((new std::vector< CClient * >(static_cast< const std::vector< CClient * >& >(result))), SWIGTYPE_p_std__vectorT_CClient_p_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetUserName) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetUserName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetUserName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetUserName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetCleanUserName) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetCleanUserName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetCleanUserName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetCleanUserName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetNick__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_GetNick(self,bAllowDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_GetNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CUser const *)arg1)->GetNick(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetNick__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetNick__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetNick__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_GetNick'"); XSRETURN(0); } XS(_wrap_CUser_GetAltNick__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_GetAltNick(self,bAllowDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAltNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_GetAltNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CUser const *)arg1)->GetAltNick(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetAltNick__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetAltNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAltNick" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetAltNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetAltNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetAltNick__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetAltNick__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_GetAltNick'"); XSRETURN(0); } XS(_wrap_CUser_GetIdent__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CUser_GetIdent(self,bAllowDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetIdent" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CUser_GetIdent" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CUser const *)arg1)->GetIdent(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetIdent__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetIdent(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetIdent" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetIdent(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetIdent) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetIdent__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CUser_GetIdent__SWIG_0); return; } } croak("No matching function for overloaded 'CUser_GetIdent'"); XSRETURN(0); } XS(_wrap_CUser_GetRealName) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetRealName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetRealName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetRealName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetBindHost) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetBindHost" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetDCCBindHost) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetDCCBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetDCCBindHost" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetDCCBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetPass) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetPass(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetPass" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetPass(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetPassHashType) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CUser::eHashType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetPassHashType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetPassHashType" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CUser::eHashType)((CUser const *)arg1)->GetPassHashType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetPassSalt) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetPassSalt(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetPassSalt" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetPassSalt(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetAllowedHosts) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::set< CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetAllowedHosts(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetAllowedHosts" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (std::set< CString > *) &((CUser const *)arg1)->GetAllowedHosts(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_CString_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetTimestampFormat) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetTimestampFormat(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimestampFormat" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetTimestampFormat(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetClientEncoding) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetClientEncoding(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetClientEncoding" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetClientEncoding(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetTimestampAppend) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetTimestampAppend(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimestampAppend" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->GetTimestampAppend(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetTimestampPrepend) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetTimestampPrepend(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimestampPrepend" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->GetTimestampPrepend(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetUserPath) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetUserPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetUserPath" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetUserPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_DenyLoadMod) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_DenyLoadMod(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DenyLoadMod" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->DenyLoadMod(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_IsAdmin) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_IsAdmin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsAdmin" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->IsAdmin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_DenySetBindHost) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_DenySetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_DenySetBindHost" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->DenySetBindHost(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_MultiClients) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_MultiClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MultiClients" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->MultiClients(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetStatusPrefix) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetStatusPrefix(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetStatusPrefix" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetStatusPrefix(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetDefaultChanModes) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetDefaultChanModes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetDefaultChanModes" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (CString *) &((CUser const *)arg1)->GetDefaultChanModes(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetQuitMsg) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetQuitMsg(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetQuitMsg" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetQuitMsg(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetCTCPReplies) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; MCString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetCTCPReplies(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetCTCPReplies" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (MCString *) &((CUser const *)arg1)->GetCTCPReplies(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetBufferCount) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetBufferCount(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetBufferCount" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->GetBufferCount(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_AutoClearChanBuffer) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_AutoClearChanBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AutoClearChanBuffer" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->AutoClearChanBuffer(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_AutoClearQueryBuffer) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_AutoClearQueryBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_AutoClearQueryBuffer" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->AutoClearQueryBuffer(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_IsBeingDeleted) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_IsBeingDeleted(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_IsBeingDeleted" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (bool)((CUser const *)arg1)->IsBeingDeleted(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetTimezone) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetTimezone(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetTimezone" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetTimezone(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_BytesRead) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_BytesRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_BytesRead" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned long long)((CUser const *)arg1)->BytesRead(); ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_BytesWritten) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_BytesWritten(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_BytesWritten" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned long long)((CUser const *)arg1)->BytesWritten(); ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_JoinTries) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_JoinTries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_JoinTries" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->JoinTries(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_MaxJoins) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_MaxJoins(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MaxJoins" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->MaxJoins(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetSkinName) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetSkinName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetSkinName" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = ((CUser const *)arg1)->GetSkinName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_MaxNetworks) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_MaxNetworks(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MaxNetworks" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->MaxNetworks(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_MaxQueryBuffers) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_MaxQueryBuffers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_MaxQueryBuffers" "', argument " "1"" of type '" "CUser const *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = (unsigned int)((CUser const *)arg1)->MaxQueryBuffers(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CUser_GetNetworks_) { { CUser *arg1 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CIRCNetwork * > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CUser_GetNetworks_(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CUser_GetNetworks_" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); result = CUser_GetNetworks_(arg1); { size_t len = (&result)->size(); SV **svs = new SV*[len]; for (size_t i=0; i &)result)[i]; svs[i] = sv_newmortal(); sv_setsv(svs[i], SWIG_NewPointerObj(x, SWIGTYPE_p_CIRCNetwork, 0)); } AV *myav = av_make(len, svs); delete[] svs; ST(argvi) = newRV_noinc((SV*) myav); sv_2mortal(ST(argvi)); argvi++; } XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsValidNetwork) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsValidNetwork(sNetwork);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsValidNetwork" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_IsValidNetwork" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CIRCNetwork::IsValidNetwork((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CIRCNetwork__SWIG_0) { { CUser *arg1 = (CUser *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CIRCNetwork(pUser,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIRCNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CIRCNetwork *)new CIRCNetwork(arg1,(CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CIRCNetwork__SWIG_1) { { CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CIRCNetwork(pUser,Network);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIRCNetwork" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIRCNetwork" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (CIRCNetwork *)new CIRCNetwork(arg1,(CIRCNetwork const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CIRCNetwork) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CIRCNetwork__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CIRCNetwork__SWIG_0); return; } } croak("No matching function for overloaded 'new_CIRCNetwork'"); XSRETURN(0); } XS(_wrap_delete_CIRCNetwork) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CIRCNetwork(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIRCNetwork" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_Clone__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CIRCNetwork *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_Clone(self,Network,bCloneName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_Clone" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_Clone" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->Clone((CIRCNetwork const &)*arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_Clone__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_Clone(self,Network);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_Clone" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_Clone" "', argument " "2"" of type '" "CIRCNetwork const &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->Clone((CIRCNetwork const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_Clone) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_Clone__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_Clone__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_Clone'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetNetworkPath) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetNetworkPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNetworkPath" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->GetNetworkPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_DelServers) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_DelServers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelServers" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->DelServers(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ParseConfig__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CConfig *arg2 = (CConfig *) 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_ParseConfig(self,pConfig,sError,bUpgrade);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ParseConfig" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ParseConfig" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CIRCNetwork_ParseConfig" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->ParseConfig(arg2,*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ParseConfig__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CConfig *arg2 = (CConfig *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_ParseConfig(self,pConfig,sError);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ParseConfig" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ParseConfig" "', argument " "2"" of type '" "CConfig *""'"); } arg2 = reinterpret_cast< CConfig * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->ParseConfig(arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ParseConfig) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CConfig, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_ParseConfig__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_ParseConfig__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_ParseConfig'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_ToConfig) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CConfig result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_ToConfig(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ToConfig" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->ToConfig(); ST(argvi) = SWIG_NewPointerObj((new CConfig(static_cast< const CConfig& >(result))), SWIGTYPE_p_CConfig, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_BounceAllClients) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_BounceAllClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_BounceAllClients" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->BounceAllClients(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsUserAttached) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsUserAttached(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsUserAttached" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsUserAttached(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsUserOnline) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsUserOnline(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsUserOnline" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsUserOnline(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ClientConnected) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_ClientConnected(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClientConnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ClientConnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->ClientConnected(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ClientDisconnected) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CClient *arg2 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_ClientDisconnected(self,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClientDisconnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ClientDisconnected" "', argument " "2"" of type '" "CClient *""'"); } arg2 = reinterpret_cast< CClient * >(argp2); (arg1)->ClientDisconnected(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetUser) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetUser" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CUser *)((CIRCNetwork const *)arg1)->GetUser(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetName) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetName" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsNetworkAttached) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsNetworkAttached(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsNetworkAttached" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsNetworkAttached(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetClients) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CClient * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetClients" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CClient * > *) &((CIRCNetwork const *)arg1)->GetClients(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_FindClients) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; SwigValueWrapper< std::vector< CClient * > > result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_FindClients(self,sIdentifier);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindClients" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindClients" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindClients" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->FindClients((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj((new std::vector< CClient * >(static_cast< const std::vector< CClient * >& >(result))), SWIGTYPE_p_std__vectorT_CClient_p_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetUser) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetUser(self,pUser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->SetUser(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetName) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetName(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetName" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->SetName((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetModules__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModules *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetModules(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetModules" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CModules *) &(arg1)->GetModules(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetModules__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModules *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetModules(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetModules" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CModules *) &((CIRCNetwork const *)arg1)->GetModules(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetModules) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetModules__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetModules__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCNetwork_GetModules'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_PutUser__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_PutUser(self,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutUser" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutUser__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_PutUser(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutUser" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutUser((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutUser__SWIG_2) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_PutUser(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutUser" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutUser((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutUser) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutUser__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutUser__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutUser__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_PutUser'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_PutStatus__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_PutStatus(self,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutStatus" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutStatus" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutStatus__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_PutStatus(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutStatus" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutStatus" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (bool)(arg1)->PutStatus((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutStatus__SWIG_2) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_PutStatus(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutStatus" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutStatus((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutStatus) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutStatus__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutStatus__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutStatus__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_PutStatus'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_PutModule__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CIRCNetwork_PutModule(self,sModule,sLine,pClient,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutModule" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CIRCNetwork_PutModule" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutModule__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CClient *arg4 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_PutModule(self,sModule,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutModule" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_PutModule" "', argument " "4"" of type '" "CClient *""'"); } arg4 = reinterpret_cast< CClient * >(argp4); result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutModule__SWIG_2) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_PutModule(self,sModule,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutModule" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutModule) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutModule__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutModule__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_PutModule__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_PutModule'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetChans) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CChan * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetChans(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetChans" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CChan * > *) &((CIRCNetwork const *)arg1)->GetChans(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CChan_p_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_FindChan) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString arg2 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CChan *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_FindChan(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindChan" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CIRCNetwork_FindChan" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (CChan *)((CIRCNetwork const *)arg1)->FindChan(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CChan, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_FindChans) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; std::vector< CChan * > result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_FindChans(self,sWild);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindChans" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindChans" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindChans" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->FindChans((CString const &)*arg2); { size_t len = (&result)->size(); SV **svs = new SV*[len]; for (size_t i=0; i &)result)[i]; svs[i] = sv_newmortal(); sv_setsv(svs[i], SWIG_NewPointerObj(x, SWIGTYPE_p_CChan, 0)); } AV *myav = av_make(len, svs); delete[] svs; ST(argvi) = newRV_noinc((SV*) myav); sv_2mortal(ST(argvi)); argvi++; } if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddChan__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CChan *arg2 = (CChan *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddChan(self,pChan);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddChan" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CChan, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddChan" "', argument " "2"" of type '" "CChan *""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (bool)(arg1)->AddChan(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddChan__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_AddChan(self,sName,bInConfig);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddChan" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddChan" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddChan" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddChan" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->AddChan((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddChan) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CChan, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddChan__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddChan__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCNetwork_AddChan'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_DelChan) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_DelChan(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelChan" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelChan" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelChan" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelChan((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_JoinChans__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_JoinChans(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_JoinChans" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->JoinChans(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_JoinChans__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; std::set< CChan * > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_JoinChans(self,sChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_JoinChans" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__setT_CChan_p_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_JoinChans" "', argument " "2"" of type '" "std::set< CChan * > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_JoinChans" "', argument " "2"" of type '" "std::set< CChan * > &""'"); } arg2 = reinterpret_cast< std::set< CChan * > * >(argp2); (arg1)->JoinChans(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_JoinChans) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_std__setT_CChan_p_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_JoinChans__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_JoinChans__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCNetwork_JoinChans'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetQueries) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CQuery * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetQueries(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetQueries" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CQuery * > *) &((CIRCNetwork const *)arg1)->GetQueries(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CQuery_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_FindQuery) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CQuery *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_FindQuery(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindQuery" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindQuery" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindQuery" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CQuery *)((CIRCNetwork const *)arg1)->FindQuery((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CQuery, 0 | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_FindQueries) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; SwigValueWrapper< std::vector< CQuery * > > result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_FindQueries(self,sWild);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindQueries" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindQueries" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindQueries" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->FindQueries((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj((new std::vector< CQuery * >(static_cast< const std::vector< CQuery * >& >(result))), SWIGTYPE_p_std__vectorT_CQuery_p_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddQuery) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CQuery *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddQuery(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddQuery" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddQuery" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddQuery" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CQuery *)(arg1)->AddQuery((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CQuery, 0 | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_DelQuery) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_DelQuery(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelQuery" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelQuery" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelQuery" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DelQuery((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetChanPrefixes) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetChanPrefixes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetChanPrefixes" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetChanPrefixes(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetChanPrefixes) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetChanPrefixes(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetChanPrefixes" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetChanPrefixes" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetChanPrefixes" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetChanPrefixes((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsChan) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_IsChan(self,sChan);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsChan" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_IsChan" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_IsChan" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CIRCNetwork const *)arg1)->IsChan((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetServers) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CServer * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetServers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetServers" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (std::vector< CServer * > *) &((CIRCNetwork const *)arg1)->GetServers(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CServer_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_HasServers) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_HasServers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_HasServers" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->HasServers(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_FindServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_FindServer(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_FindServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_FindServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_FindServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CServer *)((CIRCNetwork const *)arg1)->FindServer((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_DelServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_DelServer(self,sName,uPort,sPass);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_DelServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_DelServer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelServer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->DelServer((CString const &)*arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddServer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddServer(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddServer((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddServer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CIRCNetwork_AddServer(self,sName,uPort,sPass,bSSL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CIRCNetwork_AddServer" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); result = (bool)(arg1)->AddServer((CString const &)*arg2,arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddServer__SWIG_2) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_AddServer(self,sName,uPort,sPass);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->AddServer((CString const &)*arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddServer__SWIG_3) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_AddServer(self,sName,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CIRCNetwork_AddServer" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->AddServer((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddServer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddServer__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddServer__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddServer__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddServer__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCNetwork_AddServer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetNextServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetNextServer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNextServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CServer *)(arg1)->GetNextServer(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetCurrentServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetCurrentServer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetCurrentServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CServer *)((CIRCNetwork const *)arg1)->GetCurrentServer(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetIRCServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetIRCServer(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIRCServer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetIRCServer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIRCServer((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetNextServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CServer *arg2 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetNextServer(self,pServer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetNextServer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetNextServer" "', argument " "2"" of type '" "CServer const *""'"); } arg2 = reinterpret_cast< CServer * >(argp2); result = (bool)(arg1)->SetNextServer((CServer const *)arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsLastServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsLastServer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsLastServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsLastServer(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetTrustedFingerprints) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SCString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetTrustedFingerprints(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetTrustedFingerprints" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (SCString *) &((CIRCNetwork const *)arg1)->GetTrustedFingerprints(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_SCString, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddTrustedFingerprint) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddTrustedFingerprint(self,sFP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddTrustedFingerprint" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddTrustedFingerprint((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_DelTrustedFingerprint) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_DelTrustedFingerprint(self,sFP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_DelTrustedFingerprint" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_DelTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_DelTrustedFingerprint" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->DelTrustedFingerprint((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetIRCConnectEnabled) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetIRCConnectEnabled(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCConnectEnabled" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetIRCConnectEnabled" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIRCConnectEnabled(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIRCConnectEnabled) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetIRCConnectEnabled(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCConnectEnabled" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->GetIRCConnectEnabled(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIRCSock__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetIRCSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCSock" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CIRCSock *)(arg1)->GetIRCSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIRCSock__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetIRCSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCSock" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CIRCSock *)((CIRCNetwork const *)arg1)->GetIRCSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIRCSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetIRCSock__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetIRCSock__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCNetwork_GetIRCSock'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetIRCServer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetIRCServer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCServer" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetIRCServer(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIRCNick) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CNick *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetIRCNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIRCNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CNick *) &((CIRCNetwork const *)arg1)->GetIRCNick(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CNick, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetIRCNick) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CNick *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetIRCNick(self,n);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCNick" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIRCNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetIRCNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); (arg1)->SetIRCNick((CNick const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetCurNick) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetCurNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetCurNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->GetCurNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsIRCAway) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsIRCAway(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsIRCAway" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsIRCAway(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetIRCAway) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetIRCAway(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCAway" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetIRCAway" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetIRCAway(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_Connect) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_Connect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_Connect" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)(arg1)->Connect(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IsIRCConnected) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IsIRCConnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IsIRCConnected" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (bool)((CIRCNetwork const *)arg1)->IsIRCConnected(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetIRCSocket) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetIRCSocket(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIRCSocket" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIRCSocket" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); (arg1)->SetIRCSocket(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IRCConnected) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IRCConnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IRCConnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->IRCConnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_IRCDisconnected) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_IRCDisconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_IRCDisconnected" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->IRCDisconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_CheckIRCConnect) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_CheckIRCConnect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_CheckIRCConnect" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->CheckIRCConnect(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_PutIRC) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_PutIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_PutIRC" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PutIRC((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddRawBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_AddRawBuffer(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddRawBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddRawBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddRawBuffer(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddRawBuffer((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddRawBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddRawBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddRawBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_AddRawBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_UpdateRawBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_UpdateRawBuffer(self,sMatch,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateRawBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateRawBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_UpdateRawBuffer(self,sMatch,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateRawBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateRawBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateRawBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateRawBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_UpdateRawBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_UpdateExactRawBuffer(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateExactRawBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_UpdateExactRawBuffer(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateExactRawBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->UpdateExactRawBuffer((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateExactRawBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateExactRawBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_UpdateExactRawBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_ClearRawBuffer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_ClearRawBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClearRawBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearRawBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddMotdBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_AddMotdBuffer(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddMotdBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddMotdBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddMotdBuffer(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddMotdBuffer((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddMotdBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddMotdBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddMotdBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_AddMotdBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_UpdateMotdBuffer(self,sMatch,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateMotdBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_UpdateMotdBuffer(self,sMatch,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateMotdBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateMotdBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateMotdBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateMotdBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_UpdateMotdBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_ClearMotdBuffer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_ClearMotdBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClearMotdBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearMotdBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddNoticeBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_AddNoticeBuffer(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddNoticeBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddNoticeBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_AddNoticeBuffer(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_AddNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddNoticeBuffer((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_AddNoticeBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddNoticeBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_AddNoticeBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_AddNoticeBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCNetwork_UpdateNoticeBuffer(self,sMatch,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->UpdateNoticeBuffer((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_UpdateNoticeBuffer(self,sMatch,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_UpdateNoticeBuffer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->UpdateNoticeBuffer((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_UpdateNoticeBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_UpdateNoticeBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_UpdateNoticeBuffer'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_ClearNoticeBuffer) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_ClearNoticeBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ClearNoticeBuffer" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); (arg1)->ClearNoticeBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetNick__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_GetNick(self,bAllowDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_GetNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CIRCNetwork const *)arg1)->GetNick(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetNick__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetNick__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetNick__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_GetNick'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetAltNick__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_GetAltNick(self,bAllowDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetAltNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_GetAltNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CIRCNetwork const *)arg1)->GetAltNick(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetAltNick__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetAltNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetAltNick" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetAltNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetAltNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetAltNick__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetAltNick__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_GetAltNick'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetIdent__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_GetIdent(self,bAllowDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIdent" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_GetIdent" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CString *) &((CIRCNetwork const *)arg1)->GetIdent(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIdent__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetIdent(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetIdent" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetIdent(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetIdent) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetIdent__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_GetIdent__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCNetwork_GetIdent'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetRealName) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetRealName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetRealName" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetRealName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetBindHost) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetBindHost" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetEncoding) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetEncoding(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetEncoding" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CString *) &((CIRCNetwork const *)arg1)->GetEncoding(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetQuitMsg) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetQuitMsg(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetQuitMsg" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = ((CIRCNetwork const *)arg1)->GetQuitMsg(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetNick) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetNick(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetNick" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetAltNick) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetAltNick(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetAltNick" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetAltNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetAltNick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetIdent) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetIdent(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetIdent" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetIdent" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetIdent((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetRealName) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetRealName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetRealName" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetRealName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetRealName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetBindHost) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetBindHost(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetBindHost" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetBindHost((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetEncoding) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetEncoding(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetEncoding" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetEncoding" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetEncoding((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetQuitMsg) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetQuitMsg(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetQuitMsg" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_SetQuitMsg" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetQuitMsg((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetFloodRate) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; double result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetFloodRate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetFloodRate" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (double)((CIRCNetwork const *)arg1)->GetFloodRate(); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetFloodBurst) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetFloodBurst(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetFloodBurst" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (unsigned short)((CIRCNetwork const *)arg1)->GetFloodBurst(); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetFloodRate) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; double arg2 ; void *argp1 = 0 ; int res1 = 0 ; double val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetFloodRate(self,fFloodRate);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetFloodRate" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetFloodRate" "', argument " "2"" of type '" "double""'"); } arg2 = static_cast< double >(val2); (arg1)->SetFloodRate(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetFloodBurst) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetFloodBurst(self,uFloodBurst);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetFloodBurst" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetFloodBurst" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); (arg1)->SetFloodBurst(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_GetJoinDelay) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetJoinDelay(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetJoinDelay" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (unsigned short)((CIRCNetwork const *)arg1)->GetJoinDelay(); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_SetJoinDelay) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; unsigned short arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_SetJoinDelay(self,uJoinDelay);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_SetJoinDelay" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCNetwork_SetJoinDelay" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); (arg1)->SetJoinDelay(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ExpandString__SWIG_0) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCNetwork_ExpandString(self,sStr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ExpandString" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCNetwork const *)arg1)->ExpandString((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ExpandString__SWIG_1) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCNetwork_ExpandString(self,sStr,sRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_ExpandString" "', argument " "1"" of type '" "CIRCNetwork const *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ExpandString" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCNetwork_ExpandString" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCNetwork_ExpandString" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CString *) &((CIRCNetwork const *)arg1)->ExpandString((CString const &)*arg2,*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CString, 0 | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCNetwork_ExpandString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_ExpandString__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCNetwork_ExpandString__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCNetwork_ExpandString'"); XSRETURN(0); } XS(_wrap_CIRCNetwork_GetChans_) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CChan * > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCNetwork_GetChans_(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCNetwork_GetChans_" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = CIRCNetwork_GetChans_(arg1); { size_t len = (&result)->size(); SV **svs = new SV*[len]; for (size_t i=0; i &)result)[i]; svs[i] = sv_newmortal(); sv_setsv(svs[i], SWIG_NewPointerObj(x, SWIGTYPE_p_CChan, 0)); } AV *myav = av_make(len, svs); delete[] svs; ST(argvi) = newRV_noinc((SV*) myav); sv_2mortal(ST(argvi)); argvi++; } XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CAuthBase) { { CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CAuthBase(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CAuthBase" "', argument " "1"" of type '" "CAuthBase *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CAuthBase_SetLoginInfo) { { CAuthBase *arg1 = (CAuthBase *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CZNCSock *arg4 = (CZNCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CAuthBase_SetLoginInfo(self,sUsername,sPassword,pSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_SetLoginInfo" "', argument " "1"" of type '" "CAuthBase *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CAuthBase_SetLoginInfo" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_SetLoginInfo" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CAuthBase_SetLoginInfo" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_SetLoginInfo" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CZNCSock, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CAuthBase_SetLoginInfo" "', argument " "4"" of type '" "CZNCSock *""'"); } arg4 = reinterpret_cast< CZNCSock * >(argp4); (arg1)->SetLoginInfo((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CAuthBase_AcceptLogin) { { CAuthBase *arg1 = (CAuthBase *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CAuthBase_AcceptLogin(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_AcceptLogin" "', argument " "1"" of type '" "CAuthBase *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CAuthBase_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->AcceptLogin(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CAuthBase_RefuseLogin) { { CAuthBase *arg1 = (CAuthBase *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CAuthBase_RefuseLogin(self,sReason);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_RefuseLogin" "', argument " "1"" of type '" "CAuthBase *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CAuthBase_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CAuthBase_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RefuseLogin((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CAuthBase_GetUsername) { { CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CAuthBase_GetUsername(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetUsername" "', argument " "1"" of type '" "CAuthBase const *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); result = (CString *) &((CAuthBase const *)arg1)->GetUsername(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CAuthBase_GetPassword) { { CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CAuthBase_GetPassword(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetPassword" "', argument " "1"" of type '" "CAuthBase const *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); result = (CString *) &((CAuthBase const *)arg1)->GetPassword(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CAuthBase_GetSocket) { { CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CAuthBase_GetSocket(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetSocket" "', argument " "1"" of type '" "CAuthBase const *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); result = (Csock *)((CAuthBase const *)arg1)->GetSocket(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CAuthBase_GetRemoteIP) { { CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CAuthBase_GetRemoteIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_GetRemoteIP" "', argument " "1"" of type '" "CAuthBase const *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); result = ((CAuthBase const *)arg1)->GetRemoteIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CAuthBase_Invalidate) { { CAuthBase *arg1 = (CAuthBase *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CAuthBase_Invalidate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CAuthBase, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CAuthBase_Invalidate" "', argument " "1"" of type '" "CAuthBase *""'"); } arg1 = reinterpret_cast< CAuthBase * >(argp1); (arg1)->Invalidate(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CClientAuth) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CClientAuth *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CClientAuth(pClient,sUsername,sPassword);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CClientAuth" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CClientAuth" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CClientAuth" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CClientAuth" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CClientAuth" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CClientAuth *)new CClientAuth(arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClientAuth, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_delete_CClientAuth) { { CClientAuth *arg1 = (CClientAuth *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CClientAuth(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClientAuth, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CClientAuth" "', argument " "1"" of type '" "CClientAuth *""'"); } arg1 = reinterpret_cast< CClientAuth * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClientAuth_Invalidate) { { CClientAuth *arg1 = (CClientAuth *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClientAuth_Invalidate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClientAuth, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClientAuth_Invalidate" "', argument " "1"" of type '" "CClientAuth *""'"); } arg1 = reinterpret_cast< CClientAuth * >(argp1); (arg1)->Invalidate(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClientAuth_AcceptedLogin) { { CClientAuth *arg1 = (CClientAuth *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClientAuth_AcceptedLogin(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClientAuth, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClientAuth_AcceptedLogin" "', argument " "1"" of type '" "CClientAuth *""'"); } arg1 = reinterpret_cast< CClientAuth * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClientAuth_AcceptedLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClientAuth_AcceptedLogin" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->AcceptedLogin(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClientAuth_RefusedLogin) { { CClientAuth *arg1 = (CClientAuth *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClientAuth_RefusedLogin(self,sReason);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClientAuth, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClientAuth_RefusedLogin" "', argument " "1"" of type '" "CClientAuth *""'"); } arg1 = reinterpret_cast< CClientAuth * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClientAuth_RefusedLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClientAuth_RefusedLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RefusedLogin((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CClient) { { int argvi = 0; CClient *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CClient();"); } result = (CClient *)new CClient(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CClient, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CClient) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CClient(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CClient" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SendRequiredPasswordNotice) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_SendRequiredPasswordNotice(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SendRequiredPasswordNotice" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->SendRequiredPasswordNotice(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_AcceptLogin) { { CClient *arg1 = (CClient *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_AcceptLogin(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_AcceptLogin" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_AcceptLogin" "', argument " "2"" of type '" "CUser &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->AcceptLogin(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_RefuseLogin) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_RefuseLogin(self,sReason);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_RefuseLogin" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_RefuseLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RefuseLogin((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_GetNick__SWIG_0) { { CClient *arg1 = (CClient *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_GetNick(self,bAllowIRCNick);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNick" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CClient_GetNick" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = ((CClient const *)arg1)->GetNick(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetNick__SWIG_1) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNick" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetNick) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_GetNick__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_GetNick__SWIG_0); return; } } croak("No matching function for overloaded 'CClient_GetNick'"); XSRETURN(0); } XS(_wrap_CClient_GetNickMask) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetNickMask(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNickMask" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetNickMask(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetIdentifier) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetIdentifier(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetIdentifier" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetIdentifier(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HasNamesx) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_HasNamesx(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasNamesx" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasNamesx(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HasUHNames) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_HasUHNames(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasUHNames" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasUHNames(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_IsAway) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_IsAway(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsAway" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->IsAway(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HasServerTime) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_HasServerTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasServerTime" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasServerTime(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HasBatch) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_HasBatch(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasBatch" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasBatch(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HasSelfMessage) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_HasSelfMessage(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HasSelfMessage" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->HasSelfMessage(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_IsValidIdentifier) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_IsValidIdentifier(sIdentifier);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsValidIdentifier" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_IsValidIdentifier" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CClient::IsValidIdentifier((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CClient_UserCommand) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_UserCommand(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_UserCommand" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_UserCommand" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_UserCommand" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); (arg1)->UserCommand(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_UserPortCommand) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_UserPortCommand(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_UserPortCommand" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_UserPortCommand" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_UserPortCommand" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); (arg1)->UserPortCommand(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_StatusCTCP) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_StatusCTCP(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_StatusCTCP" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_StatusCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_StatusCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->StatusCTCP((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_BouncedOff) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_BouncedOff(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_BouncedOff" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->BouncedOff(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_IsAttached) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_IsAttached(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsAttached" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->IsAttached(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_IsPlaybackActive) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_IsPlaybackActive(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsPlaybackActive" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)((CClient const *)arg1)->IsPlaybackActive(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SetPlaybackActive) { { CClient *arg1 = (CClient *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_SetPlaybackActive(self,bActive);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetPlaybackActive" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CClient_SetPlaybackActive" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetPlaybackActive(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_PutIRC) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_PutIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutIRC" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutIRC((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_PutClient) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_PutClient(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutClient" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutClient" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutClient" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutClient((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_PutStatus__SWIG_0) { { CClient *arg1 = (CClient *) 0 ; CTable *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_PutStatus(self,table);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutStatus" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTable, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CTable const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CTable const &""'"); } arg2 = reinterpret_cast< CTable * >(argp2); result = (unsigned int)(arg1)->PutStatus((CTable const &)*arg2); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_PutStatus__SWIG_1) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_PutStatus(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutStatus" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutStatus" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutStatus((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_PutStatus) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CTable, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_PutStatus__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_PutStatus__SWIG_1); return; } } croak("No matching function for overloaded 'CClient_PutStatus'"); XSRETURN(0); } XS(_wrap_CClient_PutStatusNotice) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_PutStatusNotice(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutStatusNotice" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutStatusNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutStatusNotice((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_PutModule) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CClient_PutModule(self,sModule,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutModule" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CClient_PutModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->PutModule((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CClient_PutModNotice) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CClient_PutModNotice(self,sModule,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_PutModNotice" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CClient_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_PutModNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->PutModNotice((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CClient_IsCapEnabled) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_IsCapEnabled(self,sCap);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_IsCapEnabled" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_IsCapEnabled" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_IsCapEnabled" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CClient const *)arg1)->IsCapEnabled((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_ReadLine) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_ReadLine(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_ReadLine" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_SendMotd) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_SendMotd(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SendMotd" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (bool)(arg1)->SendMotd(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HelpUser__SWIG_0) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_HelpUser(self,sFilter);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HelpUser" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_HelpUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_HelpUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->HelpUser((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_HelpUser__SWIG_1) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_HelpUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_HelpUser" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->HelpUser(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_HelpUser) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_HelpUser__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_HelpUser__SWIG_0); return; } } croak("No matching function for overloaded 'CClient_HelpUser'"); XSRETURN(0); } XS(_wrap_CClient_AuthUser) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_AuthUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_AuthUser" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->AuthUser(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_Connected) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_Connected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_Connected" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->Connected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_Timeout) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_Timeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_Timeout" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->Timeout(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_Disconnected) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_Disconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_Disconnected" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->Disconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_ConnectionRefused) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_ConnectionRefused(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_ConnectionRefused" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->ConnectionRefused(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_ReachedMaxBuffer) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_ReachedMaxBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_ReachedMaxBuffer" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); (arg1)->ReachedMaxBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SetNick) { { CClient *arg1 = (CClient *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_SetNick(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNick" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CClient_SetNick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetNick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CClient_SetAway) { { CClient *arg1 = (CClient *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_SetAway(self,bAway);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetAway" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CClient_SetAway" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetAway(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetUser) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetUser" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CUser *)((CClient const *)arg1)->GetUser(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SetNetwork__SWIG_0) { { CClient *arg1 = (CClient *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CClient_SetNetwork(self,pNetwork,bDisconnect,bReconnect);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNetwork" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CClient_SetNetwork" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CClient_SetNetwork" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); (arg1)->SetNetwork(arg2,arg3,arg4); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SetNetwork__SWIG_1) { { CClient *arg1 = (CClient *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CClient_SetNetwork(self,pNetwork,bDisconnect);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNetwork" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CClient_SetNetwork" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->SetNetwork(arg2,arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SetNetwork__SWIG_2) { { CClient *arg1 = (CClient *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CClient_SetNetwork(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_SetNetwork" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CClient_SetNetwork" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->SetNetwork(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_SetNetwork) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CIRCNetwork, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_SetNetwork__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_SetNetwork__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_SetNetwork__SWIG_0); return; } } croak("No matching function for overloaded 'CClient_SetNetwork'"); XSRETURN(0); } XS(_wrap_CClient_GetNetwork) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetNetwork(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetNetwork" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CIRCNetwork *)((CClient const *)arg1)->GetNetwork(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetClients) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CClient * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetClients(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetClients" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (std::vector< CClient * > *) &((CClient const *)arg1)->GetClients(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CClient_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetIRCSock__SWIG_0) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetIRCSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetIRCSock" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CIRCSock *)((CClient const *)arg1)->GetIRCSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetIRCSock__SWIG_1) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetIRCSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetIRCSock" "', argument " "1"" of type '" "CClient *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = (CIRCSock *)(arg1)->GetIRCSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CClient_GetIRCSock) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_GetIRCSock__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CClient_GetIRCSock__SWIG_0); return; } } croak("No matching function for overloaded 'CClient_GetIRCSock'"); XSRETURN(0); } XS(_wrap_CClient_GetFullName) { { CClient *arg1 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CClient_GetFullName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CClient_GetFullName" "', argument " "1"" of type '" "CClient const *""'"); } arg1 = reinterpret_cast< CClient * >(argp1); result = ((CClient const *)arg1)->GetFullName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CIRCSock) { { CIRCNetwork *arg1 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CIRCSock(pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIRCSock" "', argument " "1"" of type '" "CIRCNetwork *""'"); } arg1 = reinterpret_cast< CIRCNetwork * >(argp1); result = (CIRCSock *)new CIRCSock(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CIRCSock) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CIRCSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIRCSock" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnCTCPReply) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_OnCTCPReply(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnCTCPReply" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnPrivCTCP) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_OnPrivCTCP(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnPrivCTCP" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnChanCTCP) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCSock_OnChanCTCP(self,Nick,sChan,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnChanCTCP" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnChanCTCP" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanCTCP" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCSock_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanCTCP(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnGeneralCTCP) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_OnGeneralCTCP(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnGeneralCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnGeneralCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnPrivMsg) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_OnPrivMsg(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnPrivMsg" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivMsg(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnChanMsg) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCSock_OnChanMsg(self,Nick,sChan,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnChanMsg" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnChanMsg" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanMsg" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCSock_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanMsg(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnPrivNotice) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_OnPrivNotice(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnPrivNotice" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->OnPrivNotice(*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnChanNotice) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CIRCSock_OnChanNotice(self,Nick,sChan,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnChanNotice" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_OnChanNotice" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanNotice" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CIRCSock_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (bool)(arg1)->OnChanNotice(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCSock_OnServerCapAvailable) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_OnServerCapAvailable(self,sCap);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_OnServerCapAvailable" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_ReadLine) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_ReadLine(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ReadLine" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_Connected) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_Connected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Connected" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Connected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_Disconnected) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_Disconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Disconnected" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Disconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_ConnectionRefused) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_ConnectionRefused(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ConnectionRefused" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ConnectionRefused(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_SockError) { { CIRCSock *arg1 = (CIRCSock *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_SockError(self,iErrno,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_SockError" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCSock_Timeout) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_Timeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Timeout" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Timeout(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_ReachedMaxBuffer) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_ReachedMaxBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ReachedMaxBuffer" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ReachedMaxBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_PutIRC) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_PutIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_PutIRC" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_PutIRC" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutIRC((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_PutIRCQuick) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_PutIRCQuick(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_PutIRCQuick" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_PutIRCQuick" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_PutIRCQuick" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PutIRCQuick((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_ResetChans) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_ResetChans(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ResetChans" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ResetChans(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_Quit__SWIG_0) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_Quit(self,sQuitMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Quit" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_Quit" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_Quit" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Quit((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_Quit__SWIG_1) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_Quit(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_Quit" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->Quit(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_Quit) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_Quit__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_Quit__SWIG_0); return; } } croak("No matching function for overloaded 'CIRCSock_Quit'"); XSRETURN(0); } XS(_wrap_CIRCSock_PauseCap) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_PauseCap(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_PauseCap" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->PauseCap(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_ResumeCap) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_ResumeCap(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ResumeCap" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); (arg1)->ResumeCap(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_SetPass) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_SetPass(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_SetPass" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_SetPass" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_SetPass" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetPass((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetMaxNickLen) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetMaxNickLen(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetMaxNickLen" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (unsigned int)((CIRCSock const *)arg1)->GetMaxNickLen(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetModeType) { { CIRCSock *arg1 = (CIRCSock *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; CIRCSock::EChanModeArgs result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_GetModeType(self,uMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetModeType" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_GetModeType" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (CIRCSock::EChanModeArgs)((CIRCSock const *)arg1)->GetModeType(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetPermFromMode) { { CIRCSock *arg1 = (CIRCSock *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char val2 ; int ecode2 = 0 ; int argvi = 0; unsigned char result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_GetPermFromMode(self,uMode);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPermFromMode" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_GetPermFromMode" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = static_cast< unsigned char >(val2); result = (unsigned char)((CIRCSock const *)arg1)->GetPermFromMode(arg2); ST(argvi) = SWIG_From_unsigned_SS_char SWIG_PERL_CALL_ARGS_1(static_cast< unsigned char >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetChanModes) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::map< unsigned char,CIRCSock::EChanModeArgs > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetChanModes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetChanModes" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (std::map< unsigned char,CIRCSock::EChanModeArgs > *) &((CIRCSock const *)arg1)->GetChanModes(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_IsPermChar) { { CIRCSock *arg1 = (CIRCSock *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_IsPermChar(self,c);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsPermChar" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_IsPermChar" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)((CIRCSock const *)arg1)->IsPermChar(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_IsPermMode) { { CIRCSock *arg1 = (CIRCSock *) 0 ; char arg2 ; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_IsPermMode(self,c);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsPermMode" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); ecode2 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CIRCSock_IsPermMode" "', argument " "2"" of type '" "char""'"); } arg2 = static_cast< char >(val2); result = (bool)((CIRCSock const *)arg1)->IsPermMode(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetPerms) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetPerms(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPerms" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetPerms(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetPermModes) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetPermModes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPermModes" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetPermModes(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetNickMask) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetNickMask(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetNickMask" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = ((CIRCSock const *)arg1)->GetNickMask(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetNick) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetNick(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetNick" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetNick(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetPass) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetPass(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetPass" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CString *) &((CIRCSock const *)arg1)->GetPass(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetNetwork) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CIRCNetwork *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetNetwork(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetNetwork" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (CIRCNetwork *)((CIRCSock const *)arg1)->GetNetwork(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIRCNetwork, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_HasNamesx) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_HasNamesx(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_HasNamesx" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (bool)((CIRCSock const *)arg1)->HasNamesx(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_HasUHNames) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_HasUHNames(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_HasUHNames" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (bool)((CIRCSock const *)arg1)->HasUHNames(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetUserModes) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::set< unsigned char > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetUserModes(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetUserModes" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (std::set< unsigned char > *) &((CIRCSock const *)arg1)->GetUserModes(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_unsigned_char_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_IsAuthed) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_IsAuthed(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsAuthed" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (bool)((CIRCSock const *)arg1)->IsAuthed(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_IsCapAccepted) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_IsCapAccepted(self,sCap);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_IsCapAccepted" "', argument " "1"" of type '" "CIRCSock *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_IsCapAccepted" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_IsCapAccepted" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->IsCapAccepted((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetISupport__SWIG_0) { { CIRCSock *arg1 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; MCString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_GetISupport(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetISupport" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); result = (MCString *) &((CIRCSock const *)arg1)->GetISupport(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_MCString, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetISupport__SWIG_1) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_GetISupport(self,sKey,sDefault);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetISupport" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_GetISupport" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_GetISupport" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = ((CIRCSock const *)arg1)->GetISupport((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetISupport__SWIG_2) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_GetISupport(self,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_GetISupport" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_GetISupport" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CIRCSock const *)arg1)->GetISupport((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_GetISupport) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_GetISupport__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_GetISupport__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_GetISupport__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCSock_GetISupport'"); XSRETURN(0); } XS(_wrap_CIRCSock_ForwardRaw353__SWIG_0) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIRCSock_ForwardRaw353(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ForwardRaw353" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ((CIRCSock const *)arg1)->ForwardRaw353((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_ForwardRaw353__SWIG_1) { { CIRCSock *arg1 = (CIRCSock *) 0 ; CString *arg2 = 0 ; CClient *arg3 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CIRCSock_ForwardRaw353(self,sLine,pClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIRCSock_ForwardRaw353" "', argument " "1"" of type '" "CIRCSock const *""'"); } arg1 = reinterpret_cast< CIRCSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIRCSock_ForwardRaw353" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CIRCSock_ForwardRaw353" "', argument " "3"" of type '" "CClient *""'"); } arg3 = reinterpret_cast< CClient * >(argp3); ((CIRCSock const *)arg1)->ForwardRaw353((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIRCSock_ForwardRaw353) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CIRCSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_ForwardRaw353__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CIRCSock_ForwardRaw353__SWIG_1); return; } } croak("No matching function for overloaded 'CIRCSock_ForwardRaw353'"); XSRETURN(0); } XS(_wrap_CIRCSock_IsFloodProtected) { { double arg1 ; double val1 ; int ecode1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIRCSock_IsFloodProtected(fRate);"); } ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CIRCSock_IsFloodProtected" "', argument " "1"" of type '" "double""'"); } arg1 = static_cast< double >(val1); result = (bool)CIRCSock::IsFloodProtected(arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CListener) { { unsigned short arg1 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; EAddrType arg5 ; CListener::EAcceptType arg6 ; unsigned short val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int argvi = 0; CListener *result = 0 ; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: new_CListener(uPort,sBindHost,sURIPrefix,bSSL,eAddr,eAccept);"); } ecode1 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CListener" "', argument " "1"" of type '" "unsigned short""'"); } arg1 = static_cast< unsigned short >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CListener" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CListener" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CListener" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CListener" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CListener" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); ecode5 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CListener" "', argument " "5"" of type '" "EAddrType""'"); } arg5 = static_cast< EAddrType >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CListener" "', argument " "6"" of type '" "CListener::EAcceptType""'"); } arg6 = static_cast< CListener::EAcceptType >(val6); result = (CListener *)new CListener(arg1,(CString const &)*arg2,(CString const &)*arg3,arg4,arg5,arg6); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_delete_CListener) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CListener(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CListener" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_IsSSL) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_IsSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_IsSSL" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (bool)((CListener const *)arg1)->IsSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_GetAddrType) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; EAddrType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_GetAddrType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetAddrType" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (EAddrType)((CListener const *)arg1)->GetAddrType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_GetPort) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_GetPort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetPort" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (unsigned short)((CListener const *)arg1)->GetPort(); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_GetBindHost) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_GetBindHost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetBindHost" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CString *) &((CListener const *)arg1)->GetBindHost(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_GetRealListener) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CRealListener *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_GetRealListener(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetRealListener" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CRealListener *)((CListener const *)arg1)->GetRealListener(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRealListener, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_GetURIPrefix) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_GetURIPrefix(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetURIPrefix" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CString *) &((CListener const *)arg1)->GetURIPrefix(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_GetAcceptType) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CListener::EAcceptType result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_GetAcceptType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_GetAcceptType" "', argument " "1"" of type '" "CListener const *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CListener::EAcceptType)((CListener const *)arg1)->GetAcceptType(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_SetAcceptType) { { CListener *arg1 = (CListener *) 0 ; CListener::EAcceptType arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CListener_SetAcceptType(self,eType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_SetAcceptType" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CListener_SetAcceptType" "', argument " "2"" of type '" "CListener::EAcceptType""'"); } arg2 = static_cast< CListener::EAcceptType >(val2); (arg1)->SetAcceptType(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_Listen) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_Listen(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_Listen" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (bool)(arg1)->Listen(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CListener_ResetRealListener) { { CListener *arg1 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CListener_ResetRealListener(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CListener_ResetRealListener" "', argument " "1"" of type '" "CListener *""'"); } arg1 = reinterpret_cast< CListener * >(argp1); (arg1)->ResetRealListener(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CRealListener) { { CListener *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CRealListener *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CRealListener(listener);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CListener, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CRealListener" "', argument " "1"" of type '" "CListener &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CRealListener" "', argument " "1"" of type '" "CListener &""'"); } arg1 = reinterpret_cast< CListener * >(argp1); result = (CRealListener *)new CRealListener(*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CRealListener, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CRealListener) { { CRealListener *arg1 = (CRealListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CRealListener(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRealListener, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CRealListener" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CRealListener_ConnectionFrom) { { CRealListener *arg1 = (CRealListener *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CRealListener_ConnectionFrom(self,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRealListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CRealListener_ConnectionFrom" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CRealListener_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CRealListener_ConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CRealListener_ConnectionFrom" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (bool)(arg1)->ConnectionFrom((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CRealListener_GetSockObj) { { CRealListener *arg1 = (CRealListener *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CRealListener_GetSockObj(self,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRealListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CRealListener_GetSockObj" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CRealListener_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CRealListener_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CRealListener_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CRealListener_SockError) { { CRealListener *arg1 = (CRealListener *) 0 ; int arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CRealListener_SockError(self,iErrno,sDescription);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CRealListener, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CRealListener_SockError" "', argument " "1"" of type '" "CRealListener *""'"); } arg1 = reinterpret_cast< CRealListener * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CRealListener_SockError" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CRealListener_SockError" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CRealListener_SockError" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->SockError(arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_new_CIncomingConnection) { { CString *arg1 = 0 ; unsigned short arg2 ; CListener::EAcceptType arg3 ; CString *arg4 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; CIncomingConnection *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CIncomingConnection(sHostname,uPort,eAcceptType,sURIPrefix);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CIncomingConnection" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIncomingConnection" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CIncomingConnection" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CIncomingConnection" "', argument " "3"" of type '" "CListener::EAcceptType""'"); } arg3 = static_cast< CListener::EAcceptType >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CIncomingConnection" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CIncomingConnection" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (CIncomingConnection *)new CIncomingConnection((CString const &)*arg1,arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CIncomingConnection, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_delete_CIncomingConnection) { { CIncomingConnection *arg1 = (CIncomingConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CIncomingConnection(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIncomingConnection, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CIncomingConnection" "', argument " "1"" of type '" "CIncomingConnection *""'"); } arg1 = reinterpret_cast< CIncomingConnection * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CIncomingConnection_ReadLine) { { CIncomingConnection *arg1 = (CIncomingConnection *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CIncomingConnection_ReadLine(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIncomingConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIncomingConnection_ReadLine" "', argument " "1"" of type '" "CIncomingConnection *""'"); } arg1 = reinterpret_cast< CIncomingConnection * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CIncomingConnection_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CIncomingConnection_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CIncomingConnection_ReachedMaxBuffer) { { CIncomingConnection *arg1 = (CIncomingConnection *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CIncomingConnection_ReachedMaxBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CIncomingConnection, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CIncomingConnection_ReachedMaxBuffer" "', argument " "1"" of type '" "CIncomingConnection *""'"); } arg1 = reinterpret_cast< CIncomingConnection * >(argp1); (arg1)->ReachedMaxBuffer(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CHTTPSock) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CHTTPSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CHTTPSock" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_ReadData) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_ReadData(self,data,len);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ReadData" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_ReadData" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_ReadData" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->ReadData((char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_ReadLine) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_ReadLine(self,sData);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ReadLine" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_Connected) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_Connected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_Connected" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->Connected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetSockObj) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_GetSockObj(self,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetSockObj" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_ForceLogin) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_ForceLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ForceLogin" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)(arg1)->ForceLogin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_OnLogin) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CHTTPSock_OnLogin(self,sUser,sPass,bBasic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_OnLogin" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_OnLogin" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->OnLogin((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_OnPageRequest) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_OnPageRequest(self,sURI);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_OnPageRequest" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnPageRequest((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintFile__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_PrintFile(self,sFileName,sContentType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintFile" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CHTTPSock_PrintFile" "', argument " "3"" of type '" "CString""'"); } arg3 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->PrintFile((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintFile__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_PrintFile(self,sFileName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintFile" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->PrintFile((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintFile) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_PrintFile__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_PrintFile__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_PrintFile'"); XSRETURN(0); } XS(_wrap_CHTTPSock_CheckPost) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_CheckPost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_CheckPost" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->CheckPost(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_SentHeader) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_SentHeader(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SentHeader" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)((CHTTPSock const *)arg1)->SentHeader(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintHeader__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; CString *arg3 = 0 ; unsigned int arg4 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CHTTPSock_PrintHeader(self,uContentLength,sContentType,uStatusId,sStatusMsg);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_PrintHeader" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CHTTPSock_PrintHeader" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = (bool)(arg1)->PrintHeader(arg2,(CString const &)*arg3,arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintHeader__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; CString *arg3 = 0 ; unsigned int arg4 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CHTTPSock_PrintHeader(self,uContentLength,sContentType,uStatusId);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_PrintHeader" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (bool)(arg1)->PrintHeader(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintHeader__SWIG_2) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_PrintHeader(self,uContentLength,sContentType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->PrintHeader(arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintHeader__SWIG_3) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; off_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; long val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_PrintHeader(self,uContentLength);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintHeader" "', argument " "2"" of type '" "off_t""'"); } arg2 = static_cast< off_t >(val2); result = (bool)(arg1)->PrintHeader(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintHeader) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_PrintHeader__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_PrintHeader__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_PrintHeader__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_PrintHeader__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_PrintHeader'"); XSRETURN(0); } XS(_wrap_CHTTPSock_AddHeader) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_AddHeader(self,sName,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_AddHeader" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_AddHeader" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_AddHeader" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_AddHeader" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_AddHeader" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddHeader((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_SetContentType) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_SetContentType(self,sContentType);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SetContentType" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_SetContentType" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SetContentType" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetContentType((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintNotFound) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_PrintNotFound(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintNotFound" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)(arg1)->PrintNotFound(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_Redirect) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_Redirect(self,sURL);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_Redirect" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_Redirect" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_Redirect" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->Redirect((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_PrintErrorPage) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; unsigned int arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CHTTPSock_PrintErrorPage(self,uStatusId,sStatusMsg,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintErrorPage" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CHTTPSock_PrintErrorPage" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_PrintErrorPage" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (bool)(arg1)->PrintErrorPage(arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_ParseParams) { { CString *arg1 = 0 ; std::map< CString,VCString > *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_ParseParams(sParams,msvsParams);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ParseParams" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_ParseParams" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_ParseParams" "', argument " "2"" of type '" "std::map< CString,VCString > &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_ParseParams" "', argument " "2"" of type '" "std::map< CString,VCString > &""'"); } arg2 = reinterpret_cast< std::map< CString,VCString > * >(argp2); CHTTPSock::ParseParams((CString const &)*arg1,*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_ParseURI) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_ParseURI(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_ParseURI" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->ParseURI(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetPage) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetPage(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetPage" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); (arg1)->GetPage(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetDate__SWIG_0) { { time_t arg1 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetDate(tm);"); } { res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_time_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetDate" "', argument " "1"" of type '" "time_t""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetDate" "', argument " "1"" of type '" "time_t""'"); } else { arg1 = *(reinterpret_cast< time_t * >(argp1)); } } result = CHTTPSock::GetDate(arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetDate__SWIG_1) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CHTTPSock_GetDate();"); } result = CHTTPSock::GetDate(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetDate) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_time_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetDate__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetDate__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_GetDate'"); XSRETURN(0); } XS(_wrap_CHTTPSock_GetRemoteIP) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetRemoteIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRemoteIP" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = ((CHTTPSock const *)arg1)->GetRemoteIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetRequestCookie) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_GetRequestCookie(self,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRequestCookie" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CHTTPSock const *)arg1)->GetRequestCookie((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_SendCookie) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_SendCookie(self,sKey,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SendCookie" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SendCookie((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_SetDocRoot) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_SetDocRoot(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SetDocRoot" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_SetDocRoot" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_SetDocRoot" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetDocRoot((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_SetLoggedIn) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_SetLoggedIn(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_SetLoggedIn" "', argument " "1"" of type '" "CHTTPSock *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_SetLoggedIn" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetLoggedIn(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetPath) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetPath" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = ((CHTTPSock const *)arg1)->GetPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_IsLoggedIn) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_IsLoggedIn(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_IsLoggedIn" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)((CHTTPSock const *)arg1)->IsLoggedIn(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetDocRoot) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetDocRoot(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetDocRoot" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetDocRoot(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetUser) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetUser" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetUser(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetPass) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetPass(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetPass" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetPass(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamString) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetParamString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamString" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetParamString(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetContentType) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetContentType(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetContentType" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetContentType(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetURIPrefix) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetURIPrefix(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetURIPrefix" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (CString *) &((CHTTPSock const *)arg1)->GetURIPrefix(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_IsPost) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_IsPost(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_IsPost" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (bool)((CHTTPSock const *)arg1)->IsPost(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParam__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CHTTPSock_GetParam(self,sName,bPost,sFilter);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CHTTPSock_GetParam" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = ((CHTTPSock const *)arg1)->GetParam((CString const &)*arg2,arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParam__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_GetParam(self,sName,bPost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = ((CHTTPSock const *)arg1)->GetParam((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParam__SWIG_2) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_GetParam(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CHTTPSock const *)arg1)->GetParam((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParam) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParam__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParam__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParam__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_GetParam'"); XSRETURN(0); } XS(_wrap_CHTTPSock_GetRawParam__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_GetRawParam(self,sName,bPost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRawParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_GetRawParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = ((CHTTPSock const *)arg1)->GetRawParam((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetRawParam__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_GetRawParam(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetRawParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetRawParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CHTTPSock const *)arg1)->GetRawParam((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetRawParam) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetRawParam__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetRawParam__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_GetRawParam'"); XSRETURN(0); } XS(_wrap_CHTTPSock_HasParam__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_HasParam(self,sName,bPost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_HasParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CHTTPSock_HasParam" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)((CHTTPSock const *)arg1)->HasParam((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_HasParam__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_HasParam(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_HasParam" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_HasParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CHTTPSock const *)arg1)->HasParam((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_HasParam) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_HasParam__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_HasParam__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_HasParam'"); XSRETURN(0); } XS(_wrap_CHTTPSock_GetParams__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; std::map< CString,VCString > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CHTTPSock_GetParams(self,bPost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParams" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CHTTPSock_GetParams" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (std::map< CString,VCString > *) &((CHTTPSock const *)arg1)->GetParams(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParams__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::map< CString,VCString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CHTTPSock_GetParams(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParams" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); result = (std::map< CString,VCString > *) &((CHTTPSock const *)arg1)->GetParams(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_std__vectorT_CString_t_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParams) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParams__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParams__SWIG_0); return; } } croak("No matching function for overloaded 'CHTTPSock_GetParams'"); XSRETURN(0); } XS(_wrap_CHTTPSock_GetParamValues__SWIG_0) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; bool arg4 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CHTTPSock_GetParamValues(self,sName,vsRet,bPost,sFilter);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamValues__SWIG_1) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CHTTPSock_GetParamValues(self,sName,vsRet,bPost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamValues__SWIG_2) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; VCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_GetParamValues(self,sName,vsRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "VCString &""'"); } arg3 = reinterpret_cast< VCString * >(argp3); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamValues__SWIG_3) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; std::set< CString > *arg3 = 0 ; bool arg4 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CHTTPSock_GetParamValues(self,sName,ssRet,bPost,sFilter);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__setT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString > &""'"); } arg3 = reinterpret_cast< std::set< CString > * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4,(CString const &)*arg5); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamValues__SWIG_4) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; std::set< CString > *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; bool val4 ; int ecode4 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CHTTPSock_GetParamValues(self,sName,ssRet,bPost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__setT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString > &""'"); } arg3 = reinterpret_cast< std::set< CString > * >(argp3); ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CHTTPSock_GetParamValues" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamValues__SWIG_5) { { CHTTPSock *arg1 = (CHTTPSock *) 0 ; CString *arg2 = 0 ; std::set< CString > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CHTTPSock_GetParamValues(self,sName,ssRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CHTTPSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CHTTPSock_GetParamValues" "', argument " "1"" of type '" "CHTTPSock const *""'"); } arg1 = reinterpret_cast< CHTTPSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__setT_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString > &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CHTTPSock_GetParamValues" "', argument " "3"" of type '" "std::set< CString > &""'"); } arg3 = reinterpret_cast< std::set< CString > * >(argp3); result = ((CHTTPSock const *)arg1)->GetParamValues((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CHTTPSock_GetParamValues) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__setT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__setT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CHTTPSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__setT_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParamValues__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParamValues__SWIG_5); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParamValues__SWIG_4); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParamValues__SWIG_1); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParamValues__SWIG_0); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CHTTPSock_GetParamValues__SWIG_3); return; } } croak("No matching function for overloaded 'CHTTPSock_GetParamValues'"); XSRETURN(0); } XS(_wrap_new_CTemplateTagHandler) { { int argvi = 0; CTemplateTagHandler *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CTemplateTagHandler();"); } result = (CTemplateTagHandler *)new CTemplateTagHandler(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateTagHandler, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CTemplateTagHandler) { { CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CTemplateTagHandler(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateTagHandler, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplateTagHandler" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateTagHandler_HandleVar) { { CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CTemplateTagHandler_HandleVar(self,Tmpl,sName,sArgs,sOutput);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CTemplateTagHandler_HandleVar" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleVar" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (bool)(arg1)->HandleVar(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CTemplateTagHandler_HandleTag) { { CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CTemplateTagHandler_HandleTag(self,Tmpl,sName,sArgs,sOutput);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CTemplateTagHandler_HandleTag" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleTag" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (bool)(arg1)->HandleTag(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CTemplateTagHandler_HandleIf) { { CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CTemplateTagHandler_HandleIf(self,Tmpl,sName,sArgs,sOutput);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CTemplateTagHandler_HandleIf" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleIf" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (bool)(arg1)->HandleIf(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CTemplateTagHandler_HandleValue) { { CTemplateTagHandler *arg1 = (CTemplateTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; MCString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CTemplateTagHandler_HandleValue(self,Tmpl,sValue,msOptions);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "1"" of type '" "CTemplateTagHandler *""'"); } arg1 = reinterpret_cast< CTemplateTagHandler * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleValue" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleValue" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_MCString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CTemplateTagHandler_HandleValue" "', argument " "4"" of type '" "MCString const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateTagHandler_HandleValue" "', argument " "4"" of type '" "MCString const &""'"); } arg4 = reinterpret_cast< MCString * >(argp4); result = (bool)(arg1)->HandleValue(*arg2,*arg3,(MCString const &)*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTemplateOptions) { { int argvi = 0; CTemplateOptions *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CTemplateOptions();"); } result = (CTemplateOptions *)new CTemplateOptions(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateOptions, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CTemplateOptions) { { CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CTemplateOptions(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateOptions, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplateOptions" "', argument " "1"" of type '" "CTemplateOptions *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateOptions_Parse) { { CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateOptions_Parse(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateOptions, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateOptions_Parse" "', argument " "1"" of type '" "CTemplateOptions *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateOptions_Parse" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateOptions_Parse" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Parse((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplateOptions_GetEscapeFrom) { { CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString::EEscape result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateOptions_GetEscapeFrom(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateOptions, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateOptions_GetEscapeFrom" "', argument " "1"" of type '" "CTemplateOptions const *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); result = ((CTemplateOptions const *)arg1)->GetEscapeFrom(); ST(argvi) = SWIG_NewPointerObj((new CString::EEscape(static_cast< const CString::EEscape& >(result))), SWIGTYPE_p_CString__EEscape, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateOptions_GetEscapeTo) { { CTemplateOptions *arg1 = (CTemplateOptions *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString::EEscape result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateOptions_GetEscapeTo(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateOptions, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateOptions_GetEscapeTo" "', argument " "1"" of type '" "CTemplateOptions const *""'"); } arg1 = reinterpret_cast< CTemplateOptions * >(argp1); result = ((CTemplateOptions const *)arg1)->GetEscapeTo(); ST(argvi) = SWIG_NewPointerObj((new CString::EEscape(static_cast< const CString::EEscape& >(result))), SWIGTYPE_p_CString__EEscape, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTemplateLoopContext) { { unsigned long arg1 ; CString *arg2 = 0 ; bool arg3 ; std::vector< CTemplate * > *arg4 = (std::vector< CTemplate * > *) 0 ; unsigned long val1 ; int ecode1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CTemplateLoopContext *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CTemplateLoopContext(uFilePos,sLoopName,bReverse,pRows);"); } ecode1 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CTemplateLoopContext" "', argument " "1"" of type '" "unsigned long""'"); } arg1 = static_cast< unsigned long >(val1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CTemplateLoopContext" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplateLoopContext" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CTemplateLoopContext" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_std__vectorT_CTemplate_p_t, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CTemplateLoopContext" "', argument " "4"" of type '" "std::vector< CTemplate * > *""'"); } arg4 = reinterpret_cast< std::vector< CTemplate * > * >(argp4); result = (CTemplateLoopContext *)new CTemplateLoopContext(arg1,(CString const &)*arg2,arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateLoopContext, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_delete_CTemplateLoopContext) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CTemplateLoopContext(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplateLoopContext" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_SetHasData__SWIG_0) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateLoopContext_SetHasData(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetHasData" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_SetHasData" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetHasData(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_SetHasData__SWIG_1) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_SetHasData(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetHasData" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); (arg1)->SetHasData(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_SetHasData) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplateLoopContext_SetHasData__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplateLoopContext_SetHasData__SWIG_0); return; } } croak("No matching function for overloaded 'CTemplateLoopContext_SetHasData'"); XSRETURN(0); } XS(_wrap_CTemplateLoopContext_SetName) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateLoopContext_SetName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetName" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateLoopContext_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateLoopContext_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_SetRowIndex) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateLoopContext_SetRowIndex(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_SetRowIndex" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetRowIndex(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_IncRowIndex) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_IncRowIndex(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_IncRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned int)(arg1)->IncRowIndex(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_DecRowIndex) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_DecRowIndex(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_DecRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned int)(arg1)->DecRowIndex(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_SetFilePosition) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateLoopContext_SetFilePosition(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_SetFilePosition" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_SetFilePosition" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetFilePosition(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_HasData) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_HasData(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_HasData" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (bool)((CTemplateLoopContext const *)arg1)->HasData(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetName) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetName" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (CString *) &((CTemplateLoopContext const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetFilePosition) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetFilePosition(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetFilePosition" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned long)((CTemplateLoopContext const *)arg1)->GetFilePosition(); ST(argvi) = SWIG_From_unsigned_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetRowIndex) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetRowIndex(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRowIndex" "', argument " "1"" of type '" "CTemplateLoopContext const *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (unsigned int)((CTemplateLoopContext const *)arg1)->GetRowIndex(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetRowCount) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; size_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetRowCount(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRowCount" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (arg1)->GetRowCount(); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetRows) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CTemplate * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetRows(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRows" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (std::vector< CTemplate * > *)(arg1)->GetRows(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CTemplate_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetNextRow) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetNextRow(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetNextRow" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (CTemplate *)(arg1)->GetNextRow(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetCurRow) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplateLoopContext_GetCurRow(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetCurRow" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); result = (CTemplate *)(arg1)->GetCurRow(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetRow) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateLoopContext_GetRow(self,uIndex);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetRow" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplateLoopContext_GetRow" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (CTemplate *)(arg1)->GetRow(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetValue__SWIG_0) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplateLoopContext_GetValue(self,sName,bFromIf);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetValue" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplateLoopContext_GetValue" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->GetValue((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetValue__SWIG_1) { { CTemplateLoopContext *arg1 = (CTemplateLoopContext *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplateLoopContext_GetValue(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplateLoopContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplateLoopContext_GetValue" "', argument " "1"" of type '" "CTemplateLoopContext *""'"); } arg1 = reinterpret_cast< CTemplateLoopContext * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplateLoopContext_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->GetValue((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplateLoopContext_GetValue) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplateLoopContext, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplateLoopContext_GetValue__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplateLoopContext_GetValue__SWIG_0); return; } } croak("No matching function for overloaded 'CTemplateLoopContext_GetValue'"); XSRETURN(0); } XS(_wrap_new_CTemplate__SWIG_0) { { int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CTemplate();"); } result = (CTemplate *)new CTemplate(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTemplate__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CTemplate(sFileName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CTemplate *)new CTemplate((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CTemplate__SWIG_2) { { std::shared_ptr< CTemplateOptions > *arg1 = 0 ; CTemplate *arg2 = (CTemplate *) 0 ; void *argp1 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CTemplate(Options,pParent);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< std::shared_ptr< CTemplateOptions > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CTemplate" "', argument " "2"" of type '" "CTemplate *""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); result = (CTemplate *)new CTemplate((std::shared_ptr< CTemplateOptions > const &)*arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTemplate__SWIG_3) { { std::shared_ptr< CTemplateOptions > *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CTemplate(Options);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CTemplate" "', argument " "1"" of type '" "std::shared_ptr< CTemplateOptions > const &""'"); } arg1 = reinterpret_cast< std::shared_ptr< CTemplateOptions > * >(argp1); result = (CTemplate *)new CTemplate((std::shared_ptr< CTemplateOptions > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CTemplate) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__shared_ptrT_CTemplateOptions_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CTemplate__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CTemplate__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CTemplate__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CTemplate__SWIG_2); return; } } croak("No matching function for overloaded 'new_CTemplate'"); XSRETURN(0); } XS(_wrap_delete_CTemplate) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CTemplate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CTemplate" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_AddTagHandler) { { CTemplate *arg1 = (CTemplate *) 0 ; SwigValueWrapper< std::shared_ptr< CTemplateTagHandler > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_AddTagHandler(self,spTagHandler);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AddTagHandler" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CTemplateTagHandler_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "std::shared_ptr< CTemplateTagHandler >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AddTagHandler" "', argument " "2"" of type '" "std::shared_ptr< CTemplateTagHandler >""'"); } else { arg2 = *(reinterpret_cast< std::shared_ptr< CTemplateTagHandler > * >(argp2)); } } (arg1)->AddTagHandler(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_GetTagHandlers) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< std::shared_ptr< CTemplateTagHandler > > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_GetTagHandlers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetTagHandlers" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (std::vector< std::shared_ptr< CTemplateTagHandler > > *) &(arg1)->GetTagHandlers(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_ResolveLiteral) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_ResolveLiteral(self,sString);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ResolveLiteral" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ResolveLiteral" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ResolveLiteral" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->ResolveLiteral((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_Init) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_Init(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_Init" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); (arg1)->Init(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_GetParent) { { CTemplate *arg1 = (CTemplate *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_GetParent(self,bRoot);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetParent" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CTemplate_GetParent" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = (CTemplate *)(arg1)->GetParent(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_ExpandFile__SWIG_0) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_ExpandFile(self,sFilename,bFromInc);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ExpandFile" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_ExpandFile" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->ExpandFile((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_ExpandFile__SWIG_1) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_ExpandFile(self,sFilename);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ExpandFile" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ExpandFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->ExpandFile((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_ExpandFile) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_ExpandFile__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_ExpandFile__SWIG_0); return; } } croak("No matching function for overloaded 'CTemplate_ExpandFile'"); XSRETURN(0); } XS(_wrap_CTemplate_SetFile) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_SetFile(self,sFileName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_SetFile" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_SetFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_SetFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->SetFile((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_SetPath) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_SetPath(self,sPath);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_SetPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_SetPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_SetPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetPath((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_MakePath) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_MakePath(self,sPath);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_MakePath" "', argument " "1"" of type '" "CTemplate const *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_MakePath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_MakePath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = ((CTemplate const *)arg1)->MakePath((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_PrependPath__SWIG_0) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_PrependPath(self,sPath,bIncludesOnly);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_PrependPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_PrependPath" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->PrependPath((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_PrependPath__SWIG_1) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_PrependPath(self,sPath);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_PrependPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_PrependPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PrependPath((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_PrependPath) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_PrependPath__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_PrependPath__SWIG_0); return; } } croak("No matching function for overloaded 'CTemplate_PrependPath'"); XSRETURN(0); } XS(_wrap_CTemplate_AppendPath__SWIG_0) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_AppendPath(self,sPath,bIncludesOnly);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AppendPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_AppendPath" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->AppendPath((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_AppendPath__SWIG_1) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_AppendPath(self,sPath);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AppendPath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AppendPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AppendPath((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_AppendPath) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_AppendPath__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_AppendPath__SWIG_0); return; } } croak("No matching function for overloaded 'CTemplate_AppendPath'"); XSRETURN(0); } XS(_wrap_CTemplate_RemovePath) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_RemovePath(self,sPath);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_RemovePath" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_RemovePath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_RemovePath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->RemovePath((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_ClearPaths) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_ClearPaths(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ClearPaths" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); (arg1)->ClearPaths(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_PrintString) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_PrintString(self,sRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_PrintString" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_PrintString" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_PrintString" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->PrintString(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_Print__SWIG_0) { { CTemplate *arg1 = (CTemplate *) 0 ; std::ostream *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_Print(self,oOut);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_Print" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_Print" "', argument " "2"" of type '" "std::ostream &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_Print" "', argument " "2"" of type '" "std::ostream &""'"); } arg2 = reinterpret_cast< std::ostream * >(argp2); result = (bool)(arg1)->Print(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_Print__SWIG_1) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; std::ostream *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_Print(self,sFileName,oOut);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_Print" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_Print" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_Print" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__ostream, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplate_Print" "', argument " "3"" of type '" "std::ostream &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_Print" "', argument " "3"" of type '" "std::ostream &""'"); } arg3 = reinterpret_cast< std::ostream * >(argp3); result = (bool)(arg1)->Print((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_Print) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__ostream, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_Print__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_Print__SWIG_1); return; } } croak("No matching function for overloaded 'CTemplate_Print'"); XSRETURN(0); } XS(_wrap_CTemplate_ValidIf) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_ValidIf(self,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ValidIf" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ValidIf" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ValidIf" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->ValidIf((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_ValidExpr) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_ValidExpr(self,sExpr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_ValidExpr" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_ValidExpr" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_ValidExpr" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->ValidExpr((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_IsTrue) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_IsTrue(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_IsTrue" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_IsTrue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_IsTrue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->IsTrue((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_HasLoop) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_HasLoop(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_HasLoop" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_HasLoop" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_HasLoop" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->HasLoop((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_GetValue__SWIG_0) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_GetValue(self,sName,bFromIf);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetValue" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_GetValue" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->GetValue((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_GetValue__SWIG_1) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_GetValue(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetValue" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetValue" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->GetValue((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_GetValue) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CTemplate, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_GetValue__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CTemplate_GetValue__SWIG_0); return; } } croak("No matching function for overloaded 'CTemplate_GetValue'"); XSRETURN(0); } XS(_wrap_CTemplate_AddRow) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_AddRow(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_AddRow" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_AddRow" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_AddRow" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CTemplate *) &(arg1)->AddRow((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_GetRow) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; unsigned int arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_GetRow(self,sName,uIndex);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetRow" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetRow" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetRow" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CTemplate_GetRow" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); result = (CTemplate *)(arg1)->GetRow((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_GetLoop) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; std::vector< CTemplate * > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CTemplate_GetLoop(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetLoop" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_GetLoop" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_GetLoop" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (std::vector< CTemplate * > *)(arg1)->GetLoop((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CTemplate_p_t, 0 | 0); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CTemplate_DelCurLoopContext) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_DelCurLoopContext(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_DelCurLoopContext" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); (arg1)->DelCurLoopContext(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_GetCurLoopContext) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CTemplateLoopContext *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_GetCurLoopContext(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetCurLoopContext" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (CTemplateLoopContext *)(arg1)->GetCurLoopContext(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplateLoopContext, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_GetCurTemplate) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CTemplate *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_GetCurTemplate(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetCurTemplate" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (CTemplate *)(arg1)->GetCurTemplate(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CTemplate, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_GetFileName) { { CTemplate *arg1 = (CTemplate *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CTemplate_GetFileName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_GetFileName" "', argument " "1"" of type '" "CTemplate const *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); result = (CString *) &((CTemplate const *)arg1)->GetFileName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CTemplate_set) { { CTemplate *arg1 = (CTemplate *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CTemplate_set(self,key,value);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CTemplate, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CTemplate_set" "', argument " "1"" of type '" "CTemplate *""'"); } arg1 = reinterpret_cast< CTemplate * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CTemplate_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CTemplate_set" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CTemplate_set" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } CTemplate_set(arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_new_CZNCTagHandler) { { CWebSock *arg1 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CZNCTagHandler *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CZNCTagHandler(pWebSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CZNCTagHandler" "', argument " "1"" of type '" "CWebSock &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CZNCTagHandler" "', argument " "1"" of type '" "CWebSock &""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (CZNCTagHandler *)new CZNCTagHandler(*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNCTagHandler, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CZNCTagHandler) { { CZNCTagHandler *arg1 = (CZNCTagHandler *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CZNCTagHandler(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCTagHandler, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZNCTagHandler" "', argument " "1"" of type '" "CZNCTagHandler *""'"); } arg1 = reinterpret_cast< CZNCTagHandler * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNCTagHandler_HandleTag) { { CZNCTagHandler *arg1 = (CZNCTagHandler *) 0 ; CTemplate *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CZNCTagHandler_HandleTag(self,Tmpl,sName,sArgs,sOutput);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNCTagHandler, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNCTagHandler_HandleTag" "', argument " "1"" of type '" "CZNCTagHandler *""'"); } arg1 = reinterpret_cast< CZNCTagHandler * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNCTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNCTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNCTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CZNCTagHandler_HandleTag" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNCTagHandler_HandleTag" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (bool)(arg1)->HandleTag(*arg2,(CString const &)*arg3,(CString const &)*arg4,*arg5); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_new_CWebSession) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CWebSession *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CWebSession(sId,sIP);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSession" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSession" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSession" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSession" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CWebSession *)new CWebSession((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSession, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_delete_CWebSession) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CWebSession(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSession" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_GetId) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_GetId(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetId" "', argument " "1"" of type '" "CWebSession const *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = (CString *) &((CWebSession const *)arg1)->GetId(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_GetIP) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_GetIP(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetIP" "', argument " "1"" of type '" "CWebSession const *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = (CString *) &((CWebSession const *)arg1)->GetIP(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_GetUser) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_GetUser(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetUser" "', argument " "1"" of type '" "CWebSession const *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = (CUser *)((CWebSession const *)arg1)->GetUser(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_GetLastActive) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_GetLastActive(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_GetLastActive" "', argument " "1"" of type '" "CWebSession const *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = ((CWebSession const *)arg1)->GetLastActive(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_IsLoggedIn) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_IsLoggedIn(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_IsLoggedIn" "', argument " "1"" of type '" "CWebSession const *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = (bool)((CWebSession const *)arg1)->IsLoggedIn(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_IsAdmin) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_IsAdmin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_IsAdmin" "', argument " "1"" of type '" "CWebSession const *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); result = (bool)((CWebSession const *)arg1)->IsAdmin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_UpdateLastActive) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_UpdateLastActive(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_UpdateLastActive" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); (arg1)->UpdateLastActive(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_SetUser) { { CWebSession *arg1 = (CWebSession *) 0 ; CUser *arg2 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSession_SetUser(self,p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_SetUser" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_SetUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); result = (CUser *)(arg1)->SetUser(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_ClearMessageLoops) { { CWebSession *arg1 = (CWebSession *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSession_ClearMessageLoops(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_ClearMessageLoops" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); (arg1)->ClearMessageLoops(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_FillMessageLoops) { { CWebSession *arg1 = (CWebSession *) 0 ; CTemplate *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSession_FillMessageLoops(self,Tmpl);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_FillMessageLoops" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_FillMessageLoops" "', argument " "2"" of type '" "CTemplate &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSession_FillMessageLoops" "', argument " "2"" of type '" "CTemplate &""'"); } arg2 = reinterpret_cast< CTemplate * >(argp2); (arg1)->FillMessageLoops(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSession_AddError) { { CWebSession *arg1 = (CWebSession *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSession_AddError(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_AddError" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_AddError" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSession_AddError" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddError((CString const &)*arg2); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSession_AddSuccess) { { CWebSession *arg1 = (CWebSession *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; size_t result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSession_AddSuccess(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSession, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSession_AddSuccess" "', argument " "1"" of type '" "CWebSession *""'"); } arg1 = reinterpret_cast< CWebSession * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSession_AddSuccess" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSession_AddSuccess" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddSuccess((CString const &)*arg2); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CWebSubPage__SWIG_0) { { CString *arg1 = 0 ; CString *arg2 = 0 ; unsigned int arg3 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; unsigned int val3 ; int ecode3 = 0 ; int argvi = 0; CWebSubPage *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CWebSubPage(sName,sTitle,uFlags);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CWebSubPage__SWIG_1) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CWebSubPage *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CWebSubPage(sName,sTitle);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CWebSubPage__SWIG_2) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CWebSubPage *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CWebSubPage(sName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CWebSubPage__SWIG_3) { { CString *arg1 = 0 ; CString *arg2 = 0 ; VPair *arg3 = 0 ; unsigned int arg4 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; void *argp3 ; int res3 = 0 ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; CWebSubPage *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CWebSubPage(sName,sTitle,vParams,uFlags);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } arg3 = reinterpret_cast< VPair * >(argp3); ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CWebSubPage" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2,(VPair const &)*arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CWebSubPage__SWIG_4) { { CString *arg1 = 0 ; CString *arg2 = 0 ; VPair *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; void *argp3 ; int res3 = 0 ; int argvi = 0; CWebSubPage *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CWebSubPage(sName,sTitle,vParams);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSubPage" "', argument " "3"" of type '" "VPair const &""'"); } arg3 = reinterpret_cast< VPair * >(argp3); result = (CWebSubPage *)new CWebSubPage((CString const &)*arg1,(CString const &)*arg2,(VPair const &)*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSubPage, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CWebSubPage) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSubPage__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSubPage__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSubPage__SWIG_4); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSubPage__SWIG_0); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSubPage__SWIG_3); return; } } croak("No matching function for overloaded 'new_CWebSubPage'"); XSRETURN(0); } XS(_wrap_delete_CWebSubPage) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CWebSubPage(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSubPage" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSubPage_SetName) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSubPage_SetName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_SetName" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSubPage_SetName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_SetName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSubPage_SetTitle) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSubPage_SetTitle(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_SetTitle" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSubPage_SetTitle" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_SetTitle" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetTitle((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSubPage_AddParam) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CWebSubPage_AddParam(self,sName,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_AddParam" "', argument " "1"" of type '" "CWebSubPage *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSubPage_AddParam" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_AddParam" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSubPage_AddParam" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSubPage_AddParam" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->AddParam((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CWebSubPage_RequiresAdmin) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSubPage_RequiresAdmin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_RequiresAdmin" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (bool)((CWebSubPage const *)arg1)->RequiresAdmin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSubPage_GetName) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSubPage_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_GetName" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (CString *) &((CWebSubPage const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSubPage_GetTitle) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSubPage_GetTitle(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_GetTitle" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (CString *) &((CWebSubPage const *)arg1)->GetTitle(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSubPage_GetParams) { { CWebSubPage *arg1 = (CWebSubPage *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; VPair *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSubPage_GetParams(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSubPage, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSubPage_GetParams" "', argument " "1"" of type '" "CWebSubPage const *""'"); } arg1 = reinterpret_cast< CWebSubPage * >(argp1); result = (VPair *) &((CWebSubPage const *)arg1)->GetParams(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CWebSessionMap__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; CWebSessionMap *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CWebSessionMap(uTTL);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CWebSessionMap" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (CWebSessionMap *)new CWebSessionMap(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSessionMap, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CWebSessionMap__SWIG_1) { { int argvi = 0; CWebSessionMap *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CWebSessionMap();"); } result = (CWebSessionMap *)new CWebSessionMap(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSessionMap, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CWebSessionMap) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSessionMap__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CWebSessionMap__SWIG_0); return; } } croak("No matching function for overloaded 'new_CWebSessionMap'"); XSRETURN(0); } XS(_wrap_CWebSessionMap_FinishUserSessions) { { CWebSessionMap *arg1 = (CWebSessionMap *) 0 ; CUser *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSessionMap_FinishUserSessions(self,User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSessionMap, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSessionMap_FinishUserSessions" "', argument " "1"" of type '" "CWebSessionMap *""'"); } arg1 = reinterpret_cast< CWebSessionMap * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSessionMap_FinishUserSessions" "', argument " "2"" of type '" "CUser const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSessionMap_FinishUserSessions" "', argument " "2"" of type '" "CUser const &""'"); } arg2 = reinterpret_cast< CUser * >(argp2); (arg1)->FinishUserSessions((CUser const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CWebSessionMap) { { CWebSessionMap *arg1 = (CWebSessionMap *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CWebSessionMap(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSessionMap, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSessionMap" "', argument " "1"" of type '" "CWebSessionMap *""'"); } arg1 = reinterpret_cast< CWebSessionMap * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CWebSock) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CWebSock *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CWebSock(sURIPrefix);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CWebSock" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CWebSock" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CWebSock *)new CWebSock((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CWebSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_delete_CWebSock) { { CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CWebSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CWebSock" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSock_ForceLogin) { { CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSock_ForceLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_ForceLogin" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (bool)(arg1)->ForceLogin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSock_OnLogin) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; bool arg4 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CWebSock_OnLogin(self,sUser,sPass,bBasic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_OnLogin" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_OnLogin" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_OnLogin" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CWebSock_OnLogin" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (bool)(arg1)->OnLogin((CString const &)*arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CWebSock_OnPageRequest) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSock_OnPageRequest(self,sURI);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_OnPageRequest" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_OnPageRequest" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnPageRequest((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_PrintTemplate__SWIG_0) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModule *arg4 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CWebSock::EPageReqResult result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CWebSock_PrintTemplate(self,sPageName,sPageRet,pModule);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintTemplate" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_PrintTemplate" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintTemplate" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CWebSock_PrintTemplate" "', argument " "4"" of type '" "CModule *""'"); } arg4 = reinterpret_cast< CModule * >(argp4); result = (CWebSock::EPageReqResult)(arg1)->PrintTemplate((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_PrintTemplate__SWIG_1) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CWebSock::EPageReqResult result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CWebSock_PrintTemplate(self,sPageName,sPageRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintTemplate" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintTemplate" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_PrintTemplate" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintTemplate" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CWebSock::EPageReqResult)(arg1)->PrintTemplate((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_PrintTemplate) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CWebSock_PrintTemplate__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CWebSock_PrintTemplate__SWIG_0); return; } } croak("No matching function for overloaded 'CWebSock_PrintTemplate'"); XSRETURN(0); } XS(_wrap_CWebSock_PrintStaticFile__SWIG_0) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CModule *arg4 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CWebSock::EPageReqResult result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CWebSock_PrintStaticFile(self,sPath,sPageRet,pModule);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintStaticFile" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_PrintStaticFile" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintStaticFile" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CWebSock_PrintStaticFile" "', argument " "4"" of type '" "CModule *""'"); } arg4 = reinterpret_cast< CModule * >(argp4); result = (CWebSock::EPageReqResult)(arg1)->PrintStaticFile((CString const &)*arg2,*arg3,arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_PrintStaticFile__SWIG_1) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CWebSock::EPageReqResult result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CWebSock_PrintStaticFile(self,sPath,sPageRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintStaticFile" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintStaticFile" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_PrintStaticFile" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintStaticFile" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CWebSock::EPageReqResult)(arg1)->PrintStaticFile((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_PrintStaticFile) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CWebSock, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CModule, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CWebSock_PrintStaticFile__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CWebSock_PrintStaticFile__SWIG_0); return; } } croak("No matching function for overloaded 'CWebSock_PrintStaticFile'"); XSRETURN(0); } XS(_wrap_CWebSock_FindTmpl) { { CWebSock *arg1 = (CWebSock *) 0 ; CModule *arg2 = (CModule *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CWebSock_FindTmpl(self,pModule,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_FindTmpl" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_FindTmpl" "', argument " "2"" of type '" "CModule *""'"); } arg2 = reinterpret_cast< CModule * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_FindTmpl" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_FindTmpl" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->FindTmpl(arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CWebSock_PrintErrorPage__SWIG_0) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSock_PrintErrorPage(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_PrintErrorPage" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_PrintErrorPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_PrintErrorPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->PrintErrorPage((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_GetSession) { { CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::shared_ptr< CWebSession > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSock_GetSession(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSession" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (arg1)->GetSession(); ST(argvi) = SWIG_NewPointerObj((new std::shared_ptr< CWebSession >(static_cast< const std::shared_ptr< CWebSession >& >(result))), SWIGTYPE_p_std__shared_ptrT_CWebSession_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSock_GetSockObj) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CWebSock_GetSockObj(self,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSockObj" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CWebSock_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_GetSkinPath) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSock_GetSkinPath(sSkinName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSkinPath" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetSkinPath" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = CWebSock::GetSkinPath((CString const &)*arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CWebSock_GetAvailSkins) { { CWebSock *arg1 = (CWebSock *) 0 ; VCString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSock_GetAvailSkins(self,vRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetAvailSkins" "', argument " "1"" of type '" "CWebSock const *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__vectorT_CString_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_GetAvailSkins" "', argument " "2"" of type '" "VCString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetAvailSkins" "', argument " "2"" of type '" "VCString &""'"); } arg2 = reinterpret_cast< VCString * >(argp2); ((CWebSock const *)arg1)->GetAvailSkins(*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSock_GetSkinName) { { CWebSock *arg1 = (CWebSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSock_GetSkinName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetSkinName" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); result = (arg1)->GetSkinName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CWebSock_GetRequestCookie) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CWebSock_GetRequestCookie(self,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_GetRequestCookie" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_GetRequestCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->GetRequestCookie((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CWebSock_SendCookie) { { CWebSock *arg1 = (CWebSock *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CWebSock_SendCookie(self,sKey,sValue);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CWebSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_SendCookie" "', argument " "1"" of type '" "CWebSock *""'"); } arg1 = reinterpret_cast< CWebSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CWebSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_SendCookie" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CWebSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_SendCookie" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->SendCookie((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CWebSock_FinishUserSessions) { { CUser *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CWebSock_FinishUserSessions(User);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_CUser, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CWebSock_FinishUserSessions" "', argument " "1"" of type '" "CUser const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CWebSock_FinishUserSessions" "', argument " "1"" of type '" "CUser const &""'"); } arg1 = reinterpret_cast< CUser * >(argp1); CWebSock::FinishUserSessions((CUser const &)*arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CZNC) { { int argvi = 0; CZNC *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CZNC();"); } result = (CZNC *)new CZNC(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNC, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CZNC) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CZNC(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CZNC" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_DeleteUsers) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_DeleteUsers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DeleteUsers" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->DeleteUsers(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_Loop) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_Loop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Loop" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->Loop(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_WritePidFile) { { CZNC *arg1 = (CZNC *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_WritePidFile(self,iPid);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WritePidFile" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_WritePidFile" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (bool)(arg1)->WritePidFile(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_DeletePidFile) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_DeletePidFile(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DeletePidFile" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->DeletePidFile(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_WaitForChildLock) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_WaitForChildLock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WaitForChildLock" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->WaitForChildLock(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_IsHostAllowed) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_IsHostAllowed(self,sHostMask);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_IsHostAllowed" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_IsHostAllowed" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CZNC const *)arg1)->IsHostAllowed((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_AllowConnectionFrom) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AllowConnectionFrom(self,sIP);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AllowConnectionFrom" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AllowConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AllowConnectionFrom" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)((CZNC const *)arg1)->AllowConnectionFrom((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_InitDirs) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_InitDirs(self,sArgvPath,sDataDir);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_InitDirs" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_InitDirs" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_InitDirs" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_InitDirs" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_InitDirs" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } (arg1)->InitDirs((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CZNC_OnBoot) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_OnBoot(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_OnBoot" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->OnBoot(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_ExpandConfigPath__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_ExpandConfigPath(self,sConfigFile,bAllowMkDir);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ExpandConfigPath" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_ExpandConfigPath" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (arg1)->ExpandConfigPath((CString const &)*arg2,arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_ExpandConfigPath__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_ExpandConfigPath(self,sConfigFile);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ExpandConfigPath" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ExpandConfigPath" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->ExpandConfigPath((CString const &)*arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_ExpandConfigPath) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_ExpandConfigPath__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_ExpandConfigPath__SWIG_0); return; } } croak("No matching function for overloaded 'CZNC_ExpandConfigPath'"); XSRETURN(0); } XS(_wrap_CZNC_WriteNewConfig) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_WriteNewConfig(self,sConfigFile);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WriteNewConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_WriteNewConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_WriteNewConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->WriteNewConfig((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_WriteConfig) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_WriteConfig(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WriteConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->WriteConfig(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_ParseConfig) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_ParseConfig(self,sConfig,sError);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ParseConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_ParseConfig" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ParseConfig" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_ParseConfig" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->ParseConfig((CString const &)*arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_RehashConfig) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_RehashConfig(self,sError);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_RehashConfig" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_RehashConfig" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_RehashConfig" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (bool)(arg1)->RehashConfig(*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_BackupConfigOnce) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_BackupConfigOnce(self,sSuffix);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_BackupConfigOnce" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_BackupConfigOnce" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_BackupConfigOnce" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->BackupConfigOnce((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_GetVersion) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CZNC_GetVersion();"); } result = CZNC::GetVersion(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetTag__SWIG_0) { { bool arg1 ; bool arg2 ; bool val1 ; int ecode1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_GetTag(bIncludeVersion,bHTML);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CZNC_GetTag" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_GetTag" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = CZNC::GetTag(arg1,arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetTag__SWIG_1) { { bool arg1 ; bool val1 ; int ecode1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetTag(bIncludeVersion);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CZNC_GetTag" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); result = CZNC::GetTag(arg1); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetTag__SWIG_2) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CZNC_GetTag();"); } result = CZNC::GetTag(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetTag) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetTag__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetTag__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetTag__SWIG_0); return; } } croak("No matching function for overloaded 'CZNC_GetTag'"); XSRETURN(0); } XS(_wrap_CZNC_GetCompileOptionsString) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CZNC_GetCompileOptionsString();"); } result = CZNC::GetCompileOptionsString(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetUptime) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetUptime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUptime" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetUptime(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_ClearBindHosts) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_ClearBindHosts(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ClearBindHosts" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ClearBindHosts(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_AddBindHost) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddBindHost(self,sHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddBindHost" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddBindHost((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_RemBindHost) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_RemBindHost(self,sHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_RemBindHost" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_RemBindHost" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_RemBindHost" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemBindHost((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_ClearTrustedProxies) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_ClearTrustedProxies(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ClearTrustedProxies" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ClearTrustedProxies(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_AddTrustedProxy) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddTrustedProxy(self,sHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddTrustedProxy" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->AddTrustedProxy((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_RemTrustedProxy) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_RemTrustedProxy(self,sHost);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_RemTrustedProxy" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_RemTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_RemTrustedProxy" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->RemTrustedProxy((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_Broadcast__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; CUser *arg4 = (CUser *) 0 ; CClient *arg5 = (CClient *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CZNC_Broadcast(self,sMessage,bAdminOnly,pSkipUser,pSkipClient);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_Broadcast" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_Broadcast" "', argument " "4"" of type '" "CUser *""'"); } arg4 = reinterpret_cast< CUser * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5,SWIGTYPE_p_CClient, 0 | 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CZNC_Broadcast" "', argument " "5"" of type '" "CClient *""'"); } arg5 = reinterpret_cast< CClient * >(argp5); (arg1)->Broadcast((CString const &)*arg2,arg3,arg4,arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_Broadcast__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; CUser *arg4 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CZNC_Broadcast(self,sMessage,bAdminOnly,pSkipUser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_Broadcast" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_Broadcast" "', argument " "4"" of type '" "CUser *""'"); } arg4 = reinterpret_cast< CUser * >(argp4); (arg1)->Broadcast((CString const &)*arg2,arg3,arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_Broadcast__SWIG_2) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_Broadcast(self,sMessage,bAdminOnly);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CZNC_Broadcast" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->Broadcast((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_Broadcast__SWIG_3) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_Broadcast(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_Broadcast" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_Broadcast" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->Broadcast((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_Broadcast) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 5) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(4), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_Broadcast__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_Broadcast__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_Broadcast__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_Broadcast__SWIG_0); return; } } croak("No matching function for overloaded 'CZNC_Broadcast'"); XSRETURN(0); } XS(_wrap_CZNC_AddBytesRead) { { CZNC *arg1 = (CZNC *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddBytesRead(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddBytesRead" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_AddBytesRead" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesRead(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_AddBytesWritten) { { CZNC *arg1 = (CZNC *) 0 ; unsigned long long arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long long val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddBytesWritten(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddBytesWritten" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_AddBytesWritten" "', argument " "2"" of type '" "unsigned long long""'"); } arg2 = static_cast< unsigned long long >(val2); (arg1)->AddBytesWritten(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_BytesRead) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_BytesRead(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_BytesRead" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned long long)((CZNC const *)arg1)->BytesRead(); ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_BytesWritten) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned long long result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_BytesWritten(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_BytesWritten" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned long long)((CZNC const *)arg1)->BytesWritten(); ST(argvi) = SWIG_From_unsigned_SS_long_SS_long SWIG_PERL_CALL_ARGS_1(static_cast< unsigned long long >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetTrafficStats) { { CZNC *arg1 = (CZNC *) 0 ; CZNC::TrafficStatsPair *arg2 = 0 ; CZNC::TrafficStatsPair *arg3 = 0 ; CZNC::TrafficStatsPair *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; SwigValueWrapper< std::map< CString,std::pair< unsigned long long,unsigned long long > > > result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CZNC_GetTrafficStats(self,Users,ZNC,Total);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetTrafficStats" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_GetTrafficStats" "', argument " "2"" of type '" "CZNC::TrafficStatsPair &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_GetTrafficStats" "', argument " "2"" of type '" "CZNC::TrafficStatsPair &""'"); } arg2 = reinterpret_cast< CZNC::TrafficStatsPair * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_GetTrafficStats" "', argument " "3"" of type '" "CZNC::TrafficStatsPair &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_GetTrafficStats" "', argument " "3"" of type '" "CZNC::TrafficStatsPair &""'"); } arg3 = reinterpret_cast< CZNC::TrafficStatsPair * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_GetTrafficStats" "', argument " "4"" of type '" "CZNC::TrafficStatsPair &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_GetTrafficStats" "', argument " "4"" of type '" "CZNC::TrafficStatsPair &""'"); } arg4 = reinterpret_cast< CZNC::TrafficStatsPair * >(argp4); result = (arg1)->GetTrafficStats(*arg2,*arg3,*arg4); ST(argvi) = SWIG_NewPointerObj((new CZNC::TrafficStatsMap(static_cast< const CZNC::TrafficStatsMap& >(result))), SWIGTYPE_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_AuthUser) { { CZNC *arg1 = (CZNC *) 0 ; SwigValueWrapper< std::shared_ptr< CAuthBase > > arg2 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AuthUser(self,AuthClass);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AuthUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CAuthBase_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AuthUser" "', argument " "2"" of type '" "std::shared_ptr< CAuthBase >""'"); } else { arg2 = *(reinterpret_cast< std::shared_ptr< CAuthBase > * >(argp2)); } } (arg1)->AuthUser(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetConfigState) { { CZNC *arg1 = (CZNC *) 0 ; enum CZNC::ConfigState arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetConfigState(self,e);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetConfigState" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetConfigState" "', argument " "2"" of type '" "enum CZNC::ConfigState""'"); } arg2 = static_cast< enum CZNC::ConfigState >(val2); (arg1)->SetConfigState(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetSkinName) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetSkinName(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetSkinName" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_SetSkinName" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetSkinName((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_SetStatusPrefix) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetStatusPrefix(self,s);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetStatusPrefix" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_SetStatusPrefix" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetStatusPrefix((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_SetMaxBufferSize) { { CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetMaxBufferSize(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetMaxBufferSize" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetMaxBufferSize" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetMaxBufferSize(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetAnonIPLimit) { { CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetAnonIPLimit(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetAnonIPLimit" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetAnonIPLimit" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetAnonIPLimit(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetServerThrottle) { { CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetServerThrottle(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetServerThrottle" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetServerThrottle" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetServerThrottle(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetProtectWebSessions) { { CZNC *arg1 = (CZNC *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetProtectWebSessions(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetProtectWebSessions" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetProtectWebSessions" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetProtectWebSessions(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetHideVersion) { { CZNC *arg1 = (CZNC *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetHideVersion(self,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetHideVersion" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetHideVersion" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); (arg1)->SetHideVersion(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetConnectDelay) { { CZNC *arg1 = (CZNC *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetConnectDelay(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetConnectDelay" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_SetConnectDelay" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); (arg1)->SetConnectDelay(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConfigState) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; enum CZNC::ConfigState result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetConfigState(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfigState" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (enum CZNC::ConfigState)((CZNC const *)arg1)->GetConfigState(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetManager__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSockManager *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetManager(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetManager" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CSockManager *) &(arg1)->GetManager(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetManager__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CSockManager *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetManager(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetManager" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CSockManager *) &((CZNC const *)arg1)->GetManager(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CSockManager, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetManager) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetManager__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetManager__SWIG_1); return; } } croak("No matching function for overloaded 'CZNC_GetManager'"); XSRETURN(0); } XS(_wrap_CZNC_GetModules) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CModules *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetModules(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetModules" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CModules *) &(arg1)->GetModules(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModules, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetSkinName) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetSkinName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetSkinName" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetSkinName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetStatusPrefix) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetStatusPrefix(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetStatusPrefix" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetStatusPrefix(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetCurPath) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetCurPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetCurPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetCurPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetHomePath) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetHomePath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetHomePath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetHomePath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetZNCPath) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetZNCPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetZNCPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetZNCPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConfPath__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_GetConfPath(self,bAllowMkDir);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_GetConfPath" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = ((CZNC const *)arg1)->GetConfPath(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConfPath__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetConfPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetConfPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConfPath) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetConfPath__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetConfPath__SWIG_0); return; } } croak("No matching function for overloaded 'CZNC_GetConfPath'"); XSRETURN(0); } XS(_wrap_CZNC_GetUserPath) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetUserPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUserPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetUserPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetModPath) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetModPath(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetModPath" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetModPath(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetPemLocation) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetPemLocation(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetPemLocation" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetPemLocation(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConfigFile) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetConfigFile(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConfigFile" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (CString *) &((CZNC const *)arg1)->GetConfigFile(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_WritePemFile) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_WritePemFile(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_WritePemFile" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)(arg1)->WritePemFile(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetBindHosts) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; VCString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetBindHosts(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetBindHosts" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (VCString *) &((CZNC const *)arg1)->GetBindHosts(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetTrustedProxies) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; VCString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetTrustedProxies(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetTrustedProxies" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (VCString *) &((CZNC const *)arg1)->GetTrustedProxies(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetListeners) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::vector< CListener * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetListeners(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetListeners" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (std::vector< CListener * > *) &((CZNC const *)arg1)->GetListeners(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CListener_p_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_TimeStarted) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; time_t result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_TimeStarted(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_TimeStarted" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->TimeStarted(); ST(argvi) = SWIG_NewPointerObj((new time_t(static_cast< const time_t& >(result))), SWIGTYPE_p_time_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetMaxBufferSize) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetMaxBufferSize(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetMaxBufferSize" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetMaxBufferSize(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetAnonIPLimit) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetAnonIPLimit(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetAnonIPLimit" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetAnonIPLimit(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetServerThrottle__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetServerThrottle(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetServerThrottle" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetServerThrottle(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConnectDelay) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetConnectDelay(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConnectDelay" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (unsigned int)((CZNC const *)arg1)->GetConnectDelay(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetProtectWebSessions) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetProtectWebSessions(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetProtectWebSessions" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)((CZNC const *)arg1)->GetProtectWebSessions(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetHideVersion) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetHideVersion(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetHideVersion" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (bool)((CZNC const *)arg1)->GetHideVersion(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetSSLCiphers) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetSSLCiphers(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetSSLCiphers" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = ((CZNC const *)arg1)->GetSSLCiphers(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetDisabledSSLProtocols) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; Csock::EDisableProtocol result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetDisabledSSLProtocols(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetDisabledSSLProtocols" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (Csock::EDisableProtocol)((CZNC const *)arg1)->GetDisabledSSLProtocols(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_CreateInstance) { { int argvi = 0; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CZNC_CreateInstance();"); } CZNC::CreateInstance(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_Get) { { int argvi = 0; CZNC *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CZNC_Get();"); } result = (CZNC *) &CZNC::Get(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CZNC, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_DestroyInstance) { { int argvi = 0; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CZNC_DestroyInstance();"); } CZNC::DestroyInstance(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_FindUser) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CUser *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_FindUser(self,sUsername);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_FindUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CUser *)(arg1)->FindUser((CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CUser, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_FindModule__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_FindModule(self,sModName,sUsername);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindModule" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_FindModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CModule *)(arg1)->FindModule((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CZNC_FindModule__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; CUser *arg3 = (CUser *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_FindModule(self,sModName,pUser);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindModule" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_FindModule" "', argument " "3"" of type '" "CUser *""'"); } arg3 = reinterpret_cast< CUser * >(argp3); result = (CModule *)(arg1)->FindModule((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CModule, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_FindModule) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CUser, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_FindModule__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_FindModule__SWIG_0); return; } } croak("No matching function for overloaded 'CZNC_FindModule'"); XSRETURN(0); } XS(_wrap_CZNC_UpdateModule) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_UpdateModule(self,sModule);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_UpdateModule" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_UpdateModule" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_UpdateModule" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->UpdateModule((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_DeleteUser) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_DeleteUser(self,sUsername);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DeleteUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_DeleteUser" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_DeleteUser" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->DeleteUser((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_AddUser) { { CZNC *arg1 = (CZNC *) 0 ; CUser *arg2 = (CUser *) 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CZNC_AddUser(self,pUser,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddUser" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddUser" "', argument " "2"" of type '" "CUser *""'"); } arg2 = reinterpret_cast< CUser * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_AddUser" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddUser" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (bool)(arg1)->AddUser(arg2,*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetUserMap) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::map< CString,CUser * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetUserMap(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetUserMap" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (std::map< CString,CUser * > *) &((CZNC const *)arg1)->GetUserMap(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_CString_CUser_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_FindListener) { { CZNC *arg1 = (CZNC *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; EAddrType arg4 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int val4 ; int ecode4 = 0 ; int argvi = 0; CListener *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CZNC_FindListener(self,uPort,BindHost,eAddr);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_FindListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_FindListener" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_FindListener" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_FindListener" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CZNC_FindListener" "', argument " "4"" of type '" "EAddrType""'"); } arg4 = static_cast< EAddrType >(val4); result = (CListener *)(arg1)->FindListener(arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CListener, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CZNC_AddListener__SWIG_0) { { CZNC *arg1 = (CZNC *) 0 ; CListener *arg2 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddListener(self,CListener *);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddListener" "', argument " "2"" of type '" "CListener *""'"); } arg2 = reinterpret_cast< CListener * >(argp2); result = (bool)(arg1)->AddListener(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_AddListener__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; unsigned short arg2 ; CString *arg3 = 0 ; CString *arg4 = 0 ; bool arg5 ; EAddrType arg6 ; CListener::EAcceptType arg7 ; CString *arg8 = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; bool val5 ; int ecode5 = 0 ; int val6 ; int ecode6 = 0 ; int val7 ; int ecode7 = 0 ; void *argp8 = 0 ; int res8 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 8) || (items > 8)) { SWIG_croak("Usage: CZNC_AddListener(self,uPort,sBindHost,sURIPrefix,bSSL,eAddr,eAccept,sError);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CZNC_AddListener" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CZNC_AddListener" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddListener" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CZNC_AddListener" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddListener" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CZNC_AddListener" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); ecode6 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CZNC_AddListener" "', argument " "6"" of type '" "EAddrType""'"); } arg6 = static_cast< EAddrType >(val6); ecode7 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CZNC_AddListener" "', argument " "7"" of type '" "CListener::EAcceptType""'"); } arg7 = static_cast< CListener::EAcceptType >(val7); res8 = SWIG_ConvertPtr(ST(7), &argp8, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res8)) { SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CZNC_AddListener" "', argument " "8"" of type '" "CString &""'"); } if (!argp8) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddListener" "', argument " "8"" of type '" "CString &""'"); } arg8 = reinterpret_cast< CString * >(argp8); result = (bool)(arg1)->AddListener(arg2,(CString const &)*arg3,(CString const &)*arg4,arg5,arg6,arg7,*arg8); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CZNC_AddListener) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_CListener, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 8) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(5), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(6), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(7), &vptr, SWIGTYPE_p_CString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_AddListener__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_AddListener__SWIG_1); return; } } croak("No matching function for overloaded 'CZNC_AddListener'"); XSRETURN(0); } XS(_wrap_CZNC_DelListener) { { CZNC *arg1 = (CZNC *) 0 ; CListener *arg2 = (CListener *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_DelListener(self,CListener *);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DelListener" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CListener, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_DelListener" "', argument " "2"" of type '" "CListener *""'"); } arg2 = reinterpret_cast< CListener * >(argp2); result = (bool)(arg1)->DelListener(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_SetMotd) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_SetMotd(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_SetMotd" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_SetMotd" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_SetMotd" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetMotd((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_AddMotd) { { CZNC *arg1 = (CZNC *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddMotd(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddMotd" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddMotd" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CZNC_AddMotd" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->AddMotd((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CZNC_ClearMotd) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_ClearMotd(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ClearMotd" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ClearMotd(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetMotd) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; VCString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetMotd(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetMotd" "', argument " "1"" of type '" "CZNC const *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (VCString *) &((CZNC const *)arg1)->GetMotd(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CString_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_AddServerThrottle) { { CZNC *arg1 = (CZNC *) 0 ; CString arg2 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddServerThrottle(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddServerThrottle" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CZNC_AddServerThrottle" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } (arg1)->AddServerThrottle(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetServerThrottle__SWIG_1) { { CZNC *arg1 = (CZNC *) 0 ; CString arg2 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_GetServerThrottle(self,sName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetServerThrottle" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "CZNC_GetServerThrottle" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (bool)(arg1)->GetServerThrottle(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetServerThrottle) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CZNC, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetServerThrottle__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CZNC_GetServerThrottle__SWIG_1); return; } } croak("No matching function for overloaded 'CZNC_GetServerThrottle'"); XSRETURN(0); } XS(_wrap_CZNC_AddNetworkToQueue) { { CZNC *arg1 = (CZNC *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_AddNetworkToQueue(self,pNetwork);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_AddNetworkToQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_AddNetworkToQueue" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); (arg1)->AddNetworkToQueue(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_GetConnectionQueue) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::list< CIRCNetwork * > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_GetConnectionQueue(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_GetConnectionQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); result = (std::list< CIRCNetwork * > *) &(arg1)->GetConnectionQueue(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__listT_CIRCNetwork_p_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_EnableConnectQueue) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_EnableConnectQueue(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_EnableConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->EnableConnectQueue(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_DisableConnectQueue) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_DisableConnectQueue(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DisableConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->DisableConnectQueue(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_PauseConnectQueue) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_PauseConnectQueue(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_PauseConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->PauseConnectQueue(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_ResumeConnectQueue) { { CZNC *arg1 = (CZNC *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_ResumeConnectQueue(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_ResumeConnectQueue" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); (arg1)->ResumeConnectQueue(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_LeakConnectQueueTimer) { { CZNC *arg1 = (CZNC *) 0 ; CConnectQueueTimer *arg2 = (CConnectQueueTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CZNC_LeakConnectQueueTimer(self,pTimer);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CZNC, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_LeakConnectQueueTimer" "', argument " "1"" of type '" "CZNC *""'"); } arg1 = reinterpret_cast< CZNC * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CConnectQueueTimer, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CZNC_LeakConnectQueueTimer" "', argument " "2"" of type '" "CConnectQueueTimer *""'"); } arg2 = reinterpret_cast< CConnectQueueTimer * >(argp2); (arg1)->LeakConnectQueueTimer(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CZNC_DumpConfig) { { CConfig *arg1 = (CConfig *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CZNC_DumpConfig(Config);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CConfig, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CZNC_DumpConfig" "', argument " "1"" of type '" "CConfig const *""'"); } arg1 = reinterpret_cast< CConfig * >(argp1); CZNC::DumpConfig((CConfig const *)arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CServer__SWIG_0) { { CString *arg1 = 0 ; unsigned short arg2 ; CString *arg3 = 0 ; bool arg4 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; bool val4 ; int ecode4 = 0 ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: new_CServer(sName,uPort,sPass,bSSL);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CServer" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } ecode4 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_CServer" "', argument " "4"" of type '" "bool""'"); } arg4 = static_cast< bool >(val4); result = (CServer *)new CServer((CString const &)*arg1,arg2,(CString const &)*arg3,arg4); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_new_CServer__SWIG_1) { { CString *arg1 = 0 ; unsigned short arg2 ; CString *arg3 = 0 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CServer(sName,uPort,sPass);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CServer" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (CServer *)new CServer((CString const &)*arg1,arg2,(CString const &)*arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_new_CServer__SWIG_2) { { CString *arg1 = 0 ; unsigned short arg2 ; int res1 = SWIG_OLDOBJ ; unsigned short val2 ; int ecode2 = 0 ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CServer(sName,uPort);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } ecode2 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CServer" "', argument " "2"" of type '" "unsigned short""'"); } arg2 = static_cast< unsigned short >(val2); result = (CServer *)new CServer((CString const &)*arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CServer__SWIG_3) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CServer *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CServer(sName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CServer" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CServer *)new CServer((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CServer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CServer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(3), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CServer__SWIG_3); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CServer__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CServer__SWIG_1); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CServer__SWIG_0); return; } } croak("No matching function for overloaded 'new_CServer'"); XSRETURN(0); } XS(_wrap_delete_CServer) { { CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CServer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CServer" "', argument " "1"" of type '" "CServer *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_GetName) { { CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CServer_GetName(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetName" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (CString *) &((CServer const *)arg1)->GetName(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_GetPort) { { CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned short result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CServer_GetPort(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetPort" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (unsigned short)((CServer const *)arg1)->GetPort(); ST(argvi) = SWIG_From_unsigned_SS_short SWIG_PERL_CALL_ARGS_1(static_cast< unsigned short >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_GetPass) { { CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CServer_GetPass(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetPass" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (CString *) &((CServer const *)arg1)->GetPass(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_IsSSL) { { CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CServer_IsSSL(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_IsSSL" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = (bool)((CServer const *)arg1)->IsSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_GetString__SWIG_0) { { CServer *arg1 = (CServer *) 0 ; bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; bool val2 ; int ecode2 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CServer_GetString(self,bIncludePassword);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetString" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); ecode2 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CServer_GetString" "', argument " "2"" of type '" "bool""'"); } arg2 = static_cast< bool >(val2); result = ((CServer const *)arg1)->GetString(arg2); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_GetString__SWIG_1) { { CServer *arg1 = (CServer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CServer_GetString(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CServer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_GetString" "', argument " "1"" of type '" "CServer const *""'"); } arg1 = reinterpret_cast< CServer * >(argp1); result = ((CServer const *)arg1)->GetString(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CServer_GetString) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CServer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CServer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CServer_GetString__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CServer_GetString__SWIG_0); return; } } croak("No matching function for overloaded 'CServer_GetString'"); XSRETURN(0); } XS(_wrap_CServer_IsValidHostName) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CServer_IsValidHostName(sHostName);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CServer_IsValidHostName" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CServer_IsValidHostName" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (bool)CServer::IsValidHostName((CString const &)*arg1); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_CDebug_SetStdoutIsTTY) { { bool arg1 ; bool val1 ; int ecode1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDebug_SetStdoutIsTTY(b);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CDebug_SetStdoutIsTTY" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); CDebug::SetStdoutIsTTY(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDebug_StdoutIsTTY) { { int argvi = 0; bool result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CDebug_StdoutIsTTY();"); } result = (bool)CDebug::StdoutIsTTY(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDebug_SetDebug) { { bool arg1 ; bool val1 ; int ecode1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CDebug_SetDebug(b);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CDebug_SetDebug" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); CDebug::SetDebug(arg1); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CDebug_Debug) { { int argvi = 0; bool result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: CDebug_Debug();"); } result = (bool)CDebug::Debug(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CDebug) { { int argvi = 0; CDebug *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CDebug();"); } result = (CDebug *)new CDebug(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDebug, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CDebug) { { CDebug *arg1 = (CDebug *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CDebug(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDebug, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CDebug" "', argument " "1"" of type '" "CDebug *""'"); } arg1 = reinterpret_cast< CDebug * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CDebugStream) { { CDebugStream *arg1 = (CDebugStream *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CDebugStream(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CDebugStream, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CDebugStream" "', argument " "1"" of type '" "CDebugStream *""'"); } arg1 = reinterpret_cast< CDebugStream * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CDebugStream) { { int argvi = 0; CDebugStream *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CDebugStream();"); } result = (CDebugStream *)new CDebugStream(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CDebugStream, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CExecSock) { { int argvi = 0; CExecSock *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CExecSock();"); } result = (CExecSock *)new CExecSock(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CExecSock, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CExecSock_Execute) { { CExecSock *arg1 = (CExecSock *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; int result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CExecSock_Execute(self,sExec);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_Execute" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CExecSock_Execute" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_Execute" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (int)(arg1)->Execute((CString const &)*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CExecSock_Kill) { { CExecSock *arg1 = (CExecSock *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CExecSock_Kill(self,iSignal);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_Kill" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CExecSock_Kill" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); (arg1)->Kill(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CExecSock) { { CExecSock *arg1 = (CExecSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CExecSock(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CExecSock, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CExecSock" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CExecSock_popen2) { { CExecSock *arg1 = (CExecSock *) 0 ; int *arg2 = 0 ; int *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; int result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CExecSock_popen2(self,iReadFD,iWriteFD,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_popen2" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_int, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CExecSock_popen2" "', argument " "2"" of type '" "int &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_popen2" "', argument " "2"" of type '" "int &""'"); } arg2 = reinterpret_cast< int * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_int, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CExecSock_popen2" "', argument " "3"" of type '" "int &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_popen2" "', argument " "3"" of type '" "int &""'"); } arg3 = reinterpret_cast< int * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CExecSock_popen2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CExecSock_popen2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (int)(arg1)->popen2(*arg2,*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CExecSock_close2) { { CExecSock *arg1 = (CExecSock *) 0 ; int arg2 ; int arg3 ; int arg4 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int val3 ; int ecode3 = 0 ; int val4 ; int ecode4 = 0 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CExecSock_close2(self,iPid,iReadFD,iWriteFD);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CExecSock, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CExecSock_close2" "', argument " "1"" of type '" "CExecSock *""'"); } arg1 = reinterpret_cast< CExecSock * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CExecSock_close2" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); ecode3 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CExecSock_close2" "', argument " "3"" of type '" "int""'"); } arg3 = static_cast< int >(val3); ecode4 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CExecSock_close2" "', argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); (arg1)->close2(arg2,arg3,arg4); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CBufLine__SWIG_0) { { int argvi = 0; CBufLine *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CBufLine();"); } result = (CBufLine *)new CBufLine(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CBufLine__SWIG_1) { { CString *arg1 = 0 ; CString *arg2 = 0 ; timeval *arg3 = (timeval *) 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CBufLine *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: new_CBufLine(sFormat,sText,ts);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } res3 = SWIG_ConvertPtr(ST(2), &argp3,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CBufLine" "', argument " "3"" of type '" "timeval const *""'"); } arg3 = reinterpret_cast< timeval * >(argp3); result = (CBufLine *)new CBufLine((CString const &)*arg1,(CString const &)*arg2,(timeval const *)arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CBufLine__SWIG_2) { { CString *arg1 = 0 ; CString *arg2 = 0 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; int argvi = 0; CBufLine *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CBufLine(sFormat,sText);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (CBufLine *)new CBufLine((CString const &)*arg1,(CString const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_new_CBufLine__SWIG_3) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; CBufLine *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CBufLine(sFormat);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CBufLine" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (CBufLine *)new CBufLine((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_CBufLine) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CBufLine__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CBufLine__SWIG_3); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CBufLine__SWIG_2); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CBufLine__SWIG_1); return; } } croak("No matching function for overloaded 'new_CBufLine'"); XSRETURN(0); } XS(_wrap_delete_CBufLine) { { CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CBufLine(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CBufLine" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBufLine_GetLine) { { CBufLine *arg1 = (CBufLine *) 0 ; CClient *arg2 = 0 ; MCString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CBufLine_GetLine(self,Client,msParams);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetLine" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_GetLine" "', argument " "2"" of type '" "CClient const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_GetLine" "', argument " "2"" of type '" "CClient const &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_MCString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBufLine_GetLine" "', argument " "3"" of type '" "MCString const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_GetLine" "', argument " "3"" of type '" "MCString const &""'"); } arg3 = reinterpret_cast< MCString * >(argp3); result = ((CBufLine const *)arg1)->GetLine((CClient const &)*arg2,(MCString const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBufLine_UpdateTime) { { CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBufLine_UpdateTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_UpdateTime" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); (arg1)->UpdateTime(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBufLine_SetFormat) { { CBufLine *arg1 = (CBufLine *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBufLine_SetFormat(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_SetFormat" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_SetFormat" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_SetFormat" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetFormat((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CBufLine_SetText) { { CBufLine *arg1 = (CBufLine *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBufLine_SetText(self,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_SetText" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_SetText" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_SetText" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->SetText((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CBufLine_SetTime) { { CBufLine *arg1 = (CBufLine *) 0 ; timeval *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBufLine_SetTime(self,ts);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_SetTime" "', argument " "1"" of type '" "CBufLine *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_timeval, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBufLine_SetTime" "', argument " "2"" of type '" "timeval const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBufLine_SetTime" "', argument " "2"" of type '" "timeval const &""'"); } arg2 = reinterpret_cast< timeval * >(argp2); (arg1)->SetTime((timeval const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBufLine_GetFormat) { { CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBufLine_GetFormat(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetFormat" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); result = (CString *) &((CBufLine const *)arg1)->GetFormat(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBufLine_GetText) { { CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBufLine_GetText(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetText" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); result = (CString *) &((CBufLine const *)arg1)->GetText(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBufLine_GetTime) { { CBufLine *arg1 = (CBufLine *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; timeval result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBufLine_GetTime(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBufLine, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBufLine_GetTime" "', argument " "1"" of type '" "CBufLine const *""'"); } arg1 = reinterpret_cast< CBufLine * >(argp1); result = ((CBufLine const *)arg1)->GetTime(); ST(argvi) = SWIG_NewPointerObj((new timeval(static_cast< const timeval& >(result))), SWIGTYPE_p_timeval, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CBuffer__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; CBuffer *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_CBuffer(uLineCount);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CBuffer" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (CBuffer *)new CBuffer(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBuffer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CBuffer__SWIG_1) { { int argvi = 0; CBuffer *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_CBuffer();"); } result = (CBuffer *)new CBuffer(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBuffer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CBuffer) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CBuffer__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_CBuffer__SWIG_0); return; } } croak("No matching function for overloaded 'new_CBuffer'"); XSRETURN(0); } XS(_wrap_delete_CBuffer) { { CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CBuffer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CBuffer" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_AddLine__SWIG_0) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; timeval *arg4 = (timeval *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CBuffer_AddLine(self,sFormat,sText,ts);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_AddLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4,SWIGTYPE_p_timeval, 0 | 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CBuffer_AddLine" "', argument " "4"" of type '" "timeval const *""'"); } arg4 = reinterpret_cast< timeval * >(argp4); result = (arg1)->AddLine((CString const &)*arg2,(CString const &)*arg3,(timeval const *)arg4); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CBuffer_AddLine__SWIG_1) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CBuffer_AddLine(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_AddLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->AddLine((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CBuffer_AddLine__SWIG_2) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBuffer_AddLine(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_AddLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_AddLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->AddLine((CString const &)*arg2); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CBuffer_AddLine) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_timeval, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_AddLine__SWIG_2); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_AddLine__SWIG_1); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_AddLine__SWIG_0); return; } } croak("No matching function for overloaded 'CBuffer_AddLine'"); XSRETURN(0); } XS(_wrap_CBuffer_UpdateLine__SWIG_0) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CBuffer_UpdateLine(self,sMatch,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CBuffer_UpdateLine" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } result = (arg1)->UpdateLine((CString const &)*arg2,(CString const &)*arg3,(CString const &)*arg4); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CBuffer_UpdateLine__SWIG_1) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CBuffer_UpdateLine(self,sMatch,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->UpdateLine((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CBuffer_UpdateLine) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_UpdateLine__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_UpdateLine__SWIG_0); return; } } croak("No matching function for overloaded 'CBuffer_UpdateLine'"); XSRETURN(0); } XS(_wrap_CBuffer_UpdateExactLine__SWIG_0) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CBuffer_UpdateExactLine(self,sFormat,sText);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateExactLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_UpdateExactLine" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateExactLine" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (arg1)->UpdateExactLine((CString const &)*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CBuffer_UpdateExactLine__SWIG_1) { { CBuffer *arg1 = (CBuffer *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBuffer_UpdateExactLine(self,sFormat);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_UpdateExactLine" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_UpdateExactLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (arg1)->UpdateExactLine((CString const &)*arg2); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CBuffer_UpdateExactLine) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_UpdateExactLine__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_UpdateExactLine__SWIG_0); return; } } croak("No matching function for overloaded 'CBuffer_UpdateExactLine'"); XSRETURN(0); } XS(_wrap_CBuffer_GetBufLine) { { CBuffer *arg1 = (CBuffer *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; CBufLine *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBuffer_GetBufLine(self,uIdx);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetBufLine" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_GetBufLine" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (CBufLine *) &((CBuffer const *)arg1)->GetBufLine(arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CBufLine, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_GetLine__SWIG_0) { { CBuffer *arg1 = (CBuffer *) 0 ; std::deque< CBufLine >::size_type arg2 ; CClient *arg3 = 0 ; MCString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 ; int res4 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CBuffer_GetLine(self,uIdx,Client,msParams);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetLine" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_GetLine" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_MCString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CBuffer_GetLine" "', argument " "4"" of type '" "MCString const &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_GetLine" "', argument " "4"" of type '" "MCString const &""'"); } arg4 = reinterpret_cast< MCString * >(argp4); result = ((CBuffer const *)arg1)->GetLine(arg2,(CClient const &)*arg3,(MCString const &)*arg4); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_GetLine__SWIG_1) { { CBuffer *arg1 = (CBuffer *) 0 ; std::deque< CBufLine >::size_type arg2 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; size_t val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CBuffer_GetLine(self,uIdx,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetLine" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_GetLine" "', argument " "2"" of type '" "std::deque< CBufLine >::size_type""'"); } arg2 = static_cast< std::deque< CBufLine >::size_type >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CBuffer_GetLine" "', argument " "3"" of type '" "CClient const &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = ((CBuffer const *)arg1)->GetLine(arg2,(CClient const &)*arg3); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_GetLine) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 4) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(2), &vptr, SWIGTYPE_p_CClient, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(3), &vptr, SWIGTYPE_p_MCString, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_GetLine__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_GetLine__SWIG_0); return; } } croak("No matching function for overloaded 'CBuffer_GetLine'"); XSRETURN(0); } XS(_wrap_CBuffer_Size) { { CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::deque< CBufLine >::size_type result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBuffer_Size(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_Size" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); result = ((CBuffer const *)arg1)->Size(); ST(argvi) = SWIG_From_size_t SWIG_PERL_CALL_ARGS_1(static_cast< size_t >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_IsEmpty) { { CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBuffer_IsEmpty(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_IsEmpty" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); result = (bool)((CBuffer const *)arg1)->IsEmpty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_Clear) { { CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBuffer_Clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_Clear" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); (arg1)->Clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_SetLineCount__SWIG_0) { { CBuffer *arg1 = (CBuffer *) 0 ; unsigned int arg2 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; bool val3 ; int ecode3 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CBuffer_SetLineCount(self,u,bForce);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_SetLineCount" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_SetLineCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CBuffer_SetLineCount" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); result = (bool)(arg1)->SetLineCount(arg2,arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_SetLineCount__SWIG_1) { { CBuffer *arg1 = (CBuffer *) 0 ; unsigned int arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CBuffer_SetLineCount(self,u);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_SetLineCount" "', argument " "1"" of type '" "CBuffer *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CBuffer_SetLineCount" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); result = (bool)(arg1)->SetLineCount(arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CBuffer_SetLineCount) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_1; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } check_1: if (items == 3) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_CBuffer, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_SetLineCount__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_CBuffer_SetLineCount__SWIG_0); return; } } croak("No matching function for overloaded 'CBuffer_SetLineCount'"); XSRETURN(0); } XS(_wrap_CBuffer_GetLineCount) { { CBuffer *arg1 = (CBuffer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CBuffer_GetLineCount(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CBuffer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CBuffer_GetLineCount" "', argument " "1"" of type '" "CBuffer const *""'"); } arg1 = reinterpret_cast< CBuffer * >(argp1); result = (unsigned int)((CBuffer const *)arg1)->GetLineCount(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CPerlModule) { { CUser *arg1 = (CUser *) 0 ; CIRCNetwork *arg2 = (CIRCNetwork *) 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; SV *arg5 = (SV *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int res4 = SWIG_OLDOBJ ; int argvi = 0; CPerlModule *result = 0 ; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: new_CPerlModule(pUser,pNetwork,sModName,sDataPath,perlObj);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CUser, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CPerlModule" "', argument " "1"" of type '" "CUser *""'"); } arg1 = reinterpret_cast< CUser * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCNetwork, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CPerlModule" "', argument " "2"" of type '" "CIRCNetwork *""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CPerlModule" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPerlModule" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CPerlModule" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPerlModule" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } arg5 = ST(4); result = (CPerlModule *)new CPerlModule(arg1,arg2,(CString const &)*arg3,(CString const &)*arg4,arg5); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPerlModule, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CPerlModule_GetPerlObj) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SV *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_GetPerlObj(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_GetPerlObj" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); result = (SV *)(arg1)->GetPerlObj(); ST(argvi) = result; argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnBoot) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnBoot(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnBoot" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); result = (bool)(arg1)->OnBoot(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_WebRequiresLogin) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_WebRequiresLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_WebRequiresLogin" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); result = (bool)(arg1)->WebRequiresLogin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_WebRequiresAdmin) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_WebRequiresAdmin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_WebRequiresAdmin" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); result = (bool)(arg1)->WebRequiresAdmin(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_GetWebMenuTitle) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_GetWebMenuTitle(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_GetWebMenuTitle" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); result = (arg1)->GetWebMenuTitle(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnWebPreRequest) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnWebPreRequest(self,WebSock,sPageName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnWebPreRequest" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnWebPreRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnWebPreRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } result = (bool)(arg1)->OnWebPreRequest(*arg2,(CString const &)*arg3); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnWebRequest) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnWebRequest(self,WebSock,sPageName,Tmpl);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnWebRequest" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnWebRequest(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CPerlModule_GetSubPages) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; VWebSubPages *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_GetSubPages(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_GetSubPages" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); result = (VWebSubPages *) &(arg1)->GetSubPages(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPreRehash) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnPreRehash(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPreRehash" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); (arg1)->OnPreRehash(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPostRehash) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnPostRehash(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPostRehash" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); (arg1)->OnPostRehash(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnIRCDisconnected) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnIRCDisconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnIRCDisconnected" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); (arg1)->OnIRCDisconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnIRCConnected) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnIRCConnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnIRCConnected" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); (arg1)->OnIRCConnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnIRCConnecting) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnIRCConnecting(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnIRCConnecting" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnIRCConnecting" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); result = (CModule::EModRet)(arg1)->OnIRCConnecting(arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnIRCConnectionError) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CIRCSock *arg2 = (CIRCSock *) 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnIRCConnectionError(self,pIRCSock);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnIRCConnectionError" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CIRCSock, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnIRCConnectionError" "', argument " "2"" of type '" "CIRCSock *""'"); } arg2 = reinterpret_cast< CIRCSock * >(argp2); (arg1)->OnIRCConnectionError(arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnIRCRegistration) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; void *argp5 = 0 ; int res5 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnIRCRegistration(self,sPass,sNick,sIdent,sRealName);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnIRCRegistration" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnIRCRegistration" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnIRCRegistration" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnIRCRegistration" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnIRCRegistration" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnIRCRegistration" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnIRCRegistration" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); res5 = SWIG_ConvertPtr(ST(4), &argp5, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPerlModule_OnIRCRegistration" "', argument " "5"" of type '" "CString &""'"); } if (!argp5) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnIRCRegistration" "', argument " "5"" of type '" "CString &""'"); } arg5 = reinterpret_cast< CString * >(argp5); result = (CModule::EModRet)(arg1)->OnIRCRegistration(*arg2,*arg3,*arg4,*arg5); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnBroadcast) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnBroadcast(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnBroadcast" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnBroadcast" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnBroadcast" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnBroadcast(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanPermission2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; unsigned char arg5 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; unsigned char val5 ; int ecode5 = 0 ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CPerlModule_OnChanPermission2(self,pOpNick,Nick,Channel,uMode,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanPermission2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanPermission2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanPermission2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanPermission2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPerlModule_OnChanPermission2" "', argument " "5"" of type '" "unsigned char""'"); } arg5 = static_cast< unsigned char >(val5); ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CPerlModule_OnChanPermission2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CPerlModule_OnChanPermission2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnChanPermission2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5,arg6,arg7); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnOp2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnOp2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnOp2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnOp2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnOp2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnOp2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPerlModule_OnOp2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnOp2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnDeop2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnDeop2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnDeop2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnDeop2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnDeop2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnDeop2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPerlModule_OnDeop2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDeop2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnVoice2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnVoice2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnVoice2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnVoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnVoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnVoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPerlModule_OnVoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnVoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnDevoice2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CNick *arg3 = 0 ; CChan *arg4 = 0 ; bool arg5 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; bool val5 ; int ecode5 = 0 ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnDevoice2(self,pOpNick,Nick,Channel,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnDevoice2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnDevoice2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnDevoice2" "', argument " "3"" of type '" "CNick const &""'"); } arg3 = reinterpret_cast< CNick * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnDevoice2" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); ecode5 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(4), &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "CPerlModule_OnDevoice2" "', argument " "5"" of type '" "bool""'"); } arg5 = static_cast< bool >(val5); (arg1)->OnDevoice2((CNick const *)arg2,(CNick const &)*arg3,*arg4,arg5); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnMode2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; char arg4 ; CString *arg5 = 0 ; bool arg6 ; bool arg7 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; char val4 ; int ecode4 = 0 ; int res5 = SWIG_OLDOBJ ; bool val6 ; int ecode6 = 0 ; bool val7 ; int ecode7 = 0 ; int argvi = 0; dXSARGS; if ((items < 7) || (items > 7)) { SWIG_croak("Usage: CPerlModule_OnMode2(self,pOpNick,Channel,uMode,sArg,bAdded,bNoChange);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnMode2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); ecode4 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CPerlModule_OnMode2" "', argument " "4"" of type '" "char""'"); } arg4 = static_cast< char >(val4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPerlModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } ecode6 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(5), &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "CPerlModule_OnMode2" "', argument " "6"" of type '" "bool""'"); } arg6 = static_cast< bool >(val6); ecode7 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(6), &val7); if (!SWIG_IsOK(ecode7)) { SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CPerlModule_OnMode2" "', argument " "7"" of type '" "bool""'"); } arg7 = static_cast< bool >(val7); (arg1)->OnMode2((CNick const *)arg2,*arg3,arg4,(CString const &)*arg5,arg6,arg7); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnRawMode2) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = (CNick *) 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnRawMode2(self,pOpNick,Channel,sModes,sArgs);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnRawMode2" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2,SWIGTYPE_p_CNick, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnRawMode2" "', argument " "2"" of type '" "CNick const *""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnRawMode2" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnRawMode2" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPerlModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnRawMode2" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnRawMode2((CNick const *)arg2,*arg3,(CString const &)*arg4,(CString const &)*arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnRaw) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnRaw(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnRaw" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnRaw" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnRaw" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnRaw(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnStatusCommand) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnStatusCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnStatusCommand" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnStatusCommand" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnStatusCommand" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnStatusCommand(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnModCommand) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnModCommand(self,sCommand);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnModCommand" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnModCommand" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCommand((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnModNotice) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnModNotice(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnModNotice" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnModNotice" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModNotice((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnModCTCP) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnModCTCP(self,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnModCTCP" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnModCTCP" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->OnModCTCP((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnQuit) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; std::vector< CChan * > temp4 ; std::vector< CChan * > *v4 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnQuit(self,Nick,sMessage,vChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnQuit" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnQuit" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnQuit" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { int res = SWIG_ConvertPtr(ST(3),(void **) &v4, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg4 = v4; } else if (SvROK(ST(3))) { AV *av = (AV *)SvRV(ST(3)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 4 of CPerlModule_OnQuit. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v4)); } else { SWIG_croak("Type error in argument 4 of " "CPerlModule_OnQuit. " "Expected an array of " "CChan"); } } arg4 = &temp4; } else { SWIG_croak("Type error in argument 4 of CPerlModule_OnQuit. " "Expected an array of " "CChan"); } } (arg1)->OnQuit((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan * > const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnNick) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; std::vector< CChan * > *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; std::vector< CChan * > temp4 ; std::vector< CChan * > *v4 ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnNick(self,Nick,sNewNick,vChans);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnNick" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnNick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnNick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } { int res = SWIG_ConvertPtr(ST(3),(void **) &v4, SWIGTYPE_p_std__vectorT_CChan_p_t,0); if (SWIG_IsOK(res)) { arg4 = v4; } else if (SvROK(ST(3))) { AV *av = (AV *)SvRV(ST(3)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 4 of CPerlModule_OnNick. " "Expected an array of " "CChan"); I32 len = av_len(av) + 1; for (int i=0; i(v4)); } else { SWIG_croak("Type error in argument 4 of " "CPerlModule_OnNick. " "Expected an array of " "CChan"); } } arg4 = &temp4; } else { SWIG_croak("Type error in argument 4 of CPerlModule_OnNick. " "Expected an array of " "CChan"); } } (arg1)->OnNick((CNick const &)*arg2,(CString const &)*arg3,(std::vector< CChan * > const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnKick) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; CChan *arg4 = 0 ; CString *arg5 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int res5 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 5) || (items > 5)) { SWIG_croak("Usage: CPerlModule_OnKick(self,OpNick,sKickedNick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnKick" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnKick" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnKick" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnKick" "', argument " "4"" of type '" "CChan &""'"); } arg4 = reinterpret_cast< CChan * >(argp4); { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CPerlModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnKick" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } (arg1)->OnKick((CNick const &)*arg2,(CString const &)*arg3,*arg4,(CString const &)*arg5); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnJoining) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnJoining(self,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnJoining" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnJoining" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnJoining(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnJoin) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnJoin(self,Nick,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnJoin" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnJoin" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnJoin" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); (arg1)->OnJoin((CNick const &)*arg2,*arg3); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPart) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int res4 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnPart(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPart" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPart" "', argument " "2"" of type '" "CNick const &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPart" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPart" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } (arg1)->OnPart((CNick const &)*arg2,*arg3,(CString const &)*arg4); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res4)) delete arg4; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanBufferStarting) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnChanBufferStarting(self,Chan,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanBufferStarting" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferStarting" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferStarting" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferStarting(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanBufferEnding) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnChanBufferEnding(self,Chan,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanBufferEnding" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferEnding" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferEnding" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnChanBufferEnding(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanBufferPlayLine) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CChan *arg2 = 0 ; CClient *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnChanBufferPlayLine(self,Chan,Client,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanBufferPlayLine" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanBufferPlayLine(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPrivBufferPlayLine) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CClient *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnPrivBufferPlayLine(self,Client,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPrivBufferPlayLine" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivBufferPlayLine" "', argument " "2"" of type '" "CClient &""'"); } arg2 = reinterpret_cast< CClient * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnPrivBufferPlayLine" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivBufferPlayLine" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivBufferPlayLine(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnClientLogin) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnClientLogin(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnClientLogin" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); (arg1)->OnClientLogin(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnClientDisconnect) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlModule_OnClientDisconnect(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnClientDisconnect" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); (arg1)->OnClientDisconnect(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserRaw) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnUserRaw(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserRaw" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserRaw" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserRaw" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnUserRaw(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserCTCPReply) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserCTCPReply(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserCTCPReply" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserCTCPReply" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserCTCPReply" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserCTCP) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserCTCP(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserCTCP" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserCTCP" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserCTCP" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserAction) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserAction(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserAction" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserAction" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserAction" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserAction" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserAction" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserAction(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserMsg) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserMsg(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserMsg" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserMsg" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserMsg" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserMsg(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserNotice) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserNotice(self,sTarget,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserNotice" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserNotice" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserNotice" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserNotice(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserJoin) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserJoin(self,sChannel,sKey);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserJoin" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserJoin" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserJoin" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserJoin" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserJoin" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserJoin(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserPart) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserPart(self,sChannel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserPart" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserPart" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserPart" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserPart" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserPart" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserPart(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserTopic) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnUserTopic(self,sChannel,sTopic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserTopic" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserTopic" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserTopic" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnUserTopic" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserTopic" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnUserTopic(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnUserTopicRequest) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnUserTopicRequest(self,sChannel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnUserTopicRequest" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnUserTopicRequest" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnUserTopicRequest" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnUserTopicRequest(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnCTCPReply) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnCTCPReply(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnCTCPReply" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnCTCPReply" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnCTCPReply" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnCTCPReply(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPrivCTCP) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnPrivCTCP(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPrivCTCP" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivCTCP" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivCTCP(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanCTCP) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnChanCTCP(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanCTCP" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanCTCP" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanCTCP" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanCTCP" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanCTCP(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPrivAction) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnPrivAction(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPrivAction" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnPrivAction" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivAction" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivAction(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanAction) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnChanAction(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanAction" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanAction" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanAction" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnChanAction" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanAction" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanAction(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPrivMsg) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnPrivMsg(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPrivMsg" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivMsg" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivMsg(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanMsg) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnChanMsg(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanMsg" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanMsg" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanMsg" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanMsg" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanMsg(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnPrivNotice) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnPrivNotice(self,Nick,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnPrivNotice" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnPrivNotice" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnPrivNotice(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnChanNotice) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnChanNotice(self,Nick,Channel,sMessage);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnChanNotice" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanNotice" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanNotice" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnChanNotice" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnChanNotice(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnTopic) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CNick *arg2 = 0 ; CChan *arg3 = 0 ; CString *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnTopic(self,Nick,Channel,sTopic);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnTopic" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CNick, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnTopic" "', argument " "2"" of type '" "CNick &""'"); } arg2 = reinterpret_cast< CNick * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnTopic" "', argument " "3"" of type '" "CChan &""'"); } arg3 = reinterpret_cast< CChan * >(argp3); res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnTopic" "', argument " "4"" of type '" "CString &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnTopic" "', argument " "4"" of type '" "CString &""'"); } arg4 = reinterpret_cast< CString * >(argp4); result = (CModule::EModRet)(arg1)->OnTopic(*arg2,*arg3,*arg4); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnServerCapAvailable) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; bool result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnServerCapAvailable(self,sCap);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnServerCapAvailable" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnServerCapAvailable" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } result = (bool)(arg1)->OnServerCapAvailable((CString const &)*arg2); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnServerCapResult) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; bool arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; bool val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnServerCapResult(self,sCap,bSuccess);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnServerCapResult" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnServerCapResult" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPerlModule_OnServerCapResult" "', argument " "3"" of type '" "bool""'"); } arg3 = static_cast< bool >(val3); (arg1)->OnServerCapResult((CString const &)*arg2,arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnTimerAutoJoin) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CChan *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnTimerAutoJoin(self,Channel);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnTimerAutoJoin" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CChan, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnTimerAutoJoin" "', argument " "2"" of type '" "CChan &""'"); } arg2 = reinterpret_cast< CChan * >(argp2); result = (CModule::EModRet)(arg1)->OnTimerAutoJoin(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnEmbeddedWebRequest) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CWebSock *arg2 = 0 ; CString *arg3 = 0 ; CTemplate *arg4 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int res3 = SWIG_OLDOBJ ; void *argp4 = 0 ; int res4 = 0 ; int argvi = 0; bool result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: CPerlModule_OnEmbeddedWebRequest(self,CWebSock &,CString const &,CTemplate &);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CWebSock, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "2"" of type '" "CWebSock &""'"); } arg2 = reinterpret_cast< CWebSock * >(argp2); { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } res4 = SWIG_ConvertPtr(ST(3), &argp4, SWIGTYPE_p_CTemplate, 0 ); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } if (!argp4) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnEmbeddedWebRequest" "', argument " "4"" of type '" "CTemplate &""'"); } arg4 = reinterpret_cast< CTemplate * >(argp4); result = (bool)(arg1)->OnEmbeddedWebRequest(*arg2,(CString const &)*arg3,*arg4); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnAddNetwork) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CIRCNetwork *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnAddNetwork(self,Network,sErrorRet);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnAddNetwork" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnAddNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnAddNetwork" "', argument " "3"" of type '" "CString &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnAddNetwork" "', argument " "3"" of type '" "CString &""'"); } arg3 = reinterpret_cast< CString * >(argp3); result = (CModule::EModRet)(arg1)->OnAddNetwork(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnDeleteNetwork) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CIRCNetwork *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnDeleteNetwork(self,Network);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnDeleteNetwork" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CIRCNetwork, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnDeleteNetwork" "', argument " "2"" of type '" "CIRCNetwork &""'"); } arg2 = reinterpret_cast< CIRCNetwork * >(argp2); result = (CModule::EModRet)(arg1)->OnDeleteNetwork(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnSendToClient) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; CClient *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlModule_OnSendToClient(self,sLine,Client);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnSendToClient" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnSendToClient" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnSendToClient" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_CClient, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CPerlModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnSendToClient" "', argument " "3"" of type '" "CClient &""'"); } arg3 = reinterpret_cast< CClient * >(argp3); result = (CModule::EModRet)(arg1)->OnSendToClient(*arg2,*arg3); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlModule_OnSendToIRC) { { CPerlModule *arg1 = (CPerlModule *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; int argvi = 0; CModule::EModRet result; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlModule_OnSendToIRC(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlModule_OnSendToIRC" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_CString, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlModule_OnSendToIRC" "', argument " "2"" of type '" "CString &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlModule_OnSendToIRC" "', argument " "2"" of type '" "CString &""'"); } arg2 = reinterpret_cast< CString * >(argp2); result = (CModule::EModRet)(arg1)->OnSendToIRC(*arg2); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CPerlModule) { { CPerlModule *arg1 = (CPerlModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CPerlModule(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPerlModule" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_AsPerlModule) { { CModule *arg1 = (CModule *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CPerlModule *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: AsPerlModule(p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AsPerlModule" "', argument " "1"" of type '" "CModule *""'"); } arg1 = reinterpret_cast< CModule * >(argp1); result = (CPerlModule *)AsPerlModule(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPerlModule, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_CPerlTimer) { { CPerlModule *arg1 = (CPerlModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; SV *arg6 = (SV *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; CPerlTimer *result = 0 ; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: new_CPerlTimer(pModule,uInterval,uCycles,sLabel,sDescription,perlObj);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CPerlTimer" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CPerlTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CPerlTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CPerlTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPerlTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CPerlTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CPerlTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } arg6 = ST(5); result = (CPerlTimer *)new CPerlTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5,arg6); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPerlTimer, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_CPerlTimer_RunJob) { { CPerlTimer *arg1 = (CPerlTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlTimer_RunJob(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlTimer_RunJob" "', argument " "1"" of type '" "CPerlTimer *""'"); } arg1 = reinterpret_cast< CPerlTimer * >(argp1); (arg1)->RunJob(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlTimer_GetPerlObj) { { CPerlTimer *arg1 = (CPerlTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SV *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlTimer_GetPerlObj(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlTimer, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlTimer_GetPerlObj" "', argument " "1"" of type '" "CPerlTimer *""'"); } arg1 = reinterpret_cast< CPerlTimer * >(argp1); result = (SV *)(arg1)->GetPerlObj(); ST(argvi) = result; argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CPerlTimer) { { CPerlTimer *arg1 = (CPerlTimer *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CPerlTimer(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlTimer, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPerlTimer" "', argument " "1"" of type '" "CPerlTimer *""'"); } arg1 = reinterpret_cast< CPerlTimer * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CreatePerlTimer) { { CPerlModule *arg1 = (CPerlModule *) 0 ; unsigned int arg2 ; unsigned int arg3 ; CString *arg4 = 0 ; CString *arg5 = 0 ; SV *arg6 = (SV *) 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 = SWIG_OLDOBJ ; int res5 = SWIG_OLDOBJ ; int argvi = 0; CPerlTimer *result = 0 ; dXSARGS; if ((items < 6) || (items > 6)) { SWIG_croak("Usage: CreatePerlTimer(pModule,uInterval,uCycles,sLabel,sDescription,perlObj);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreatePerlTimer" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CreatePerlTimer" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = static_cast< unsigned int >(val2); ecode3 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CreatePerlTimer" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = static_cast< unsigned int >(val3); { CString *ptr = (CString *)0; res4 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(3), &ptr); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CreatePerlTimer" "', argument " "4"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreatePerlTimer" "', argument " "4"" of type '" "CString const &""'"); } arg4 = ptr; } { CString *ptr = (CString *)0; res5 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(4), &ptr); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "CreatePerlTimer" "', argument " "5"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CreatePerlTimer" "', argument " "5"" of type '" "CString const &""'"); } arg5 = ptr; } arg6 = ST(5); result = (CPerlTimer *)CreatePerlTimer(arg1,arg2,arg3,(CString const &)*arg4,(CString const &)*arg5,arg6); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPerlTimer, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res4)) delete arg4; if (SWIG_IsNewObj(res5)) delete arg5; SWIG_croak_null(); } } XS(_wrap_new_CPerlSocket) { { CPerlModule *arg1 = (CPerlModule *) 0 ; SV *arg2 = (SV *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CPerlSocket *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_CPerlSocket(pModule,perlObj);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CPerlSocket" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); arg2 = ST(1); result = (CPerlSocket *)new CPerlSocket(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPerlSocket, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlSocket_GetPerlObj) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SV *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlSocket_GetPerlObj(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_GetPerlObj" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); result = (SV *)(arg1)->GetPerlObj(); ST(argvi) = result; argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_CPerlSocket) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_CPerlSocket(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPerlSocket" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlSocket_Connected) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlSocket_Connected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_Connected" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); (arg1)->Connected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlSocket_Disconnected) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlSocket_Disconnected(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_Disconnected" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); (arg1)->Disconnected(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlSocket_Timeout) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlSocket_Timeout(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_Timeout" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); (arg1)->Timeout(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlSocket_ConnectionRefused) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: CPerlSocket_ConnectionRefused(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_ConnectionRefused" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); (arg1)->ConnectionRefused(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_CPerlSocket_ReadData) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; char *arg2 = (char *) 0 ; size_t arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; size_t val3 ; int ecode3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlSocket_ReadData(self,data,len);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_ReadData" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); res2 = SWIG_AsCharPtrAndSize(ST(1), &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlSocket_ReadData" "', argument " "2"" of type '" "char const *""'"); } arg2 = reinterpret_cast< char * >(buf2); ecode3 = SWIG_AsVal_size_t SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPerlSocket_ReadData" "', argument " "3"" of type '" "size_t""'"); } arg3 = static_cast< size_t >(val3); (arg1)->ReadData((char const *)arg2,arg3); ST(argvi) = sv_newmortal(); if (alloc2 == SWIG_NEWOBJ) delete[] buf2; XSRETURN(argvi); fail: if (alloc2 == SWIG_NEWOBJ) delete[] buf2; SWIG_croak_null(); } } XS(_wrap_CPerlSocket_ReadLine) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CPerlSocket_ReadLine(self,sLine);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_ReadLine" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlSocket_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlSocket_ReadLine" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } (arg1)->ReadLine((CString const &)*arg2); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CPerlSocket_GetSockObj) { { CPerlSocket *arg1 = (CPerlSocket *) 0 ; CString *arg2 = 0 ; unsigned short arg3 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; unsigned short val3 ; int ecode3 = 0 ; int argvi = 0; Csock *result = 0 ; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: CPerlSocket_GetSockObj(self,sHost,uPort);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlSocket, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CPerlSocket_GetSockObj" "', argument " "1"" of type '" "CPerlSocket *""'"); } arg1 = reinterpret_cast< CPerlSocket * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CPerlSocket_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CPerlSocket_GetSockObj" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } ecode3 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(2), &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CPerlSocket_GetSockObj" "', argument " "3"" of type '" "unsigned short""'"); } arg3 = static_cast< unsigned short >(val3); result = (Csock *)(arg1)->GetSockObj((CString const &)*arg2,arg3); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Csock, 0 | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_CreatePerlSocket) { { CPerlModule *arg1 = (CPerlModule *) 0 ; SV *arg2 = (SV *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CPerlSocket *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: CreatePerlSocket(pModule,perlObj);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_CPerlModule, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CreatePerlSocket" "', argument " "1"" of type '" "CPerlModule *""'"); } arg1 = reinterpret_cast< CPerlModule * >(argp1); arg2 = ST(1); result = (CPerlSocket *)CreatePerlSocket(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CPerlSocket, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_HaveIPv6) { { int argvi = 0; bool result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: HaveIPv6();"); } result = (bool)HaveIPv6(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_HaveSSL) { { int argvi = 0; bool result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: HaveSSL();"); } result = (bool)HaveSSL(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_HaveCharset) { { int argvi = 0; bool result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: HaveCharset();"); } result = (bool)HaveCharset(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap__GetSOMAXCONN) { { int argvi = 0; int result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: _GetSOMAXCONN();"); } result = (int)_GetSOMAXCONN(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_GetVersionMajor) { { int argvi = 0; int result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetVersionMajor();"); } result = (int)GetVersionMajor(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_GetVersionMinor) { { int argvi = 0; int result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetVersionMinor();"); } result = (int)GetVersionMinor(); ST(argvi) = SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_GetVersion) { { int argvi = 0; double result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetVersion();"); } result = (double)GetVersion(); ST(argvi) = SWIG_From_double SWIG_PERL_CALL_ARGS_1(static_cast< double >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_GetVersionExtra) { { int argvi = 0; CString result; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: GetVersionExtra();"); } result = GetVersionExtra(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_0) { { int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_String();"); } result = (String *)new String(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_1) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(s);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_String" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_String" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } result = (String *)new String((CString const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_2) { { double arg1 ; int arg2 ; double val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_String(d,prec);"); } ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "double""'"); } arg1 = static_cast< double >(val1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_String" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (String *)new String(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_3) { { double arg1 ; double val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(d);"); } ecode1 = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "double""'"); } arg1 = static_cast< double >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_4) { { float arg1 ; int arg2 ; float val1 ; int ecode1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_String(f,prec);"); } ecode1 = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_String" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); result = (String *)new String(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_5) { { float arg1 ; float val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(f);"); } ecode1 = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "float""'"); } arg1 = static_cast< float >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_6) { { int arg1 ; int val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(i);"); } ecode1 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "int""'"); } arg1 = static_cast< int >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_7) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(i);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_8) { { long arg1 ; long val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(i);"); } ecode1 = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "long""'"); } arg1 = static_cast< long >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_9) { { unsigned long arg1 ; unsigned long val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(i);"); } ecode1 = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "unsigned long""'"); } arg1 = static_cast< unsigned long >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_10) { { char arg1 ; char val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(c);"); } ecode1 = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "char""'"); } arg1 = static_cast< char >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_11) { { unsigned char arg1 ; unsigned char val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(c);"); } ecode1 = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "unsigned char""'"); } arg1 = static_cast< unsigned char >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_12) { { short arg1 ; short val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(i);"); } ecode1 = SWIG_AsVal_short SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "short""'"); } arg1 = static_cast< short >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_13) { { unsigned short arg1 ; unsigned short val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(i);"); } ecode1 = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "unsigned short""'"); } arg1 = static_cast< unsigned short >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String__SWIG_14) { { bool arg1 ; bool val1 ; int ecode1 = 0 ; int argvi = 0; String *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_String(b);"); } ecode1 = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_String" "', argument " "1"" of type '" "bool""'"); } arg1 = static_cast< bool >(val1); result = (String *)new String(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_String, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_String) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_bool SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_char SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_short SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_short SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_5; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 5; if (_rank == _rankm) goto dispatch; } } check_5: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_6; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 6; if (_rank == _rankm) goto dispatch; } } check_6: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_7; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 7; if (_rank == _rankm) goto dispatch; } } check_7: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_8; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 8; if (_rank == _rankm) goto dispatch; } } check_8: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_long SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_9; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 9; if (_rank == _rankm) goto dispatch; } } check_9: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_10; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 10; if (_rank == _rankm) goto dispatch; } } check_10: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_11; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 11; if (_rank == _rankm) goto dispatch; } } check_11: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_char SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_12; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 12; if (_rank == _rankm) goto dispatch; } } check_12: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_13; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 13; if (_rank == _rankm) goto dispatch; } } check_13: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_float SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_14; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_14; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 14; if (_rank == _rankm) goto dispatch; } } check_14: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_double SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_15; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { { int res = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_15; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 15; if (_rank == _rankm) goto dispatch; } } check_15: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_14); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_11); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_13); return; case 5: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_12); return; case 6: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_7); return; case 7: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_6); return; case 8: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_9); return; case 9: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_8); return; case 10: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_5); return; case 11: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_3); return; case 12: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_10); return; case 13: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_1); return; case 14: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_4); return; case 15: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_String__SWIG_2); return; } } croak("No matching function for overloaded 'new_String'"); XSRETURN(0); } XS(_wrap_String_GetPerlStr) { { String *arg1 = (String *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: String_GetPerlStr(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_String, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "String_GetPerlStr" "', argument " "1"" of type '" "String *""'"); } arg1 = reinterpret_cast< String * >(argp1); result = (arg1)->GetPerlStr(); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_String) { { String *arg1 = (String *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_String(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_String, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_String" "', argument " "1"" of type '" "String *""'"); } arg1 = reinterpret_cast< String * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_StrPair__SWIG_0) { { int argvi = 0; std::pair< CString,CString > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_StrPair();"); } result = (std::pair< CString,CString > *)new std::pair< CString,CString >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_StrPair__SWIG_1) { { CString arg1 ; CString arg2 ; int argvi = 0; std::pair< CString,CString > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_StrPair(t,u);"); } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_StrPair" "', argument " "1"" of type '" "CString""'"); } arg1 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } { CString *ptr = (CString *)0; int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res) || !ptr) { SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_StrPair" "', argument " "2"" of type '" "CString""'"); } arg2 = *ptr; if (SWIG_IsNewObj(res)) delete ptr; } result = (std::pair< CString,CString > *)new std::pair< CString,CString >(arg1,arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_StrPair__SWIG_2) { { std::pair< CString,CString > *arg1 = 0 ; void *argp1 ; int res1 = 0 ; int argvi = 0; std::pair< CString,CString > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_StrPair(p);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1, SWIGTYPE_p_std__pairT_CString_CString_t, 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StrPair" "', argument " "1"" of type '" "std::pair< CString,CString > const &""'"); } if (!argp1) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StrPair" "', argument " "1"" of type '" "std::pair< CString,CString > const &""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); result = (std::pair< CString,CString > *)new std::pair< CString,CString >((std::pair< CString,CString > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_StrPair) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(0), &vptr, SWIGTYPE_p_std__pairT_CString_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { int res = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), (CString**)(0)); _v = SWIG_CheckState(res); } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_StrPair__SWIG_0); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_StrPair__SWIG_2); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_StrPair__SWIG_1); return; } } croak("No matching function for overloaded 'new_StrPair'"); XSRETURN(0); } XS(_wrap_StrPair_first_set) { { std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: StrPair_first_set(self,first);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_first_set" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrPair_first_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrPair_first_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } if (arg1) (arg1)->first = *arg2; ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_StrPair_first_get) { { std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: StrPair_first_get(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_first_get" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); result = (CString *) & ((arg1)->first); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_StrPair_second_set) { { std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; CString *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: StrPair_second_set(self,second);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_second_set" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StrPair_second_set" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StrPair_second_set" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } if (arg1) (arg1)->second = *arg2; ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap_StrPair_second_get) { { std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; CString *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: StrPair_second_get(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StrPair_second_get" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); result = (CString *) & ((arg1)->second); ST(argvi) = SWIG_From_CString SWIG_PERL_CALL_ARGS_1(static_cast< CString >(*result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_StrPair) { { std::pair< CString,CString > *arg1 = (std::pair< CString,CString > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_StrPair(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StrPair" "', argument " "1"" of type '" "std::pair< CString,CString > *""'"); } arg1 = reinterpret_cast< std::pair< CString,CString > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VPair__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< std::pair< CString,CString > > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VPair(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VPair" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VPair__SWIG_1) { { int argvi = 0; std::vector< std::pair< CString,CString > > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VPair();"); } result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VPair__SWIG_2) { { unsigned int arg1 ; std::pair< CString,CString > *arg2 = 0 ; unsigned int val1 ; int ecode1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; std::vector< std::pair< CString,CString > > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VPair(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VPair" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__pairT_CString_CString_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VPair" "', argument " "2"" of type '" "std::pair< CString,CString > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VPair" "', argument " "2"" of type '" "std::pair< CString,CString > const &""'"); } arg2 = reinterpret_cast< std::pair< CString,CString > * >(argp2); result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >(arg1,(std::pair< CString,CString > const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VPair__SWIG_3) { { std::vector< std::pair< CString,CString > > *arg1 = 0 ; std::vector< std::pair< CString,CString > > temp1 ; std::vector< std::pair< CString,CString > > *v1 ; int argvi = 0; std::vector< std::pair< CString,CString > > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VPair(std::vector< std::pair< CString,CString > > const &);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VPair. " "Expected an array of " "std::pair< CString,CString >"); SV **tv; I32 len = av_len(av) + 1; std::pair< CString,CString >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VPair. " "Expected an array of " "std::pair< CString,CString >"); } } result = (std::vector< std::pair< CString,CString > > *)new std::vector< std::pair< CString,CString > >((std::vector< std::pair< CString,CString > > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VPair) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector >* v; if (SWIG_ConvertPtr(ST(0),(void **) &v, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t,0) != -1) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ std::pair< CString,CString >* obj; SV **tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_std__pairT_CString_CString_t,0) != -1) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_std__pairT_CString_CString_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VPair__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VPair__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VPair__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VPair__SWIG_2); return; } } croak("No matching function for overloaded 'new_VPair'"); XSRETURN(0); } XS(_wrap_VPair_size) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > > temp1 ; std::vector< std::pair< CString,CString > > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VPair_size(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VPair_size. " "Expected an array of " "std::pair< CString,CString >"); SV **tv; I32 len = av_len(av) + 1; std::pair< CString,CString >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VPair_size. " "Expected an array of " "std::pair< CString,CString >"); } } result = (unsigned int)((std::vector< std::pair< CString,CString > > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VPair_empty) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::vector< std::pair< CString,CString > > temp1 ; std::vector< std::pair< CString,CString > > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VPair_empty(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VPair_empty. " "Expected an array of " "std::pair< CString,CString >"); SV **tv; I32 len = av_len(av) + 1; std::pair< CString,CString >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VPair_empty. " "Expected an array of " "std::pair< CString,CString >"); } } result = (bool)((std::vector< std::pair< CString,CString > > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VPair_clear) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VPair_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_clear" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VPair_push) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; std::pair< CString,CString > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VPair_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_push" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__pairT_CString_CString_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VPair_push" "', argument " "2"" of type '" "std::pair< CString,CString > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_push" "', argument " "2"" of type '" "std::pair< CString,CString > const &""'"); } arg2 = reinterpret_cast< std::pair< CString,CString > * >(argp2); (arg1)->push_back((std::pair< CString,CString > const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VPair_pop) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; std::pair< CString,CString > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VPair_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_pop" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); try { result = std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj((new std::pair< CString,CString >(static_cast< const std::pair< CString,CString >& >(result))), SWIGTYPE_p_std__pairT_CString_CString_t, SWIG_POINTER_OWN | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VPair_get) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; std::pair< CString,CString > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VPair_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_get" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (std::pair< CString,CString > *) &std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__pairT_CString_CString_t, 0 | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VPair_set) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; int arg2 ; std::pair< CString,CString > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VPair_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VPair_set" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VPair_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__pairT_CString_CString_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VPair_set" "', argument " "3"" of type '" "std::pair< CString,CString > const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VPair_set" "', argument " "3"" of type '" "std::pair< CString,CString > const &""'"); } arg3 = reinterpret_cast< std::pair< CString,CString > * >(argp3); try { std_vector_Sl_std_pair_Sl_CString_Sc_CString_Sg__Sg__set(arg1,arg2,(std::pair< CString,CString > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_VPair) { { std::vector< std::pair< CString,CString > > *arg1 = (std::vector< std::pair< CString,CString > > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VPair(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VPair" "', argument " "1"" of type '" "std::vector< std::pair< CString,CString > > *""'"); } arg1 = reinterpret_cast< std::vector< std::pair< CString,CString > > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages__SWIG_0) { { unsigned int arg1 ; unsigned int val1 ; int ecode1 = 0 ; int argvi = 0; std::vector< TWebSubPage > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VWebSubPages(size);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VWebSubPages" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages__SWIG_1) { { int argvi = 0; std::vector< TWebSubPage > *result = 0 ; dXSARGS; if ((items < 0) || (items > 0)) { SWIG_croak("Usage: new_VWebSubPages();"); } result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages__SWIG_2) { { unsigned int arg1 ; std::shared_ptr< CWebSubPage > *arg2 = 0 ; unsigned int val1 ; int ecode1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; std::vector< TWebSubPage > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: new_VWebSubPages(size,value);"); } ecode1 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VWebSubPages" "', argument " "1"" of type '" "unsigned int""'"); } arg1 = static_cast< unsigned int >(val1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "std::shared_ptr< CWebSubPage > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_VWebSubPages" "', argument " "2"" of type '" "std::shared_ptr< CWebSubPage > const &""'"); } arg2 = reinterpret_cast< std::shared_ptr< CWebSubPage > * >(argp2); result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >(arg1,(std::shared_ptr< CWebSubPage > const &)*arg2); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages__SWIG_3) { { std::vector< std::shared_ptr< CWebSubPage > > *arg1 = 0 ; std::vector< std::shared_ptr< CWebSubPage > > temp1 ; std::vector< std::shared_ptr< CWebSubPage > > *v1 ; int argvi = 0; std::vector< TWebSubPage > *result = 0 ; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: new_VWebSubPages(std::vector< std::shared_ptr< CWebSubPage > > const &);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of new_VWebSubPages. " "Expected an array of " "std::shared_ptr< CWebSubPage >"); SV **tv; I32 len = av_len(av) + 1; std::shared_ptr< CWebSubPage >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of new_VWebSubPages. " "Expected an array of " "std::shared_ptr< CWebSubPage >"); } } result = (std::vector< TWebSubPage > *)new std::vector< TWebSubPage >((std::vector< std::shared_ptr< CWebSubPage > > const &)*arg1); ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, SWIG_OWNER | SWIG_SHADOW); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_new_VWebSubPages) { dXSARGS; { unsigned long _index = 0; SWIG_TypeRank _rank = 0; if (items == 0) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 1; if (_rank == _rankm) goto dispatch; } } if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_2; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 2; if (_rank == _rankm) goto dispatch; } } check_2: if (items == 1) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { { /* wrapped vector? */ std::vector >* v; if (SWIG_ConvertPtr(ST(0),(void **) &v, SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t,0) != -1) { _v = 1; } else if (SvROK(ST(0))) { /* native sequence? */ AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) == SVt_PVAV) { I32 len = av_len(av) + 1; if (len == 0) { /* an empty sequence can be of any type */ _v = 1; } else { /* check the first element only */ std::shared_ptr< CWebSubPage >* obj; SV **tv = av_fetch(av, 0, 0); if (SWIG_ConvertPtr(*tv, (void **)&obj, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t,0) != -1) _v = 1; else _v = 0; } } } else { _v = 0; } } } } if (!_v) goto check_3; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 3; if (_rank == _rankm) goto dispatch; } } check_3: if (items == 2) { SWIG_TypeRank _ranki = 0; SWIG_TypeRank _rankm = 0; SWIG_TypeRank _pi = 1; int _v = 0; { { int res = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(0), NULL); _v = SWIG_CheckState(res); } } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; { void *vptr = 0; int res = SWIG_ConvertPtr(ST(1), &vptr, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_4; _ranki += _v*_pi; _rankm += _pi; _pi *= SWIG_MAXCASTRANK; if (!_index || (_ranki < _rank)) { _rank = _ranki; _index = 4; if (_rank == _rankm) goto dispatch; } } check_4: dispatch: switch(_index) { case 1: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VWebSubPages__SWIG_1); return; case 2: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VWebSubPages__SWIG_0); return; case 3: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VWebSubPages__SWIG_3); return; case 4: PUSHMARK(MARK); SWIG_CALLXS(_wrap_new_VWebSubPages__SWIG_2); return; } } croak("No matching function for overloaded 'new_VWebSubPages'"); XSRETURN(0); } XS(_wrap_VWebSubPages_size) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > > temp1 ; std::vector< std::shared_ptr< CWebSubPage > > *v1 ; int argvi = 0; unsigned int result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VWebSubPages_size(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VWebSubPages_size. " "Expected an array of " "std::shared_ptr< CWebSubPage >"); SV **tv; I32 len = av_len(av) + 1; std::shared_ptr< CWebSubPage >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VWebSubPages_size. " "Expected an array of " "std::shared_ptr< CWebSubPage >"); } } result = (unsigned int)((std::vector< TWebSubPage > const *)arg1)->size(); ST(argvi) = SWIG_From_unsigned_SS_int SWIG_PERL_CALL_ARGS_1(static_cast< unsigned int >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VWebSubPages_empty) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::vector< std::shared_ptr< CWebSubPage > > temp1 ; std::vector< std::shared_ptr< CWebSubPage > > *v1 ; int argvi = 0; bool result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VWebSubPages_empty(self);"); } { if (SWIG_ConvertPtr(ST(0),(void **) &v1, SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t,1) != -1) { arg1 = v1; } else if (SvROK(ST(0))) { AV *av = (AV *)SvRV(ST(0)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 1 of VWebSubPages_empty. " "Expected an array of " "std::shared_ptr< CWebSubPage >"); SV **tv; I32 len = av_len(av) + 1; std::shared_ptr< CWebSubPage >* obj; for (int i=0; i"); } } arg1 = &temp1; } else { SWIG_croak("Type error in argument 1 of VWebSubPages_empty. " "Expected an array of " "std::shared_ptr< CWebSubPage >"); } } result = (bool)((std::vector< TWebSubPage > const *)arg1)->empty(); ST(argvi) = SWIG_From_bool SWIG_PERL_CALL_ARGS_1(static_cast< bool >(result)); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VWebSubPages_clear) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VWebSubPages_clear(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_clear" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); (arg1)->clear(); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VWebSubPages_push) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; std::shared_ptr< CWebSubPage > *arg2 = 0 ; void *argp1 = 0 ; int res1 = 0 ; void *argp2 ; int res2 = 0 ; int argvi = 0; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VWebSubPages_push(self,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_push" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); res2 = SWIG_ConvertPtr(ST(1), &argp2, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VWebSubPages_push" "', argument " "2"" of type '" "std::shared_ptr< CWebSubPage > const &""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_push" "', argument " "2"" of type '" "std::shared_ptr< CWebSubPage > const &""'"); } arg2 = reinterpret_cast< std::shared_ptr< CWebSubPage > * >(argp2); (arg1)->push_back((std::shared_ptr< CWebSubPage > const &)*arg2); ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VWebSubPages_pop) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; SwigValueWrapper< std::shared_ptr< CWebSubPage > > result; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: VWebSubPages_pop(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_pop" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); try { result = std_vector_Sl_TWebSubPage_Sg__pop(arg1); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj((new std::shared_ptr< CWebSubPage >(static_cast< const std::shared_ptr< CWebSubPage >& >(result))), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, SWIG_POINTER_OWN | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VWebSubPages_get) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; int arg2 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int argvi = 0; std::shared_ptr< CWebSubPage > *result = 0 ; dXSARGS; if ((items < 2) || (items > 2)) { SWIG_croak("Usage: VWebSubPages_get(self,i);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_get" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages_get" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); try { result = (std::shared_ptr< CWebSubPage > *) &std_vector_Sl_TWebSubPage_Sg__get(arg1,arg2); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 | 0); argvi++ ; XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_VWebSubPages_set) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; int arg2 ; std::shared_ptr< CWebSubPage > *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; void *argp3 ; int res3 = 0 ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: VWebSubPages_set(self,i,x);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VWebSubPages_set" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VWebSubPages_set" "', argument " "2"" of type '" "int""'"); } arg2 = static_cast< int >(val2); res3 = SWIG_ConvertPtr(ST(2), &argp3, SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VWebSubPages_set" "', argument " "3"" of type '" "std::shared_ptr< CWebSubPage > const &""'"); } if (!argp3) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VWebSubPages_set" "', argument " "3"" of type '" "std::shared_ptr< CWebSubPage > const &""'"); } arg3 = reinterpret_cast< std::shared_ptr< CWebSubPage > * >(argp3); try { std_vector_Sl_TWebSubPage_Sg__set(arg1,arg2,(std::shared_ptr< CWebSubPage > const &)*arg3); } catch(std::out_of_range &_e) { SWIG_exception_fail(SWIG_IndexError, (&_e)->what()); } ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap_delete_VWebSubPages) { { std::vector< TWebSubPage > *arg1 = (std::vector< TWebSubPage > *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: delete_VWebSubPages(self);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VWebSubPages" "', argument " "1"" of type '" "std::vector< TWebSubPage > *""'"); } arg1 = reinterpret_cast< std::vector< TWebSubPage > * >(argp1); delete arg1; ST(argvi) = sv_newmortal(); XSRETURN(argvi); fail: SWIG_croak_null(); } } XS(_wrap__VPair_Add2Str) { { VPair *arg1 = (VPair *) 0 ; CString *arg2 = 0 ; CString *arg3 = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 = SWIG_OLDOBJ ; int res3 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 3) || (items > 3)) { SWIG_croak("Usage: _VPair_Add2Str(self,a,b);"); } res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_VPair_Add2Str" "', argument " "1"" of type '" "VPair *""'"); } arg1 = reinterpret_cast< VPair * >(argp1); { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_VPair_Add2Str" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_VPair_Add2Str" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { CString *ptr = (CString *)0; res3 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(2), &ptr); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "_VPair_Add2Str" "', argument " "3"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_VPair_Add2Str" "', argument " "3"" of type '" "CString const &""'"); } arg3 = ptr; } _VPair_Add2Str(arg1,(CString const &)*arg2,(CString const &)*arg3); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res2)) delete arg2; if (SWIG_IsNewObj(res3)) delete arg3; SWIG_croak_null(); } } XS(_wrap__CreateWebSubPage) { { CString *arg1 = 0 ; CString *arg2 = 0 ; VPair *arg3 = 0 ; unsigned int arg4 ; int res1 = SWIG_OLDOBJ ; int res2 = SWIG_OLDOBJ ; std::vector< std::pair< CString,CString > > temp3 ; std::vector< std::pair< CString,CString > > *v3 ; unsigned int val4 ; int ecode4 = 0 ; int argvi = 0; SwigValueWrapper< std::shared_ptr< CWebSubPage > > result; dXSARGS; if ((items < 4) || (items > 4)) { SWIG_croak("Usage: _CreateWebSubPage(sName,sTitle,vParams,uFlags);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CreateWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_CreateWebSubPage" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } { CString *ptr = (CString *)0; res2 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(1), &ptr); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "_CreateWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_CreateWebSubPage" "', argument " "2"" of type '" "CString const &""'"); } arg2 = ptr; } { if (SWIG_ConvertPtr(ST(2),(void **) &v3, SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t,1) != -1) { arg3 = v3; } else if (SvROK(ST(2))) { AV *av = (AV *)SvRV(ST(2)); if (SvTYPE(av) != SVt_PVAV) SWIG_croak("Type error in argument 3 of _CreateWebSubPage. " "Expected an array of " "std::pair< CString,CString >"); SV **tv; I32 len = av_len(av) + 1; std::pair< CString,CString >* obj; for (int i=0; i"); } } arg3 = &temp3; } else { SWIG_croak("Type error in argument 3 of _CreateWebSubPage. " "Expected an array of " "std::pair< CString,CString >"); } } ecode4 = SWIG_AsVal_unsigned_SS_int SWIG_PERL_CALL_ARGS_2(ST(3), &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "_CreateWebSubPage" "', argument " "4"" of type '" "unsigned int""'"); } arg4 = static_cast< unsigned int >(val4); result = _CreateWebSubPage((CString const &)*arg1,(CString const &)*arg2,(std::vector< std::pair< CString,CString > > const &)*arg3,arg4); ST(argvi) = SWIG_NewPointerObj((new TWebSubPage(static_cast< const TWebSubPage& >(result))), SWIGTYPE_p_std__shared_ptrT_CWebSubPage_t, SWIG_POINTER_OWN | 0); argvi++ ; if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; if (SWIG_IsNewObj(res2)) delete arg2; SWIG_croak_null(); } } XS(_wrap__CleanupStash) { { CString *arg1 = 0 ; int res1 = SWIG_OLDOBJ ; int argvi = 0; dXSARGS; if ((items < 1) || (items > 1)) { SWIG_croak("Usage: _CleanupStash(sModname);"); } { CString *ptr = (CString *)0; res1 = SWIG_AsPtr_CString SWIG_PERL_CALL_ARGS_2(ST(0), &ptr); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "_CleanupStash" "', argument " "1"" of type '" "CString const &""'"); } if (!ptr) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "_CleanupStash" "', argument " "1"" of type '" "CString const &""'"); } arg1 = ptr; } _CleanupStash((CString const &)*arg1); ST(argvi) = sv_newmortal(); if (SWIG_IsNewObj(res1)) delete arg1; XSRETURN(argvi); fail: if (SWIG_IsNewObj(res1)) delete arg1; SWIG_croak_null(); } } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static void *_p_CTableTo_p_std__vectorT_std__vectorT_CString_t_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::vector< std::vector< CString > > *) ((CTable *) x)); } static void *_p_CSSSLConnectionTo_p_CSConnection(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSConnection *) ((CSSSLConnection *) x)); } static void *_p_StringTo_p_CString(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CString *) ((String *) x)); } static void *_p_CTemplateTo_p_MCString(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((MCString *) ((CTemplate *) x)); } static void *_p_CFPTimerTo_p_CTimer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CTimer *) ((CFPTimer *) x)); } static void *_p_CPerlTimerTo_p_CTimer(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CTimer *) ((CPerlTimer *) x)); } static void *_p_CBufferTo_p_std__dequeT_CBufLine_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::deque< CBufLine > *) ((CBuffer *) x)); } static void *_p_CPerlModuleTo_p_CModule(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CModule *) ((CPerlModule *) x)); } static void *_p_CTimerTo_p_CCron(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CCron *) ((CTimer *) x)); } static void *_p_CFPTimerTo_p_CCron(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CCron *) (CTimer *) ((CFPTimer *) x)); } static void *_p_CPerlTimerTo_p_CCron(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CCron *) (CTimer *) ((CPerlTimer *) x)); } static void *_p_CSocketManagerTo_p_std__vectorT_Csock_p_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::vector< Csock * > *) ((CSocketManager *) x)); } static void *_p_CSocketTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CSocket *) x)); } static void *_p_CIRCSocketTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CIRCSocket *) x)); } static void *_p_CClientTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CRealListenerTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CRealListener *) x)); } static void *_p_CExecSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CExecSock *) x)); } static void *_p_CIncomingConnectionTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) ((CIncomingConnection *) x)); } static void *_p_CHTTPSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CSocket *) ((CHTTPSock *) x)); } static void *_p_CWebSockTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CSocket *)(CHTTPSock *) ((CWebSock *) x)); } static void *_p_CPerlSocketTo_p_CZNCSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CZNCSock *) (CSocket *) ((CPerlSocket *) x)); } static void *_p_CTemplateTo_p_std__mapT_CString_CString_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::map< CString,CString > *) (MCString *) ((CTemplate *) x)); } static void *_p_MCStringTo_p_std__mapT_CString_CString_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((std::map< CString,CString > *) ((MCString *) x)); } static void *_p_CSockManagerTo_p_TSocketManagerT_CZNCSock_t(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((TSocketManager< CZNCSock > *) ((CSockManager *) x)); } static void *_p_CZNCTagHandlerTo_p_CTemplateTagHandler(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CTemplateTagHandler *) ((CZNCTagHandler *) x)); } static void *_p_CSocketTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CSocket *) x)); } static void *_p_CIRCSocketTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CIRCSocket *) x)); } static void *_p_CClientTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CRealListenerTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CRealListener *) x)); } static void *_p_CExecSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CExecSock *) x)); } static void *_p_CZNCSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) ((CZNCSock *) x)); } static void *_p_CIncomingConnectionTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *) ((CIncomingConnection *) x)); } static void *_p_CHTTPSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CSocket *) ((CHTTPSock *) x)); } static void *_p_CWebSockTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CSocket *)(CHTTPSock *) ((CWebSock *) x)); } static void *_p_CPerlSocketTo_p_Csock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((Csock *) (CZNCSock *)(CSocket *) ((CPerlSocket *) x)); } static void *_p_CClientTo_p_CIRCSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSockTo_p_CIRCSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CHTTPSockTo_p_CSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocket *) ((CHTTPSock *) x)); } static void *_p_CWebSockTo_p_CSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocket *) (CHTTPSock *) ((CWebSock *) x)); } static void *_p_CPerlSocketTo_p_CSocket(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocket *) ((CPerlSocket *) x)); } static void *_p_CWebSockTo_p_CHTTPSock(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CHTTPSock *) ((CWebSock *) x)); } static void *_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModuleTo_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)) ((CPerlModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)) x)); } static void *_p_CClientAuthTo_p_CAuthBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CAuthBase *) ((CClientAuth *) x)); } static void *_p_CClientTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CIRCSocket *) ((CClient *) x)); } static void *_p_CIRCSocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CIRCSocket *) x)); } static void *_p_CSocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CSocket *) x)); } static void *_p_CIncomingConnectionTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CIncomingConnection *) x)); } static void *_p_CSockManagerTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (CSocketManager *)(TSocketManager< CZNCSock > *) ((CSockManager *) x)); } static void *_p_CSocketManagerTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) ((CSocketManager *) x)); } static void *_p_CExecSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CExecSock *) x)); } static void *_p_CPerlSocketTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *) ((CPerlSocket *) x)); } static void *_p_CHTTPSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *) ((CHTTPSock *) x)); } static void *_p_CZNCSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *) ((CZNCSock *) x)); } static void *_p_CWebSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CSocket *)(CHTTPSock *) ((CWebSock *) x)); } static void *_p_CRealListenerTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *) ((CRealListener *) x)); } static void *_p_CIRCSockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (Csock *)(CZNCSock *)(CIRCSocket *) ((CIRCSock *) x)); } static void *_p_CsockTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) ((Csock *) x)); } static void *_p_TSocketManagerT_CZNCSock_tTo_p_CSockCommon(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSockCommon *) (CSocketManager *) ((TSocketManager< CZNCSock > *) x)); } static void *_p_TSocketManagerT_CZNCSock_tTo_p_CSocketManager(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocketManager *) ((TSocketManager< CZNCSock > *) x)); } static void *_p_CSockManagerTo_p_CSocketManager(void *x, int *SWIGUNUSEDPARM(newmemory)) { return (void *)((CSocketManager *) (TSocketManager< CZNCSock > *) ((CSockManager *) x)); } static swig_type_info _swigt__m_CModule__f_r_q_const__CString__void = {"_m_CModule__f_r_q_const__CString__void", "void (CModule::*)(CString const &)|CModCommand::ModCmdFunc", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CAuthBase = {"_p_CAuthBase", "CAuthBase *", 0, 0, (void*)"ZNC::CAuthBase", 0}; static swig_type_info _swigt__p_CBufLine = {"_p_CBufLine", "std::deque< CBufLine >::value_type *|CBufLine *", 0, 0, (void*)"ZNC::CBufLine", 0}; static swig_type_info _swigt__p_CBuffer = {"_p_CBuffer", "CBuffer *", 0, 0, (void*)"ZNC::CBuffer", 0}; static swig_type_info _swigt__p_CChan = {"_p_CChan", "CChan *", 0, 0, (void*)"ZNC::CChan", 0}; static swig_type_info _swigt__p_CClient = {"_p_CClient", "CClient *", 0, 0, (void*)"ZNC::CClient", 0}; static swig_type_info _swigt__p_CClientAuth = {"_p_CClientAuth", "CClientAuth *", 0, 0, (void*)"ZNC::CClientAuth", 0}; static swig_type_info _swigt__p_CConfig = {"_p_CConfig", "CConfig *", 0, 0, (void*)"ZNC::CConfig", 0}; static swig_type_info _swigt__p_CConfigEntry = {"_p_CConfigEntry", "CConfigEntry *", 0, 0, (void*)"ZNC::CConfigEntry", 0}; static swig_type_info _swigt__p_CConnectQueueTimer = {"_p_CConnectQueueTimer", "CConnectQueueTimer *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CCron = {"_p_CCron", "CCron *", 0, 0, (void*)"ZNC::CCron", 0}; static swig_type_info _swigt__p_CDebug = {"_p_CDebug", "CDebug *", 0, 0, (void*)"ZNC::CDebug", 0}; static swig_type_info _swigt__p_CDebugStream = {"_p_CDebugStream", "CDebugStream *", 0, 0, (void*)"ZNC::CDebugStream", 0}; static swig_type_info _swigt__p_CDir = {"_p_CDir", "CDir *", 0, 0, (void*)"ZNC::CDir", 0}; static swig_type_info _swigt__p_CException = {"_p_CException", "CException *", 0, 0, (void*)"ZNC::CException", 0}; static swig_type_info _swigt__p_CExecSock = {"_p_CExecSock", "CExecSock *", 0, 0, (void*)"ZNC::CExecSock", 0}; static swig_type_info _swigt__p_CFPTimer = {"_p_CFPTimer", "CFPTimer *", 0, 0, (void*)"ZNC::CFPTimer", 0}; static swig_type_info _swigt__p_CFile = {"_p_CFile", "CFile *", 0, 0, (void*)"ZNC::CFile", 0}; static swig_type_info _swigt__p_CGetAddrInfo = {"_p_CGetAddrInfo", "CGetAddrInfo *", 0, 0, (void*)"ZNC::CGetAddrInfo", 0}; static swig_type_info _swigt__p_CHTTPSock = {"_p_CHTTPSock", "CHTTPSock *", 0, 0, (void*)"ZNC::CHTTPSock", 0}; static swig_type_info _swigt__p_CIRCNetwork = {"_p_CIRCNetwork", "CIRCNetwork *", 0, 0, (void*)"ZNC::CIRCNetwork", 0}; static swig_type_info _swigt__p_CIRCSock = {"_p_CIRCSock", "CIRCSock *", 0, 0, (void*)"ZNC::CIRCSock", 0}; static swig_type_info _swigt__p_CIRCSocket = {"_p_CIRCSocket", "CIRCSocket *", 0, 0, (void*)"ZNC::CIRCSocket", 0}; static swig_type_info _swigt__p_CIncomingConnection = {"_p_CIncomingConnection", "CIncomingConnection *", 0, 0, (void*)"ZNC::CIncomingConnection", 0}; static swig_type_info _swigt__p_CListener = {"_p_CListener", "CListener *", 0, 0, (void*)"ZNC::CListener", 0}; static swig_type_info _swigt__p_CModCommand = {"_p_CModCommand", "CModCommand *", 0, 0, (void*)"ZNC::CModCommand", 0}; static swig_type_info _swigt__p_CModInfo = {"_p_CModInfo", "CModInfo *", 0, 0, (void*)"ZNC::CModInfo", 0}; static swig_type_info _swigt__p_CModule = {"_p_CModule", "CModule *", 0, 0, (void*)"ZNC::CModule", 0}; static swig_type_info _swigt__p_CModules = {"_p_CModules", "CModules *", 0, 0, (void*)"ZNC::CModules", 0}; static swig_type_info _swigt__p_CNick = {"_p_CNick", "CNick *", 0, 0, (void*)"ZNC::CNick", 0}; static swig_type_info _swigt__p_CPerlModule = {"_p_CPerlModule", "CPerlModule *", 0, 0, (void*)"ZNC::CPerlModule", 0}; static swig_type_info _swigt__p_CPerlSocket = {"_p_CPerlSocket", "CPerlSocket *", 0, 0, (void*)"ZNC::CPerlSocket", 0}; static swig_type_info _swigt__p_CPerlTimer = {"_p_CPerlTimer", "CPerlTimer *", 0, 0, (void*)"ZNC::CPerlTimer", 0}; static swig_type_info _swigt__p_CQuery = {"_p_CQuery", "CQuery *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CRealListener = {"_p_CRealListener", "CRealListener *", 0, 0, (void*)"ZNC::CRealListener", 0}; static swig_type_info _swigt__p_CSCharBuffer = {"_p_CSCharBuffer", "CSCharBuffer *", 0, 0, (void*)"ZNC::CSCharBuffer", 0}; static swig_type_info _swigt__p_CSConnection = {"_p_CSConnection", "CSConnection *", 0, 0, (void*)"ZNC::CSConnection", 0}; static swig_type_info _swigt__p_CSListener = {"_p_CSListener", "CSListener *", 0, 0, (void*)"ZNC::CSListener", 0}; static swig_type_info _swigt__p_CSMonitorFD = {"_p_CSMonitorFD", "CSMonitorFD *", 0, 0, (void*)"ZNC::CSMonitorFD", 0}; static swig_type_info _swigt__p_CSSSLConnection = {"_p_CSSSLConnection", "CSSSLConnection *", 0, 0, (void*)"ZNC::CSSSLConnection", 0}; static swig_type_info _swigt__p_CSSockAddr = {"_p_CSSockAddr", "CSSockAddr *", 0, 0, (void*)"ZNC::CSSockAddr", 0}; static swig_type_info _swigt__p_CServer = {"_p_CServer", "CServer *", 0, 0, (void*)"ZNC::CServer", 0}; static swig_type_info _swigt__p_CSockCommon = {"_p_CSockCommon", "CSockCommon *", 0, 0, (void*)"ZNC::CSockCommon", 0}; static swig_type_info _swigt__p_CSockManager = {"_p_CSockManager", "CSockManager *", 0, 0, (void*)"ZNC::CSockManager", 0}; static swig_type_info _swigt__p_CSocket = {"_p_CSocket", "CSocket *", 0, 0, (void*)"ZNC::CSocket", 0}; static swig_type_info _swigt__p_CSocketManager = {"_p_CSocketManager", "CSocketManager *", 0, 0, (void*)"ZNC::CSocketManager", 0}; static swig_type_info _swigt__p_CString = {"_p_CString", "CString *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CString__EEscape = {"_p_CString__EEscape", "CString::EEscape *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CString__size_type = {"_p_CString__size_type", "CString::size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_CTable = {"_p_CTable", "CTable *", 0, 0, (void*)"ZNC::CTable", 0}; static swig_type_info _swigt__p_CTemplate = {"_p_CTemplate", "CTemplate *", 0, 0, (void*)"ZNC::CTemplate", 0}; static swig_type_info _swigt__p_CTemplateLoopContext = {"_p_CTemplateLoopContext", "CTemplateLoopContext *", 0, 0, (void*)"ZNC::CTemplateLoopContext", 0}; static swig_type_info _swigt__p_CTemplateOptions = {"_p_CTemplateOptions", "CTemplateOptions *", 0, 0, (void*)"ZNC::CTemplateOptions", 0}; static swig_type_info _swigt__p_CTemplateTagHandler = {"_p_CTemplateTagHandler", "CTemplateTagHandler *", 0, 0, (void*)"ZNC::CTemplateTagHandler", 0}; static swig_type_info _swigt__p_CTimer = {"_p_CTimer", "CTimer *", 0, 0, (void*)"ZNC::CTimer", 0}; static swig_type_info _swigt__p_CUser = {"_p_CUser", "CUser *", 0, 0, (void*)"ZNC::CUser", 0}; static swig_type_info _swigt__p_CUtils = {"_p_CUtils", "CUtils *", 0, 0, (void*)"ZNC::CUtils", 0}; static swig_type_info _swigt__p_CWebSession = {"_p_CWebSession", "CWebSession *", 0, 0, (void*)"ZNC::CWebSession", 0}; static swig_type_info _swigt__p_CWebSessionMap = {"_p_CWebSessionMap", "CWebSessionMap *", 0, 0, (void*)"ZNC::CWebSessionMap", 0}; static swig_type_info _swigt__p_CWebSock = {"_p_CWebSock", "CWebSock *", 0, 0, (void*)"ZNC::CWebSock", 0}; static swig_type_info _swigt__p_CWebSubPage = {"_p_CWebSubPage", "CWebSubPage *", 0, 0, (void*)"ZNC::CWebSubPage", 0}; static swig_type_info _swigt__p_CZNC = {"_p_CZNC", "CZNC *", 0, 0, (void*)"ZNC::CZNC", 0}; static swig_type_info _swigt__p_CZNCSock = {"_p_CZNCSock", "CZNCSock *", 0, 0, (void*)"ZNC::CZNCSock", 0}; static swig_type_info _swigt__p_CZNCTagHandler = {"_p_CZNCTagHandler", "CZNCTagHandler *", 0, 0, (void*)"ZNC::CZNCTagHandler", 0}; static swig_type_info _swigt__p_CmdFunc = {"_p_CmdFunc", "CmdFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_Csock = {"_p_Csock", "Csock *", 0, 0, (void*)"ZNC::Csock", 0}; static swig_type_info _swigt__p_EAcceptType = {"_p_EAcceptType", "EAcceptType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EChanModeArgs = {"_p_EChanModeArgs", "EChanModeArgs *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModException = {"_p_EModException", "EModException *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModRet = {"_p_EModRet", "EModRet *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModes = {"_p_EModes", "EModes *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EModuleType = {"_p_EModuleType", "EModuleType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EType = {"_p_EType", "EType *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EUserPerms = {"_p_EUserPerms", "EUserPerms *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EntryMap = {"_p_EntryMap", "EntryMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_EntryMapIterator = {"_p_EntryMapIterator", "EntryMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_MCString = {"_p_MCString", "MCString *", 0, 0, (void*)"ZNC::MCString", 0}; static swig_type_info _swigt__p_MCString__iterator = {"_p_MCString__iterator", "MCString::iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ModCmdFunc = {"_p_ModCmdFunc", "ModCmdFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ModDirList = {"_p_ModDirList", "ModDirList *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SCString = {"_p_SCString", "SCString *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_String = {"_p_String", "String *", 0, 0, (void*)"ZNC::String", 0}; static swig_type_info _swigt__p_SubConfig = {"_p_SubConfig", "SubConfig *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SubConfigMap = {"_p_SubConfigMap", "SubConfigMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_SubConfigMapIterator = {"_p_SubConfigMapIterator", "SubConfigMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_TSocketManagerT_CZNCSock_t = {"_p_TSocketManagerT_CZNCSock_t", "TSocketManager< CZNCSock > *", 0, 0, (void*)"ZNC::ZNCSocketManager", 0}; static swig_type_info _swigt__p_TrafficStatsMap = {"_p_TrafficStatsMap", "TrafficStatsMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_TrafficStatsPair = {"_p_TrafficStatsPair", "TrafficStatsPair *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule = {"_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule", "CModule *(*)(ModHandle,CUser *,CIRCNetwork *,CString const &,CString const &)|CModInfo::ModLoader", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule = {"_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_f_p_CModule_p_CFPTimer__void = {"_p_f_p_CModule_p_CFPTimer__void", "void (*)(CModule *,CFPTimer *)|FPTimer_t", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_r_std__ostream__r_std__ostream = {"_p_f_r_std__ostream__r_std__ostream", "std::ostream &(*)(std::ostream &)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_fd_set = {"_p_fd_set", "fd_set *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_gid_t = {"_p_gid_t", "gid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_in_addr = {"_p_in_addr", "in_addr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "cs_sock_t *|int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_key_type = {"_p_key_type", "key_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mapped_type = {"_p_mapped_type", "mapped_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_mode_t = {"_p_mode_t", "mode_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_sockaddr_in = {"_p_sockaddr_in", "sockaddr_in *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_sockaddr_storage = {"_p_sockaddr_storage", "sockaddr_storage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_socklen_t = {"_p_socklen_t", "socklen_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_ssize_t = {"_p_ssize_t", "ssize_t *|cs_ssize_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_stat = {"_p_stat", "stat *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__dequeT_CBufLine_t = {"_p_std__dequeT_CBufLine_t", "std::deque< CBufLine > *", 0, 0, (void*)"ZNC::BufLines", 0}; static swig_type_info _swigt__p_std__functionT_void_fCString_const_RF_t = {"_p_std__functionT_void_fCString_const_RF_t", "std::function< void (CString const &) > *|CModCommand::CmdFunc *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_CIRCNetwork_p_t = {"_p_std__listT_CIRCNetwork_p_t", "std::list< CIRCNetwork * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__listT_CString_t = {"_p_std__listT_CString_t", "std::list< CString > *", 0, 0, (void*)"ZNC::_stringlist", 0}; static swig_type_info _swigt__p_std__mapT_CString_CConfigEntry_t = {"_p_std__mapT_CString_CConfigEntry_t", "std::map< CString,CConfigEntry > *|CConfig::SubConfig *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CNick_t = {"_p_std__mapT_CString_CNick_t", "std::map< CString,CNick > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_CString_t = {"_p_std__mapT_CString_CString_t", "std::map< CString,CString > *", 0, 0, (void*)"ZNC::PerlMCString", 0}; static swig_type_info _swigt__p_std__mapT_CString_CUser_p_t = {"_p_std__mapT_CString_CUser_p_t", "std::map< CString,CUser * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator = {"_p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator", "std::map< CString,std::map< CString,CConfigEntry > >::const_iterator *|CConfig::SubConfigMapIterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t = {"_p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t", "std::map< CString,std::pair< unsigned long long,unsigned long long > > *|CZNC::TrafficStatsMap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__vectorT_CString_t_t = {"_p_std__mapT_CString_std__vectorT_CString_t_t", "std::map< CString,std::vector< CString > > *|std::map< CString,VCString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator = {"_p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator", "CConfig::EntryMapIterator *|std::map< CString,std::vector< CString > >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_char_unsigned_int_t = {"_p_std__mapT_char_unsigned_int_t", "std::map< char,unsigned int > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_int_short_t = {"_p_std__mapT_int_short_t", "std::map< int,short > *|std::map< cs_sock_t,short > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t = {"_p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t", "std::map< unsigned char,CIRCSock::EChanModeArgs > *|std::map< unsigned char,enum CIRCSock::EChanModeArgs > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__mapT_unsigned_char_CString_t = {"_p_std__mapT_unsigned_char_CString_t", "std::map< unsigned char,CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__ostream = {"_p_std__ostream", "std::ostream *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__pairT_CString_CString_t = {"_p_std__pairT_CString_CString_t", "std::pair< CString,CString > *", 0, 0, (void*)"ZNC::StrPair", 0}; static swig_type_info _swigt__p_std__pairT_unsigned_long_long_unsigned_long_long_t = {"_p_std__pairT_unsigned_long_long_unsigned_long_long_t", "CZNC::TrafficStatsPair *|std::pair< unsigned long long,unsigned long long > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__queueT_std__pairT_CString_CString_t_t = {"_p_std__queueT_std__pairT_CString_CString_t_t", "std::queue< std::pair< CString,CString > > *|CModules::ModDirList *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CChan_p_t = {"_p_std__setT_CChan_p_t", "std::set< CChan * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CModInfo_t = {"_p_std__setT_CModInfo_t", "std::set< CModInfo > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CSocket_p_t__const_iterator = {"_p_std__setT_CSocket_p_t__const_iterator", "std::set< CSocket * >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CString_t = {"_p_std__setT_CString_t", "std::set< CString > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_CTimer_p_t__const_iterator = {"_p_std__setT_CTimer_p_t__const_iterator", "std::set< CTimer * >::const_iterator *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__setT_unsigned_char_t = {"_p_std__setT_unsigned_char_t", "std::set< unsigned char > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CAuthBase_t = {"_p_std__shared_ptrT_CAuthBase_t", "std::shared_ptr< CAuthBase > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CTemplateOptions_t = {"_p_std__shared_ptrT_CTemplateOptions_t", "std::shared_ptr< CTemplateOptions > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CTemplateTagHandler_t = {"_p_std__shared_ptrT_CTemplateTagHandler_t", "std::shared_ptr< CTemplateTagHandler > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CWebSession_t = {"_p_std__shared_ptrT_CWebSession_t", "std::shared_ptr< CWebSession > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__shared_ptrT_CWebSubPage_t = {"_p_std__shared_ptrT_CWebSubPage_t", "std::shared_ptr< CWebSubPage > *|TWebSubPage *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CChan_p_t = {"_p_std__vectorT_CChan_p_t", "std::vector< CChan * > *", 0, 0, (void*)"ZNC::VChannels", 0}; static swig_type_info _swigt__p_std__vectorT_CClient_p_t = {"_p_std__vectorT_CClient_p_t", "std::vector< CClient * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CCron_p_t = {"_p_std__vectorT_CCron_p_t", "std::vector< CCron * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CIRCNetwork_p_t = {"_p_std__vectorT_CIRCNetwork_p_t", "std::vector< CIRCNetwork * > *", 0, 0, (void*)"ZNC::VIRCNetworks", 0}; static swig_type_info _swigt__p_std__vectorT_CListener_p_t = {"_p_std__vectorT_CListener_p_t", "std::vector< CListener * > *", 0, 0, (void*)"ZNC::VListeners", 0}; static swig_type_info _swigt__p_std__vectorT_CQuery_p_t = {"_p_std__vectorT_CQuery_p_t", "std::vector< CQuery * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CServer_p_t = {"_p_std__vectorT_CServer_p_t", "std::vector< CServer * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_CString_t = {"_p_std__vectorT_CString_t", "std::vector< CString > *|VCString *", 0, 0, (void*)"ZNC::VCString", 0}; static swig_type_info _swigt__p_std__vectorT_CTemplate_p_t = {"_p_std__vectorT_CTemplate_p_t", "std::vector< CTemplate * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_Csock_p_t = {"_p_std__vectorT_Csock_p_t", "std::vector< Csock * > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__pairT_CString_CString_t_t = {"_p_std__vectorT_std__pairT_CString_CString_t_t", "std::vector< std::pair< CString,CString > > *|VPair *", 0, 0, (void*)"ZNC::VPair", 0}; static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t = {"_p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t", "std::vector< std::shared_ptr< CTemplateTagHandler > > *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t = {"_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t", "std::vector< std::shared_ptr< CWebSubPage > > *|std::vector< TWebSubPage > *|VWebSubPages *", 0, 0, (void*)"ZNC::VWebSubPages", 0}; static swig_type_info _swigt__p_std__vectorT_std__vectorT_CString_t_t = {"_p_std__vectorT_std__vectorT_CString_t_t", "std::vector< std::vector< CString > > *|std::vector< VCString > *", 0, 0, (void*)"ZNC::VVString", 0}; static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_timeval = {"_p_timeval", "timeval *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uid_t = {"_p_uid_t", "uid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint16_t = {"_p_uint16_t", "uint16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "ModHandle|void *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__m_CModule__f_r_q_const__CString__void, &_swigt__p_CAuthBase, &_swigt__p_CBufLine, &_swigt__p_CBuffer, &_swigt__p_CChan, &_swigt__p_CClient, &_swigt__p_CClientAuth, &_swigt__p_CConfig, &_swigt__p_CConfigEntry, &_swigt__p_CConnectQueueTimer, &_swigt__p_CCron, &_swigt__p_CDebug, &_swigt__p_CDebugStream, &_swigt__p_CDir, &_swigt__p_CException, &_swigt__p_CExecSock, &_swigt__p_CFPTimer, &_swigt__p_CFile, &_swigt__p_CGetAddrInfo, &_swigt__p_CHTTPSock, &_swigt__p_CIRCNetwork, &_swigt__p_CIRCSock, &_swigt__p_CIRCSocket, &_swigt__p_CIncomingConnection, &_swigt__p_CListener, &_swigt__p_CModCommand, &_swigt__p_CModInfo, &_swigt__p_CModule, &_swigt__p_CModules, &_swigt__p_CNick, &_swigt__p_CPerlModule, &_swigt__p_CPerlSocket, &_swigt__p_CPerlTimer, &_swigt__p_CQuery, &_swigt__p_CRealListener, &_swigt__p_CSCharBuffer, &_swigt__p_CSConnection, &_swigt__p_CSListener, &_swigt__p_CSMonitorFD, &_swigt__p_CSSSLConnection, &_swigt__p_CSSockAddr, &_swigt__p_CServer, &_swigt__p_CSockCommon, &_swigt__p_CSockManager, &_swigt__p_CSocket, &_swigt__p_CSocketManager, &_swigt__p_CString, &_swigt__p_CString__EEscape, &_swigt__p_CString__size_type, &_swigt__p_CTable, &_swigt__p_CTemplate, &_swigt__p_CTemplateLoopContext, &_swigt__p_CTemplateOptions, &_swigt__p_CTemplateTagHandler, &_swigt__p_CTimer, &_swigt__p_CUser, &_swigt__p_CUtils, &_swigt__p_CWebSession, &_swigt__p_CWebSessionMap, &_swigt__p_CWebSock, &_swigt__p_CWebSubPage, &_swigt__p_CZNC, &_swigt__p_CZNCSock, &_swigt__p_CZNCTagHandler, &_swigt__p_CmdFunc, &_swigt__p_Csock, &_swigt__p_EAcceptType, &_swigt__p_EChanModeArgs, &_swigt__p_EModException, &_swigt__p_EModRet, &_swigt__p_EModes, &_swigt__p_EModuleType, &_swigt__p_EType, &_swigt__p_EUserPerms, &_swigt__p_EntryMap, &_swigt__p_EntryMapIterator, &_swigt__p_MCString, &_swigt__p_MCString__iterator, &_swigt__p_ModCmdFunc, &_swigt__p_ModDirList, &_swigt__p_SCString, &_swigt__p_String, &_swigt__p_SubConfig, &_swigt__p_SubConfigMap, &_swigt__p_SubConfigMapIterator, &_swigt__p_TSocketManagerT_CZNCSock_t, &_swigt__p_TrafficStatsMap, &_swigt__p_TrafficStatsPair, &_swigt__p_bool, &_swigt__p_char, &_swigt__p_difference_type, &_swigt__p_double, &_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, &_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule, &_swigt__p_f_p_CModule_p_CFPTimer__void, &_swigt__p_f_r_std__ostream__r_std__ostream, &_swigt__p_fd_set, &_swigt__p_gid_t, &_swigt__p_in_addr, &_swigt__p_int, &_swigt__p_int32_t, &_swigt__p_int64_t, &_swigt__p_key_type, &_swigt__p_long, &_swigt__p_mapped_type, &_swigt__p_mode_t, &_swigt__p_size_type, &_swigt__p_sockaddr_in, &_swigt__p_sockaddr_storage, &_swigt__p_socklen_t, &_swigt__p_ssize_t, &_swigt__p_stat, &_swigt__p_std__dequeT_CBufLine_t, &_swigt__p_std__functionT_void_fCString_const_RF_t, &_swigt__p_std__listT_CIRCNetwork_p_t, &_swigt__p_std__listT_CString_t, &_swigt__p_std__mapT_CString_CConfigEntry_t, &_swigt__p_std__mapT_CString_CNick_t, &_swigt__p_std__mapT_CString_CString_t, &_swigt__p_std__mapT_CString_CUser_p_t, &_swigt__p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator, &_swigt__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t, &_swigt__p_std__mapT_CString_std__vectorT_CString_t_t, &_swigt__p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator, &_swigt__p_std__mapT_char_unsigned_int_t, &_swigt__p_std__mapT_int_short_t, &_swigt__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t, &_swigt__p_std__mapT_unsigned_char_CString_t, &_swigt__p_std__ostream, &_swigt__p_std__pairT_CString_CString_t, &_swigt__p_std__pairT_unsigned_long_long_unsigned_long_long_t, &_swigt__p_std__queueT_std__pairT_CString_CString_t_t, &_swigt__p_std__setT_CChan_p_t, &_swigt__p_std__setT_CModInfo_t, &_swigt__p_std__setT_CSocket_p_t__const_iterator, &_swigt__p_std__setT_CString_t, &_swigt__p_std__setT_CTimer_p_t__const_iterator, &_swigt__p_std__setT_unsigned_char_t, &_swigt__p_std__shared_ptrT_CAuthBase_t, &_swigt__p_std__shared_ptrT_CTemplateOptions_t, &_swigt__p_std__shared_ptrT_CTemplateTagHandler_t, &_swigt__p_std__shared_ptrT_CWebSession_t, &_swigt__p_std__shared_ptrT_CWebSubPage_t, &_swigt__p_std__vectorT_CChan_p_t, &_swigt__p_std__vectorT_CClient_p_t, &_swigt__p_std__vectorT_CCron_p_t, &_swigt__p_std__vectorT_CIRCNetwork_p_t, &_swigt__p_std__vectorT_CListener_p_t, &_swigt__p_std__vectorT_CQuery_p_t, &_swigt__p_std__vectorT_CServer_p_t, &_swigt__p_std__vectorT_CString_t, &_swigt__p_std__vectorT_CTemplate_p_t, &_swigt__p_std__vectorT_Csock_p_t, &_swigt__p_std__vectorT_std__pairT_CString_CString_t_t, &_swigt__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t, &_swigt__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, &_swigt__p_std__vectorT_std__vectorT_CString_t_t, &_swigt__p_time_t, &_swigt__p_timeval, &_swigt__p_uid_t, &_swigt__p_uint16_t, &_swigt__p_uint64_t, &_swigt__p_unsigned_int, &_swigt__p_unsigned_short, &_swigt__p_value_type, &_swigt__p_void, }; static swig_cast_info _swigc__m_CModule__f_r_q_const__CString__void[] = { {&_swigt__m_CModule__f_r_q_const__CString__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CAuthBase[] = { {&_swigt__p_CClientAuth, _p_CClientAuthTo_p_CAuthBase, 0, 0}, {&_swigt__p_CAuthBase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CBufLine[] = { {&_swigt__p_CBufLine, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CBuffer[] = { {&_swigt__p_CBuffer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CChan[] = { {&_swigt__p_CChan, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CClient[] = { {&_swigt__p_CClient, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CClientAuth[] = { {&_swigt__p_CClientAuth, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConfig[] = { {&_swigt__p_CConfig, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConfigEntry[] = { {&_swigt__p_CConfigEntry, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CConnectQueueTimer[] = { {&_swigt__p_CConnectQueueTimer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CCron[] = { {&_swigt__p_CTimer, _p_CTimerTo_p_CCron, 0, 0}, {&_swigt__p_CCron, 0, 0, 0}, {&_swigt__p_CFPTimer, _p_CFPTimerTo_p_CCron, 0, 0}, {&_swigt__p_CPerlTimer, _p_CPerlTimerTo_p_CCron, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CDebug[] = { {&_swigt__p_CDebug, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CDebugStream[] = { {&_swigt__p_CDebugStream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CDir[] = { {&_swigt__p_CDir, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CException[] = { {&_swigt__p_CException, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CExecSock[] = { {&_swigt__p_CExecSock, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CFPTimer[] = { {&_swigt__p_CFPTimer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CFile[] = { {&_swigt__p_CFile, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CGetAddrInfo[] = { {&_swigt__p_CGetAddrInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CHTTPSock[] = { {&_swigt__p_CHTTPSock, 0, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CHTTPSock, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIRCNetwork[] = { {&_swigt__p_CIRCNetwork, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIRCSock[] = { {&_swigt__p_CIRCSock, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIRCSocket[] = { {&_swigt__p_CIRCSocket, 0, 0, 0}, {&_swigt__p_CClient, _p_CClientTo_p_CIRCSocket, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_CIRCSocket, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CIncomingConnection[] = { {&_swigt__p_CIncomingConnection, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CListener[] = { {&_swigt__p_CListener, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModCommand[] = { {&_swigt__p_CModCommand, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModInfo[] = { {&_swigt__p_CModInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModule[] = { {&_swigt__p_CPerlModule, _p_CPerlModuleTo_p_CModule, 0, 0}, {&_swigt__p_CModule, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CModules[] = { {&_swigt__p_CModules, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CNick[] = { {&_swigt__p_CNick, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPerlModule[] = { {&_swigt__p_CPerlModule, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPerlSocket[] = { {&_swigt__p_CPerlSocket, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CPerlTimer[] = { {&_swigt__p_CPerlTimer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CQuery[] = { {&_swigt__p_CQuery, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CRealListener[] = { {&_swigt__p_CRealListener, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSCharBuffer[] = { {&_swigt__p_CSCharBuffer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSConnection[] = { {&_swigt__p_CSConnection, 0, 0, 0}, {&_swigt__p_CSSSLConnection, _p_CSSSLConnectionTo_p_CSConnection, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSListener[] = { {&_swigt__p_CSListener, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSMonitorFD[] = { {&_swigt__p_CSMonitorFD, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSSSLConnection[] = { {&_swigt__p_CSSSLConnection, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSSockAddr[] = { {&_swigt__p_CSSockAddr, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CServer[] = { {&_swigt__p_CServer, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSockCommon[] = { {&_swigt__p_CClient, _p_CClientTo_p_CSockCommon, 0, 0}, {&_swigt__p_CIRCSocket, _p_CIRCSocketTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSocket, _p_CSocketTo_p_CSockCommon, 0, 0}, {&_swigt__p_CIncomingConnection, _p_CIncomingConnectionTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSockManager, _p_CSockManagerTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSocketManager, _p_CSocketManagerTo_p_CSockCommon, 0, 0}, {&_swigt__p_CPerlSocket, _p_CPerlSocketTo_p_CSockCommon, 0, 0}, {&_swigt__p_CExecSock, _p_CExecSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CSockCommon, 0, 0, 0}, {&_swigt__p_Csock, _p_CsockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CZNCSock, _p_CZNCSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_CRealListener, _p_CRealListenerTo_p_CSockCommon, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_CSockCommon, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, _p_TSocketManagerT_CZNCSock_tTo_p_CSockCommon, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSockManager[] = { {&_swigt__p_CSockManager, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSocket[] = { {&_swigt__p_CSocket, 0, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_CSocket, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CSocket, 0, 0}, {&_swigt__p_CPerlSocket, _p_CPerlSocketTo_p_CSocket, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CSocketManager[] = { {&_swigt__p_CSocketManager, 0, 0, 0}, {&_swigt__p_CSockManager, _p_CSockManagerTo_p_CSocketManager, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, _p_TSocketManagerT_CZNCSock_tTo_p_CSocketManager, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CString[] = { {&_swigt__p_CString, 0, 0, 0}, {&_swigt__p_String, _p_StringTo_p_CString, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CString__EEscape[] = { {&_swigt__p_CString__EEscape, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CString__size_type[] = { {&_swigt__p_CString__size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTable[] = { {&_swigt__p_CTable, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplate[] = { {&_swigt__p_CTemplate, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplateLoopContext[] = { {&_swigt__p_CTemplateLoopContext, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplateOptions[] = { {&_swigt__p_CTemplateOptions, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTemplateTagHandler[] = { {&_swigt__p_CTemplateTagHandler, 0, 0, 0}, {&_swigt__p_CZNCTagHandler, _p_CZNCTagHandlerTo_p_CTemplateTagHandler, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CTimer[] = { {&_swigt__p_CTimer, 0, 0, 0}, {&_swigt__p_CFPTimer, _p_CFPTimerTo_p_CTimer, 0, 0}, {&_swigt__p_CPerlTimer, _p_CPerlTimerTo_p_CTimer, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CUser[] = { {&_swigt__p_CUser, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CUtils[] = { {&_swigt__p_CUtils, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSession[] = { {&_swigt__p_CWebSession, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSessionMap[] = { {&_swigt__p_CWebSessionMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSock[] = { {&_swigt__p_CWebSock, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CWebSubPage[] = { {&_swigt__p_CWebSubPage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CZNC[] = { {&_swigt__p_CZNC, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CZNCSock[] = { {&_swigt__p_CSocket, _p_CSocketTo_p_CZNCSock, 0, 0}, {&_swigt__p_CIRCSocket, _p_CIRCSocketTo_p_CZNCSock, 0, 0}, {&_swigt__p_CClient, _p_CClientTo_p_CZNCSock, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CRealListener, _p_CRealListenerTo_p_CZNCSock, 0, 0}, {&_swigt__p_CExecSock, _p_CExecSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CZNCSock, 0, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_CZNCSock, 0, 0}, {&_swigt__p_CPerlSocket, _p_CPerlSocketTo_p_CZNCSock, 0, 0}, {&_swigt__p_CIncomingConnection, _p_CIncomingConnectionTo_p_CZNCSock, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CZNCTagHandler[] = { {&_swigt__p_CZNCTagHandler, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_CmdFunc[] = { {&_swigt__p_CmdFunc, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_Csock[] = { {&_swigt__p_CSocket, _p_CSocketTo_p_Csock, 0, 0}, {&_swigt__p_CIRCSocket, _p_CIRCSocketTo_p_Csock, 0, 0}, {&_swigt__p_CClient, _p_CClientTo_p_Csock, 0, 0}, {&_swigt__p_CIRCSock, _p_CIRCSockTo_p_Csock, 0, 0}, {&_swigt__p_Csock, 0, 0, 0}, {&_swigt__p_CRealListener, _p_CRealListenerTo_p_Csock, 0, 0}, {&_swigt__p_CExecSock, _p_CExecSockTo_p_Csock, 0, 0}, {&_swigt__p_CZNCSock, _p_CZNCSockTo_p_Csock, 0, 0}, {&_swigt__p_CHTTPSock, _p_CHTTPSockTo_p_Csock, 0, 0}, {&_swigt__p_CWebSock, _p_CWebSockTo_p_Csock, 0, 0}, {&_swigt__p_CPerlSocket, _p_CPerlSocketTo_p_Csock, 0, 0}, {&_swigt__p_CIncomingConnection, _p_CIncomingConnectionTo_p_Csock, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EAcceptType[] = { {&_swigt__p_EAcceptType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EChanModeArgs[] = { {&_swigt__p_EChanModeArgs, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModException[] = { {&_swigt__p_EModException, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModRet[] = { {&_swigt__p_EModRet, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModes[] = { {&_swigt__p_EModes, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EModuleType[] = { {&_swigt__p_EModuleType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EType[] = { {&_swigt__p_EType, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EUserPerms[] = { {&_swigt__p_EUserPerms, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EntryMap[] = { {&_swigt__p_EntryMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_EntryMapIterator[] = { {&_swigt__p_EntryMapIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_MCString[] = { {&_swigt__p_CTemplate, _p_CTemplateTo_p_MCString, 0, 0}, {&_swigt__p_MCString, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_MCString__iterator[] = { {&_swigt__p_MCString__iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ModCmdFunc[] = { {&_swigt__p_ModCmdFunc, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ModDirList[] = { {&_swigt__p_ModDirList, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SCString[] = { {&_swigt__p_SCString, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_String[] = { {&_swigt__p_String, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubConfig[] = { {&_swigt__p_SubConfig, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubConfigMap[] = { {&_swigt__p_SubConfigMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_SubConfigMapIterator[] = { {&_swigt__p_SubConfigMapIterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_TSocketManagerT_CZNCSock_t[] = { {&_swigt__p_CSockManager, _p_CSockManagerTo_p_TSocketManagerT_CZNCSock_t, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_TrafficStatsMap[] = { {&_swigt__p_TrafficStatsMap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_TrafficStatsPair[] = { {&_swigt__p_TrafficStatsPair, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule[] = {{&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule[] = { {&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, 0, 0, 0}, {&_swigt__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule, _p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModuleTo_p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_CModule_p_CFPTimer__void[] = { {&_swigt__p_f_p_CModule_p_CFPTimer__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_r_std__ostream__r_std__ostream[] = { {&_swigt__p_f_r_std__ostream__r_std__ostream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_fd_set[] = { {&_swigt__p_fd_set, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_gid_t[] = { {&_swigt__p_gid_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_in_addr[] = { {&_swigt__p_in_addr, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int32_t[] = { {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int64_t[] = { {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_key_type[] = { {&_swigt__p_key_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mapped_type[] = { {&_swigt__p_mapped_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_mode_t[] = { {&_swigt__p_mode_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_sockaddr_in[] = { {&_swigt__p_sockaddr_in, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_sockaddr_storage[] = { {&_swigt__p_sockaddr_storage, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_socklen_t[] = { {&_swigt__p_socklen_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_ssize_t[] = { {&_swigt__p_ssize_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_stat[] = { {&_swigt__p_stat, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__dequeT_CBufLine_t[] = { {&_swigt__p_CBuffer, _p_CBufferTo_p_std__dequeT_CBufLine_t, 0, 0}, {&_swigt__p_std__dequeT_CBufLine_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__functionT_void_fCString_const_RF_t[] = { {&_swigt__p_std__functionT_void_fCString_const_RF_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_CIRCNetwork_p_t[] = { {&_swigt__p_std__listT_CIRCNetwork_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__listT_CString_t[] = { {&_swigt__p_std__listT_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CConfigEntry_t[] = { {&_swigt__p_std__mapT_CString_CConfigEntry_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CNick_t[] = { {&_swigt__p_std__mapT_CString_CNick_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CString_t[] = { {&_swigt__p_std__mapT_CString_CString_t, 0, 0, 0}, {&_swigt__p_CTemplate, _p_CTemplateTo_p_std__mapT_CString_CString_t, 0, 0}, {&_swigt__p_MCString, _p_MCStringTo_p_std__mapT_CString_CString_t, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_CUser_p_t[] = { {&_swigt__p_std__mapT_CString_CUser_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator[] = { {&_swigt__p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t[] = { {&_swigt__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__vectorT_CString_t_t[] = { {&_swigt__p_std__mapT_CString_std__vectorT_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator[] = { {&_swigt__p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_char_unsigned_int_t[] = { {&_swigt__p_std__mapT_char_unsigned_int_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_int_short_t[] = { {&_swigt__p_std__mapT_int_short_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t[] = { {&_swigt__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__mapT_unsigned_char_CString_t[] = { {&_swigt__p_std__mapT_unsigned_char_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__ostream[] = { {&_swigt__p_std__ostream, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__pairT_CString_CString_t[] = { {&_swigt__p_std__pairT_CString_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__pairT_unsigned_long_long_unsigned_long_long_t[] = { {&_swigt__p_std__pairT_unsigned_long_long_unsigned_long_long_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__queueT_std__pairT_CString_CString_t_t[] = { {&_swigt__p_std__queueT_std__pairT_CString_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CChan_p_t[] = { {&_swigt__p_std__setT_CChan_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CModInfo_t[] = { {&_swigt__p_std__setT_CModInfo_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CSocket_p_t__const_iterator[] = { {&_swigt__p_std__setT_CSocket_p_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CString_t[] = { {&_swigt__p_std__setT_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_CTimer_p_t__const_iterator[] = { {&_swigt__p_std__setT_CTimer_p_t__const_iterator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__setT_unsigned_char_t[] = { {&_swigt__p_std__setT_unsigned_char_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CAuthBase_t[] = { {&_swigt__p_std__shared_ptrT_CAuthBase_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CTemplateOptions_t[] = { {&_swigt__p_std__shared_ptrT_CTemplateOptions_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CTemplateTagHandler_t[] = { {&_swigt__p_std__shared_ptrT_CTemplateTagHandler_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CWebSession_t[] = { {&_swigt__p_std__shared_ptrT_CWebSession_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__shared_ptrT_CWebSubPage_t[] = { {&_swigt__p_std__shared_ptrT_CWebSubPage_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CChan_p_t[] = { {&_swigt__p_std__vectorT_CChan_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CClient_p_t[] = { {&_swigt__p_std__vectorT_CClient_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CCron_p_t[] = { {&_swigt__p_std__vectorT_CCron_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CIRCNetwork_p_t[] = { {&_swigt__p_std__vectorT_CIRCNetwork_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CListener_p_t[] = { {&_swigt__p_std__vectorT_CListener_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CQuery_p_t[] = { {&_swigt__p_std__vectorT_CQuery_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CServer_p_t[] = { {&_swigt__p_std__vectorT_CServer_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CString_t[] = { {&_swigt__p_std__vectorT_CString_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_CTemplate_p_t[] = { {&_swigt__p_std__vectorT_CTemplate_p_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_Csock_p_t[] = { {&_swigt__p_std__vectorT_Csock_p_t, 0, 0, 0}, {&_swigt__p_CSocketManager, _p_CSocketManagerTo_p_std__vectorT_Csock_p_t, 0, 0}, {&_swigt__p_CSockManager, 0, 0, 0}, {&_swigt__p_TSocketManagerT_CZNCSock_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__pairT_CString_CString_t_t[] = { {&_swigt__p_std__vectorT_std__pairT_CString_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t[] = { {&_swigt__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_std__vectorT_std__vectorT_CString_t_t[] = { {&_swigt__p_CTable, _p_CTableTo_p_std__vectorT_std__vectorT_CString_t_t, 0, 0}, {&_swigt__p_std__vectorT_std__vectorT_CString_t_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_timeval[] = { {&_swigt__p_timeval, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uid_t[] = { {&_swigt__p_uid_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint16_t[] = { {&_swigt__p_uint16_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_uint64_t[] = { {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__m_CModule__f_r_q_const__CString__void, _swigc__p_CAuthBase, _swigc__p_CBufLine, _swigc__p_CBuffer, _swigc__p_CChan, _swigc__p_CClient, _swigc__p_CClientAuth, _swigc__p_CConfig, _swigc__p_CConfigEntry, _swigc__p_CConnectQueueTimer, _swigc__p_CCron, _swigc__p_CDebug, _swigc__p_CDebugStream, _swigc__p_CDir, _swigc__p_CException, _swigc__p_CExecSock, _swigc__p_CFPTimer, _swigc__p_CFile, _swigc__p_CGetAddrInfo, _swigc__p_CHTTPSock, _swigc__p_CIRCNetwork, _swigc__p_CIRCSock, _swigc__p_CIRCSocket, _swigc__p_CIncomingConnection, _swigc__p_CListener, _swigc__p_CModCommand, _swigc__p_CModInfo, _swigc__p_CModule, _swigc__p_CModules, _swigc__p_CNick, _swigc__p_CPerlModule, _swigc__p_CPerlSocket, _swigc__p_CPerlTimer, _swigc__p_CQuery, _swigc__p_CRealListener, _swigc__p_CSCharBuffer, _swigc__p_CSConnection, _swigc__p_CSListener, _swigc__p_CSMonitorFD, _swigc__p_CSSSLConnection, _swigc__p_CSSockAddr, _swigc__p_CServer, _swigc__p_CSockCommon, _swigc__p_CSockManager, _swigc__p_CSocket, _swigc__p_CSocketManager, _swigc__p_CString, _swigc__p_CString__EEscape, _swigc__p_CString__size_type, _swigc__p_CTable, _swigc__p_CTemplate, _swigc__p_CTemplateLoopContext, _swigc__p_CTemplateOptions, _swigc__p_CTemplateTagHandler, _swigc__p_CTimer, _swigc__p_CUser, _swigc__p_CUtils, _swigc__p_CWebSession, _swigc__p_CWebSessionMap, _swigc__p_CWebSock, _swigc__p_CWebSubPage, _swigc__p_CZNC, _swigc__p_CZNCSock, _swigc__p_CZNCTagHandler, _swigc__p_CmdFunc, _swigc__p_Csock, _swigc__p_EAcceptType, _swigc__p_EChanModeArgs, _swigc__p_EModException, _swigc__p_EModRet, _swigc__p_EModes, _swigc__p_EModuleType, _swigc__p_EType, _swigc__p_EUserPerms, _swigc__p_EntryMap, _swigc__p_EntryMapIterator, _swigc__p_MCString, _swigc__p_MCString__iterator, _swigc__p_ModCmdFunc, _swigc__p_ModDirList, _swigc__p_SCString, _swigc__p_String, _swigc__p_SubConfig, _swigc__p_SubConfigMap, _swigc__p_SubConfigMapIterator, _swigc__p_TSocketManagerT_CZNCSock_t, _swigc__p_TrafficStatsMap, _swigc__p_TrafficStatsPair, _swigc__p_bool, _swigc__p_char, _swigc__p_difference_type, _swigc__p_double, _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CModule, _swigc__p_f_ModHandle_p_CUser_p_CIRCNetwork_r_q_const__CString_r_q_const__CString__p_CPerlModule, _swigc__p_f_p_CModule_p_CFPTimer__void, _swigc__p_f_r_std__ostream__r_std__ostream, _swigc__p_fd_set, _swigc__p_gid_t, _swigc__p_in_addr, _swigc__p_int, _swigc__p_int32_t, _swigc__p_int64_t, _swigc__p_key_type, _swigc__p_long, _swigc__p_mapped_type, _swigc__p_mode_t, _swigc__p_size_type, _swigc__p_sockaddr_in, _swigc__p_sockaddr_storage, _swigc__p_socklen_t, _swigc__p_ssize_t, _swigc__p_stat, _swigc__p_std__dequeT_CBufLine_t, _swigc__p_std__functionT_void_fCString_const_RF_t, _swigc__p_std__listT_CIRCNetwork_p_t, _swigc__p_std__listT_CString_t, _swigc__p_std__mapT_CString_CConfigEntry_t, _swigc__p_std__mapT_CString_CNick_t, _swigc__p_std__mapT_CString_CString_t, _swigc__p_std__mapT_CString_CUser_p_t, _swigc__p_std__mapT_CString_std__mapT_CString_CConfigEntry_t_t__const_iterator, _swigc__p_std__mapT_CString_std__pairT_unsigned_long_long_unsigned_long_long_t_t, _swigc__p_std__mapT_CString_std__vectorT_CString_t_t, _swigc__p_std__mapT_CString_std__vectorT_CString_t_t__const_iterator, _swigc__p_std__mapT_char_unsigned_int_t, _swigc__p_std__mapT_int_short_t, _swigc__p_std__mapT_unsigned_char_CIRCSock__EChanModeArgs_t, _swigc__p_std__mapT_unsigned_char_CString_t, _swigc__p_std__ostream, _swigc__p_std__pairT_CString_CString_t, _swigc__p_std__pairT_unsigned_long_long_unsigned_long_long_t, _swigc__p_std__queueT_std__pairT_CString_CString_t_t, _swigc__p_std__setT_CChan_p_t, _swigc__p_std__setT_CModInfo_t, _swigc__p_std__setT_CSocket_p_t__const_iterator, _swigc__p_std__setT_CString_t, _swigc__p_std__setT_CTimer_p_t__const_iterator, _swigc__p_std__setT_unsigned_char_t, _swigc__p_std__shared_ptrT_CAuthBase_t, _swigc__p_std__shared_ptrT_CTemplateOptions_t, _swigc__p_std__shared_ptrT_CTemplateTagHandler_t, _swigc__p_std__shared_ptrT_CWebSession_t, _swigc__p_std__shared_ptrT_CWebSubPage_t, _swigc__p_std__vectorT_CChan_p_t, _swigc__p_std__vectorT_CClient_p_t, _swigc__p_std__vectorT_CCron_p_t, _swigc__p_std__vectorT_CIRCNetwork_p_t, _swigc__p_std__vectorT_CListener_p_t, _swigc__p_std__vectorT_CQuery_p_t, _swigc__p_std__vectorT_CServer_p_t, _swigc__p_std__vectorT_CString_t, _swigc__p_std__vectorT_CTemplate_p_t, _swigc__p_std__vectorT_Csock_p_t, _swigc__p_std__vectorT_std__pairT_CString_CString_t_t, _swigc__p_std__vectorT_std__shared_ptrT_CTemplateTagHandler_t_t, _swigc__p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, _swigc__p_std__vectorT_std__vectorT_CString_t_t, _swigc__p_time_t, _swigc__p_timeval, _swigc__p_uid_t, _swigc__p_uint16_t, _swigc__p_uint64_t, _swigc__p_unsigned_int, _swigc__p_unsigned_short, _swigc__p_value_type, _swigc__p_void, }; /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ static swig_constant_info swig_constants[] = { {0,0,0,0,0,0} }; #ifdef __cplusplus } #endif static swig_variable_info swig_variables[] = { { "ZNCc::g_HexDigits", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_g_HexDigits_get,0 }, { "ZNCc::CS_BLOCKSIZE", MAGIC_CLASS swig_magic_readonly, MAGIC_CLASS _wrap_CS_BLOCKSIZE_get,0 }, {0,0,0,0} }; static swig_command_info swig_commands[] = { {"ZNCc::new__stringlist", _wrap_new__stringlist}, {"ZNCc::_stringlist_size", _wrap__stringlist_size}, {"ZNCc::_stringlist_empty", _wrap__stringlist_empty}, {"ZNCc::_stringlist_clear", _wrap__stringlist_clear}, {"ZNCc::_stringlist_push", _wrap__stringlist_push}, {"ZNCc::delete__stringlist", _wrap_delete__stringlist}, {"ZNCc::new_VIRCNetworks", _wrap_new_VIRCNetworks}, {"ZNCc::VIRCNetworks_size", _wrap_VIRCNetworks_size}, {"ZNCc::VIRCNetworks_empty", _wrap_VIRCNetworks_empty}, {"ZNCc::VIRCNetworks_clear", _wrap_VIRCNetworks_clear}, {"ZNCc::VIRCNetworks_push", _wrap_VIRCNetworks_push}, {"ZNCc::VIRCNetworks_pop", _wrap_VIRCNetworks_pop}, {"ZNCc::VIRCNetworks_get", _wrap_VIRCNetworks_get}, {"ZNCc::VIRCNetworks_set", _wrap_VIRCNetworks_set}, {"ZNCc::delete_VIRCNetworks", _wrap_delete_VIRCNetworks}, {"ZNCc::new_VChannels", _wrap_new_VChannels}, {"ZNCc::VChannels_size", _wrap_VChannels_size}, {"ZNCc::VChannels_empty", _wrap_VChannels_empty}, {"ZNCc::VChannels_clear", _wrap_VChannels_clear}, {"ZNCc::VChannels_push", _wrap_VChannels_push}, {"ZNCc::VChannels_pop", _wrap_VChannels_pop}, {"ZNCc::VChannels_get", _wrap_VChannels_get}, {"ZNCc::VChannels_set", _wrap_VChannels_set}, {"ZNCc::delete_VChannels", _wrap_delete_VChannels}, {"ZNCc::new_VCString", _wrap_new_VCString}, {"ZNCc::VCString_size", _wrap_VCString_size}, {"ZNCc::VCString_empty", _wrap_VCString_empty}, {"ZNCc::VCString_clear", _wrap_VCString_clear}, {"ZNCc::VCString_push", _wrap_VCString_push}, {"ZNCc::VCString_pop", _wrap_VCString_pop}, {"ZNCc::VCString_get", _wrap_VCString_get}, {"ZNCc::VCString_set", _wrap_VCString_set}, {"ZNCc::delete_VCString", _wrap_delete_VCString}, {"ZNCc::new_PerlMCString", _wrap_new_PerlMCString}, {"ZNCc::PerlMCString_size", _wrap_PerlMCString_size}, {"ZNCc::PerlMCString_empty", _wrap_PerlMCString_empty}, {"ZNCc::PerlMCString_clear", _wrap_PerlMCString_clear}, {"ZNCc::PerlMCString_get", _wrap_PerlMCString_get}, {"ZNCc::PerlMCString_set", _wrap_PerlMCString_set}, {"ZNCc::PerlMCString_del", _wrap_PerlMCString_del}, {"ZNCc::PerlMCString_has_key", _wrap_PerlMCString_has_key}, {"ZNCc::delete_PerlMCString", _wrap_delete_PerlMCString}, {"ZNCc::new_MCString", _wrap_new_MCString}, {"ZNCc::delete_MCString", _wrap_delete_MCString}, {"ZNCc::new_VListeners", _wrap_new_VListeners}, {"ZNCc::VListeners_size", _wrap_VListeners_size}, {"ZNCc::VListeners_empty", _wrap_VListeners_empty}, {"ZNCc::VListeners_clear", _wrap_VListeners_clear}, {"ZNCc::VListeners_push", _wrap_VListeners_push}, {"ZNCc::VListeners_pop", _wrap_VListeners_pop}, {"ZNCc::VListeners_get", _wrap_VListeners_get}, {"ZNCc::VListeners_set", _wrap_VListeners_set}, {"ZNCc::delete_VListeners", _wrap_delete_VListeners}, {"ZNCc::BufLines_empty", _wrap_BufLines_empty}, {"ZNCc::new_BufLines", _wrap_new_BufLines}, {"ZNCc::delete_BufLines", _wrap_delete_BufLines}, {"ZNCc::BufLines_assign", _wrap_BufLines_assign}, {"ZNCc::BufLines_swap", _wrap_BufLines_swap}, {"ZNCc::BufLines_size", _wrap_BufLines_size}, {"ZNCc::BufLines_max_size", _wrap_BufLines_max_size}, {"ZNCc::BufLines_resize", _wrap_BufLines_resize}, {"ZNCc::BufLines_front", _wrap_BufLines_front}, {"ZNCc::BufLines_back", _wrap_BufLines_back}, {"ZNCc::BufLines_push_front", _wrap_BufLines_push_front}, {"ZNCc::BufLines_push_back", _wrap_BufLines_push_back}, {"ZNCc::BufLines_pop_front", _wrap_BufLines_pop_front}, {"ZNCc::BufLines_pop_back", _wrap_BufLines_pop_back}, {"ZNCc::BufLines_clear", _wrap_BufLines_clear}, {"ZNCc::BufLines_getitem", _wrap_BufLines_getitem}, {"ZNCc::BufLines_setitem", _wrap_BufLines_setitem}, {"ZNCc::BufLines_delitem", _wrap_BufLines_delitem}, {"ZNCc::BufLines_getslice", _wrap_BufLines_getslice}, {"ZNCc::BufLines_setslice", _wrap_BufLines_setslice}, {"ZNCc::BufLines_delslice", _wrap_BufLines_delslice}, {"ZNCc::new_VVString", _wrap_new_VVString}, {"ZNCc::VVString_size", _wrap_VVString_size}, {"ZNCc::VVString_empty", _wrap_VVString_empty}, {"ZNCc::VVString_clear", _wrap_VVString_clear}, {"ZNCc::VVString_push", _wrap_VVString_push}, {"ZNCc::VVString_pop", _wrap_VVString_pop}, {"ZNCc::VVString_get", _wrap_VVString_get}, {"ZNCc::VVString_set", _wrap_VVString_set}, {"ZNCc::delete_VVString", _wrap_delete_VVString}, {"ZNCc::SetFdCloseOnExec", _wrap_SetFdCloseOnExec}, {"ZNCc::new_CUtils", _wrap_new_CUtils}, {"ZNCc::delete_CUtils", _wrap_delete_CUtils}, {"ZNCc::CUtils_GetIP", _wrap_CUtils_GetIP}, {"ZNCc::CUtils_GetLongIP", _wrap_CUtils_GetLongIP}, {"ZNCc::CUtils_PrintError", _wrap_CUtils_PrintError}, {"ZNCc::CUtils_PrintMessage", _wrap_CUtils_PrintMessage}, {"ZNCc::CUtils_PrintPrompt", _wrap_CUtils_PrintPrompt}, {"ZNCc::CUtils_PrintAction", _wrap_CUtils_PrintAction}, {"ZNCc::CUtils_PrintStatus", _wrap_CUtils_PrintStatus}, {"ZNCc::CUtils_GetSaltedHashPass", _wrap_CUtils_GetSaltedHashPass}, {"ZNCc::CUtils_GetSalt", _wrap_CUtils_GetSalt}, {"ZNCc::CUtils_SaltedMD5Hash", _wrap_CUtils_SaltedMD5Hash}, {"ZNCc::CUtils_SaltedSHA256Hash", _wrap_CUtils_SaltedSHA256Hash}, {"ZNCc::CUtils_GetPass", _wrap_CUtils_GetPass}, {"ZNCc::CUtils_GetInput", _wrap_CUtils_GetInput}, {"ZNCc::CUtils_GetBoolInput", _wrap_CUtils_GetBoolInput}, {"ZNCc::CUtils_GetNumInput", _wrap_CUtils_GetNumInput}, {"ZNCc::CUtils_GetMillTime", _wrap_CUtils_GetMillTime}, {"ZNCc::CUtils_CTime", _wrap_CUtils_CTime}, {"ZNCc::CUtils_FormatTime", _wrap_CUtils_FormatTime}, {"ZNCc::CUtils_FormatServerTime", _wrap_CUtils_FormatServerTime}, {"ZNCc::CUtils_GetTimezones", _wrap_CUtils_GetTimezones}, {"ZNCc::CUtils_GetEncodings", _wrap_CUtils_GetEncodings}, {"ZNCc::CUtils_GetMessageTags", _wrap_CUtils_GetMessageTags}, {"ZNCc::CUtils_SetMessageTags", _wrap_CUtils_SetMessageTags}, {"ZNCc::new_CException", _wrap_new_CException}, {"ZNCc::delete_CException", _wrap_delete_CException}, {"ZNCc::CException_GetType", _wrap_CException_GetType}, {"ZNCc::new_CTable", _wrap_new_CTable}, {"ZNCc::delete_CTable", _wrap_delete_CTable}, {"ZNCc::CTable_AddColumn", _wrap_CTable_AddColumn}, {"ZNCc::CTable_AddRow", _wrap_CTable_AddRow}, {"ZNCc::CTable_SetCell", _wrap_CTable_SetCell}, {"ZNCc::CTable_GetLine", _wrap_CTable_GetLine}, {"ZNCc::CTable_GetColumnWidth", _wrap_CTable_GetColumnWidth}, {"ZNCc::CTable_Clear", _wrap_CTable_Clear}, {"ZNCc::new_CConfigEntry", _wrap_new_CConfigEntry}, {"ZNCc::delete_CConfigEntry", _wrap_delete_CConfigEntry}, {"ZNCc::CConfigEntry_m_pSubConfig_set", _wrap_CConfigEntry_m_pSubConfig_set}, {"ZNCc::CConfigEntry_m_pSubConfig_get", _wrap_CConfigEntry_m_pSubConfig_get}, {"ZNCc::CConfig_BeginEntries", _wrap_CConfig_BeginEntries}, {"ZNCc::CConfig_EndEntries", _wrap_CConfig_EndEntries}, {"ZNCc::CConfig_BeginSubConfigs", _wrap_CConfig_BeginSubConfigs}, {"ZNCc::CConfig_EndSubConfigs", _wrap_CConfig_EndSubConfigs}, {"ZNCc::CConfig_AddKeyValuePair", _wrap_CConfig_AddKeyValuePair}, {"ZNCc::CConfig_AddSubConfig", _wrap_CConfig_AddSubConfig}, {"ZNCc::CConfig_FindStringVector", _wrap_CConfig_FindStringVector}, {"ZNCc::CConfig_FindStringEntry", _wrap_CConfig_FindStringEntry}, {"ZNCc::CConfig_FindBoolEntry", _wrap_CConfig_FindBoolEntry}, {"ZNCc::CConfig_FindUIntEntry", _wrap_CConfig_FindUIntEntry}, {"ZNCc::CConfig_FindUShortEntry", _wrap_CConfig_FindUShortEntry}, {"ZNCc::CConfig_FindDoubleEntry", _wrap_CConfig_FindDoubleEntry}, {"ZNCc::CConfig_FindSubConfig", _wrap_CConfig_FindSubConfig}, {"ZNCc::CConfig_empty", _wrap_CConfig_empty}, {"ZNCc::CConfig_Parse", _wrap_CConfig_Parse}, {"ZNCc::CConfig_Write", _wrap_CConfig_Write}, {"ZNCc::new_CConfig", _wrap_new_CConfig}, {"ZNCc::delete_CConfig", _wrap_delete_CConfig}, {"ZNCc::new_CSCharBuffer", _wrap_new_CSCharBuffer}, {"ZNCc::delete_CSCharBuffer", _wrap_delete_CSCharBuffer}, {"ZNCc::CSCharBuffer___call__", _wrap_CSCharBuffer___call__}, {"ZNCc::new_CSSockAddr", _wrap_new_CSSockAddr}, {"ZNCc::delete_CSSockAddr", _wrap_delete_CSSockAddr}, {"ZNCc::CSSockAddr_SinFamily", _wrap_CSSockAddr_SinFamily}, {"ZNCc::CSSockAddr_SinPort", _wrap_CSSockAddr_SinPort}, {"ZNCc::CSSockAddr_SetIPv6", _wrap_CSSockAddr_SetIPv6}, {"ZNCc::CSSockAddr_GetIPv6", _wrap_CSSockAddr_GetIPv6}, {"ZNCc::CSSockAddr_GetSockAddrLen", _wrap_CSSockAddr_GetSockAddrLen}, {"ZNCc::CSSockAddr_GetSockAddr", _wrap_CSSockAddr_GetSockAddr}, {"ZNCc::CSSockAddr_GetAddr", _wrap_CSSockAddr_GetAddr}, {"ZNCc::CSSockAddr_SetAFRequire", _wrap_CSSockAddr_SetAFRequire}, {"ZNCc::CSSockAddr_GetAFRequire", _wrap_CSSockAddr_GetAFRequire}, {"ZNCc::new_CGetAddrInfo", _wrap_new_CGetAddrInfo}, {"ZNCc::delete_CGetAddrInfo", _wrap_delete_CGetAddrInfo}, {"ZNCc::CGetAddrInfo_Init", _wrap_CGetAddrInfo_Init}, {"ZNCc::CGetAddrInfo_Process", _wrap_CGetAddrInfo_Process}, {"ZNCc::CGetAddrInfo_Finish", _wrap_CGetAddrInfo_Finish}, {"ZNCc::GetAddrInfo", _wrap_GetAddrInfo}, {"ZNCc::GetCsockSSLIdx", _wrap_GetCsockSSLIdx}, {"ZNCc::InitCsocket", _wrap_InitCsocket}, {"ZNCc::ShutdownCsocket", _wrap_ShutdownCsocket}, {"ZNCc::GetSockError", _wrap_GetSockError}, {"ZNCc::TFD_ZERO", _wrap_TFD_ZERO}, {"ZNCc::TFD_SET", _wrap_TFD_SET}, {"ZNCc::TFD_ISSET", _wrap_TFD_ISSET}, {"ZNCc::TFD_CLR", _wrap_TFD_CLR}, {"ZNCc::__Perror", _wrap___Perror}, {"ZNCc::millitime", _wrap_millitime}, {"ZNCc::new_CCron", _wrap_new_CCron}, {"ZNCc::delete_CCron", _wrap_delete_CCron}, {"ZNCc::CCron_run", _wrap_CCron_run}, {"ZNCc::CCron_StartMaxCycles", _wrap_CCron_StartMaxCycles}, {"ZNCc::CCron_Start", _wrap_CCron_Start}, {"ZNCc::CCron_Stop", _wrap_CCron_Stop}, {"ZNCc::CCron_Pause", _wrap_CCron_Pause}, {"ZNCc::CCron_UnPause", _wrap_CCron_UnPause}, {"ZNCc::CCron_Reset", _wrap_CCron_Reset}, {"ZNCc::CCron_GetInterval", _wrap_CCron_GetInterval}, {"ZNCc::CCron_GetMaxCycles", _wrap_CCron_GetMaxCycles}, {"ZNCc::CCron_GetCyclesLeft", _wrap_CCron_GetCyclesLeft}, {"ZNCc::CCron_isValid", _wrap_CCron_isValid}, {"ZNCc::CCron_GetName", _wrap_CCron_GetName}, {"ZNCc::CCron_SetName", _wrap_CCron_SetName}, {"ZNCc::CCron_GetNextRun", _wrap_CCron_GetNextRun}, {"ZNCc::CCron_RunJob", _wrap_CCron_RunJob}, {"ZNCc::new_CSMonitorFD", _wrap_new_CSMonitorFD}, {"ZNCc::delete_CSMonitorFD", _wrap_delete_CSMonitorFD}, {"ZNCc::CSMonitorFD_GatherFDsForSelect", _wrap_CSMonitorFD_GatherFDsForSelect}, {"ZNCc::CSMonitorFD_FDsThatTriggered", _wrap_CSMonitorFD_FDsThatTriggered}, {"ZNCc::CSMonitorFD_CheckFDs", _wrap_CSMonitorFD_CheckFDs}, {"ZNCc::CSMonitorFD_Add", _wrap_CSMonitorFD_Add}, {"ZNCc::CSMonitorFD_Remove", _wrap_CSMonitorFD_Remove}, {"ZNCc::CSMonitorFD_DisableMonitor", _wrap_CSMonitorFD_DisableMonitor}, {"ZNCc::CSMonitorFD_IsEnabled", _wrap_CSMonitorFD_IsEnabled}, {"ZNCc::new_CSockCommon", _wrap_new_CSockCommon}, {"ZNCc::delete_CSockCommon", _wrap_delete_CSockCommon}, {"ZNCc::CSockCommon_CleanupCrons", _wrap_CSockCommon_CleanupCrons}, {"ZNCc::CSockCommon_CleanupFDMonitors", _wrap_CSockCommon_CleanupFDMonitors}, {"ZNCc::CSockCommon_GetCrons", _wrap_CSockCommon_GetCrons}, {"ZNCc::CSockCommon_Cron", _wrap_CSockCommon_Cron}, {"ZNCc::CSockCommon_AddCron", _wrap_CSockCommon_AddCron}, {"ZNCc::CSockCommon_DelCron", _wrap_CSockCommon_DelCron}, {"ZNCc::CSockCommon_DelCronByAddr", _wrap_CSockCommon_DelCronByAddr}, {"ZNCc::CSockCommon_CheckFDs", _wrap_CSockCommon_CheckFDs}, {"ZNCc::CSockCommon_AssignFDs", _wrap_CSockCommon_AssignFDs}, {"ZNCc::CSockCommon_MonitorFD", _wrap_CSockCommon_MonitorFD}, {"ZNCc::new_Csock", _wrap_new_Csock}, {"ZNCc::Csock_GetSockObj", _wrap_Csock_GetSockObj}, {"ZNCc::delete_Csock", _wrap_delete_Csock}, {"ZNCc::Csock_Dereference", _wrap_Csock_Dereference}, {"ZNCc::Csock_Copy", _wrap_Csock_Copy}, {"ZNCc::Csock___lshift__", _wrap_Csock___lshift__}, {"ZNCc::Csock_Connect", _wrap_Csock_Connect}, {"ZNCc::Csock_Listen", _wrap_Csock_Listen}, {"ZNCc::Csock_Accept", _wrap_Csock_Accept}, {"ZNCc::Csock_AcceptSSL", _wrap_Csock_AcceptSSL}, {"ZNCc::Csock_SSLClientSetup", _wrap_Csock_SSLClientSetup}, {"ZNCc::Csock_SSLServerSetup", _wrap_Csock_SSLServerSetup}, {"ZNCc::Csock_ConnectSSL", _wrap_Csock_ConnectSSL}, {"ZNCc::Csock_StartTLS", _wrap_Csock_StartTLS}, {"ZNCc::Csock_Write", _wrap_Csock_Write}, {"ZNCc::Csock_Read", _wrap_Csock_Read}, {"ZNCc::Csock_GetLocalIP", _wrap_Csock_GetLocalIP}, {"ZNCc::Csock_GetRemoteIP", _wrap_Csock_GetRemoteIP}, {"ZNCc::Csock_IsConnected", _wrap_Csock_IsConnected}, {"ZNCc::Csock_SetIsConnected", _wrap_Csock_SetIsConnected}, {"ZNCc::Csock_GetRSock", _wrap_Csock_GetRSock}, {"ZNCc::Csock_SetRSock", _wrap_Csock_SetRSock}, {"ZNCc::Csock_GetWSock", _wrap_Csock_GetWSock}, {"ZNCc::Csock_SetWSock", _wrap_Csock_SetWSock}, {"ZNCc::Csock_SetSock", _wrap_Csock_SetSock}, {"ZNCc::Csock_GetSock", _wrap_Csock_GetSock}, {"ZNCc::Csock_CallSockError", _wrap_Csock_CallSockError}, {"ZNCc::Csock_ResetTimer", _wrap_Csock_ResetTimer}, {"ZNCc::Csock_PauseRead", _wrap_Csock_PauseRead}, {"ZNCc::Csock_UnPauseRead", _wrap_Csock_UnPauseRead}, {"ZNCc::Csock_IsReadPaused", _wrap_Csock_IsReadPaused}, {"ZNCc::Csock_SetTimeout", _wrap_Csock_SetTimeout}, {"ZNCc::Csock_SetTimeoutType", _wrap_Csock_SetTimeoutType}, {"ZNCc::Csock_GetTimeout", _wrap_Csock_GetTimeout}, {"ZNCc::Csock_GetTimeoutType", _wrap_Csock_GetTimeoutType}, {"ZNCc::Csock_CheckTimeout", _wrap_Csock_CheckTimeout}, {"ZNCc::Csock_PushBuff", _wrap_Csock_PushBuff}, {"ZNCc::Csock_GetInternalReadBuffer", _wrap_Csock_GetInternalReadBuffer}, {"ZNCc::Csock_GetInternalWriteBuffer", _wrap_Csock_GetInternalWriteBuffer}, {"ZNCc::Csock_SetMaxBufferThreshold", _wrap_Csock_SetMaxBufferThreshold}, {"ZNCc::Csock_GetMaxBufferThreshold", _wrap_Csock_GetMaxBufferThreshold}, {"ZNCc::Csock_GetType", _wrap_Csock_GetType}, {"ZNCc::Csock_SetType", _wrap_Csock_SetType}, {"ZNCc::Csock_GetSockName", _wrap_Csock_GetSockName}, {"ZNCc::Csock_SetSockName", _wrap_Csock_SetSockName}, {"ZNCc::Csock_GetHostName", _wrap_Csock_GetHostName}, {"ZNCc::Csock_SetHostName", _wrap_Csock_SetHostName}, {"ZNCc::Csock_GetStartTime", _wrap_Csock_GetStartTime}, {"ZNCc::Csock_ResetStartTime", _wrap_Csock_ResetStartTime}, {"ZNCc::Csock_GetBytesRead", _wrap_Csock_GetBytesRead}, {"ZNCc::Csock_ResetBytesRead", _wrap_Csock_ResetBytesRead}, {"ZNCc::Csock_GetBytesWritten", _wrap_Csock_GetBytesWritten}, {"ZNCc::Csock_ResetBytesWritten", _wrap_Csock_ResetBytesWritten}, {"ZNCc::Csock_GetAvgRead", _wrap_Csock_GetAvgRead}, {"ZNCc::Csock_GetAvgWrite", _wrap_Csock_GetAvgWrite}, {"ZNCc::Csock_GetRemotePort", _wrap_Csock_GetRemotePort}, {"ZNCc::Csock_GetLocalPort", _wrap_Csock_GetLocalPort}, {"ZNCc::Csock_GetPort", _wrap_Csock_GetPort}, {"ZNCc::Csock_SetPort", _wrap_Csock_SetPort}, {"ZNCc::Csock_Close", _wrap_Csock_Close}, {"ZNCc::Csock_GetCloseType", _wrap_Csock_GetCloseType}, {"ZNCc::Csock_IsClosed", _wrap_Csock_IsClosed}, {"ZNCc::Csock_NonBlockingIO", _wrap_Csock_NonBlockingIO}, {"ZNCc::Csock_GetSSL", _wrap_Csock_GetSSL}, {"ZNCc::Csock_SetSSL", _wrap_Csock_SetSSL}, {"ZNCc::Csock_HasWriteBuffer", _wrap_Csock_HasWriteBuffer}, {"ZNCc::Csock_ClearWriteBuffer", _wrap_Csock_ClearWriteBuffer}, {"ZNCc::Csock_SslIsEstablished", _wrap_Csock_SslIsEstablished}, {"ZNCc::Csock_ConnectInetd", _wrap_Csock_ConnectInetd}, {"ZNCc::Csock_ConnectFD", _wrap_Csock_ConnectFD}, {"ZNCc::Csock_SetParentSockName", _wrap_Csock_SetParentSockName}, {"ZNCc::Csock_GetParentSockName", _wrap_Csock_GetParentSockName}, {"ZNCc::Csock_SetRate", _wrap_Csock_SetRate}, {"ZNCc::Csock_GetRateBytes", _wrap_Csock_GetRateBytes}, {"ZNCc::Csock_GetRateTime", _wrap_Csock_GetRateTime}, {"ZNCc::Csock_Connected", _wrap_Csock_Connected}, {"ZNCc::Csock_Disconnected", _wrap_Csock_Disconnected}, {"ZNCc::Csock_Timeout", _wrap_Csock_Timeout}, {"ZNCc::Csock_ReadData", _wrap_Csock_ReadData}, {"ZNCc::Csock_ReadLine", _wrap_Csock_ReadLine}, {"ZNCc::Csock_EnableReadLine", _wrap_Csock_EnableReadLine}, {"ZNCc::Csock_DisableReadLine", _wrap_Csock_DisableReadLine}, {"ZNCc::Csock_HasReadLine", _wrap_Csock_HasReadLine}, {"ZNCc::Csock_ReachedMaxBuffer", _wrap_Csock_ReachedMaxBuffer}, {"ZNCc::Csock_SockError", _wrap_Csock_SockError}, {"ZNCc::Csock_ConnectionFrom", _wrap_Csock_ConnectionFrom}, {"ZNCc::Csock_Listening", _wrap_Csock_Listening}, {"ZNCc::Csock_ConnectionRefused", _wrap_Csock_ConnectionRefused}, {"ZNCc::Csock_ReadPaused", _wrap_Csock_ReadPaused}, {"ZNCc::Csock_GetTimeSinceLastDataTransaction", _wrap_Csock_GetTimeSinceLastDataTransaction}, {"ZNCc::Csock_GetLastCheckTimeout", _wrap_Csock_GetLastCheckTimeout}, {"ZNCc::Csock_GetNextCheckTimeout", _wrap_Csock_GetNextCheckTimeout}, {"ZNCc::Csock_GetPending", _wrap_Csock_GetPending}, {"ZNCc::Csock_GetConState", _wrap_Csock_GetConState}, {"ZNCc::Csock_SetConState", _wrap_Csock_SetConState}, {"ZNCc::Csock_CreateSocksFD", _wrap_Csock_CreateSocksFD}, {"ZNCc::Csock_CloseSocksFD", _wrap_Csock_CloseSocksFD}, {"ZNCc::Csock_GetBindHost", _wrap_Csock_GetBindHost}, {"ZNCc::Csock_SetBindHost", _wrap_Csock_SetBindHost}, {"ZNCc::Csock_DNSLookup", _wrap_Csock_DNSLookup}, {"ZNCc::Csock_SetupVHost", _wrap_Csock_SetupVHost}, {"ZNCc::Csock_GetIPv6", _wrap_Csock_GetIPv6}, {"ZNCc::Csock_SetIPv6", _wrap_Csock_SetIPv6}, {"ZNCc::Csock_SetAFRequire", _wrap_Csock_SetAFRequire}, {"ZNCc::Csock_AllowWrite", _wrap_Csock_AllowWrite}, {"ZNCc::Csock_SetSkipConnect", _wrap_Csock_SetSkipConnect}, {"ZNCc::Csock_GetAddrInfo", _wrap_Csock_GetAddrInfo}, {"ZNCc::Csock_ConvertAddress", _wrap_Csock_ConvertAddress}, {"ZNCc::Csock_GetMaxConns", _wrap_Csock_GetMaxConns}, {"ZNCc::new_CSConnection", _wrap_new_CSConnection}, {"ZNCc::delete_CSConnection", _wrap_delete_CSConnection}, {"ZNCc::CSConnection_GetHostname", _wrap_CSConnection_GetHostname}, {"ZNCc::CSConnection_GetSockName", _wrap_CSConnection_GetSockName}, {"ZNCc::CSConnection_GetBindHost", _wrap_CSConnection_GetBindHost}, {"ZNCc::CSConnection_GetPort", _wrap_CSConnection_GetPort}, {"ZNCc::CSConnection_GetTimeout", _wrap_CSConnection_GetTimeout}, {"ZNCc::CSConnection_GetIsSSL", _wrap_CSConnection_GetIsSSL}, {"ZNCc::CSConnection_GetAFRequire", _wrap_CSConnection_GetAFRequire}, {"ZNCc::CSConnection_SetHostname", _wrap_CSConnection_SetHostname}, {"ZNCc::CSConnection_SetSockName", _wrap_CSConnection_SetSockName}, {"ZNCc::CSConnection_SetBindHost", _wrap_CSConnection_SetBindHost}, {"ZNCc::CSConnection_SetPort", _wrap_CSConnection_SetPort}, {"ZNCc::CSConnection_SetTimeout", _wrap_CSConnection_SetTimeout}, {"ZNCc::CSConnection_SetIsSSL", _wrap_CSConnection_SetIsSSL}, {"ZNCc::CSConnection_SetAFRequire", _wrap_CSConnection_SetAFRequire}, {"ZNCc::new_CSSSLConnection", _wrap_new_CSSSLConnection}, {"ZNCc::delete_CSSSLConnection", _wrap_delete_CSSSLConnection}, {"ZNCc::new_CSListener", _wrap_new_CSListener}, {"ZNCc::delete_CSListener", _wrap_delete_CSListener}, {"ZNCc::CSListener_SetDetach", _wrap_CSListener_SetDetach}, {"ZNCc::CSListener_GetDetach", _wrap_CSListener_GetDetach}, {"ZNCc::CSListener_GetPort", _wrap_CSListener_GetPort}, {"ZNCc::CSListener_GetSockName", _wrap_CSListener_GetSockName}, {"ZNCc::CSListener_GetBindHost", _wrap_CSListener_GetBindHost}, {"ZNCc::CSListener_GetIsSSL", _wrap_CSListener_GetIsSSL}, {"ZNCc::CSListener_GetMaxConns", _wrap_CSListener_GetMaxConns}, {"ZNCc::CSListener_GetTimeout", _wrap_CSListener_GetTimeout}, {"ZNCc::CSListener_GetAFRequire", _wrap_CSListener_GetAFRequire}, {"ZNCc::CSListener_SetPort", _wrap_CSListener_SetPort}, {"ZNCc::CSListener_SetSockName", _wrap_CSListener_SetSockName}, {"ZNCc::CSListener_SetBindHost", _wrap_CSListener_SetBindHost}, {"ZNCc::CSListener_SetIsSSL", _wrap_CSListener_SetIsSSL}, {"ZNCc::CSListener_SetMaxConns", _wrap_CSListener_SetMaxConns}, {"ZNCc::CSListener_SetTimeout", _wrap_CSListener_SetTimeout}, {"ZNCc::CSListener_SetAFRequire", _wrap_CSListener_SetAFRequire}, {"ZNCc::new_CSocketManager", _wrap_new_CSocketManager}, {"ZNCc::delete_CSocketManager", _wrap_delete_CSocketManager}, {"ZNCc::CSocketManager_clear", _wrap_CSocketManager_clear}, {"ZNCc::CSocketManager_Cleanup", _wrap_CSocketManager_Cleanup}, {"ZNCc::CSocketManager_GetSockObj", _wrap_CSocketManager_GetSockObj}, {"ZNCc::CSocketManager_Connect", _wrap_CSocketManager_Connect}, {"ZNCc::CSocketManager_Listen", _wrap_CSocketManager_Listen}, {"ZNCc::CSocketManager_HasFDs", _wrap_CSocketManager_HasFDs}, {"ZNCc::CSocketManager_Loop", _wrap_CSocketManager_Loop}, {"ZNCc::CSocketManager_DynamicSelectLoop", _wrap_CSocketManager_DynamicSelectLoop}, {"ZNCc::CSocketManager_AddSock", _wrap_CSocketManager_AddSock}, {"ZNCc::CSocketManager_FindSockByRemotePort", _wrap_CSocketManager_FindSockByRemotePort}, {"ZNCc::CSocketManager_FindSockByLocalPort", _wrap_CSocketManager_FindSockByLocalPort}, {"ZNCc::CSocketManager_FindSockByName", _wrap_CSocketManager_FindSockByName}, {"ZNCc::CSocketManager_FindSockByFD", _wrap_CSocketManager_FindSockByFD}, {"ZNCc::CSocketManager_FindSocksByName", _wrap_CSocketManager_FindSocksByName}, {"ZNCc::CSocketManager_FindSocksByRemoteHost", _wrap_CSocketManager_FindSocksByRemoteHost}, {"ZNCc::CSocketManager_GetErrno", _wrap_CSocketManager_GetErrno}, {"ZNCc::CSocketManager_GetSelectTimeout", _wrap_CSocketManager_GetSelectTimeout}, {"ZNCc::CSocketManager_SetSelectTimeout", _wrap_CSocketManager_SetSelectTimeout}, {"ZNCc::CSocketManager_DelSockByAddr", _wrap_CSocketManager_DelSockByAddr}, {"ZNCc::CSocketManager_DelSock", _wrap_CSocketManager_DelSock}, {"ZNCc::CSocketManager_SwapSockByIdx", _wrap_CSocketManager_SwapSockByIdx}, {"ZNCc::CSocketManager_SwapSockByAddr", _wrap_CSocketManager_SwapSockByAddr}, {"ZNCc::CSocketManager_GetBytesRead", _wrap_CSocketManager_GetBytesRead}, {"ZNCc::CSocketManager_GetBytesWritten", _wrap_CSocketManager_GetBytesWritten}, {"ZNCc::CSocketManager_FDSetCheck", _wrap_CSocketManager_FDSetCheck}, {"ZNCc::CSocketManager_FDHasCheck", _wrap_CSocketManager_FDHasCheck}, {"ZNCc::new_ZNCSocketManager", _wrap_new_ZNCSocketManager}, {"ZNCc::delete_ZNCSocketManager", _wrap_delete_ZNCSocketManager}, {"ZNCc::ZNCSocketManager_GetSockObj", _wrap_ZNCSocketManager_GetSockObj}, {"ZNCc::new_CZNCSock", _wrap_new_CZNCSock}, {"ZNCc::delete_CZNCSock", _wrap_delete_CZNCSock}, {"ZNCc::CZNCSock_ConvertAddress", _wrap_CZNCSock_ConvertAddress}, {"ZNCc::CZNCSock_SetHostToVerifySSL", _wrap_CZNCSock_SetHostToVerifySSL}, {"ZNCc::CZNCSock_GetSSLPeerFingerprint", _wrap_CZNCSock_GetSSLPeerFingerprint}, {"ZNCc::CZNCSock_SetSSLTrustedPeerFingerprints", _wrap_CZNCSock_SetSSLTrustedPeerFingerprints}, {"ZNCc::CZNCSock_SetEncoding", _wrap_CZNCSock_SetEncoding}, {"ZNCc::CZNCSock_GetRemoteIP", _wrap_CZNCSock_GetRemoteIP}, {"ZNCc::new_CSockManager", _wrap_new_CSockManager}, {"ZNCc::delete_CSockManager", _wrap_delete_CSockManager}, {"ZNCc::CSockManager_ListenHost", _wrap_CSockManager_ListenHost}, {"ZNCc::CSockManager_ListenAll", _wrap_CSockManager_ListenAll}, {"ZNCc::CSockManager_ListenRand", _wrap_CSockManager_ListenRand}, {"ZNCc::CSockManager_ListenAllRand", _wrap_CSockManager_ListenAllRand}, {"ZNCc::CSockManager_Connect", _wrap_CSockManager_Connect}, {"ZNCc::CSockManager_GetAnonConnectionCount", _wrap_CSockManager_GetAnonConnectionCount}, {"ZNCc::new_CSocket", _wrap_new_CSocket}, {"ZNCc::delete_CSocket", _wrap_delete_CSocket}, {"ZNCc::CSocket_ReachedMaxBuffer", _wrap_CSocket_ReachedMaxBuffer}, {"ZNCc::CSocket_SockError", _wrap_CSocket_SockError}, {"ZNCc::CSocket_ConnectionFrom", _wrap_CSocket_ConnectionFrom}, {"ZNCc::CSocket_Connect", _wrap_CSocket_Connect}, {"ZNCc::CSocket_Listen", _wrap_CSocket_Listen}, {"ZNCc::CSocket_GetModule", _wrap_CSocket_GetModule}, {"ZNCc::new_CIRCSocket", _wrap_new_CIRCSocket}, {"ZNCc::delete_CIRCSocket", _wrap_delete_CIRCSocket}, {"ZNCc::new_CFile", _wrap_new_CFile}, {"ZNCc::delete_CFile", _wrap_delete_CFile}, {"ZNCc::CFile_SetFileName", _wrap_CFile_SetFileName}, {"ZNCc::CFile_IsReg", _wrap_CFile_IsReg}, {"ZNCc::CFile_IsDir", _wrap_CFile_IsDir}, {"ZNCc::CFile_IsChr", _wrap_CFile_IsChr}, {"ZNCc::CFile_IsBlk", _wrap_CFile_IsBlk}, {"ZNCc::CFile_IsFifo", _wrap_CFile_IsFifo}, {"ZNCc::CFile_IsLnk", _wrap_CFile_IsLnk}, {"ZNCc::CFile_IsSock", _wrap_CFile_IsSock}, {"ZNCc::CFile_FType", _wrap_CFile_FType}, {"ZNCc::CFile_Exists", _wrap_CFile_Exists}, {"ZNCc::CFile_GetSize", _wrap_CFile_GetSize}, {"ZNCc::CFile_GetATime", _wrap_CFile_GetATime}, {"ZNCc::CFile_GetMTime", _wrap_CFile_GetMTime}, {"ZNCc::CFile_GetCTime", _wrap_CFile_GetCTime}, {"ZNCc::CFile_GetUID", _wrap_CFile_GetUID}, {"ZNCc::CFile_GetGID", _wrap_CFile_GetGID}, {"ZNCc::CFile_GetInfo", _wrap_CFile_GetInfo}, {"ZNCc::CFile_Delete", _wrap_CFile_Delete}, {"ZNCc::CFile_Move", _wrap_CFile_Move}, {"ZNCc::CFile_Copy", _wrap_CFile_Copy}, {"ZNCc::CFile_Chmod", _wrap_CFile_Chmod}, {"ZNCc::CFile_Seek", _wrap_CFile_Seek}, {"ZNCc::CFile_Truncate", _wrap_CFile_Truncate}, {"ZNCc::CFile_Sync", _wrap_CFile_Sync}, {"ZNCc::CFile_Open", _wrap_CFile_Open}, {"ZNCc::CFile_Read", _wrap_CFile_Read}, {"ZNCc::CFile_ReadLine", _wrap_CFile_ReadLine}, {"ZNCc::CFile_ReadFile", _wrap_CFile_ReadFile}, {"ZNCc::CFile_Write", _wrap_CFile_Write}, {"ZNCc::CFile_Close", _wrap_CFile_Close}, {"ZNCc::CFile_ClearBuffer", _wrap_CFile_ClearBuffer}, {"ZNCc::CFile_TryExLock", _wrap_CFile_TryExLock}, {"ZNCc::CFile_ExLock", _wrap_CFile_ExLock}, {"ZNCc::CFile_UnLock", _wrap_CFile_UnLock}, {"ZNCc::CFile_IsOpen", _wrap_CFile_IsOpen}, {"ZNCc::CFile_GetLongName", _wrap_CFile_GetLongName}, {"ZNCc::CFile_GetShortName", _wrap_CFile_GetShortName}, {"ZNCc::CFile_GetDir", _wrap_CFile_GetDir}, {"ZNCc::CFile_HadError", _wrap_CFile_HadError}, {"ZNCc::CFile_ResetError", _wrap_CFile_ResetError}, {"ZNCc::CFile_InitHomePath", _wrap_CFile_InitHomePath}, {"ZNCc::CFile_GetHomePath", _wrap_CFile_GetHomePath}, {"ZNCc::new_CDir", _wrap_new_CDir}, {"ZNCc::delete_CDir", _wrap_delete_CDir}, {"ZNCc::CDir_CleanUp", _wrap_CDir_CleanUp}, {"ZNCc::CDir_Fill", _wrap_CDir_Fill}, {"ZNCc::CDir_FillByWildcard", _wrap_CDir_FillByWildcard}, {"ZNCc::CDir_Chmod", _wrap_CDir_Chmod}, {"ZNCc::CDir_Delete", _wrap_CDir_Delete}, {"ZNCc::CDir_GetSortAttr", _wrap_CDir_GetSortAttr}, {"ZNCc::CDir_IsDescending", _wrap_CDir_IsDescending}, {"ZNCc::CDir_CheckPathPrefix", _wrap_CDir_CheckPathPrefix}, {"ZNCc::CDir_ChangeDir", _wrap_CDir_ChangeDir}, {"ZNCc::CDir_MakeDir", _wrap_CDir_MakeDir}, {"ZNCc::CDir_GetCWD", _wrap_CDir_GetCWD}, {"ZNCc::new_CTimer", _wrap_new_CTimer}, {"ZNCc::delete_CTimer", _wrap_delete_CTimer}, {"ZNCc::CTimer_SetModule", _wrap_CTimer_SetModule}, {"ZNCc::CTimer_SetDescription", _wrap_CTimer_SetDescription}, {"ZNCc::CTimer_GetModule", _wrap_CTimer_GetModule}, {"ZNCc::CTimer_GetDescription", _wrap_CTimer_GetDescription}, {"ZNCc::new_CFPTimer", _wrap_new_CFPTimer}, {"ZNCc::delete_CFPTimer", _wrap_delete_CFPTimer}, {"ZNCc::CFPTimer_SetFPCallback", _wrap_CFPTimer_SetFPCallback}, {"ZNCc::new_CModInfo", _wrap_new_CModInfo}, {"ZNCc::delete_CModInfo", _wrap_delete_CModInfo}, {"ZNCc::CModInfo___lt__", _wrap_CModInfo___lt__}, {"ZNCc::CModInfo_SupportsType", _wrap_CModInfo_SupportsType}, {"ZNCc::CModInfo_AddType", _wrap_CModInfo_AddType}, {"ZNCc::CModInfo_ModuleTypeToString", _wrap_CModInfo_ModuleTypeToString}, {"ZNCc::CModInfo_GetName", _wrap_CModInfo_GetName}, {"ZNCc::CModInfo_GetPath", _wrap_CModInfo_GetPath}, {"ZNCc::CModInfo_GetDescription", _wrap_CModInfo_GetDescription}, {"ZNCc::CModInfo_GetWikiPage", _wrap_CModInfo_GetWikiPage}, {"ZNCc::CModInfo_GetArgsHelpText", _wrap_CModInfo_GetArgsHelpText}, {"ZNCc::CModInfo_GetHasArgs", _wrap_CModInfo_GetHasArgs}, {"ZNCc::CModInfo_GetLoader", _wrap_CModInfo_GetLoader}, {"ZNCc::CModInfo_GetDefaultType", _wrap_CModInfo_GetDefaultType}, {"ZNCc::CModInfo_SetName", _wrap_CModInfo_SetName}, {"ZNCc::CModInfo_SetPath", _wrap_CModInfo_SetPath}, {"ZNCc::CModInfo_SetDescription", _wrap_CModInfo_SetDescription}, {"ZNCc::CModInfo_SetWikiPage", _wrap_CModInfo_SetWikiPage}, {"ZNCc::CModInfo_SetArgsHelpText", _wrap_CModInfo_SetArgsHelpText}, {"ZNCc::CModInfo_SetHasArgs", _wrap_CModInfo_SetHasArgs}, {"ZNCc::CModInfo_SetLoader", _wrap_CModInfo_SetLoader}, {"ZNCc::CModInfo_SetDefaultType", _wrap_CModInfo_SetDefaultType}, {"ZNCc::new_CModCommand", _wrap_new_CModCommand}, {"ZNCc::CModCommand_InitHelp", _wrap_CModCommand_InitHelp}, {"ZNCc::CModCommand_AddHelp", _wrap_CModCommand_AddHelp}, {"ZNCc::CModCommand_GetCommand", _wrap_CModCommand_GetCommand}, {"ZNCc::CModCommand_GetFunction", _wrap_CModCommand_GetFunction}, {"ZNCc::CModCommand_GetArgs", _wrap_CModCommand_GetArgs}, {"ZNCc::CModCommand_GetDescription", _wrap_CModCommand_GetDescription}, {"ZNCc::CModCommand_Call", _wrap_CModCommand_Call}, {"ZNCc::delete_CModCommand", _wrap_delete_CModCommand}, {"ZNCc::new_CModule", _wrap_new_CModule}, {"ZNCc::delete_CModule", _wrap_delete_CModule}, {"ZNCc::CModule_SetUser", _wrap_CModule_SetUser}, {"ZNCc::CModule_SetNetwork", _wrap_CModule_SetNetwork}, {"ZNCc::CModule_SetClient", _wrap_CModule_SetClient}, {"ZNCc::CModule_Unload", _wrap_CModule_Unload}, {"ZNCc::CModule_OnLoad", _wrap_CModule_OnLoad}, {"ZNCc::CModule_OnBoot", _wrap_CModule_OnBoot}, {"ZNCc::CModule_WebRequiresLogin", _wrap_CModule_WebRequiresLogin}, {"ZNCc::CModule_WebRequiresAdmin", _wrap_CModule_WebRequiresAdmin}, {"ZNCc::CModule_GetWebMenuTitle", _wrap_CModule_GetWebMenuTitle}, {"ZNCc::CModule_GetWebPath", _wrap_CModule_GetWebPath}, {"ZNCc::CModule_GetWebFilesPath", _wrap_CModule_GetWebFilesPath}, {"ZNCc::CModule_OnWebPreRequest", _wrap_CModule_OnWebPreRequest}, {"ZNCc::CModule_OnWebRequest", _wrap_CModule_OnWebRequest}, {"ZNCc::CModule_AddSubPage", _wrap_CModule_AddSubPage}, {"ZNCc::CModule_ClearSubPages", _wrap_CModule_ClearSubPages}, {"ZNCc::CModule_GetSubPages", _wrap_CModule_GetSubPages}, {"ZNCc::CModule_OnEmbeddedWebRequest", _wrap_CModule_OnEmbeddedWebRequest}, {"ZNCc::CModule_OnPreRehash", _wrap_CModule_OnPreRehash}, {"ZNCc::CModule_OnPostRehash", _wrap_CModule_OnPostRehash}, {"ZNCc::CModule_OnIRCDisconnected", _wrap_CModule_OnIRCDisconnected}, {"ZNCc::CModule_OnIRCConnected", _wrap_CModule_OnIRCConnected}, {"ZNCc::CModule_OnIRCConnecting", _wrap_CModule_OnIRCConnecting}, {"ZNCc::CModule_OnIRCConnectionError", _wrap_CModule_OnIRCConnectionError}, {"ZNCc::CModule_OnIRCRegistration", _wrap_CModule_OnIRCRegistration}, {"ZNCc::CModule_OnBroadcast", _wrap_CModule_OnBroadcast}, {"ZNCc::CModule_OnChanPermission2", _wrap_CModule_OnChanPermission2}, {"ZNCc::CModule_OnChanPermission", _wrap_CModule_OnChanPermission}, {"ZNCc::CModule_OnOp2", _wrap_CModule_OnOp2}, {"ZNCc::CModule_OnOp", _wrap_CModule_OnOp}, {"ZNCc::CModule_OnDeop2", _wrap_CModule_OnDeop2}, {"ZNCc::CModule_OnDeop", _wrap_CModule_OnDeop}, {"ZNCc::CModule_OnVoice2", _wrap_CModule_OnVoice2}, {"ZNCc::CModule_OnVoice", _wrap_CModule_OnVoice}, {"ZNCc::CModule_OnDevoice2", _wrap_CModule_OnDevoice2}, {"ZNCc::CModule_OnDevoice", _wrap_CModule_OnDevoice}, {"ZNCc::CModule_OnMode2", _wrap_CModule_OnMode2}, {"ZNCc::CModule_OnMode", _wrap_CModule_OnMode}, {"ZNCc::CModule_OnRawMode2", _wrap_CModule_OnRawMode2}, {"ZNCc::CModule_OnRawMode", _wrap_CModule_OnRawMode}, {"ZNCc::CModule_OnRaw", _wrap_CModule_OnRaw}, {"ZNCc::CModule_OnStatusCommand", _wrap_CModule_OnStatusCommand}, {"ZNCc::CModule_OnModCommand", _wrap_CModule_OnModCommand}, {"ZNCc::CModule_OnUnknownModCommand", _wrap_CModule_OnUnknownModCommand}, {"ZNCc::CModule_OnModNotice", _wrap_CModule_OnModNotice}, {"ZNCc::CModule_OnModCTCP", _wrap_CModule_OnModCTCP}, {"ZNCc::CModule_OnQuit", _wrap_CModule_OnQuit}, {"ZNCc::CModule_OnNick", _wrap_CModule_OnNick}, {"ZNCc::CModule_OnKick", _wrap_CModule_OnKick}, {"ZNCc::CModule_OnJoining", _wrap_CModule_OnJoining}, {"ZNCc::CModule_OnJoin", _wrap_CModule_OnJoin}, {"ZNCc::CModule_OnPart", _wrap_CModule_OnPart}, {"ZNCc::CModule_OnInvite", _wrap_CModule_OnInvite}, {"ZNCc::CModule_OnChanBufferStarting", _wrap_CModule_OnChanBufferStarting}, {"ZNCc::CModule_OnChanBufferEnding", _wrap_CModule_OnChanBufferEnding}, {"ZNCc::CModule_OnChanBufferPlayLine2", _wrap_CModule_OnChanBufferPlayLine2}, {"ZNCc::CModule_OnChanBufferPlayLine", _wrap_CModule_OnChanBufferPlayLine}, {"ZNCc::CModule_OnPrivBufferPlayLine2", _wrap_CModule_OnPrivBufferPlayLine2}, {"ZNCc::CModule_OnPrivBufferPlayLine", _wrap_CModule_OnPrivBufferPlayLine}, {"ZNCc::CModule_OnClientLogin", _wrap_CModule_OnClientLogin}, {"ZNCc::CModule_OnClientDisconnect", _wrap_CModule_OnClientDisconnect}, {"ZNCc::CModule_OnUserRaw", _wrap_CModule_OnUserRaw}, {"ZNCc::CModule_OnUserCTCPReply", _wrap_CModule_OnUserCTCPReply}, {"ZNCc::CModule_OnUserCTCP", _wrap_CModule_OnUserCTCP}, {"ZNCc::CModule_OnUserAction", _wrap_CModule_OnUserAction}, {"ZNCc::CModule_OnUserMsg", _wrap_CModule_OnUserMsg}, {"ZNCc::CModule_OnUserNotice", _wrap_CModule_OnUserNotice}, {"ZNCc::CModule_OnUserJoin", _wrap_CModule_OnUserJoin}, {"ZNCc::CModule_OnUserPart", _wrap_CModule_OnUserPart}, {"ZNCc::CModule_OnUserTopic", _wrap_CModule_OnUserTopic}, {"ZNCc::CModule_OnUserTopicRequest", _wrap_CModule_OnUserTopicRequest}, {"ZNCc::CModule_OnCTCPReply", _wrap_CModule_OnCTCPReply}, {"ZNCc::CModule_OnPrivCTCP", _wrap_CModule_OnPrivCTCP}, {"ZNCc::CModule_OnChanCTCP", _wrap_CModule_OnChanCTCP}, {"ZNCc::CModule_OnPrivAction", _wrap_CModule_OnPrivAction}, {"ZNCc::CModule_OnChanAction", _wrap_CModule_OnChanAction}, {"ZNCc::CModule_OnPrivMsg", _wrap_CModule_OnPrivMsg}, {"ZNCc::CModule_OnChanMsg", _wrap_CModule_OnChanMsg}, {"ZNCc::CModule_OnPrivNotice", _wrap_CModule_OnPrivNotice}, {"ZNCc::CModule_OnChanNotice", _wrap_CModule_OnChanNotice}, {"ZNCc::CModule_OnTopic", _wrap_CModule_OnTopic}, {"ZNCc::CModule_OnServerCapAvailable", _wrap_CModule_OnServerCapAvailable}, {"ZNCc::CModule_OnServerCapResult", _wrap_CModule_OnServerCapResult}, {"ZNCc::CModule_OnTimerAutoJoin", _wrap_CModule_OnTimerAutoJoin}, {"ZNCc::CModule_OnAddNetwork", _wrap_CModule_OnAddNetwork}, {"ZNCc::CModule_OnDeleteNetwork", _wrap_CModule_OnDeleteNetwork}, {"ZNCc::CModule_OnSendToClient", _wrap_CModule_OnSendToClient}, {"ZNCc::CModule_OnSendToIRC", _wrap_CModule_OnSendToIRC}, {"ZNCc::CModule_GetDLL", _wrap_CModule_GetDLL}, {"ZNCc::CModule_GetCoreVersion", _wrap_CModule_GetCoreVersion}, {"ZNCc::CModule_PutIRC", _wrap_CModule_PutIRC}, {"ZNCc::CModule_PutUser", _wrap_CModule_PutUser}, {"ZNCc::CModule_PutStatus", _wrap_CModule_PutStatus}, {"ZNCc::CModule_PutModule", _wrap_CModule_PutModule}, {"ZNCc::CModule_PutModNotice", _wrap_CModule_PutModNotice}, {"ZNCc::CModule_GetModName", _wrap_CModule_GetModName}, {"ZNCc::CModule_GetModNick", _wrap_CModule_GetModNick}, {"ZNCc::CModule_GetModDataDir", _wrap_CModule_GetModDataDir}, {"ZNCc::CModule_AddTimer", _wrap_CModule_AddTimer}, {"ZNCc::CModule_RemTimer", _wrap_CModule_RemTimer}, {"ZNCc::CModule_UnlinkTimer", _wrap_CModule_UnlinkTimer}, {"ZNCc::CModule_FindTimer", _wrap_CModule_FindTimer}, {"ZNCc::CModule_BeginTimers", _wrap_CModule_BeginTimers}, {"ZNCc::CModule_EndTimers", _wrap_CModule_EndTimers}, {"ZNCc::CModule_ListTimers", _wrap_CModule_ListTimers}, {"ZNCc::CModule_AddSocket", _wrap_CModule_AddSocket}, {"ZNCc::CModule_RemSocket", _wrap_CModule_RemSocket}, {"ZNCc::CModule_UnlinkSocket", _wrap_CModule_UnlinkSocket}, {"ZNCc::CModule_FindSocket", _wrap_CModule_FindSocket}, {"ZNCc::CModule_BeginSockets", _wrap_CModule_BeginSockets}, {"ZNCc::CModule_EndSockets", _wrap_CModule_EndSockets}, {"ZNCc::CModule_ListSockets", _wrap_CModule_ListSockets}, {"ZNCc::CModule_AddHelpCommand", _wrap_CModule_AddHelpCommand}, {"ZNCc::CModule_AddCommand", _wrap_CModule_AddCommand}, {"ZNCc::CModule_RemCommand", _wrap_CModule_RemCommand}, {"ZNCc::CModule_FindCommand", _wrap_CModule_FindCommand}, {"ZNCc::CModule_HandleCommand", _wrap_CModule_HandleCommand}, {"ZNCc::CModule_HandleHelpCommand", _wrap_CModule_HandleHelpCommand}, {"ZNCc::CModule_LoadRegistry", _wrap_CModule_LoadRegistry}, {"ZNCc::CModule_SaveRegistry", _wrap_CModule_SaveRegistry}, {"ZNCc::CModule_MoveRegistry", _wrap_CModule_MoveRegistry}, {"ZNCc::CModule_SetNV", _wrap_CModule_SetNV}, {"ZNCc::CModule_GetNV", _wrap_CModule_GetNV}, {"ZNCc::CModule_FindNV", _wrap_CModule_FindNV}, {"ZNCc::CModule_EndNV", _wrap_CModule_EndNV}, {"ZNCc::CModule_BeginNV", _wrap_CModule_BeginNV}, {"ZNCc::CModule_DelNV", _wrap_CModule_DelNV}, {"ZNCc::CModule_ClearNV", _wrap_CModule_ClearNV}, {"ZNCc::CModule_GetSavePath", _wrap_CModule_GetSavePath}, {"ZNCc::CModule_ExpandString", _wrap_CModule_ExpandString}, {"ZNCc::CModule_SetType", _wrap_CModule_SetType}, {"ZNCc::CModule_SetDescription", _wrap_CModule_SetDescription}, {"ZNCc::CModule_SetModPath", _wrap_CModule_SetModPath}, {"ZNCc::CModule_SetArgs", _wrap_CModule_SetArgs}, {"ZNCc::CModule_GetType", _wrap_CModule_GetType}, {"ZNCc::CModule_GetDescription", _wrap_CModule_GetDescription}, {"ZNCc::CModule_GetArgs", _wrap_CModule_GetArgs}, {"ZNCc::CModule_GetModPath", _wrap_CModule_GetModPath}, {"ZNCc::CModule_GetUser", _wrap_CModule_GetUser}, {"ZNCc::CModule_GetNetwork", _wrap_CModule_GetNetwork}, {"ZNCc::CModule_GetClient", _wrap_CModule_GetClient}, {"ZNCc::CModule_GetManager", _wrap_CModule_GetManager}, {"ZNCc::CModule_OnAddUser", _wrap_CModule_OnAddUser}, {"ZNCc::CModule_OnDeleteUser", _wrap_CModule_OnDeleteUser}, {"ZNCc::CModule_OnClientConnect", _wrap_CModule_OnClientConnect}, {"ZNCc::CModule_OnLoginAttempt", _wrap_CModule_OnLoginAttempt}, {"ZNCc::CModule_OnFailedLogin", _wrap_CModule_OnFailedLogin}, {"ZNCc::CModule_OnUnknownUserRaw", _wrap_CModule_OnUnknownUserRaw}, {"ZNCc::CModule_OnClientCapLs", _wrap_CModule_OnClientCapLs}, {"ZNCc::CModule_IsClientCapSupported", _wrap_CModule_IsClientCapSupported}, {"ZNCc::CModule_OnClientCapRequest", _wrap_CModule_OnClientCapRequest}, {"ZNCc::CModule_OnModuleLoading", _wrap_CModule_OnModuleLoading}, {"ZNCc::CModule_OnModuleUnloading", _wrap_CModule_OnModuleUnloading}, {"ZNCc::CModule_OnGetModInfo", _wrap_CModule_OnGetModInfo}, {"ZNCc::CModule_OnGetAvailableMods", _wrap_CModule_OnGetAvailableMods}, {"ZNCc::CModule__GetNVKeys", _wrap_CModule__GetNVKeys}, {"ZNCc::CModule_ExistsNV", _wrap_CModule_ExistsNV}, {"ZNCc::new_CModules", _wrap_new_CModules}, {"ZNCc::delete_CModules", _wrap_delete_CModules}, {"ZNCc::CModules_SetUser", _wrap_CModules_SetUser}, {"ZNCc::CModules_SetNetwork", _wrap_CModules_SetNetwork}, {"ZNCc::CModules_SetClient", _wrap_CModules_SetClient}, {"ZNCc::CModules_GetUser", _wrap_CModules_GetUser}, {"ZNCc::CModules_GetNetwork", _wrap_CModules_GetNetwork}, {"ZNCc::CModules_GetClient", _wrap_CModules_GetClient}, {"ZNCc::CModules_UnloadAll", _wrap_CModules_UnloadAll}, {"ZNCc::CModules_OnBoot", _wrap_CModules_OnBoot}, {"ZNCc::CModules_OnPreRehash", _wrap_CModules_OnPreRehash}, {"ZNCc::CModules_OnPostRehash", _wrap_CModules_OnPostRehash}, {"ZNCc::CModules_OnIRCDisconnected", _wrap_CModules_OnIRCDisconnected}, {"ZNCc::CModules_OnIRCConnected", _wrap_CModules_OnIRCConnected}, {"ZNCc::CModules_OnIRCConnecting", _wrap_CModules_OnIRCConnecting}, {"ZNCc::CModules_OnIRCConnectionError", _wrap_CModules_OnIRCConnectionError}, {"ZNCc::CModules_OnIRCRegistration", _wrap_CModules_OnIRCRegistration}, {"ZNCc::CModules_OnBroadcast", _wrap_CModules_OnBroadcast}, {"ZNCc::CModules_OnChanPermission2", _wrap_CModules_OnChanPermission2}, {"ZNCc::CModules_OnChanPermission", _wrap_CModules_OnChanPermission}, {"ZNCc::CModules_OnOp2", _wrap_CModules_OnOp2}, {"ZNCc::CModules_OnOp", _wrap_CModules_OnOp}, {"ZNCc::CModules_OnDeop2", _wrap_CModules_OnDeop2}, {"ZNCc::CModules_OnDeop", _wrap_CModules_OnDeop}, {"ZNCc::CModules_OnVoice2", _wrap_CModules_OnVoice2}, {"ZNCc::CModules_OnVoice", _wrap_CModules_OnVoice}, {"ZNCc::CModules_OnDevoice2", _wrap_CModules_OnDevoice2}, {"ZNCc::CModules_OnDevoice", _wrap_CModules_OnDevoice}, {"ZNCc::CModules_OnRawMode2", _wrap_CModules_OnRawMode2}, {"ZNCc::CModules_OnRawMode", _wrap_CModules_OnRawMode}, {"ZNCc::CModules_OnMode2", _wrap_CModules_OnMode2}, {"ZNCc::CModules_OnMode", _wrap_CModules_OnMode}, {"ZNCc::CModules_OnRaw", _wrap_CModules_OnRaw}, {"ZNCc::CModules_OnStatusCommand", _wrap_CModules_OnStatusCommand}, {"ZNCc::CModules_OnModCommand", _wrap_CModules_OnModCommand}, {"ZNCc::CModules_OnModNotice", _wrap_CModules_OnModNotice}, {"ZNCc::CModules_OnModCTCP", _wrap_CModules_OnModCTCP}, {"ZNCc::CModules_OnQuit", _wrap_CModules_OnQuit}, {"ZNCc::CModules_OnNick", _wrap_CModules_OnNick}, {"ZNCc::CModules_OnKick", _wrap_CModules_OnKick}, {"ZNCc::CModules_OnJoining", _wrap_CModules_OnJoining}, {"ZNCc::CModules_OnJoin", _wrap_CModules_OnJoin}, {"ZNCc::CModules_OnPart", _wrap_CModules_OnPart}, {"ZNCc::CModules_OnInvite", _wrap_CModules_OnInvite}, {"ZNCc::CModules_OnChanBufferStarting", _wrap_CModules_OnChanBufferStarting}, {"ZNCc::CModules_OnChanBufferEnding", _wrap_CModules_OnChanBufferEnding}, {"ZNCc::CModules_OnChanBufferPlayLine2", _wrap_CModules_OnChanBufferPlayLine2}, {"ZNCc::CModules_OnChanBufferPlayLine", _wrap_CModules_OnChanBufferPlayLine}, {"ZNCc::CModules_OnPrivBufferPlayLine2", _wrap_CModules_OnPrivBufferPlayLine2}, {"ZNCc::CModules_OnPrivBufferPlayLine", _wrap_CModules_OnPrivBufferPlayLine}, {"ZNCc::CModules_OnClientLogin", _wrap_CModules_OnClientLogin}, {"ZNCc::CModules_OnClientDisconnect", _wrap_CModules_OnClientDisconnect}, {"ZNCc::CModules_OnUserRaw", _wrap_CModules_OnUserRaw}, {"ZNCc::CModules_OnUserCTCPReply", _wrap_CModules_OnUserCTCPReply}, {"ZNCc::CModules_OnUserCTCP", _wrap_CModules_OnUserCTCP}, {"ZNCc::CModules_OnUserAction", _wrap_CModules_OnUserAction}, {"ZNCc::CModules_OnUserMsg", _wrap_CModules_OnUserMsg}, {"ZNCc::CModules_OnUserNotice", _wrap_CModules_OnUserNotice}, {"ZNCc::CModules_OnUserJoin", _wrap_CModules_OnUserJoin}, {"ZNCc::CModules_OnUserPart", _wrap_CModules_OnUserPart}, {"ZNCc::CModules_OnUserTopic", _wrap_CModules_OnUserTopic}, {"ZNCc::CModules_OnUserTopicRequest", _wrap_CModules_OnUserTopicRequest}, {"ZNCc::CModules_OnCTCPReply", _wrap_CModules_OnCTCPReply}, {"ZNCc::CModules_OnPrivCTCP", _wrap_CModules_OnPrivCTCP}, {"ZNCc::CModules_OnChanCTCP", _wrap_CModules_OnChanCTCP}, {"ZNCc::CModules_OnPrivAction", _wrap_CModules_OnPrivAction}, {"ZNCc::CModules_OnChanAction", _wrap_CModules_OnChanAction}, {"ZNCc::CModules_OnPrivMsg", _wrap_CModules_OnPrivMsg}, {"ZNCc::CModules_OnChanMsg", _wrap_CModules_OnChanMsg}, {"ZNCc::CModules_OnPrivNotice", _wrap_CModules_OnPrivNotice}, {"ZNCc::CModules_OnChanNotice", _wrap_CModules_OnChanNotice}, {"ZNCc::CModules_OnTopic", _wrap_CModules_OnTopic}, {"ZNCc::CModules_OnTimerAutoJoin", _wrap_CModules_OnTimerAutoJoin}, {"ZNCc::CModules_OnAddNetwork", _wrap_CModules_OnAddNetwork}, {"ZNCc::CModules_OnDeleteNetwork", _wrap_CModules_OnDeleteNetwork}, {"ZNCc::CModules_OnSendToClient", _wrap_CModules_OnSendToClient}, {"ZNCc::CModules_OnSendToIRC", _wrap_CModules_OnSendToIRC}, {"ZNCc::CModules_OnServerCapAvailable", _wrap_CModules_OnServerCapAvailable}, {"ZNCc::CModules_OnServerCapResult", _wrap_CModules_OnServerCapResult}, {"ZNCc::CModules_FindModule", _wrap_CModules_FindModule}, {"ZNCc::CModules_LoadModule", _wrap_CModules_LoadModule}, {"ZNCc::CModules_UnloadModule", _wrap_CModules_UnloadModule}, {"ZNCc::CModules_ReloadModule", _wrap_CModules_ReloadModule}, {"ZNCc::CModules_GetModInfo", _wrap_CModules_GetModInfo}, {"ZNCc::CModules_GetModPathInfo", _wrap_CModules_GetModPathInfo}, {"ZNCc::CModules_GetAvailableMods", _wrap_CModules_GetAvailableMods}, {"ZNCc::CModules_GetDefaultMods", _wrap_CModules_GetDefaultMods}, {"ZNCc::CModules_FindModPath", _wrap_CModules_FindModPath}, {"ZNCc::CModules_GetModDirs", _wrap_CModules_GetModDirs}, {"ZNCc::CModules_OnAddUser", _wrap_CModules_OnAddUser}, {"ZNCc::CModules_OnDeleteUser", _wrap_CModules_OnDeleteUser}, {"ZNCc::CModules_OnClientConnect", _wrap_CModules_OnClientConnect}, {"ZNCc::CModules_OnLoginAttempt", _wrap_CModules_OnLoginAttempt}, {"ZNCc::CModules_OnFailedLogin", _wrap_CModules_OnFailedLogin}, {"ZNCc::CModules_OnUnknownUserRaw", _wrap_CModules_OnUnknownUserRaw}, {"ZNCc::CModules_OnClientCapLs", _wrap_CModules_OnClientCapLs}, {"ZNCc::CModules_IsClientCapSupported", _wrap_CModules_IsClientCapSupported}, {"ZNCc::CModules_OnClientCapRequest", _wrap_CModules_OnClientCapRequest}, {"ZNCc::CModules_OnModuleLoading", _wrap_CModules_OnModuleLoading}, {"ZNCc::CModules_OnModuleUnloading", _wrap_CModules_OnModuleUnloading}, {"ZNCc::CModules_OnGetModInfo", _wrap_CModules_OnGetModInfo}, {"ZNCc::CModules_OnGetAvailableMods", _wrap_CModules_OnGetAvailableMods}, {"ZNCc::CModules_push_back", _wrap_CModules_push_back}, {"ZNCc::CModules_removeModule", _wrap_CModules_removeModule}, {"ZNCc::new_CNick", _wrap_new_CNick}, {"ZNCc::delete_CNick", _wrap_delete_CNick}, {"ZNCc::CNick_Reset", _wrap_CNick_Reset}, {"ZNCc::CNick_Parse", _wrap_CNick_Parse}, {"ZNCc::CNick_GetHostMask", _wrap_CNick_GetHostMask}, {"ZNCc::CNick_GetCommonChans", _wrap_CNick_GetCommonChans}, {"ZNCc::CNick_NickEquals", _wrap_CNick_NickEquals}, {"ZNCc::CNick_SetNetwork", _wrap_CNick_SetNetwork}, {"ZNCc::CNick_SetNick", _wrap_CNick_SetNick}, {"ZNCc::CNick_SetIdent", _wrap_CNick_SetIdent}, {"ZNCc::CNick_SetHost", _wrap_CNick_SetHost}, {"ZNCc::CNick_AddPerm", _wrap_CNick_AddPerm}, {"ZNCc::CNick_RemPerm", _wrap_CNick_RemPerm}, {"ZNCc::CNick_GetPermStr", _wrap_CNick_GetPermStr}, {"ZNCc::CNick_GetPermChar", _wrap_CNick_GetPermChar}, {"ZNCc::CNick_HasPerm", _wrap_CNick_HasPerm}, {"ZNCc::CNick_GetNick", _wrap_CNick_GetNick}, {"ZNCc::CNick_GetIdent", _wrap_CNick_GetIdent}, {"ZNCc::CNick_GetHost", _wrap_CNick_GetHost}, {"ZNCc::CNick_GetNickMask", _wrap_CNick_GetNickMask}, {"ZNCc::CNick_Clone", _wrap_CNick_Clone}, {"ZNCc::new_CChan", _wrap_new_CChan}, {"ZNCc::delete_CChan", _wrap_delete_CChan}, {"ZNCc::CChan_Reset", _wrap_CChan_Reset}, {"ZNCc::CChan_ToConfig", _wrap_CChan_ToConfig}, {"ZNCc::CChan_Clone", _wrap_CChan_Clone}, {"ZNCc::CChan_Cycle", _wrap_CChan_Cycle}, {"ZNCc::CChan_JoinUser", _wrap_CChan_JoinUser}, {"ZNCc::CChan_AttachUser", _wrap_CChan_AttachUser}, {"ZNCc::CChan_DetachUser", _wrap_CChan_DetachUser}, {"ZNCc::CChan_OnWho", _wrap_CChan_OnWho}, {"ZNCc::CChan_SetModes", _wrap_CChan_SetModes}, {"ZNCc::CChan_ModeChange", _wrap_CChan_ModeChange}, {"ZNCc::CChan_AddMode", _wrap_CChan_AddMode}, {"ZNCc::CChan_RemMode", _wrap_CChan_RemMode}, {"ZNCc::CChan_GetModeString", _wrap_CChan_GetModeString}, {"ZNCc::CChan_GetModeForNames", _wrap_CChan_GetModeForNames}, {"ZNCc::CChan_ClearNicks", _wrap_CChan_ClearNicks}, {"ZNCc::CChan_FindNick", _wrap_CChan_FindNick}, {"ZNCc::CChan_AddNicks", _wrap_CChan_AddNicks}, {"ZNCc::CChan_AddNick", _wrap_CChan_AddNick}, {"ZNCc::CChan_RemNick", _wrap_CChan_RemNick}, {"ZNCc::CChan_ChangeNick", _wrap_CChan_ChangeNick}, {"ZNCc::CChan_GetBuffer", _wrap_CChan_GetBuffer}, {"ZNCc::CChan_GetBufferCount", _wrap_CChan_GetBufferCount}, {"ZNCc::CChan_SetBufferCount", _wrap_CChan_SetBufferCount}, {"ZNCc::CChan_InheritBufferCount", _wrap_CChan_InheritBufferCount}, {"ZNCc::CChan_AddBuffer", _wrap_CChan_AddBuffer}, {"ZNCc::CChan_ClearBuffer", _wrap_CChan_ClearBuffer}, {"ZNCc::CChan_SendBuffer", _wrap_CChan_SendBuffer}, {"ZNCc::CChan_GetPermStr", _wrap_CChan_GetPermStr}, {"ZNCc::CChan_HasPerm", _wrap_CChan_HasPerm}, {"ZNCc::CChan_AddPerm", _wrap_CChan_AddPerm}, {"ZNCc::CChan_RemPerm", _wrap_CChan_RemPerm}, {"ZNCc::CChan_SetModeKnown", _wrap_CChan_SetModeKnown}, {"ZNCc::CChan_SetIsOn", _wrap_CChan_SetIsOn}, {"ZNCc::CChan_SetKey", _wrap_CChan_SetKey}, {"ZNCc::CChan_SetTopic", _wrap_CChan_SetTopic}, {"ZNCc::CChan_SetTopicOwner", _wrap_CChan_SetTopicOwner}, {"ZNCc::CChan_SetTopicDate", _wrap_CChan_SetTopicDate}, {"ZNCc::CChan_SetDefaultModes", _wrap_CChan_SetDefaultModes}, {"ZNCc::CChan_SetAutoClearChanBuffer", _wrap_CChan_SetAutoClearChanBuffer}, {"ZNCc::CChan_InheritAutoClearChanBuffer", _wrap_CChan_InheritAutoClearChanBuffer}, {"ZNCc::CChan_SetDetached", _wrap_CChan_SetDetached}, {"ZNCc::CChan_SetInConfig", _wrap_CChan_SetInConfig}, {"ZNCc::CChan_SetCreationDate", _wrap_CChan_SetCreationDate}, {"ZNCc::CChan_Disable", _wrap_CChan_Disable}, {"ZNCc::CChan_Enable", _wrap_CChan_Enable}, {"ZNCc::CChan_IncJoinTries", _wrap_CChan_IncJoinTries}, {"ZNCc::CChan_ResetJoinTries", _wrap_CChan_ResetJoinTries}, {"ZNCc::CChan_IsModeKnown", _wrap_CChan_IsModeKnown}, {"ZNCc::CChan_HasMode", _wrap_CChan_HasMode}, {"ZNCc::CChan_GetOptions", _wrap_CChan_GetOptions}, {"ZNCc::CChan_GetModeArg", _wrap_CChan_GetModeArg}, {"ZNCc::CChan_GetPermCounts", _wrap_CChan_GetPermCounts}, {"ZNCc::CChan_IsOn", _wrap_CChan_IsOn}, {"ZNCc::CChan_GetName", _wrap_CChan_GetName}, {"ZNCc::CChan_GetModes", _wrap_CChan_GetModes}, {"ZNCc::CChan_GetKey", _wrap_CChan_GetKey}, {"ZNCc::CChan_GetTopic", _wrap_CChan_GetTopic}, {"ZNCc::CChan_GetTopicOwner", _wrap_CChan_GetTopicOwner}, {"ZNCc::CChan_GetTopicDate", _wrap_CChan_GetTopicDate}, {"ZNCc::CChan_GetDefaultModes", _wrap_CChan_GetDefaultModes}, {"ZNCc::CChan_GetNicks", _wrap_CChan_GetNicks}, {"ZNCc::CChan_GetNickCount", _wrap_CChan_GetNickCount}, {"ZNCc::CChan_AutoClearChanBuffer", _wrap_CChan_AutoClearChanBuffer}, {"ZNCc::CChan_IsDetached", _wrap_CChan_IsDetached}, {"ZNCc::CChan_InConfig", _wrap_CChan_InConfig}, {"ZNCc::CChan_GetCreationDate", _wrap_CChan_GetCreationDate}, {"ZNCc::CChan_IsDisabled", _wrap_CChan_IsDisabled}, {"ZNCc::CChan_GetJoinTries", _wrap_CChan_GetJoinTries}, {"ZNCc::CChan_HasBufferCountSet", _wrap_CChan_HasBufferCountSet}, {"ZNCc::CChan_HasAutoClearChanBufferSet", _wrap_CChan_HasAutoClearChanBufferSet}, {"ZNCc::CChan_GetNicks_", _wrap_CChan_GetNicks_}, {"ZNCc::new_CUser", _wrap_new_CUser}, {"ZNCc::delete_CUser", _wrap_delete_CUser}, {"ZNCc::CUser_ParseConfig", _wrap_CUser_ParseConfig}, {"ZNCc::CUser_SaltedHash", _wrap_CUser_SaltedHash}, {"ZNCc::CUser_ToConfig", _wrap_CUser_ToConfig}, {"ZNCc::CUser_CheckPass", _wrap_CUser_CheckPass}, {"ZNCc::CUser_AddAllowedHost", _wrap_CUser_AddAllowedHost}, {"ZNCc::CUser_IsHostAllowed", _wrap_CUser_IsHostAllowed}, {"ZNCc::CUser_IsValid", _wrap_CUser_IsValid}, {"ZNCc::CUser_IsValidUserName", _wrap_CUser_IsValidUserName}, {"ZNCc::CUser_MakeCleanUserName", _wrap_CUser_MakeCleanUserName}, {"ZNCc::CUser_GetModules", _wrap_CUser_GetModules}, {"ZNCc::CUser_DeleteNetwork", _wrap_CUser_DeleteNetwork}, {"ZNCc::CUser_AddNetwork", _wrap_CUser_AddNetwork}, {"ZNCc::CUser_RemoveNetwork", _wrap_CUser_RemoveNetwork}, {"ZNCc::CUser_FindNetwork", _wrap_CUser_FindNetwork}, {"ZNCc::CUser_GetNetworks", _wrap_CUser_GetNetworks}, {"ZNCc::CUser_HasSpaceForNewNetwork", _wrap_CUser_HasSpaceForNewNetwork}, {"ZNCc::CUser_PutUser", _wrap_CUser_PutUser}, {"ZNCc::CUser_PutAllUser", _wrap_CUser_PutAllUser}, {"ZNCc::CUser_PutStatus", _wrap_CUser_PutStatus}, {"ZNCc::CUser_PutStatusNotice", _wrap_CUser_PutStatusNotice}, {"ZNCc::CUser_PutModule", _wrap_CUser_PutModule}, {"ZNCc::CUser_PutModNotice", _wrap_CUser_PutModNotice}, {"ZNCc::CUser_IsUserAttached", _wrap_CUser_IsUserAttached}, {"ZNCc::CUser_UserConnected", _wrap_CUser_UserConnected}, {"ZNCc::CUser_UserDisconnected", _wrap_CUser_UserDisconnected}, {"ZNCc::CUser_GetLocalDCCIP", _wrap_CUser_GetLocalDCCIP}, {"ZNCc::CUser_ExpandString", _wrap_CUser_ExpandString}, {"ZNCc::CUser_AddTimestamp", _wrap_CUser_AddTimestamp}, {"ZNCc::CUser_CloneNetworks", _wrap_CUser_CloneNetworks}, {"ZNCc::CUser_Clone", _wrap_CUser_Clone}, {"ZNCc::CUser_BounceAllClients", _wrap_CUser_BounceAllClients}, {"ZNCc::CUser_AddBytesRead", _wrap_CUser_AddBytesRead}, {"ZNCc::CUser_AddBytesWritten", _wrap_CUser_AddBytesWritten}, {"ZNCc::CUser_SetNick", _wrap_CUser_SetNick}, {"ZNCc::CUser_SetAltNick", _wrap_CUser_SetAltNick}, {"ZNCc::CUser_SetIdent", _wrap_CUser_SetIdent}, {"ZNCc::CUser_SetRealName", _wrap_CUser_SetRealName}, {"ZNCc::CUser_SetBindHost", _wrap_CUser_SetBindHost}, {"ZNCc::CUser_SetDCCBindHost", _wrap_CUser_SetDCCBindHost}, {"ZNCc::CUser_SetPass", _wrap_CUser_SetPass}, {"ZNCc::CUser_SetMultiClients", _wrap_CUser_SetMultiClients}, {"ZNCc::CUser_SetDenyLoadMod", _wrap_CUser_SetDenyLoadMod}, {"ZNCc::CUser_SetAdmin", _wrap_CUser_SetAdmin}, {"ZNCc::CUser_SetDenySetBindHost", _wrap_CUser_SetDenySetBindHost}, {"ZNCc::CUser_SetStatusPrefix", _wrap_CUser_SetStatusPrefix}, {"ZNCc::CUser_SetDefaultChanModes", _wrap_CUser_SetDefaultChanModes}, {"ZNCc::CUser_SetClientEncoding", _wrap_CUser_SetClientEncoding}, {"ZNCc::CUser_SetQuitMsg", _wrap_CUser_SetQuitMsg}, {"ZNCc::CUser_AddCTCPReply", _wrap_CUser_AddCTCPReply}, {"ZNCc::CUser_DelCTCPReply", _wrap_CUser_DelCTCPReply}, {"ZNCc::CUser_SetBufferCount", _wrap_CUser_SetBufferCount}, {"ZNCc::CUser_SetAutoClearChanBuffer", _wrap_CUser_SetAutoClearChanBuffer}, {"ZNCc::CUser_SetAutoClearQueryBuffer", _wrap_CUser_SetAutoClearQueryBuffer}, {"ZNCc::CUser_SetBeingDeleted", _wrap_CUser_SetBeingDeleted}, {"ZNCc::CUser_SetTimestampFormat", _wrap_CUser_SetTimestampFormat}, {"ZNCc::CUser_SetTimestampAppend", _wrap_CUser_SetTimestampAppend}, {"ZNCc::CUser_SetTimestampPrepend", _wrap_CUser_SetTimestampPrepend}, {"ZNCc::CUser_SetTimezone", _wrap_CUser_SetTimezone}, {"ZNCc::CUser_SetJoinTries", _wrap_CUser_SetJoinTries}, {"ZNCc::CUser_SetMaxJoins", _wrap_CUser_SetMaxJoins}, {"ZNCc::CUser_SetSkinName", _wrap_CUser_SetSkinName}, {"ZNCc::CUser_SetMaxNetworks", _wrap_CUser_SetMaxNetworks}, {"ZNCc::CUser_SetMaxQueryBuffers", _wrap_CUser_SetMaxQueryBuffers}, {"ZNCc::CUser_GetUserClients", _wrap_CUser_GetUserClients}, {"ZNCc::CUser_GetAllClients", _wrap_CUser_GetAllClients}, {"ZNCc::CUser_GetUserName", _wrap_CUser_GetUserName}, {"ZNCc::CUser_GetCleanUserName", _wrap_CUser_GetCleanUserName}, {"ZNCc::CUser_GetNick", _wrap_CUser_GetNick}, {"ZNCc::CUser_GetAltNick", _wrap_CUser_GetAltNick}, {"ZNCc::CUser_GetIdent", _wrap_CUser_GetIdent}, {"ZNCc::CUser_GetRealName", _wrap_CUser_GetRealName}, {"ZNCc::CUser_GetBindHost", _wrap_CUser_GetBindHost}, {"ZNCc::CUser_GetDCCBindHost", _wrap_CUser_GetDCCBindHost}, {"ZNCc::CUser_GetPass", _wrap_CUser_GetPass}, {"ZNCc::CUser_GetPassHashType", _wrap_CUser_GetPassHashType}, {"ZNCc::CUser_GetPassSalt", _wrap_CUser_GetPassSalt}, {"ZNCc::CUser_GetAllowedHosts", _wrap_CUser_GetAllowedHosts}, {"ZNCc::CUser_GetTimestampFormat", _wrap_CUser_GetTimestampFormat}, {"ZNCc::CUser_GetClientEncoding", _wrap_CUser_GetClientEncoding}, {"ZNCc::CUser_GetTimestampAppend", _wrap_CUser_GetTimestampAppend}, {"ZNCc::CUser_GetTimestampPrepend", _wrap_CUser_GetTimestampPrepend}, {"ZNCc::CUser_GetUserPath", _wrap_CUser_GetUserPath}, {"ZNCc::CUser_DenyLoadMod", _wrap_CUser_DenyLoadMod}, {"ZNCc::CUser_IsAdmin", _wrap_CUser_IsAdmin}, {"ZNCc::CUser_DenySetBindHost", _wrap_CUser_DenySetBindHost}, {"ZNCc::CUser_MultiClients", _wrap_CUser_MultiClients}, {"ZNCc::CUser_GetStatusPrefix", _wrap_CUser_GetStatusPrefix}, {"ZNCc::CUser_GetDefaultChanModes", _wrap_CUser_GetDefaultChanModes}, {"ZNCc::CUser_GetQuitMsg", _wrap_CUser_GetQuitMsg}, {"ZNCc::CUser_GetCTCPReplies", _wrap_CUser_GetCTCPReplies}, {"ZNCc::CUser_GetBufferCount", _wrap_CUser_GetBufferCount}, {"ZNCc::CUser_AutoClearChanBuffer", _wrap_CUser_AutoClearChanBuffer}, {"ZNCc::CUser_AutoClearQueryBuffer", _wrap_CUser_AutoClearQueryBuffer}, {"ZNCc::CUser_IsBeingDeleted", _wrap_CUser_IsBeingDeleted}, {"ZNCc::CUser_GetTimezone", _wrap_CUser_GetTimezone}, {"ZNCc::CUser_BytesRead", _wrap_CUser_BytesRead}, {"ZNCc::CUser_BytesWritten", _wrap_CUser_BytesWritten}, {"ZNCc::CUser_JoinTries", _wrap_CUser_JoinTries}, {"ZNCc::CUser_MaxJoins", _wrap_CUser_MaxJoins}, {"ZNCc::CUser_GetSkinName", _wrap_CUser_GetSkinName}, {"ZNCc::CUser_MaxNetworks", _wrap_CUser_MaxNetworks}, {"ZNCc::CUser_MaxQueryBuffers", _wrap_CUser_MaxQueryBuffers}, {"ZNCc::CUser_GetNetworks_", _wrap_CUser_GetNetworks_}, {"ZNCc::CIRCNetwork_IsValidNetwork", _wrap_CIRCNetwork_IsValidNetwork}, {"ZNCc::new_CIRCNetwork", _wrap_new_CIRCNetwork}, {"ZNCc::delete_CIRCNetwork", _wrap_delete_CIRCNetwork}, {"ZNCc::CIRCNetwork_Clone", _wrap_CIRCNetwork_Clone}, {"ZNCc::CIRCNetwork_GetNetworkPath", _wrap_CIRCNetwork_GetNetworkPath}, {"ZNCc::CIRCNetwork_DelServers", _wrap_CIRCNetwork_DelServers}, {"ZNCc::CIRCNetwork_ParseConfig", _wrap_CIRCNetwork_ParseConfig}, {"ZNCc::CIRCNetwork_ToConfig", _wrap_CIRCNetwork_ToConfig}, {"ZNCc::CIRCNetwork_BounceAllClients", _wrap_CIRCNetwork_BounceAllClients}, {"ZNCc::CIRCNetwork_IsUserAttached", _wrap_CIRCNetwork_IsUserAttached}, {"ZNCc::CIRCNetwork_IsUserOnline", _wrap_CIRCNetwork_IsUserOnline}, {"ZNCc::CIRCNetwork_ClientConnected", _wrap_CIRCNetwork_ClientConnected}, {"ZNCc::CIRCNetwork_ClientDisconnected", _wrap_CIRCNetwork_ClientDisconnected}, {"ZNCc::CIRCNetwork_GetUser", _wrap_CIRCNetwork_GetUser}, {"ZNCc::CIRCNetwork_GetName", _wrap_CIRCNetwork_GetName}, {"ZNCc::CIRCNetwork_IsNetworkAttached", _wrap_CIRCNetwork_IsNetworkAttached}, {"ZNCc::CIRCNetwork_GetClients", _wrap_CIRCNetwork_GetClients}, {"ZNCc::CIRCNetwork_FindClients", _wrap_CIRCNetwork_FindClients}, {"ZNCc::CIRCNetwork_SetUser", _wrap_CIRCNetwork_SetUser}, {"ZNCc::CIRCNetwork_SetName", _wrap_CIRCNetwork_SetName}, {"ZNCc::CIRCNetwork_GetModules", _wrap_CIRCNetwork_GetModules}, {"ZNCc::CIRCNetwork_PutUser", _wrap_CIRCNetwork_PutUser}, {"ZNCc::CIRCNetwork_PutStatus", _wrap_CIRCNetwork_PutStatus}, {"ZNCc::CIRCNetwork_PutModule", _wrap_CIRCNetwork_PutModule}, {"ZNCc::CIRCNetwork_GetChans", _wrap_CIRCNetwork_GetChans}, {"ZNCc::CIRCNetwork_FindChan", _wrap_CIRCNetwork_FindChan}, {"ZNCc::CIRCNetwork_FindChans", _wrap_CIRCNetwork_FindChans}, {"ZNCc::CIRCNetwork_AddChan", _wrap_CIRCNetwork_AddChan}, {"ZNCc::CIRCNetwork_DelChan", _wrap_CIRCNetwork_DelChan}, {"ZNCc::CIRCNetwork_JoinChans", _wrap_CIRCNetwork_JoinChans}, {"ZNCc::CIRCNetwork_GetQueries", _wrap_CIRCNetwork_GetQueries}, {"ZNCc::CIRCNetwork_FindQuery", _wrap_CIRCNetwork_FindQuery}, {"ZNCc::CIRCNetwork_FindQueries", _wrap_CIRCNetwork_FindQueries}, {"ZNCc::CIRCNetwork_AddQuery", _wrap_CIRCNetwork_AddQuery}, {"ZNCc::CIRCNetwork_DelQuery", _wrap_CIRCNetwork_DelQuery}, {"ZNCc::CIRCNetwork_GetChanPrefixes", _wrap_CIRCNetwork_GetChanPrefixes}, {"ZNCc::CIRCNetwork_SetChanPrefixes", _wrap_CIRCNetwork_SetChanPrefixes}, {"ZNCc::CIRCNetwork_IsChan", _wrap_CIRCNetwork_IsChan}, {"ZNCc::CIRCNetwork_GetServers", _wrap_CIRCNetwork_GetServers}, {"ZNCc::CIRCNetwork_HasServers", _wrap_CIRCNetwork_HasServers}, {"ZNCc::CIRCNetwork_FindServer", _wrap_CIRCNetwork_FindServer}, {"ZNCc::CIRCNetwork_DelServer", _wrap_CIRCNetwork_DelServer}, {"ZNCc::CIRCNetwork_AddServer", _wrap_CIRCNetwork_AddServer}, {"ZNCc::CIRCNetwork_GetNextServer", _wrap_CIRCNetwork_GetNextServer}, {"ZNCc::CIRCNetwork_GetCurrentServer", _wrap_CIRCNetwork_GetCurrentServer}, {"ZNCc::CIRCNetwork_SetIRCServer", _wrap_CIRCNetwork_SetIRCServer}, {"ZNCc::CIRCNetwork_SetNextServer", _wrap_CIRCNetwork_SetNextServer}, {"ZNCc::CIRCNetwork_IsLastServer", _wrap_CIRCNetwork_IsLastServer}, {"ZNCc::CIRCNetwork_GetTrustedFingerprints", _wrap_CIRCNetwork_GetTrustedFingerprints}, {"ZNCc::CIRCNetwork_AddTrustedFingerprint", _wrap_CIRCNetwork_AddTrustedFingerprint}, {"ZNCc::CIRCNetwork_DelTrustedFingerprint", _wrap_CIRCNetwork_DelTrustedFingerprint}, {"ZNCc::CIRCNetwork_SetIRCConnectEnabled", _wrap_CIRCNetwork_SetIRCConnectEnabled}, {"ZNCc::CIRCNetwork_GetIRCConnectEnabled", _wrap_CIRCNetwork_GetIRCConnectEnabled}, {"ZNCc::CIRCNetwork_GetIRCSock", _wrap_CIRCNetwork_GetIRCSock}, {"ZNCc::CIRCNetwork_GetIRCServer", _wrap_CIRCNetwork_GetIRCServer}, {"ZNCc::CIRCNetwork_GetIRCNick", _wrap_CIRCNetwork_GetIRCNick}, {"ZNCc::CIRCNetwork_SetIRCNick", _wrap_CIRCNetwork_SetIRCNick}, {"ZNCc::CIRCNetwork_GetCurNick", _wrap_CIRCNetwork_GetCurNick}, {"ZNCc::CIRCNetwork_IsIRCAway", _wrap_CIRCNetwork_IsIRCAway}, {"ZNCc::CIRCNetwork_SetIRCAway", _wrap_CIRCNetwork_SetIRCAway}, {"ZNCc::CIRCNetwork_Connect", _wrap_CIRCNetwork_Connect}, {"ZNCc::CIRCNetwork_IsIRCConnected", _wrap_CIRCNetwork_IsIRCConnected}, {"ZNCc::CIRCNetwork_SetIRCSocket", _wrap_CIRCNetwork_SetIRCSocket}, {"ZNCc::CIRCNetwork_IRCConnected", _wrap_CIRCNetwork_IRCConnected}, {"ZNCc::CIRCNetwork_IRCDisconnected", _wrap_CIRCNetwork_IRCDisconnected}, {"ZNCc::CIRCNetwork_CheckIRCConnect", _wrap_CIRCNetwork_CheckIRCConnect}, {"ZNCc::CIRCNetwork_PutIRC", _wrap_CIRCNetwork_PutIRC}, {"ZNCc::CIRCNetwork_AddRawBuffer", _wrap_CIRCNetwork_AddRawBuffer}, {"ZNCc::CIRCNetwork_UpdateRawBuffer", _wrap_CIRCNetwork_UpdateRawBuffer}, {"ZNCc::CIRCNetwork_UpdateExactRawBuffer", _wrap_CIRCNetwork_UpdateExactRawBuffer}, {"ZNCc::CIRCNetwork_ClearRawBuffer", _wrap_CIRCNetwork_ClearRawBuffer}, {"ZNCc::CIRCNetwork_AddMotdBuffer", _wrap_CIRCNetwork_AddMotdBuffer}, {"ZNCc::CIRCNetwork_UpdateMotdBuffer", _wrap_CIRCNetwork_UpdateMotdBuffer}, {"ZNCc::CIRCNetwork_ClearMotdBuffer", _wrap_CIRCNetwork_ClearMotdBuffer}, {"ZNCc::CIRCNetwork_AddNoticeBuffer", _wrap_CIRCNetwork_AddNoticeBuffer}, {"ZNCc::CIRCNetwork_UpdateNoticeBuffer", _wrap_CIRCNetwork_UpdateNoticeBuffer}, {"ZNCc::CIRCNetwork_ClearNoticeBuffer", _wrap_CIRCNetwork_ClearNoticeBuffer}, {"ZNCc::CIRCNetwork_GetNick", _wrap_CIRCNetwork_GetNick}, {"ZNCc::CIRCNetwork_GetAltNick", _wrap_CIRCNetwork_GetAltNick}, {"ZNCc::CIRCNetwork_GetIdent", _wrap_CIRCNetwork_GetIdent}, {"ZNCc::CIRCNetwork_GetRealName", _wrap_CIRCNetwork_GetRealName}, {"ZNCc::CIRCNetwork_GetBindHost", _wrap_CIRCNetwork_GetBindHost}, {"ZNCc::CIRCNetwork_GetEncoding", _wrap_CIRCNetwork_GetEncoding}, {"ZNCc::CIRCNetwork_GetQuitMsg", _wrap_CIRCNetwork_GetQuitMsg}, {"ZNCc::CIRCNetwork_SetNick", _wrap_CIRCNetwork_SetNick}, {"ZNCc::CIRCNetwork_SetAltNick", _wrap_CIRCNetwork_SetAltNick}, {"ZNCc::CIRCNetwork_SetIdent", _wrap_CIRCNetwork_SetIdent}, {"ZNCc::CIRCNetwork_SetRealName", _wrap_CIRCNetwork_SetRealName}, {"ZNCc::CIRCNetwork_SetBindHost", _wrap_CIRCNetwork_SetBindHost}, {"ZNCc::CIRCNetwork_SetEncoding", _wrap_CIRCNetwork_SetEncoding}, {"ZNCc::CIRCNetwork_SetQuitMsg", _wrap_CIRCNetwork_SetQuitMsg}, {"ZNCc::CIRCNetwork_GetFloodRate", _wrap_CIRCNetwork_GetFloodRate}, {"ZNCc::CIRCNetwork_GetFloodBurst", _wrap_CIRCNetwork_GetFloodBurst}, {"ZNCc::CIRCNetwork_SetFloodRate", _wrap_CIRCNetwork_SetFloodRate}, {"ZNCc::CIRCNetwork_SetFloodBurst", _wrap_CIRCNetwork_SetFloodBurst}, {"ZNCc::CIRCNetwork_GetJoinDelay", _wrap_CIRCNetwork_GetJoinDelay}, {"ZNCc::CIRCNetwork_SetJoinDelay", _wrap_CIRCNetwork_SetJoinDelay}, {"ZNCc::CIRCNetwork_ExpandString", _wrap_CIRCNetwork_ExpandString}, {"ZNCc::CIRCNetwork_GetChans_", _wrap_CIRCNetwork_GetChans_}, {"ZNCc::delete_CAuthBase", _wrap_delete_CAuthBase}, {"ZNCc::CAuthBase_SetLoginInfo", _wrap_CAuthBase_SetLoginInfo}, {"ZNCc::CAuthBase_AcceptLogin", _wrap_CAuthBase_AcceptLogin}, {"ZNCc::CAuthBase_RefuseLogin", _wrap_CAuthBase_RefuseLogin}, {"ZNCc::CAuthBase_GetUsername", _wrap_CAuthBase_GetUsername}, {"ZNCc::CAuthBase_GetPassword", _wrap_CAuthBase_GetPassword}, {"ZNCc::CAuthBase_GetSocket", _wrap_CAuthBase_GetSocket}, {"ZNCc::CAuthBase_GetRemoteIP", _wrap_CAuthBase_GetRemoteIP}, {"ZNCc::CAuthBase_Invalidate", _wrap_CAuthBase_Invalidate}, {"ZNCc::new_CClientAuth", _wrap_new_CClientAuth}, {"ZNCc::delete_CClientAuth", _wrap_delete_CClientAuth}, {"ZNCc::CClientAuth_Invalidate", _wrap_CClientAuth_Invalidate}, {"ZNCc::CClientAuth_AcceptedLogin", _wrap_CClientAuth_AcceptedLogin}, {"ZNCc::CClientAuth_RefusedLogin", _wrap_CClientAuth_RefusedLogin}, {"ZNCc::new_CClient", _wrap_new_CClient}, {"ZNCc::delete_CClient", _wrap_delete_CClient}, {"ZNCc::CClient_SendRequiredPasswordNotice", _wrap_CClient_SendRequiredPasswordNotice}, {"ZNCc::CClient_AcceptLogin", _wrap_CClient_AcceptLogin}, {"ZNCc::CClient_RefuseLogin", _wrap_CClient_RefuseLogin}, {"ZNCc::CClient_GetNick", _wrap_CClient_GetNick}, {"ZNCc::CClient_GetNickMask", _wrap_CClient_GetNickMask}, {"ZNCc::CClient_GetIdentifier", _wrap_CClient_GetIdentifier}, {"ZNCc::CClient_HasNamesx", _wrap_CClient_HasNamesx}, {"ZNCc::CClient_HasUHNames", _wrap_CClient_HasUHNames}, {"ZNCc::CClient_IsAway", _wrap_CClient_IsAway}, {"ZNCc::CClient_HasServerTime", _wrap_CClient_HasServerTime}, {"ZNCc::CClient_HasBatch", _wrap_CClient_HasBatch}, {"ZNCc::CClient_HasSelfMessage", _wrap_CClient_HasSelfMessage}, {"ZNCc::CClient_IsValidIdentifier", _wrap_CClient_IsValidIdentifier}, {"ZNCc::CClient_UserCommand", _wrap_CClient_UserCommand}, {"ZNCc::CClient_UserPortCommand", _wrap_CClient_UserPortCommand}, {"ZNCc::CClient_StatusCTCP", _wrap_CClient_StatusCTCP}, {"ZNCc::CClient_BouncedOff", _wrap_CClient_BouncedOff}, {"ZNCc::CClient_IsAttached", _wrap_CClient_IsAttached}, {"ZNCc::CClient_IsPlaybackActive", _wrap_CClient_IsPlaybackActive}, {"ZNCc::CClient_SetPlaybackActive", _wrap_CClient_SetPlaybackActive}, {"ZNCc::CClient_PutIRC", _wrap_CClient_PutIRC}, {"ZNCc::CClient_PutClient", _wrap_CClient_PutClient}, {"ZNCc::CClient_PutStatus", _wrap_CClient_PutStatus}, {"ZNCc::CClient_PutStatusNotice", _wrap_CClient_PutStatusNotice}, {"ZNCc::CClient_PutModule", _wrap_CClient_PutModule}, {"ZNCc::CClient_PutModNotice", _wrap_CClient_PutModNotice}, {"ZNCc::CClient_IsCapEnabled", _wrap_CClient_IsCapEnabled}, {"ZNCc::CClient_ReadLine", _wrap_CClient_ReadLine}, {"ZNCc::CClient_SendMotd", _wrap_CClient_SendMotd}, {"ZNCc::CClient_HelpUser", _wrap_CClient_HelpUser}, {"ZNCc::CClient_AuthUser", _wrap_CClient_AuthUser}, {"ZNCc::CClient_Connected", _wrap_CClient_Connected}, {"ZNCc::CClient_Timeout", _wrap_CClient_Timeout}, {"ZNCc::CClient_Disconnected", _wrap_CClient_Disconnected}, {"ZNCc::CClient_ConnectionRefused", _wrap_CClient_ConnectionRefused}, {"ZNCc::CClient_ReachedMaxBuffer", _wrap_CClient_ReachedMaxBuffer}, {"ZNCc::CClient_SetNick", _wrap_CClient_SetNick}, {"ZNCc::CClient_SetAway", _wrap_CClient_SetAway}, {"ZNCc::CClient_GetUser", _wrap_CClient_GetUser}, {"ZNCc::CClient_SetNetwork", _wrap_CClient_SetNetwork}, {"ZNCc::CClient_GetNetwork", _wrap_CClient_GetNetwork}, {"ZNCc::CClient_GetClients", _wrap_CClient_GetClients}, {"ZNCc::CClient_GetIRCSock", _wrap_CClient_GetIRCSock}, {"ZNCc::CClient_GetFullName", _wrap_CClient_GetFullName}, {"ZNCc::new_CIRCSock", _wrap_new_CIRCSock}, {"ZNCc::delete_CIRCSock", _wrap_delete_CIRCSock}, {"ZNCc::CIRCSock_OnCTCPReply", _wrap_CIRCSock_OnCTCPReply}, {"ZNCc::CIRCSock_OnPrivCTCP", _wrap_CIRCSock_OnPrivCTCP}, {"ZNCc::CIRCSock_OnChanCTCP", _wrap_CIRCSock_OnChanCTCP}, {"ZNCc::CIRCSock_OnGeneralCTCP", _wrap_CIRCSock_OnGeneralCTCP}, {"ZNCc::CIRCSock_OnPrivMsg", _wrap_CIRCSock_OnPrivMsg}, {"ZNCc::CIRCSock_OnChanMsg", _wrap_CIRCSock_OnChanMsg}, {"ZNCc::CIRCSock_OnPrivNotice", _wrap_CIRCSock_OnPrivNotice}, {"ZNCc::CIRCSock_OnChanNotice", _wrap_CIRCSock_OnChanNotice}, {"ZNCc::CIRCSock_OnServerCapAvailable", _wrap_CIRCSock_OnServerCapAvailable}, {"ZNCc::CIRCSock_ReadLine", _wrap_CIRCSock_ReadLine}, {"ZNCc::CIRCSock_Connected", _wrap_CIRCSock_Connected}, {"ZNCc::CIRCSock_Disconnected", _wrap_CIRCSock_Disconnected}, {"ZNCc::CIRCSock_ConnectionRefused", _wrap_CIRCSock_ConnectionRefused}, {"ZNCc::CIRCSock_SockError", _wrap_CIRCSock_SockError}, {"ZNCc::CIRCSock_Timeout", _wrap_CIRCSock_Timeout}, {"ZNCc::CIRCSock_ReachedMaxBuffer", _wrap_CIRCSock_ReachedMaxBuffer}, {"ZNCc::CIRCSock_PutIRC", _wrap_CIRCSock_PutIRC}, {"ZNCc::CIRCSock_PutIRCQuick", _wrap_CIRCSock_PutIRCQuick}, {"ZNCc::CIRCSock_ResetChans", _wrap_CIRCSock_ResetChans}, {"ZNCc::CIRCSock_Quit", _wrap_CIRCSock_Quit}, {"ZNCc::CIRCSock_PauseCap", _wrap_CIRCSock_PauseCap}, {"ZNCc::CIRCSock_ResumeCap", _wrap_CIRCSock_ResumeCap}, {"ZNCc::CIRCSock_SetPass", _wrap_CIRCSock_SetPass}, {"ZNCc::CIRCSock_GetMaxNickLen", _wrap_CIRCSock_GetMaxNickLen}, {"ZNCc::CIRCSock_GetModeType", _wrap_CIRCSock_GetModeType}, {"ZNCc::CIRCSock_GetPermFromMode", _wrap_CIRCSock_GetPermFromMode}, {"ZNCc::CIRCSock_GetChanModes", _wrap_CIRCSock_GetChanModes}, {"ZNCc::CIRCSock_IsPermChar", _wrap_CIRCSock_IsPermChar}, {"ZNCc::CIRCSock_IsPermMode", _wrap_CIRCSock_IsPermMode}, {"ZNCc::CIRCSock_GetPerms", _wrap_CIRCSock_GetPerms}, {"ZNCc::CIRCSock_GetPermModes", _wrap_CIRCSock_GetPermModes}, {"ZNCc::CIRCSock_GetNickMask", _wrap_CIRCSock_GetNickMask}, {"ZNCc::CIRCSock_GetNick", _wrap_CIRCSock_GetNick}, {"ZNCc::CIRCSock_GetPass", _wrap_CIRCSock_GetPass}, {"ZNCc::CIRCSock_GetNetwork", _wrap_CIRCSock_GetNetwork}, {"ZNCc::CIRCSock_HasNamesx", _wrap_CIRCSock_HasNamesx}, {"ZNCc::CIRCSock_HasUHNames", _wrap_CIRCSock_HasUHNames}, {"ZNCc::CIRCSock_GetUserModes", _wrap_CIRCSock_GetUserModes}, {"ZNCc::CIRCSock_IsAuthed", _wrap_CIRCSock_IsAuthed}, {"ZNCc::CIRCSock_IsCapAccepted", _wrap_CIRCSock_IsCapAccepted}, {"ZNCc::CIRCSock_GetISupport", _wrap_CIRCSock_GetISupport}, {"ZNCc::CIRCSock_ForwardRaw353", _wrap_CIRCSock_ForwardRaw353}, {"ZNCc::CIRCSock_IsFloodProtected", _wrap_CIRCSock_IsFloodProtected}, {"ZNCc::new_CListener", _wrap_new_CListener}, {"ZNCc::delete_CListener", _wrap_delete_CListener}, {"ZNCc::CListener_IsSSL", _wrap_CListener_IsSSL}, {"ZNCc::CListener_GetAddrType", _wrap_CListener_GetAddrType}, {"ZNCc::CListener_GetPort", _wrap_CListener_GetPort}, {"ZNCc::CListener_GetBindHost", _wrap_CListener_GetBindHost}, {"ZNCc::CListener_GetRealListener", _wrap_CListener_GetRealListener}, {"ZNCc::CListener_GetURIPrefix", _wrap_CListener_GetURIPrefix}, {"ZNCc::CListener_GetAcceptType", _wrap_CListener_GetAcceptType}, {"ZNCc::CListener_SetAcceptType", _wrap_CListener_SetAcceptType}, {"ZNCc::CListener_Listen", _wrap_CListener_Listen}, {"ZNCc::CListener_ResetRealListener", _wrap_CListener_ResetRealListener}, {"ZNCc::new_CRealListener", _wrap_new_CRealListener}, {"ZNCc::delete_CRealListener", _wrap_delete_CRealListener}, {"ZNCc::CRealListener_ConnectionFrom", _wrap_CRealListener_ConnectionFrom}, {"ZNCc::CRealListener_GetSockObj", _wrap_CRealListener_GetSockObj}, {"ZNCc::CRealListener_SockError", _wrap_CRealListener_SockError}, {"ZNCc::new_CIncomingConnection", _wrap_new_CIncomingConnection}, {"ZNCc::delete_CIncomingConnection", _wrap_delete_CIncomingConnection}, {"ZNCc::CIncomingConnection_ReadLine", _wrap_CIncomingConnection_ReadLine}, {"ZNCc::CIncomingConnection_ReachedMaxBuffer", _wrap_CIncomingConnection_ReachedMaxBuffer}, {"ZNCc::delete_CHTTPSock", _wrap_delete_CHTTPSock}, {"ZNCc::CHTTPSock_ReadData", _wrap_CHTTPSock_ReadData}, {"ZNCc::CHTTPSock_ReadLine", _wrap_CHTTPSock_ReadLine}, {"ZNCc::CHTTPSock_Connected", _wrap_CHTTPSock_Connected}, {"ZNCc::CHTTPSock_GetSockObj", _wrap_CHTTPSock_GetSockObj}, {"ZNCc::CHTTPSock_ForceLogin", _wrap_CHTTPSock_ForceLogin}, {"ZNCc::CHTTPSock_OnLogin", _wrap_CHTTPSock_OnLogin}, {"ZNCc::CHTTPSock_OnPageRequest", _wrap_CHTTPSock_OnPageRequest}, {"ZNCc::CHTTPSock_PrintFile", _wrap_CHTTPSock_PrintFile}, {"ZNCc::CHTTPSock_CheckPost", _wrap_CHTTPSock_CheckPost}, {"ZNCc::CHTTPSock_SentHeader", _wrap_CHTTPSock_SentHeader}, {"ZNCc::CHTTPSock_PrintHeader", _wrap_CHTTPSock_PrintHeader}, {"ZNCc::CHTTPSock_AddHeader", _wrap_CHTTPSock_AddHeader}, {"ZNCc::CHTTPSock_SetContentType", _wrap_CHTTPSock_SetContentType}, {"ZNCc::CHTTPSock_PrintNotFound", _wrap_CHTTPSock_PrintNotFound}, {"ZNCc::CHTTPSock_Redirect", _wrap_CHTTPSock_Redirect}, {"ZNCc::CHTTPSock_PrintErrorPage", _wrap_CHTTPSock_PrintErrorPage}, {"ZNCc::CHTTPSock_ParseParams", _wrap_CHTTPSock_ParseParams}, {"ZNCc::CHTTPSock_ParseURI", _wrap_CHTTPSock_ParseURI}, {"ZNCc::CHTTPSock_GetPage", _wrap_CHTTPSock_GetPage}, {"ZNCc::CHTTPSock_GetDate", _wrap_CHTTPSock_GetDate}, {"ZNCc::CHTTPSock_GetRemoteIP", _wrap_CHTTPSock_GetRemoteIP}, {"ZNCc::CHTTPSock_GetRequestCookie", _wrap_CHTTPSock_GetRequestCookie}, {"ZNCc::CHTTPSock_SendCookie", _wrap_CHTTPSock_SendCookie}, {"ZNCc::CHTTPSock_SetDocRoot", _wrap_CHTTPSock_SetDocRoot}, {"ZNCc::CHTTPSock_SetLoggedIn", _wrap_CHTTPSock_SetLoggedIn}, {"ZNCc::CHTTPSock_GetPath", _wrap_CHTTPSock_GetPath}, {"ZNCc::CHTTPSock_IsLoggedIn", _wrap_CHTTPSock_IsLoggedIn}, {"ZNCc::CHTTPSock_GetDocRoot", _wrap_CHTTPSock_GetDocRoot}, {"ZNCc::CHTTPSock_GetUser", _wrap_CHTTPSock_GetUser}, {"ZNCc::CHTTPSock_GetPass", _wrap_CHTTPSock_GetPass}, {"ZNCc::CHTTPSock_GetParamString", _wrap_CHTTPSock_GetParamString}, {"ZNCc::CHTTPSock_GetContentType", _wrap_CHTTPSock_GetContentType}, {"ZNCc::CHTTPSock_GetURIPrefix", _wrap_CHTTPSock_GetURIPrefix}, {"ZNCc::CHTTPSock_IsPost", _wrap_CHTTPSock_IsPost}, {"ZNCc::CHTTPSock_GetParam", _wrap_CHTTPSock_GetParam}, {"ZNCc::CHTTPSock_GetRawParam", _wrap_CHTTPSock_GetRawParam}, {"ZNCc::CHTTPSock_HasParam", _wrap_CHTTPSock_HasParam}, {"ZNCc::CHTTPSock_GetParams", _wrap_CHTTPSock_GetParams}, {"ZNCc::CHTTPSock_GetParamValues", _wrap_CHTTPSock_GetParamValues}, {"ZNCc::new_CTemplateTagHandler", _wrap_new_CTemplateTagHandler}, {"ZNCc::delete_CTemplateTagHandler", _wrap_delete_CTemplateTagHandler}, {"ZNCc::CTemplateTagHandler_HandleVar", _wrap_CTemplateTagHandler_HandleVar}, {"ZNCc::CTemplateTagHandler_HandleTag", _wrap_CTemplateTagHandler_HandleTag}, {"ZNCc::CTemplateTagHandler_HandleIf", _wrap_CTemplateTagHandler_HandleIf}, {"ZNCc::CTemplateTagHandler_HandleValue", _wrap_CTemplateTagHandler_HandleValue}, {"ZNCc::new_CTemplateOptions", _wrap_new_CTemplateOptions}, {"ZNCc::delete_CTemplateOptions", _wrap_delete_CTemplateOptions}, {"ZNCc::CTemplateOptions_Parse", _wrap_CTemplateOptions_Parse}, {"ZNCc::CTemplateOptions_GetEscapeFrom", _wrap_CTemplateOptions_GetEscapeFrom}, {"ZNCc::CTemplateOptions_GetEscapeTo", _wrap_CTemplateOptions_GetEscapeTo}, {"ZNCc::new_CTemplateLoopContext", _wrap_new_CTemplateLoopContext}, {"ZNCc::delete_CTemplateLoopContext", _wrap_delete_CTemplateLoopContext}, {"ZNCc::CTemplateLoopContext_SetHasData", _wrap_CTemplateLoopContext_SetHasData}, {"ZNCc::CTemplateLoopContext_SetName", _wrap_CTemplateLoopContext_SetName}, {"ZNCc::CTemplateLoopContext_SetRowIndex", _wrap_CTemplateLoopContext_SetRowIndex}, {"ZNCc::CTemplateLoopContext_IncRowIndex", _wrap_CTemplateLoopContext_IncRowIndex}, {"ZNCc::CTemplateLoopContext_DecRowIndex", _wrap_CTemplateLoopContext_DecRowIndex}, {"ZNCc::CTemplateLoopContext_SetFilePosition", _wrap_CTemplateLoopContext_SetFilePosition}, {"ZNCc::CTemplateLoopContext_HasData", _wrap_CTemplateLoopContext_HasData}, {"ZNCc::CTemplateLoopContext_GetName", _wrap_CTemplateLoopContext_GetName}, {"ZNCc::CTemplateLoopContext_GetFilePosition", _wrap_CTemplateLoopContext_GetFilePosition}, {"ZNCc::CTemplateLoopContext_GetRowIndex", _wrap_CTemplateLoopContext_GetRowIndex}, {"ZNCc::CTemplateLoopContext_GetRowCount", _wrap_CTemplateLoopContext_GetRowCount}, {"ZNCc::CTemplateLoopContext_GetRows", _wrap_CTemplateLoopContext_GetRows}, {"ZNCc::CTemplateLoopContext_GetNextRow", _wrap_CTemplateLoopContext_GetNextRow}, {"ZNCc::CTemplateLoopContext_GetCurRow", _wrap_CTemplateLoopContext_GetCurRow}, {"ZNCc::CTemplateLoopContext_GetRow", _wrap_CTemplateLoopContext_GetRow}, {"ZNCc::CTemplateLoopContext_GetValue", _wrap_CTemplateLoopContext_GetValue}, {"ZNCc::new_CTemplate", _wrap_new_CTemplate}, {"ZNCc::delete_CTemplate", _wrap_delete_CTemplate}, {"ZNCc::CTemplate_AddTagHandler", _wrap_CTemplate_AddTagHandler}, {"ZNCc::CTemplate_GetTagHandlers", _wrap_CTemplate_GetTagHandlers}, {"ZNCc::CTemplate_ResolveLiteral", _wrap_CTemplate_ResolveLiteral}, {"ZNCc::CTemplate_Init", _wrap_CTemplate_Init}, {"ZNCc::CTemplate_GetParent", _wrap_CTemplate_GetParent}, {"ZNCc::CTemplate_ExpandFile", _wrap_CTemplate_ExpandFile}, {"ZNCc::CTemplate_SetFile", _wrap_CTemplate_SetFile}, {"ZNCc::CTemplate_SetPath", _wrap_CTemplate_SetPath}, {"ZNCc::CTemplate_MakePath", _wrap_CTemplate_MakePath}, {"ZNCc::CTemplate_PrependPath", _wrap_CTemplate_PrependPath}, {"ZNCc::CTemplate_AppendPath", _wrap_CTemplate_AppendPath}, {"ZNCc::CTemplate_RemovePath", _wrap_CTemplate_RemovePath}, {"ZNCc::CTemplate_ClearPaths", _wrap_CTemplate_ClearPaths}, {"ZNCc::CTemplate_PrintString", _wrap_CTemplate_PrintString}, {"ZNCc::CTemplate_Print", _wrap_CTemplate_Print}, {"ZNCc::CTemplate_ValidIf", _wrap_CTemplate_ValidIf}, {"ZNCc::CTemplate_ValidExpr", _wrap_CTemplate_ValidExpr}, {"ZNCc::CTemplate_IsTrue", _wrap_CTemplate_IsTrue}, {"ZNCc::CTemplate_HasLoop", _wrap_CTemplate_HasLoop}, {"ZNCc::CTemplate_GetValue", _wrap_CTemplate_GetValue}, {"ZNCc::CTemplate_AddRow", _wrap_CTemplate_AddRow}, {"ZNCc::CTemplate_GetRow", _wrap_CTemplate_GetRow}, {"ZNCc::CTemplate_GetLoop", _wrap_CTemplate_GetLoop}, {"ZNCc::CTemplate_DelCurLoopContext", _wrap_CTemplate_DelCurLoopContext}, {"ZNCc::CTemplate_GetCurLoopContext", _wrap_CTemplate_GetCurLoopContext}, {"ZNCc::CTemplate_GetCurTemplate", _wrap_CTemplate_GetCurTemplate}, {"ZNCc::CTemplate_GetFileName", _wrap_CTemplate_GetFileName}, {"ZNCc::CTemplate_set", _wrap_CTemplate_set}, {"ZNCc::new_CZNCTagHandler", _wrap_new_CZNCTagHandler}, {"ZNCc::delete_CZNCTagHandler", _wrap_delete_CZNCTagHandler}, {"ZNCc::CZNCTagHandler_HandleTag", _wrap_CZNCTagHandler_HandleTag}, {"ZNCc::new_CWebSession", _wrap_new_CWebSession}, {"ZNCc::delete_CWebSession", _wrap_delete_CWebSession}, {"ZNCc::CWebSession_GetId", _wrap_CWebSession_GetId}, {"ZNCc::CWebSession_GetIP", _wrap_CWebSession_GetIP}, {"ZNCc::CWebSession_GetUser", _wrap_CWebSession_GetUser}, {"ZNCc::CWebSession_GetLastActive", _wrap_CWebSession_GetLastActive}, {"ZNCc::CWebSession_IsLoggedIn", _wrap_CWebSession_IsLoggedIn}, {"ZNCc::CWebSession_IsAdmin", _wrap_CWebSession_IsAdmin}, {"ZNCc::CWebSession_UpdateLastActive", _wrap_CWebSession_UpdateLastActive}, {"ZNCc::CWebSession_SetUser", _wrap_CWebSession_SetUser}, {"ZNCc::CWebSession_ClearMessageLoops", _wrap_CWebSession_ClearMessageLoops}, {"ZNCc::CWebSession_FillMessageLoops", _wrap_CWebSession_FillMessageLoops}, {"ZNCc::CWebSession_AddError", _wrap_CWebSession_AddError}, {"ZNCc::CWebSession_AddSuccess", _wrap_CWebSession_AddSuccess}, {"ZNCc::new_CWebSubPage", _wrap_new_CWebSubPage}, {"ZNCc::delete_CWebSubPage", _wrap_delete_CWebSubPage}, {"ZNCc::CWebSubPage_SetName", _wrap_CWebSubPage_SetName}, {"ZNCc::CWebSubPage_SetTitle", _wrap_CWebSubPage_SetTitle}, {"ZNCc::CWebSubPage_AddParam", _wrap_CWebSubPage_AddParam}, {"ZNCc::CWebSubPage_RequiresAdmin", _wrap_CWebSubPage_RequiresAdmin}, {"ZNCc::CWebSubPage_GetName", _wrap_CWebSubPage_GetName}, {"ZNCc::CWebSubPage_GetTitle", _wrap_CWebSubPage_GetTitle}, {"ZNCc::CWebSubPage_GetParams", _wrap_CWebSubPage_GetParams}, {"ZNCc::new_CWebSessionMap", _wrap_new_CWebSessionMap}, {"ZNCc::CWebSessionMap_FinishUserSessions", _wrap_CWebSessionMap_FinishUserSessions}, {"ZNCc::delete_CWebSessionMap", _wrap_delete_CWebSessionMap}, {"ZNCc::new_CWebSock", _wrap_new_CWebSock}, {"ZNCc::delete_CWebSock", _wrap_delete_CWebSock}, {"ZNCc::CWebSock_ForceLogin", _wrap_CWebSock_ForceLogin}, {"ZNCc::CWebSock_OnLogin", _wrap_CWebSock_OnLogin}, {"ZNCc::CWebSock_OnPageRequest", _wrap_CWebSock_OnPageRequest}, {"ZNCc::CWebSock_PrintTemplate", _wrap_CWebSock_PrintTemplate}, {"ZNCc::CWebSock_PrintStaticFile", _wrap_CWebSock_PrintStaticFile}, {"ZNCc::CWebSock_FindTmpl", _wrap_CWebSock_FindTmpl}, {"ZNCc::CWebSock_GetSession", _wrap_CWebSock_GetSession}, {"ZNCc::CWebSock_GetSockObj", _wrap_CWebSock_GetSockObj}, {"ZNCc::CWebSock_GetSkinPath", _wrap_CWebSock_GetSkinPath}, {"ZNCc::CWebSock_GetAvailSkins", _wrap_CWebSock_GetAvailSkins}, {"ZNCc::CWebSock_GetSkinName", _wrap_CWebSock_GetSkinName}, {"ZNCc::CWebSock_GetRequestCookie", _wrap_CWebSock_GetRequestCookie}, {"ZNCc::CWebSock_SendCookie", _wrap_CWebSock_SendCookie}, {"ZNCc::CWebSock_FinishUserSessions", _wrap_CWebSock_FinishUserSessions}, {"ZNCc::new_CZNC", _wrap_new_CZNC}, {"ZNCc::delete_CZNC", _wrap_delete_CZNC}, {"ZNCc::CZNC_DeleteUsers", _wrap_CZNC_DeleteUsers}, {"ZNCc::CZNC_Loop", _wrap_CZNC_Loop}, {"ZNCc::CZNC_WritePidFile", _wrap_CZNC_WritePidFile}, {"ZNCc::CZNC_DeletePidFile", _wrap_CZNC_DeletePidFile}, {"ZNCc::CZNC_WaitForChildLock", _wrap_CZNC_WaitForChildLock}, {"ZNCc::CZNC_IsHostAllowed", _wrap_CZNC_IsHostAllowed}, {"ZNCc::CZNC_AllowConnectionFrom", _wrap_CZNC_AllowConnectionFrom}, {"ZNCc::CZNC_InitDirs", _wrap_CZNC_InitDirs}, {"ZNCc::CZNC_OnBoot", _wrap_CZNC_OnBoot}, {"ZNCc::CZNC_ExpandConfigPath", _wrap_CZNC_ExpandConfigPath}, {"ZNCc::CZNC_WriteNewConfig", _wrap_CZNC_WriteNewConfig}, {"ZNCc::CZNC_WriteConfig", _wrap_CZNC_WriteConfig}, {"ZNCc::CZNC_ParseConfig", _wrap_CZNC_ParseConfig}, {"ZNCc::CZNC_RehashConfig", _wrap_CZNC_RehashConfig}, {"ZNCc::CZNC_BackupConfigOnce", _wrap_CZNC_BackupConfigOnce}, {"ZNCc::CZNC_GetVersion", _wrap_CZNC_GetVersion}, {"ZNCc::CZNC_GetTag", _wrap_CZNC_GetTag}, {"ZNCc::CZNC_GetCompileOptionsString", _wrap_CZNC_GetCompileOptionsString}, {"ZNCc::CZNC_GetUptime", _wrap_CZNC_GetUptime}, {"ZNCc::CZNC_ClearBindHosts", _wrap_CZNC_ClearBindHosts}, {"ZNCc::CZNC_AddBindHost", _wrap_CZNC_AddBindHost}, {"ZNCc::CZNC_RemBindHost", _wrap_CZNC_RemBindHost}, {"ZNCc::CZNC_ClearTrustedProxies", _wrap_CZNC_ClearTrustedProxies}, {"ZNCc::CZNC_AddTrustedProxy", _wrap_CZNC_AddTrustedProxy}, {"ZNCc::CZNC_RemTrustedProxy", _wrap_CZNC_RemTrustedProxy}, {"ZNCc::CZNC_Broadcast", _wrap_CZNC_Broadcast}, {"ZNCc::CZNC_AddBytesRead", _wrap_CZNC_AddBytesRead}, {"ZNCc::CZNC_AddBytesWritten", _wrap_CZNC_AddBytesWritten}, {"ZNCc::CZNC_BytesRead", _wrap_CZNC_BytesRead}, {"ZNCc::CZNC_BytesWritten", _wrap_CZNC_BytesWritten}, {"ZNCc::CZNC_GetTrafficStats", _wrap_CZNC_GetTrafficStats}, {"ZNCc::CZNC_AuthUser", _wrap_CZNC_AuthUser}, {"ZNCc::CZNC_SetConfigState", _wrap_CZNC_SetConfigState}, {"ZNCc::CZNC_SetSkinName", _wrap_CZNC_SetSkinName}, {"ZNCc::CZNC_SetStatusPrefix", _wrap_CZNC_SetStatusPrefix}, {"ZNCc::CZNC_SetMaxBufferSize", _wrap_CZNC_SetMaxBufferSize}, {"ZNCc::CZNC_SetAnonIPLimit", _wrap_CZNC_SetAnonIPLimit}, {"ZNCc::CZNC_SetServerThrottle", _wrap_CZNC_SetServerThrottle}, {"ZNCc::CZNC_SetProtectWebSessions", _wrap_CZNC_SetProtectWebSessions}, {"ZNCc::CZNC_SetHideVersion", _wrap_CZNC_SetHideVersion}, {"ZNCc::CZNC_SetConnectDelay", _wrap_CZNC_SetConnectDelay}, {"ZNCc::CZNC_GetConfigState", _wrap_CZNC_GetConfigState}, {"ZNCc::CZNC_GetManager", _wrap_CZNC_GetManager}, {"ZNCc::CZNC_GetModules", _wrap_CZNC_GetModules}, {"ZNCc::CZNC_GetSkinName", _wrap_CZNC_GetSkinName}, {"ZNCc::CZNC_GetStatusPrefix", _wrap_CZNC_GetStatusPrefix}, {"ZNCc::CZNC_GetCurPath", _wrap_CZNC_GetCurPath}, {"ZNCc::CZNC_GetHomePath", _wrap_CZNC_GetHomePath}, {"ZNCc::CZNC_GetZNCPath", _wrap_CZNC_GetZNCPath}, {"ZNCc::CZNC_GetConfPath", _wrap_CZNC_GetConfPath}, {"ZNCc::CZNC_GetUserPath", _wrap_CZNC_GetUserPath}, {"ZNCc::CZNC_GetModPath", _wrap_CZNC_GetModPath}, {"ZNCc::CZNC_GetPemLocation", _wrap_CZNC_GetPemLocation}, {"ZNCc::CZNC_GetConfigFile", _wrap_CZNC_GetConfigFile}, {"ZNCc::CZNC_WritePemFile", _wrap_CZNC_WritePemFile}, {"ZNCc::CZNC_GetBindHosts", _wrap_CZNC_GetBindHosts}, {"ZNCc::CZNC_GetTrustedProxies", _wrap_CZNC_GetTrustedProxies}, {"ZNCc::CZNC_GetListeners", _wrap_CZNC_GetListeners}, {"ZNCc::CZNC_TimeStarted", _wrap_CZNC_TimeStarted}, {"ZNCc::CZNC_GetMaxBufferSize", _wrap_CZNC_GetMaxBufferSize}, {"ZNCc::CZNC_GetAnonIPLimit", _wrap_CZNC_GetAnonIPLimit}, {"ZNCc::CZNC_GetConnectDelay", _wrap_CZNC_GetConnectDelay}, {"ZNCc::CZNC_GetProtectWebSessions", _wrap_CZNC_GetProtectWebSessions}, {"ZNCc::CZNC_GetHideVersion", _wrap_CZNC_GetHideVersion}, {"ZNCc::CZNC_GetSSLCiphers", _wrap_CZNC_GetSSLCiphers}, {"ZNCc::CZNC_GetDisabledSSLProtocols", _wrap_CZNC_GetDisabledSSLProtocols}, {"ZNCc::CZNC_CreateInstance", _wrap_CZNC_CreateInstance}, {"ZNCc::CZNC_Get", _wrap_CZNC_Get}, {"ZNCc::CZNC_DestroyInstance", _wrap_CZNC_DestroyInstance}, {"ZNCc::CZNC_FindUser", _wrap_CZNC_FindUser}, {"ZNCc::CZNC_FindModule", _wrap_CZNC_FindModule}, {"ZNCc::CZNC_UpdateModule", _wrap_CZNC_UpdateModule}, {"ZNCc::CZNC_DeleteUser", _wrap_CZNC_DeleteUser}, {"ZNCc::CZNC_AddUser", _wrap_CZNC_AddUser}, {"ZNCc::CZNC_GetUserMap", _wrap_CZNC_GetUserMap}, {"ZNCc::CZNC_FindListener", _wrap_CZNC_FindListener}, {"ZNCc::CZNC_AddListener", _wrap_CZNC_AddListener}, {"ZNCc::CZNC_DelListener", _wrap_CZNC_DelListener}, {"ZNCc::CZNC_SetMotd", _wrap_CZNC_SetMotd}, {"ZNCc::CZNC_AddMotd", _wrap_CZNC_AddMotd}, {"ZNCc::CZNC_ClearMotd", _wrap_CZNC_ClearMotd}, {"ZNCc::CZNC_GetMotd", _wrap_CZNC_GetMotd}, {"ZNCc::CZNC_AddServerThrottle", _wrap_CZNC_AddServerThrottle}, {"ZNCc::CZNC_GetServerThrottle", _wrap_CZNC_GetServerThrottle}, {"ZNCc::CZNC_AddNetworkToQueue", _wrap_CZNC_AddNetworkToQueue}, {"ZNCc::CZNC_GetConnectionQueue", _wrap_CZNC_GetConnectionQueue}, {"ZNCc::CZNC_EnableConnectQueue", _wrap_CZNC_EnableConnectQueue}, {"ZNCc::CZNC_DisableConnectQueue", _wrap_CZNC_DisableConnectQueue}, {"ZNCc::CZNC_PauseConnectQueue", _wrap_CZNC_PauseConnectQueue}, {"ZNCc::CZNC_ResumeConnectQueue", _wrap_CZNC_ResumeConnectQueue}, {"ZNCc::CZNC_LeakConnectQueueTimer", _wrap_CZNC_LeakConnectQueueTimer}, {"ZNCc::CZNC_DumpConfig", _wrap_CZNC_DumpConfig}, {"ZNCc::new_CServer", _wrap_new_CServer}, {"ZNCc::delete_CServer", _wrap_delete_CServer}, {"ZNCc::CServer_GetName", _wrap_CServer_GetName}, {"ZNCc::CServer_GetPort", _wrap_CServer_GetPort}, {"ZNCc::CServer_GetPass", _wrap_CServer_GetPass}, {"ZNCc::CServer_IsSSL", _wrap_CServer_IsSSL}, {"ZNCc::CServer_GetString", _wrap_CServer_GetString}, {"ZNCc::CServer_IsValidHostName", _wrap_CServer_IsValidHostName}, {"ZNCc::CDebug_SetStdoutIsTTY", _wrap_CDebug_SetStdoutIsTTY}, {"ZNCc::CDebug_StdoutIsTTY", _wrap_CDebug_StdoutIsTTY}, {"ZNCc::CDebug_SetDebug", _wrap_CDebug_SetDebug}, {"ZNCc::CDebug_Debug", _wrap_CDebug_Debug}, {"ZNCc::new_CDebug", _wrap_new_CDebug}, {"ZNCc::delete_CDebug", _wrap_delete_CDebug}, {"ZNCc::delete_CDebugStream", _wrap_delete_CDebugStream}, {"ZNCc::new_CDebugStream", _wrap_new_CDebugStream}, {"ZNCc::new_CExecSock", _wrap_new_CExecSock}, {"ZNCc::CExecSock_Execute", _wrap_CExecSock_Execute}, {"ZNCc::CExecSock_Kill", _wrap_CExecSock_Kill}, {"ZNCc::delete_CExecSock", _wrap_delete_CExecSock}, {"ZNCc::CExecSock_popen2", _wrap_CExecSock_popen2}, {"ZNCc::CExecSock_close2", _wrap_CExecSock_close2}, {"ZNCc::new_CBufLine", _wrap_new_CBufLine}, {"ZNCc::delete_CBufLine", _wrap_delete_CBufLine}, {"ZNCc::CBufLine_GetLine", _wrap_CBufLine_GetLine}, {"ZNCc::CBufLine_UpdateTime", _wrap_CBufLine_UpdateTime}, {"ZNCc::CBufLine_SetFormat", _wrap_CBufLine_SetFormat}, {"ZNCc::CBufLine_SetText", _wrap_CBufLine_SetText}, {"ZNCc::CBufLine_SetTime", _wrap_CBufLine_SetTime}, {"ZNCc::CBufLine_GetFormat", _wrap_CBufLine_GetFormat}, {"ZNCc::CBufLine_GetText", _wrap_CBufLine_GetText}, {"ZNCc::CBufLine_GetTime", _wrap_CBufLine_GetTime}, {"ZNCc::new_CBuffer", _wrap_new_CBuffer}, {"ZNCc::delete_CBuffer", _wrap_delete_CBuffer}, {"ZNCc::CBuffer_AddLine", _wrap_CBuffer_AddLine}, {"ZNCc::CBuffer_UpdateLine", _wrap_CBuffer_UpdateLine}, {"ZNCc::CBuffer_UpdateExactLine", _wrap_CBuffer_UpdateExactLine}, {"ZNCc::CBuffer_GetBufLine", _wrap_CBuffer_GetBufLine}, {"ZNCc::CBuffer_GetLine", _wrap_CBuffer_GetLine}, {"ZNCc::CBuffer_Size", _wrap_CBuffer_Size}, {"ZNCc::CBuffer_IsEmpty", _wrap_CBuffer_IsEmpty}, {"ZNCc::CBuffer_Clear", _wrap_CBuffer_Clear}, {"ZNCc::CBuffer_SetLineCount", _wrap_CBuffer_SetLineCount}, {"ZNCc::CBuffer_GetLineCount", _wrap_CBuffer_GetLineCount}, {"ZNCc::new_CPerlModule", _wrap_new_CPerlModule}, {"ZNCc::CPerlModule_GetPerlObj", _wrap_CPerlModule_GetPerlObj}, {"ZNCc::CPerlModule_OnBoot", _wrap_CPerlModule_OnBoot}, {"ZNCc::CPerlModule_WebRequiresLogin", _wrap_CPerlModule_WebRequiresLogin}, {"ZNCc::CPerlModule_WebRequiresAdmin", _wrap_CPerlModule_WebRequiresAdmin}, {"ZNCc::CPerlModule_GetWebMenuTitle", _wrap_CPerlModule_GetWebMenuTitle}, {"ZNCc::CPerlModule_OnWebPreRequest", _wrap_CPerlModule_OnWebPreRequest}, {"ZNCc::CPerlModule_OnWebRequest", _wrap_CPerlModule_OnWebRequest}, {"ZNCc::CPerlModule_GetSubPages", _wrap_CPerlModule_GetSubPages}, {"ZNCc::CPerlModule_OnPreRehash", _wrap_CPerlModule_OnPreRehash}, {"ZNCc::CPerlModule_OnPostRehash", _wrap_CPerlModule_OnPostRehash}, {"ZNCc::CPerlModule_OnIRCDisconnected", _wrap_CPerlModule_OnIRCDisconnected}, {"ZNCc::CPerlModule_OnIRCConnected", _wrap_CPerlModule_OnIRCConnected}, {"ZNCc::CPerlModule_OnIRCConnecting", _wrap_CPerlModule_OnIRCConnecting}, {"ZNCc::CPerlModule_OnIRCConnectionError", _wrap_CPerlModule_OnIRCConnectionError}, {"ZNCc::CPerlModule_OnIRCRegistration", _wrap_CPerlModule_OnIRCRegistration}, {"ZNCc::CPerlModule_OnBroadcast", _wrap_CPerlModule_OnBroadcast}, {"ZNCc::CPerlModule_OnChanPermission2", _wrap_CPerlModule_OnChanPermission2}, {"ZNCc::CPerlModule_OnOp2", _wrap_CPerlModule_OnOp2}, {"ZNCc::CPerlModule_OnDeop2", _wrap_CPerlModule_OnDeop2}, {"ZNCc::CPerlModule_OnVoice2", _wrap_CPerlModule_OnVoice2}, {"ZNCc::CPerlModule_OnDevoice2", _wrap_CPerlModule_OnDevoice2}, {"ZNCc::CPerlModule_OnMode2", _wrap_CPerlModule_OnMode2}, {"ZNCc::CPerlModule_OnRawMode2", _wrap_CPerlModule_OnRawMode2}, {"ZNCc::CPerlModule_OnRaw", _wrap_CPerlModule_OnRaw}, {"ZNCc::CPerlModule_OnStatusCommand", _wrap_CPerlModule_OnStatusCommand}, {"ZNCc::CPerlModule_OnModCommand", _wrap_CPerlModule_OnModCommand}, {"ZNCc::CPerlModule_OnModNotice", _wrap_CPerlModule_OnModNotice}, {"ZNCc::CPerlModule_OnModCTCP", _wrap_CPerlModule_OnModCTCP}, {"ZNCc::CPerlModule_OnQuit", _wrap_CPerlModule_OnQuit}, {"ZNCc::CPerlModule_OnNick", _wrap_CPerlModule_OnNick}, {"ZNCc::CPerlModule_OnKick", _wrap_CPerlModule_OnKick}, {"ZNCc::CPerlModule_OnJoining", _wrap_CPerlModule_OnJoining}, {"ZNCc::CPerlModule_OnJoin", _wrap_CPerlModule_OnJoin}, {"ZNCc::CPerlModule_OnPart", _wrap_CPerlModule_OnPart}, {"ZNCc::CPerlModule_OnChanBufferStarting", _wrap_CPerlModule_OnChanBufferStarting}, {"ZNCc::CPerlModule_OnChanBufferEnding", _wrap_CPerlModule_OnChanBufferEnding}, {"ZNCc::CPerlModule_OnChanBufferPlayLine", _wrap_CPerlModule_OnChanBufferPlayLine}, {"ZNCc::CPerlModule_OnPrivBufferPlayLine", _wrap_CPerlModule_OnPrivBufferPlayLine}, {"ZNCc::CPerlModule_OnClientLogin", _wrap_CPerlModule_OnClientLogin}, {"ZNCc::CPerlModule_OnClientDisconnect", _wrap_CPerlModule_OnClientDisconnect}, {"ZNCc::CPerlModule_OnUserRaw", _wrap_CPerlModule_OnUserRaw}, {"ZNCc::CPerlModule_OnUserCTCPReply", _wrap_CPerlModule_OnUserCTCPReply}, {"ZNCc::CPerlModule_OnUserCTCP", _wrap_CPerlModule_OnUserCTCP}, {"ZNCc::CPerlModule_OnUserAction", _wrap_CPerlModule_OnUserAction}, {"ZNCc::CPerlModule_OnUserMsg", _wrap_CPerlModule_OnUserMsg}, {"ZNCc::CPerlModule_OnUserNotice", _wrap_CPerlModule_OnUserNotice}, {"ZNCc::CPerlModule_OnUserJoin", _wrap_CPerlModule_OnUserJoin}, {"ZNCc::CPerlModule_OnUserPart", _wrap_CPerlModule_OnUserPart}, {"ZNCc::CPerlModule_OnUserTopic", _wrap_CPerlModule_OnUserTopic}, {"ZNCc::CPerlModule_OnUserTopicRequest", _wrap_CPerlModule_OnUserTopicRequest}, {"ZNCc::CPerlModule_OnCTCPReply", _wrap_CPerlModule_OnCTCPReply}, {"ZNCc::CPerlModule_OnPrivCTCP", _wrap_CPerlModule_OnPrivCTCP}, {"ZNCc::CPerlModule_OnChanCTCP", _wrap_CPerlModule_OnChanCTCP}, {"ZNCc::CPerlModule_OnPrivAction", _wrap_CPerlModule_OnPrivAction}, {"ZNCc::CPerlModule_OnChanAction", _wrap_CPerlModule_OnChanAction}, {"ZNCc::CPerlModule_OnPrivMsg", _wrap_CPerlModule_OnPrivMsg}, {"ZNCc::CPerlModule_OnChanMsg", _wrap_CPerlModule_OnChanMsg}, {"ZNCc::CPerlModule_OnPrivNotice", _wrap_CPerlModule_OnPrivNotice}, {"ZNCc::CPerlModule_OnChanNotice", _wrap_CPerlModule_OnChanNotice}, {"ZNCc::CPerlModule_OnTopic", _wrap_CPerlModule_OnTopic}, {"ZNCc::CPerlModule_OnServerCapAvailable", _wrap_CPerlModule_OnServerCapAvailable}, {"ZNCc::CPerlModule_OnServerCapResult", _wrap_CPerlModule_OnServerCapResult}, {"ZNCc::CPerlModule_OnTimerAutoJoin", _wrap_CPerlModule_OnTimerAutoJoin}, {"ZNCc::CPerlModule_OnEmbeddedWebRequest", _wrap_CPerlModule_OnEmbeddedWebRequest}, {"ZNCc::CPerlModule_OnAddNetwork", _wrap_CPerlModule_OnAddNetwork}, {"ZNCc::CPerlModule_OnDeleteNetwork", _wrap_CPerlModule_OnDeleteNetwork}, {"ZNCc::CPerlModule_OnSendToClient", _wrap_CPerlModule_OnSendToClient}, {"ZNCc::CPerlModule_OnSendToIRC", _wrap_CPerlModule_OnSendToIRC}, {"ZNCc::delete_CPerlModule", _wrap_delete_CPerlModule}, {"ZNCc::AsPerlModule", _wrap_AsPerlModule}, {"ZNCc::new_CPerlTimer", _wrap_new_CPerlTimer}, {"ZNCc::CPerlTimer_RunJob", _wrap_CPerlTimer_RunJob}, {"ZNCc::CPerlTimer_GetPerlObj", _wrap_CPerlTimer_GetPerlObj}, {"ZNCc::delete_CPerlTimer", _wrap_delete_CPerlTimer}, {"ZNCc::CreatePerlTimer", _wrap_CreatePerlTimer}, {"ZNCc::new_CPerlSocket", _wrap_new_CPerlSocket}, {"ZNCc::CPerlSocket_GetPerlObj", _wrap_CPerlSocket_GetPerlObj}, {"ZNCc::delete_CPerlSocket", _wrap_delete_CPerlSocket}, {"ZNCc::CPerlSocket_Connected", _wrap_CPerlSocket_Connected}, {"ZNCc::CPerlSocket_Disconnected", _wrap_CPerlSocket_Disconnected}, {"ZNCc::CPerlSocket_Timeout", _wrap_CPerlSocket_Timeout}, {"ZNCc::CPerlSocket_ConnectionRefused", _wrap_CPerlSocket_ConnectionRefused}, {"ZNCc::CPerlSocket_ReadData", _wrap_CPerlSocket_ReadData}, {"ZNCc::CPerlSocket_ReadLine", _wrap_CPerlSocket_ReadLine}, {"ZNCc::CPerlSocket_GetSockObj", _wrap_CPerlSocket_GetSockObj}, {"ZNCc::CreatePerlSocket", _wrap_CreatePerlSocket}, {"ZNCc::HaveIPv6", _wrap_HaveIPv6}, {"ZNCc::HaveSSL", _wrap_HaveSSL}, {"ZNCc::HaveCharset", _wrap_HaveCharset}, {"ZNCc::_GetSOMAXCONN", _wrap__GetSOMAXCONN}, {"ZNCc::GetVersionMajor", _wrap_GetVersionMajor}, {"ZNCc::GetVersionMinor", _wrap_GetVersionMinor}, {"ZNCc::GetVersion", _wrap_GetVersion}, {"ZNCc::GetVersionExtra", _wrap_GetVersionExtra}, {"ZNCc::new_String", _wrap_new_String}, {"ZNCc::String_GetPerlStr", _wrap_String_GetPerlStr}, {"ZNCc::delete_String", _wrap_delete_String}, {"ZNCc::new_StrPair", _wrap_new_StrPair}, {"ZNCc::StrPair_first_set", _wrap_StrPair_first_set}, {"ZNCc::StrPair_first_get", _wrap_StrPair_first_get}, {"ZNCc::StrPair_second_set", _wrap_StrPair_second_set}, {"ZNCc::StrPair_second_get", _wrap_StrPair_second_get}, {"ZNCc::delete_StrPair", _wrap_delete_StrPair}, {"ZNCc::new_VPair", _wrap_new_VPair}, {"ZNCc::VPair_size", _wrap_VPair_size}, {"ZNCc::VPair_empty", _wrap_VPair_empty}, {"ZNCc::VPair_clear", _wrap_VPair_clear}, {"ZNCc::VPair_push", _wrap_VPair_push}, {"ZNCc::VPair_pop", _wrap_VPair_pop}, {"ZNCc::VPair_get", _wrap_VPair_get}, {"ZNCc::VPair_set", _wrap_VPair_set}, {"ZNCc::delete_VPair", _wrap_delete_VPair}, {"ZNCc::new_VWebSubPages", _wrap_new_VWebSubPages}, {"ZNCc::VWebSubPages_size", _wrap_VWebSubPages_size}, {"ZNCc::VWebSubPages_empty", _wrap_VWebSubPages_empty}, {"ZNCc::VWebSubPages_clear", _wrap_VWebSubPages_clear}, {"ZNCc::VWebSubPages_push", _wrap_VWebSubPages_push}, {"ZNCc::VWebSubPages_pop", _wrap_VWebSubPages_pop}, {"ZNCc::VWebSubPages_get", _wrap_VWebSubPages_get}, {"ZNCc::VWebSubPages_set", _wrap_VWebSubPages_set}, {"ZNCc::delete_VWebSubPages", _wrap_delete_VWebSubPages}, {"ZNCc::_VPair_Add2Str", _wrap__VPair_Add2Str}, {"ZNCc::_CreateWebSubPage", _wrap__CreateWebSubPage}, {"ZNCc::_CleanupStash", _wrap__CleanupStash}, {0,0} }; /* ----------------------------------------------------------------------------- * Type initialization: * This problem is tough by the requirement that no dynamic * memory is used. Also, since swig_type_info structures store pointers to * swig_cast_info structures and swig_cast_info structures store pointers back * to swig_type_info structures, we need some lookup code at initialization. * The idea is that swig generates all the structures that are needed. * The runtime then collects these partially filled structures. * The SWIG_InitializeModule function takes these initial arrays out of * swig_module, and does all the lookup, filling in the swig_module.types * array with the correct data and linking the correct swig_cast_info * structures together. * * The generated swig_type_info structures are assigned statically to an initial * array. We just loop through that array, and handle each type individually. * First we lookup if this type has been already loaded, and if so, use the * loaded structure instead of the generated one. Then we have to fill in the * cast linked list. The cast data is initially stored in something like a * two-dimensional array. Each row corresponds to a type (there are the same * number of rows as there are in the swig_type_initial array). Each entry in * a column is one of the swig_cast_info structures for that type. * The cast_initial array is actually an array of arrays, because each row has * a variable number of columns. So to actually build the cast linked list, * we find the array of casts associated with the type, and loop through it * adding the casts to the list. The one last trick we need to do is making * sure the type pointer in the swig_cast_info struct is correct. * * First off, we lookup the cast->type name to see if it is already loaded. * There are three cases to handle: * 1) If the cast->type has already been loaded AND the type we are adding * casting info to has not been loaded (it is in this module), THEN we * replace the cast->type pointer with the type pointer that has already * been loaded. * 2) If BOTH types (the one we are adding casting info to, and the * cast->type) are loaded, THEN the cast info has already been loaded by * the previous module so we just ignore it. * 3) Finally, if cast->type has not already been loaded, then we add that * swig_cast_info to the linked list (because the cast->type) pointer will * be correct. * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* c-mode */ #endif #endif #if 0 #define SWIGRUNTIME_DEBUG #endif SWIGRUNTIME void SWIG_InitializeModule(void *clientdata) { size_t i; swig_module_info *module_head, *iter; int init; /* check to see if the circular list has been setup, if not, set it up */ if (swig_module.next==0) { /* Initialize the swig_module */ swig_module.type_initial = swig_type_initial; swig_module.cast_initial = swig_cast_initial; swig_module.next = &swig_module; init = 1; } else { init = 0; } /* Try and load any already created modules */ module_head = SWIG_GetModule(clientdata); if (!module_head) { /* This is the first module loaded for this interpreter */ /* so set the swig module into the interpreter */ SWIG_SetModule(clientdata, &swig_module); } else { /* the interpreter has loaded a SWIG module, but has it loaded this one? */ iter=module_head; do { if (iter==&swig_module) { /* Our module is already in the list, so there's nothing more to do. */ return; } iter=iter->next; } while (iter!= module_head); /* otherwise we must add our module into the list */ swig_module.next = module_head->next; module_head->next = &swig_module; } /* When multiple interpreters are used, a module could have already been initialized in a different interpreter, but not yet have a pointer in this interpreter. In this case, we do not want to continue adding types... everything should be set up already */ if (init == 0) return; /* Now work on filling in swig_module.types */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: size %d\n", swig_module.size); #endif for (i = 0; i < swig_module.size; ++i) { swig_type_info *type = 0; swig_type_info *ret; swig_cast_info *cast; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); #endif /* if there is another module already loaded */ if (swig_module.next != &swig_module) { type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); } if (type) { /* Overwrite clientdata field */ #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found type %s\n", type->name); #endif if (swig_module.type_initial[i]->clientdata) { type->clientdata = swig_module.type_initial[i]->clientdata; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); #endif } } else { type = swig_module.type_initial[i]; } /* Insert casting types */ cast = swig_module.cast_initial[i]; while (cast->type) { /* Don't need to add information already in the list */ ret = 0; #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); #endif if (swig_module.next != &swig_module) { ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); #ifdef SWIGRUNTIME_DEBUG if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); #endif } if (ret) { if (type == swig_module.type_initial[i]) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: skip old type %s\n", ret->name); #endif cast->type = ret; ret = 0; } else { /* Check for casting already in the list */ swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); #ifdef SWIGRUNTIME_DEBUG if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); #endif if (!ocast) ret = 0; } } if (!ret) { #ifdef SWIGRUNTIME_DEBUG printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); #endif if (type->cast) { type->cast->prev = cast; cast->next = type->cast; } type->cast = cast; } cast++; } /* Set entry in modules->types array equal to the type */ swig_module.types[i] = type; } swig_module.types[i] = 0; #ifdef SWIGRUNTIME_DEBUG printf("**** SWIG_InitializeModule: Cast List ******\n"); for (i = 0; i < swig_module.size; ++i) { int j = 0; swig_cast_info *cast = swig_module.cast_initial[i]; printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); while (cast->type) { printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); cast++; ++j; } printf("---- Total casts: %d\n",j); } printf("**** SWIG_InitializeModule: Cast List ******\n"); #endif } /* This function will propagate the clientdata field of type to * any new swig_type_info structures that have been added into the list * of equivalent types. It is like calling * SWIG_TypeClientData(type, clientdata) a second time. */ SWIGRUNTIME void SWIG_PropagateClientData(void) { size_t i; swig_cast_info *equiv; static int init_run = 0; if (init_run) return; init_run = 1; for (i = 0; i < swig_module.size; i++) { if (swig_module.types[i]->clientdata) { equiv = swig_module.types[i]->cast; while (equiv) { if (!equiv->converter) { if (equiv->type && !equiv->type->clientdata) SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); } equiv = equiv->next; } } } } #ifdef __cplusplus #if 0 { /* c-mode */ #endif } #endif #if defined(__cplusplus) && ! defined(XSPROTO) extern "C" #endif XS(SWIG_init) { dXSARGS; int i; SWIG_InitializeModule(0); /* Install commands */ for (i = 0; swig_commands[i].name; i++) { /* Casts only needed for Perl < 5.10. */ #ifdef __cplusplus newXS(const_cast(swig_commands[i].name), swig_commands[i].wrapper, const_cast(__FILE__)); #else newXS((char*)swig_commands[i].name, swig_commands[i].wrapper, (char*)__FILE__); #endif } /* Install variables */ for (i = 0; swig_variables[i].name; i++) { SV *sv; sv = get_sv(swig_variables[i].name, TRUE | 0x2 | GV_ADDMULTI); if (swig_variables[i].type) { SWIG_MakePtr(sv,(void *)1, *swig_variables[i].type,0); } else { sv_setiv(sv,(IV) 0); } swig_create_magic(sv, swig_variables[i].name, swig_variables[i].set, swig_variables[i].get); } /* Install constant */ for (i = 0; swig_constants[i].type; i++) { SV *sv; sv = get_sv(swig_constants[i].name, TRUE | 0x2 | GV_ADDMULTI); switch(swig_constants[i].type) { case SWIG_INT: sv_setiv(sv, (IV) swig_constants[i].lvalue); break; case SWIG_FLOAT: sv_setnv(sv, (double) swig_constants[i].dvalue); break; case SWIG_STRING: sv_setpv(sv, (const char *) swig_constants[i].pvalue); break; case SWIG_POINTER: SWIG_MakePtr(sv, swig_constants[i].pvalue, *(swig_constants[i].ptype),0); break; case SWIG_BINARY: SWIG_MakePackedObj(sv, swig_constants[i].pvalue, swig_constants[i].lvalue, *(swig_constants[i].ptype)); break; default: break; } SvREADONLY_on(sv); } SWIG_TypeClientData(SWIGTYPE_p_std__listT_CString_t, (void*) "ZNC::_stringlist"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_CIRCNetwork_p_t, (void*) "ZNC::VIRCNetworks"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_CChan_p_t, (void*) "ZNC::VChannels"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_CString_t, (void*) "ZNC::VCString"); SWIG_TypeClientData(SWIGTYPE_p_std__mapT_CString_CString_t, (void*) "ZNC::PerlMCString"); SWIG_TypeClientData(SWIGTYPE_p_MCString, (void*) "ZNC::MCString"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_CListener_p_t, (void*) "ZNC::VListeners"); SWIG_TypeClientData(SWIGTYPE_p_std__dequeT_CBufLine_t, (void*) "ZNC::BufLines"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_std__vectorT_CString_t_t, (void*) "ZNC::VVString"); SWIG_TypeClientData(SWIGTYPE_p_CUtils, (void*) "ZNC::CUtils"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CException_EX_Shutdown", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CException::EX_Shutdown))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CException_EX_Restart", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CException::EX_Restart))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CException, (void*) "ZNC::CException"); SWIG_TypeClientData(SWIGTYPE_p_CTable, (void*) "ZNC::CTable"); SWIG_TypeClientData(SWIGTYPE_p_CConfigEntry, (void*) "ZNC::CConfigEntry"); SWIG_TypeClientData(SWIGTYPE_p_CConfig, (void*) "ZNC::CConfig"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CS_INVALID_SOCK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(-1))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CSCharBuffer, (void*) "ZNC::CSCharBuffer"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSSockAddr_RAF_ANY", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSSockAddr::RAF_ANY))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSSockAddr_RAF_INET", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSSockAddr::RAF_INET))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CSSockAddr, (void*) "ZNC::CSSockAddr"); SWIG_TypeClientData(SWIGTYPE_p_CGetAddrInfo, (void*) "ZNC::CGetAddrInfo"); SWIG_TypeClientData(SWIGTYPE_p_CCron, (void*) "ZNC::CCron"); SWIG_TypeClientData(SWIGTYPE_p_CSMonitorFD, (void*) "ZNC::CSMonitorFD"); SWIG_TypeClientData(SWIGTYPE_p_CSockCommon, (void*) "ZNC::CSockCommon"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_OUTBOUND", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::OUTBOUND))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_LISTENER", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::LISTENER))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_INBOUND", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::INBOUND))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_READ_EOF", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::READ_EOF))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_READ_ERR", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::READ_ERR))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_READ_EAGAIN", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::READ_EAGAIN))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_READ_CONNREFUSED", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::READ_CONNREFUSED))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_READ_TIMEDOUT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::READ_TIMEDOUT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SEL_OK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SEL_OK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SEL_TIMEOUT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SEL_TIMEOUT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SEL_EAGAIN", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SEL_EAGAIN))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SEL_ERR", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SEL_ERR))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SSL23", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SSL23))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SSL2", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SSL2))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_SSL3", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::SSL3))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TLS1", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TLS1))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TLS11", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TLS11))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TLS12", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TLS12))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_None", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_None))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_SSLv2", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_SSLv2))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_SSLv3", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_SSLv3))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_TLSv1", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_TLSv1))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_TLSv1_1", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_TLSv1_1))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_TLSv1_2", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_TLSv1_2))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_EDP_SSL", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::EDP_SSL))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_START", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_START))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_DNS", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_DNS))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_BINDVHOST", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_BINDVHOST))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_DESTDNS", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_DESTDNS))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_CONNECT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_CONNECT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_CONNECTSSL", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_CONNECTSSL))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CST_OK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CST_OK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CLT_DONT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CLT_DONT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CLT_NOW", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CLT_NOW))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CLT_AFTERWRITE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CLT_AFTERWRITE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_CLT_DEREFERENCE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::CLT_DEREFERENCE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TMO_READ", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TMO_READ))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TMO_WRITE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TMO_WRITE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TMO_ACCEPT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TMO_ACCEPT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_TMO_ALL", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::TMO_ALL))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_DNS_VHOST", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::DNS_VHOST))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Csock_DNS_DEST", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Csock::DNS_DEST))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_Csock, (void*) "ZNC::Csock"); SWIG_TypeClientData(SWIGTYPE_p_CSConnection, (void*) "ZNC::CSConnection"); SWIG_TypeClientData(SWIGTYPE_p_CSSSLConnection, (void*) "ZNC::CSSSLConnection"); SWIG_TypeClientData(SWIGTYPE_p_CSListener, (void*) "ZNC::CSListener"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSocketManager_SUCCESS", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSocketManager::SUCCESS))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSocketManager_SELECT_ERROR", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSocketManager::SELECT_ERROR))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSocketManager_SELECT_TIMEOUT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSocketManager::SELECT_TIMEOUT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSocketManager_SELECT_TRYAGAIN", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSocketManager::SELECT_TRYAGAIN))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSocketManager_ECT_Read", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSocketManager::ECT_Read))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CSocketManager_ECT_Write", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CSocketManager::ECT_Write))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CSocketManager, (void*) "ZNC::CSocketManager"); SWIG_TypeClientData(SWIGTYPE_p_TSocketManagerT_CZNCSock_t, (void*) "ZNC::ZNCSocketManager"); SWIG_TypeClientData(SWIGTYPE_p_CZNCSock, (void*) "ZNC::CZNCSock"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "ADDR_IPV4ONLY", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(ADDR_IPV4ONLY))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "ADDR_IPV6ONLY", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(ADDR_IPV6ONLY))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "ADDR_ALL", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(ADDR_ALL))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CSockManager, (void*) "ZNC::CSockManager"); SWIG_TypeClientData(SWIGTYPE_p_CSocket, (void*) "ZNC::CSocket"); SWIG_TypeClientData(SWIGTYPE_p_CIRCSocket, (void*) "ZNC::CIRCSocket"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_REGULAR", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_REGULAR))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_DIRECTORY", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_DIRECTORY))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_CHARACTER", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_CHARACTER))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_BLOCK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_BLOCK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_FIFO", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_FIFO))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_LINK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_LINK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FT_SOCK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FT_SOCK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FA_Name", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FA_Name))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FA_Size", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FA_Size))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FA_ATime", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FA_ATime))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FA_MTime", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FA_MTime))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FA_CTime", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FA_CTime))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CFile_FA_UID", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CFile::FA_UID))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CFile, (void*) "ZNC::CFile"); SWIG_TypeClientData(SWIGTYPE_p_CDir, (void*) "ZNC::CDir"); SWIG_TypeClientData(SWIGTYPE_p_CTimer, (void*) "ZNC::CTimer"); SWIG_TypeClientData(SWIGTYPE_p_CFPTimer, (void*) "ZNC::CFPTimer"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModInfo_GlobalModule", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModInfo::GlobalModule))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModInfo_UserModule", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModInfo::UserModule))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModInfo_NetworkModule", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModInfo::NetworkModule))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CModInfo, (void*) "ZNC::CModInfo"); SWIG_TypeClientData(SWIGTYPE_p_CModCommand, (void*) "ZNC::CModCommand"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModule_CONTINUE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModule::CONTINUE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModule_HALT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModule::HALT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModule_HALTMODS", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModule::HALTMODS))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModule_HALTCORE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModule::HALTCORE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CModule_UNLOAD", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CModule::UNLOAD))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CModule, (void*) "ZNC::CModule"); SWIG_TypeClientData(SWIGTYPE_p_CModules, (void*) "ZNC::CModules"); SWIG_TypeClientData(SWIGTYPE_p_CNick, (void*) "ZNC::CNick"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_Voice", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::Voice))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_HalfOp", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::HalfOp))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_Op", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::Op))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_Admin", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::Admin))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_Owner", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::Owner))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Private", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Private))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Secret", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Secret))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Moderated", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Moderated))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_InviteOnly", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_InviteOnly))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_NoMessages", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_NoMessages))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_OpTopic", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_OpTopic))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Limit", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Limit))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Key", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Key))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Op", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Op))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Voice", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Voice))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Ban", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Ban))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CChan_M_Except", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_char SWIG_PERL_CALL_ARGS_1(static_cast< char >(CChan::M_Except))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CChan, (void*) "ZNC::CChan"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CUser_HASH_NONE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CUser::HASH_NONE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CUser_HASH_MD5", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CUser::HASH_MD5))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CUser_HASH_SHA256", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CUser::HASH_SHA256))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CUser_HASH_DEFAULT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CUser::HASH_DEFAULT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CUser, (void*) "ZNC::CUser"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCNetwork_JOIN_FREQUENCY", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCNetwork::JOIN_FREQUENCY))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCNetwork_PING_FREQUENCY", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCNetwork::PING_FREQUENCY))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCNetwork_PING_SLACK", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCNetwork::PING_SLACK))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCNetwork_NO_TRAFFIC_TIMEOUT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCNetwork::NO_TRAFFIC_TIMEOUT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CIRCNetwork, (void*) "ZNC::CIRCNetwork"); SWIG_TypeClientData(SWIGTYPE_p_CAuthBase, (void*) "ZNC::CAuthBase"); SWIG_TypeClientData(SWIGTYPE_p_CClientAuth, (void*) "ZNC::CClientAuth"); SWIG_TypeClientData(SWIGTYPE_p_CClient, (void*) "ZNC::CClient"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCSock_ListArg", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCSock::ListArg))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCSock_HasArg", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCSock::HasArg))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCSock_ArgWhenSet", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCSock::ArgWhenSet))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CIRCSock_NoArg", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CIRCSock::NoArg))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CIRCSock, (void*) "ZNC::CIRCSock"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CListener_ACCEPT_IRC", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CListener::ACCEPT_IRC))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CListener_ACCEPT_HTTP", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CListener::ACCEPT_HTTP))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CListener_ACCEPT_ALL", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CListener::ACCEPT_ALL))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CListener, (void*) "ZNC::CListener"); SWIG_TypeClientData(SWIGTYPE_p_CRealListener, (void*) "ZNC::CRealListener"); SWIG_TypeClientData(SWIGTYPE_p_CIncomingConnection, (void*) "ZNC::CIncomingConnection"); SWIG_TypeClientData(SWIGTYPE_p_CHTTPSock, (void*) "ZNC::CHTTPSock"); SWIG_TypeClientData(SWIGTYPE_p_CTemplateTagHandler, (void*) "ZNC::CTemplateTagHandler"); SWIG_TypeClientData(SWIGTYPE_p_CTemplateOptions, (void*) "ZNC::CTemplateOptions"); SWIG_TypeClientData(SWIGTYPE_p_CTemplateLoopContext, (void*) "ZNC::CTemplateLoopContext"); SWIG_TypeClientData(SWIGTYPE_p_CTemplate, (void*) "ZNC::CTemplate"); SWIG_TypeClientData(SWIGTYPE_p_CZNCTagHandler, (void*) "ZNC::CZNCTagHandler"); SWIG_TypeClientData(SWIGTYPE_p_CWebSession, (void*) "ZNC::CWebSession"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CWebSubPage_F_ADMIN", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CWebSubPage::F_ADMIN))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CWebSubPage, (void*) "ZNC::CWebSubPage"); SWIG_TypeClientData(SWIGTYPE_p_CWebSessionMap, (void*) "ZNC::CWebSessionMap"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CWebSock_PAGE_NOTFOUND", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CWebSock::PAGE_NOTFOUND))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CWebSock_PAGE_PRINT", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CWebSock::PAGE_PRINT))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CWebSock_PAGE_DEFERRED", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CWebSock::PAGE_DEFERRED))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CWebSock_PAGE_DONE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CWebSock::PAGE_DONE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CWebSock, (void*) "ZNC::CWebSock"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CZNC_ECONFIG_NOTHING", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CZNC::ECONFIG_NOTHING))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CZNC_ECONFIG_NEED_REHASH", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CZNC::ECONFIG_NEED_REHASH))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CZNC_ECONFIG_NEED_WRITE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CZNC::ECONFIG_NEED_WRITE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "CZNC_ECONFIG_NEED_VERBOSE_WRITE", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(CZNC::ECONFIG_NEED_VERBOSE_WRITE))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CZNC, (void*) "ZNC::CZNC"); SWIG_TypeClientData(SWIGTYPE_p_CServer, (void*) "ZNC::CServer"); SWIG_TypeClientData(SWIGTYPE_p_CDebug, (void*) "ZNC::CDebug"); SWIG_TypeClientData(SWIGTYPE_p_CDebugStream, (void*) "ZNC::CDebugStream"); SWIG_TypeClientData(SWIGTYPE_p_CExecSock, (void*) "ZNC::CExecSock"); SWIG_TypeClientData(SWIGTYPE_p_CBufLine, (void*) "ZNC::CBufLine"); SWIG_TypeClientData(SWIGTYPE_p_CBuffer, (void*) "ZNC::CBuffer"); SWIG_TypeClientData(SWIGTYPE_p_CPerlModule, (void*) "ZNC::CPerlModule"); /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Perl_NotFound", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Perl_NotFound))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Perl_Loaded", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Perl_Loaded))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; /*@SWIG:/usr/share/swig/3.0.5/perl5/perltypemaps.swg,65,%set_constant@*/ do { SV *sv = get_sv((char*) SWIG_prefix "Perl_LoadError", TRUE | 0x2 | GV_ADDMULTI); sv_setsv(sv, SWIG_From_int SWIG_PERL_CALL_ARGS_1(static_cast< int >(Perl_LoadError))); SvREADONLY_on(sv); } while(0) /*@SWIG@*/; SWIG_TypeClientData(SWIGTYPE_p_CPerlTimer, (void*) "ZNC::CPerlTimer"); SWIG_TypeClientData(SWIGTYPE_p_CPerlSocket, (void*) "ZNC::CPerlSocket"); SWIG_TypeClientData(SWIGTYPE_p_String, (void*) "ZNC::String"); SWIG_TypeClientData(SWIGTYPE_p_std__pairT_CString_CString_t, (void*) "ZNC::StrPair"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_std__pairT_CString_CString_t_t, (void*) "ZNC::VPair"); SWIG_TypeClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_CWebSubPage_t_t, (void*) "ZNC::VWebSubPages"); ST(0) = &PL_sv_yes; XSRETURN(1); } znc-1.6.3/modules/autocycle.cpp0000644000175000017500000001325412663147131016714 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; class CAutoCycleMod : public CModule { public: MODCONSTRUCTOR(CAutoCycleMod) { AddHelpCommand(); AddCommand("Add", static_cast(&CAutoCycleMod::OnAddCommand), "[!]<#chan>", "Add an entry, use !#chan to negate and * for wildcards"); AddCommand("Del", static_cast(&CAutoCycleMod::OnDelCommand), "[!]<#chan>", "Remove an entry, needs to be an exact match"); AddCommand("List", static_cast(&CAutoCycleMod::OnListCommand), "", "List all entries"); m_recentlyCycled.SetTTL(15 * 1000); } virtual ~CAutoCycleMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { VCString vsChans; sArgs.Split(" ", vsChans, false); for (VCString::const_iterator it = vsChans.begin(); it != vsChans.end(); ++it) { if (!Add(*it)) { PutModule("Unable to add [" + *it + "]"); } } // Load our saved settings, ignore errors MCString::iterator it; for (it = BeginNV(); it != EndNV(); ++it) { Add(it->first); } // Default is auto cycle for all channels if (m_vsChans.empty()) Add("*"); return true; } void OnAddCommand(const CString& sLine) { CString sChan = sLine.Token(1); if (AlreadyAdded(sChan)) { PutModule(sChan + " is already added"); } else if (Add(sChan)) { PutModule("Added " + sChan + " to list"); } else { PutModule("Usage: Add [!]<#chan>"); } } void OnDelCommand(const CString& sLine) { CString sChan = sLine.Token(1); if (Del(sChan)) PutModule("Removed " + sChan + " from list"); else PutModule("Usage: Del [!]<#chan>"); } void OnListCommand(const CString& sLine) { CTable Table; Table.AddColumn("Chan"); for (unsigned int a = 0; a < m_vsChans.size(); a++) { Table.AddRow(); Table.SetCell("Chan", m_vsChans[a]); } for (unsigned int b = 0; b < m_vsNegChans.size(); b++) { Table.AddRow(); Table.SetCell("Chan", "!" + m_vsNegChans[b]); } if (Table.size()) { PutModule(Table); } else { PutModule("You have no entries."); } } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override { AutoCycle(Channel); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override { for (unsigned int i = 0; i < vChans.size(); i++) AutoCycle(*vChans[i]); } virtual void OnKick(const CNick& Nick, const CString& sOpNick, CChan& Channel, const CString& sMessage) override { AutoCycle(Channel); } protected: void AutoCycle(CChan& Channel) { if (!IsAutoCycle(Channel.GetName())) return; // Did we recently annoy opers via cycling of an empty channel? if (m_recentlyCycled.HasItem(Channel.GetName())) return; // Is there only one person left in the channel? if (Channel.GetNickCount() != 1) return; // Is that person us and we don't have op? const CNick& pNick = Channel.GetNicks().begin()->second; if (!pNick.HasPerm(CChan::Op) && pNick.NickEquals(GetNetwork()->GetCurNick())) { Channel.Cycle(); m_recentlyCycled.AddItem(Channel.GetName()); } } bool AlreadyAdded(const CString& sInput) { vector::iterator it; if (sInput.Left(1) == "!") { CString sChan = sInput.substr(1); for (it = m_vsNegChans.begin(); it != m_vsNegChans.end(); ++it) { if (*it == sChan) return true; } } else { for (it = m_vsChans.begin(); it != m_vsChans.end(); ++it) { if (*it == sInput) return true; } } return false; } bool Add(const CString& sChan) { if (sChan.empty() || sChan == "!") { return false; } if (sChan.Left(1) == "!") { m_vsNegChans.push_back(sChan.substr(1)); } else { m_vsChans.push_back(sChan); } // Also save it for next module load SetNV(sChan, ""); return true; } bool Del(const CString& sChan) { vector::iterator it, end; if (sChan.empty() || sChan == "!") return false; if (sChan.Left(1) == "!") { CString sTmp = sChan.substr(1); it = m_vsNegChans.begin(); end = m_vsNegChans.end(); for (; it != end; ++it) if (*it == sTmp) break; if (it == end) return false; m_vsNegChans.erase(it); } else { it = m_vsChans.begin(); end = m_vsChans.end(); for (; it != end; ++it) if (*it == sChan) break; if (it == end) return false; m_vsChans.erase(it); } DelNV(sChan); return true; } bool IsAutoCycle(const CString& sChan) { for (unsigned int a = 0; a < m_vsNegChans.size(); a++) { if (sChan.WildCmp(m_vsNegChans[a])) { return false; } } for (unsigned int b = 0; b < m_vsChans.size(); b++) { if (sChan.WildCmp(m_vsChans[b])) { return true; } } return false; } private: vector m_vsChans; vector m_vsNegChans; TCacheMap m_recentlyCycled; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("autocycle"); Info.SetHasArgs(true); Info.SetArgsHelpText("List of channel masks and channel masks with ! before them."); } NETWORKMODULEDEFS(CAutoCycleMod, "Rejoins channels to gain Op if you're the only user left") znc-1.6.3/modules/awaynick.cpp0000644000175000017500000000205312663147131016525 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include class CAwayNickMod : public CModule { public: MODCONSTRUCTOR(CAwayNickMod) {} virtual bool OnLoad(const CString&, CString& sMessage) override { sMessage = "retired module - see http://wiki.znc.in/awaynick"; return false; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("awaynick"); } NETWORKMODULEDEFS(CAwayNickMod, "retired module - see http://wiki.znc.in/awaynick") znc-1.6.3/modules/cert.cpp0000644000175000017500000000536412663147131015664 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #define REQUIRESSL #include #include #include #include class CCertMod : public CModule { public: void Delete(const CString &line) { if (CFile::Delete(PemFile())) { PutModule("Pem file deleted"); } else { PutModule("The pem file doesn't exist or there was a error deleting the pem file."); } } void Info(const CString &line) { if (HasPemFile()) { PutModule("You have a certificate in: " + PemFile()); } else { PutModule("You do not have a certificate. Please use the web interface to add a certificate"); if (GetUser()->IsAdmin()) { PutModule("Alternatively you can either place one at " + PemFile()); } } } MODCONSTRUCTOR(CCertMod) { AddHelpCommand(); AddCommand("delete", static_cast(&CCertMod::Delete), "", "Delete the current certificate"); AddCommand("info", static_cast(&CCertMod::Info), "", "Show the current certificate"); } virtual ~CCertMod() {} CString PemFile() const { return GetSavePath() + "/user.pem"; } bool HasPemFile() const { return (CFile::Exists(PemFile())); } virtual EModRet OnIRCConnecting(CIRCSock *pIRCSock) override { if (HasPemFile()) { pIRCSock->SetPemLocation(PemFile()); } return CONTINUE; } virtual CString GetWebMenuTitle() override { return "Certificate"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { Tmpl["Cert"] = CString(HasPemFile()); return true; } else if (sPageName == "update") { CFile fPemFile(PemFile()); if (fPemFile.Open(O_WRONLY | O_TRUNC | O_CREAT)) { fPemFile.Write(WebSock.GetParam("cert", true, "")); fPemFile.Close(); } WebSock.Redirect(GetWebPath()); return true; } else if (sPageName == "delete") { CFile::Delete(PemFile()); WebSock.Redirect(GetWebPath()); return true; } return false; } }; template<> void TModInfo(CModInfo& Info) { Info.AddType(CModInfo::UserModule); Info.SetWikiPage("cert"); } NETWORKMODULEDEFS(CCertMod, "Use a ssl certificate to connect to a server") znc-1.6.3/modules/lastseen.cpp0000644000175000017500000000740312663147131016541 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::map; using std::pair; using std::multimap; class CLastSeenMod : public CModule { private: time_t GetTime(const CUser *pUser) { return GetNV(pUser->GetUserName()).ToULong(); } void SetTime(const CUser *pUser) { SetNV(pUser->GetUserName(), CString(time(NULL))); } const CString FormatLastSeen(const CUser *pUser, const char* sDefault = "") { time_t last = GetTime(pUser); if (last < 1) { return sDefault; } else { char buf[1024]; strftime(buf, sizeof(buf) - 1, "%c", localtime(&last)); return buf; } } typedef multimap MTimeMulti; typedef map MUsers; void ShowCommand(const CString &sLine) { if (!GetUser()->IsAdmin()) { PutModule("Access denied"); return; } const MUsers& mUsers = CZNC::Get().GetUserMap(); MUsers::const_iterator it; CTable Table; Table.AddColumn("User"); Table.AddColumn("Last Seen"); for (it = mUsers.begin(); it != mUsers.end(); ++it) { Table.AddRow(); Table.SetCell("User", it->first); Table.SetCell("Last Seen", FormatLastSeen(it->second, "never")); } PutModule(Table); } public: MODCONSTRUCTOR(CLastSeenMod) { AddHelpCommand(); AddCommand("Show", static_cast(&CLastSeenMod::ShowCommand),"", "Shows list of users and when they last logged in"); } virtual ~CLastSeenMod() {} // Event stuff: virtual void OnClientLogin() override { SetTime(GetUser()); } virtual void OnClientDisconnect() override { SetTime(GetUser()); } virtual EModRet OnDeleteUser(CUser& User) override { DelNV(User.GetUserName()); return CONTINUE; } // Web stuff: virtual bool WebRequiresAdmin() override { return true; } virtual CString GetWebMenuTitle() override { return "Last Seen"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { CModules& GModules = CZNC::Get().GetModules(); Tmpl["WebAdminLoaded"] = CString(GModules.FindModule("webadmin") != NULL); MTimeMulti mmSorted; const MUsers& mUsers = CZNC::Get().GetUserMap(); for (MUsers::const_iterator uit = mUsers.begin(); uit != mUsers.end(); ++uit) { mmSorted.insert(pair(GetTime(uit->second), uit->second)); } for (MTimeMulti::const_iterator it = mmSorted.begin(); it != mmSorted.end(); ++it) { CUser *pUser = it->second; CTemplate& Row = Tmpl.AddRow("UserLoop"); Row["Username"] = pUser->GetUserName(); Row["IsSelf"] = CString(pUser == WebSock.GetSession()->GetUser()); Row["LastSeen"] = FormatLastSeen(pUser, "never"); } return true; } return false; } virtual bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "webadmin/user" && WebSock.GetSession()->IsAdmin()) { CUser* pUser = CZNC::Get().FindUser(Tmpl["Username"]); if (pUser) { Tmpl["LastSeen"] = FormatLastSeen(pUser); } return true; } return false; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("lastseen"); } GLOBALMODULEDEFS(CLastSeenMod, "Collects data about when a user last logged in.") znc-1.6.3/modules/flooddetach.cpp0000644000175000017500000001470212663147131017177 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::map; class CFloodDetachMod : public CModule { public: MODCONSTRUCTOR(CFloodDetachMod) { m_iThresholdSecs = 0; m_iThresholdMsgs = 0; AddHelpCommand(); AddCommand("Show", static_cast(&CFloodDetachMod::ShowCommand), ""); AddCommand("Secs", static_cast(&CFloodDetachMod::SecsCommand), "[]"); AddCommand("Lines", static_cast(&CFloodDetachMod::LinesCommand), "[]"); AddCommand("Silent", static_cast(&CFloodDetachMod::SilentCommand), "[yes|no]"); } ~CFloodDetachMod() { } void Save() { // We save the settings twice because the module arguments can // be more easily edited via webadmin, while the SetNV() stuff // survives e.g. /msg *status reloadmod ctcpflood. SetNV("secs", CString(m_iThresholdSecs)); SetNV("msgs", CString(m_iThresholdMsgs)); SetArgs(CString(m_iThresholdMsgs) + " " + CString(m_iThresholdSecs)); } bool OnLoad(const CString& sArgs, CString& sMessage) override { m_iThresholdMsgs = sArgs.Token(0).ToUInt(); m_iThresholdSecs = sArgs.Token(1).ToUInt(); if (m_iThresholdMsgs == 0 || m_iThresholdSecs == 0) { m_iThresholdMsgs = GetNV("msgs").ToUInt(); m_iThresholdSecs = GetNV("secs").ToUInt(); } if (m_iThresholdSecs == 0) m_iThresholdSecs = 2; if (m_iThresholdMsgs == 0) m_iThresholdMsgs = 5; Save(); return true; } void OnIRCDisconnected() override { m_chans.clear(); } void Cleanup() { Limits::iterator it; time_t now = time(NULL); for (it = m_chans.begin(); it != m_chans.end(); ++it) { // The timeout for this channel did not expire yet? if (it->second.first + (time_t)m_iThresholdSecs >= now) continue; CChan *pChan = GetNetwork()->FindChan(it->first); if (it->second.second >= m_iThresholdMsgs && pChan && pChan->IsDetached()) { // The channel is detached and it is over the // messages limit. Since we only track those // limits for non-detached channels or for // channels which we detached, this means that // we detached because of a flood. if (!GetNV("silent").ToBool()) { PutModule("Flood in [" + pChan->GetName() + "] is over, " "re-attaching..."); } // No buffer playback, makes sense, doesn't it? pChan->ClearBuffer(); pChan->AttachUser(); } Limits::iterator it2 = it++; m_chans.erase(it2); // Without this Bad Things (tm) could happen if (it == m_chans.end()) break; } } void Message(CChan& Channel) { Limits::iterator it; time_t now = time(NULL); // First: Clean up old entries and reattach where necessary Cleanup(); it = m_chans.find(Channel.GetName()); if (it == m_chans.end()) { // We don't track detached channels if (Channel.IsDetached()) return; // This is the first message for this channel, start a // new timeout. std::pair tmp(now, 1); m_chans[Channel.GetName()] = tmp; return; } // No need to check it->second.first (expiry time), since // Cleanup() would have removed it if it was expired. if (it->second.second >= m_iThresholdMsgs) { // The channel already hit the limit and we detached the // user, but it is still being flooded, reset the timeout it->second.first = now; it->second.second++; return; } it->second.second++; if (it->second.second < m_iThresholdMsgs) return; // The channel hit the limit, reset the timeout so that we keep // it detached for longer. it->second.first = now; Channel.DetachUser(); if (!GetNV("silent").ToBool()) { PutModule("Channel [" + Channel.GetName() + "] was " "flooded, you've been detached"); } } EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override { Message(Channel); return CONTINUE; } // This also catches OnChanAction() EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override { Message(Channel); return CONTINUE; } EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override { Message(Channel); return CONTINUE; } EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) override { Message(Channel); return CONTINUE; } void ShowCommand(const CString& sLine) { PutModule("Current limit is " + CString(m_iThresholdMsgs) + " lines " "in " + CString(m_iThresholdSecs) + " secs."); } void SecsCommand(const CString& sLine) { const CString sArg = sLine.Token(1, true); if (sArg.empty()) { PutModule("Seconds limit is [" + CString(m_iThresholdSecs) + "]"); } else { m_iThresholdSecs = sArg.ToUInt(); if (m_iThresholdSecs == 0) m_iThresholdSecs = 1; PutModule("Set seconds limit to [" + CString(m_iThresholdSecs) + "]"); Save(); } } void LinesCommand(const CString& sLine) { const CString sArg = sLine.Token(1, true); if (sArg.empty()) { PutModule("Lines limit is [" + CString(m_iThresholdMsgs) + "]"); } else { m_iThresholdMsgs = sArg.ToUInt(); if (m_iThresholdMsgs == 0) m_iThresholdMsgs = 2; PutModule("Set lines limit to [" + CString(m_iThresholdMsgs) + "]"); Save(); } } void SilentCommand(const CString& sLine) { const CString sArg = sLine.Token(1, true); if (!sArg.empty()) { SetNV("silent", CString(sArg.ToBool())); } if (GetNV("silent").ToBool()) { PutModule("Module messages are disabled"); } else { PutModule("Module messages are enabled"); } } private: typedef map > Limits; Limits m_chans; unsigned int m_iThresholdSecs; unsigned int m_iThresholdMsgs; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("flooddetach"); Info.SetHasArgs(true); Info.SetArgsHelpText("This user module takes up to two arguments. Arguments are msgs and secs numbers."); } USERMODULEDEFS(CFloodDetachMod, "Detach channels when flooded") znc-1.6.3/modules/shell.cpp0000644000175000017500000000754312663147131016037 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include using std::vector; // Forward Declaration class CShellMod; class CShellSock : public CExecSock { public: CShellSock(CShellMod* pShellMod, CClient* pClient, const CString& sExec) : CExecSock() { EnableReadLine(); m_pParent = pShellMod; m_pClient = pClient; if (Execute(sExec) == -1) { CString s = "Failed to execute: "; s += strerror(errno); ReadLine(s); return; } // Get rid of that write fd, we aren't going to use it // (And clients expecting input will fail this way). close(GetWSock()); SetWSock(open("/dev/null", O_WRONLY)); } // These next two function's bodies are at the bottom of the file since they reference CShellMod virtual void ReadLine(const CString& sData) override; virtual void Disconnected() override; CShellMod* m_pParent; private: CClient* m_pClient; }; class CShellMod : public CModule { public: MODCONSTRUCTOR(CShellMod) { m_sPath = CZNC::Get().GetHomePath(); } virtual ~CShellMod() { vector vSocks = GetManager()->FindSocksByName("SHELL"); for (unsigned int a = 0; a < vSocks.size(); a++) { GetManager()->DelSockByAddr(vSocks[a]); } } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { #ifndef MOD_SHELL_ALLOW_EVERYONE if (!GetUser()->IsAdmin()) { sMessage = "You must be admin to use the shell module"; return false; } #endif return true; } virtual void OnModCommand(const CString& sLine) override { CString sCommand = sLine.Token(0); if (sCommand.Equals("cd")) { CString sArg = sLine.Token(1, true); CString sPath = CDir::ChangeDir(m_sPath, (sArg.empty() ? CString(CZNC::Get().GetHomePath()) : sArg), CZNC::Get().GetHomePath()); CFile Dir(sPath); if (Dir.IsDir()) { m_sPath = sPath; } else if (Dir.Exists()) { PutShell("cd: not a directory [" + sPath + "]"); } else { PutShell("cd: no such directory [" + sPath + "]"); } PutShell("znc$"); } else { RunCommand(sLine); } } void PutShell(const CString& sMsg) { CString sPath = m_sPath.Replace_n(" ", "_"); CString sSource = ":" + GetModNick() + "!shell@" + sPath; CString sLine = sSource + " PRIVMSG " + GetClient()->GetNick() + " :" + sMsg; GetClient()->PutClient(sLine); } void RunCommand(const CString& sCommand) { GetManager()->AddSock(new CShellSock(this, GetClient(), "cd " + m_sPath + " && " + sCommand), "SHELL"); } private: CString m_sPath; }; void CShellSock::ReadLine(const CString& sData) { CString sLine = sData; sLine.TrimRight("\r\n"); sLine.Replace("\t", " "); m_pParent->SetClient(m_pClient); m_pParent->PutShell(sLine); m_pParent->SetClient(NULL); } void CShellSock::Disconnected() { // If there is some incomplete line in the buffer, read it // (e.g. echo echo -n "hi" triggered this) CString &sBuffer = GetInternalReadBuffer(); if (!sBuffer.empty()) ReadLine(sBuffer); m_pParent->SetClient(m_pClient); m_pParent->PutShell("znc$"); m_pParent->SetClient(NULL); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("shell"); } #ifdef MOD_SHELL_ALLOW_EVERYONE USERMODULEDEFS(CShellMod, "Gives shell access") #else USERMODULEDEFS(CShellMod, "Gives shell access. Only ZNC admins can use it.") #endif znc-1.6.3/modules/autoreply.cpp0000644000175000017500000000523612663147131016751 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Copyright (C) 2008 Michael "Svedrin" Ziegler diese-addy@funzt-halt.net * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include class CAutoReplyMod : public CModule { public: MODCONSTRUCTOR(CAutoReplyMod) { AddHelpCommand(); AddCommand("Set", static_cast(&CAutoReplyMod::OnSetCommand), "", "Sets a new reply"); AddCommand("Show", static_cast(&CAutoReplyMod::OnShowCommand), "", "Displays the current query reply"); m_Messaged.SetTTL(1000 * 120); } virtual ~CAutoReplyMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { if (!sArgs.empty()) { SetReply(sArgs); } return true; } void SetReply(const CString& sReply) { SetNV("Reply", sReply); } CString GetReply() { CString sReply = GetNV("Reply"); if (sReply.empty()) { sReply = "%nick% is currently away, try again later"; SetReply(sReply); } return ExpandString(sReply); } void Handle(const CString& sNick) { CIRCSock *pIRCSock = GetNetwork()->GetIRCSock(); if (!pIRCSock) // WTF? return; if (sNick == pIRCSock->GetNick()) return; if (m_Messaged.HasItem(sNick)) return; if (GetNetwork()->IsUserAttached()) return; m_Messaged.AddItem(sNick); PutIRC("NOTICE " + sNick + " :" + GetReply()); } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { Handle(Nick.GetNick()); return CONTINUE; } void OnShowCommand(const CString& sCommand) { PutModule("Current reply is: " + GetNV("Reply") + " (" + GetReply() + ")"); } void OnSetCommand(const CString& sCommand) { SetReply(sCommand.Token(1, true)); PutModule("New reply set"); } private: TCacheMap m_Messaged; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("autoreply"); Info.AddType(CModInfo::NetworkModule); Info.SetHasArgs(true); Info.SetArgsHelpText("You might specify a reply text. It is used when automatically answering queries, if you are not connected to ZNC."); } USERMODULEDEFS(CAutoReplyMod, "Reply to queries when you are away") znc-1.6.3/modules/sample.cpp0000644000175000017500000002302512663147131016202 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include using std::vector; #ifdef HAVE_PTHREAD class CSampleJob : public CModuleJob { public: CSampleJob(CModule *pModule) : CModuleJob(pModule, "sample", "Message the user after a delay") {} ~CSampleJob() { if (wasCancelled()) { GetModule()->PutModule("Sample job cancelled"); } else { GetModule()->PutModule("Sample job destroyed"); } } virtual void runThread() override { // Cannot safely use GetModule() in here, because this runs in its // own thread and such an access would require synchronisation // between this thread and the main thread! for (int i = 0; i < 10; i++) { // Regularly check if we were cancelled if (wasCancelled()) return; sleep(1); } } virtual void runMain() override { GetModule()->PutModule("Sample job done"); } }; #endif class CSampleTimer : public CTimer { public: CSampleTimer(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {} virtual ~CSampleTimer() {} private: protected: virtual void RunJob() override { GetModule()->PutModule("TEST!!!!"); } }; class CSampleMod : public CModule { public: MODCONSTRUCTOR(CSampleMod) {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { PutModule("I'm being loaded with the arguments: [" + sArgs + "]"); //AddTimer(new CSampleTimer(this, 300, 0, "Sample", "Sample timer for sample things.")); //AddTimer(new CSampleTimer(this, 5, 20, "Another", "Another sample timer.")); //AddTimer(new CSampleTimer(this, 25000, 5, "Third", "A third sample timer.")); #ifdef HAVE_PTHREAD AddJob(new CSampleJob(this)); #endif return true; } virtual ~CSampleMod() { PutModule("I'm being unloaded!"); } virtual bool OnBoot() override { // This is called when the app starts up (only modules that are loaded in the config will get this event) return true; } virtual void OnIRCConnected() override { PutModule("You got connected BoyOh."); } virtual void OnIRCDisconnected() override { PutModule("You got disconnected BoyOh."); } virtual EModRet OnIRCRegistration(CString& sPass, CString& sNick, CString& sIdent, CString& sRealName) override { sRealName += " - ZNC"; return CONTINUE; } virtual EModRet OnBroadcast(CString& sMessage) override { PutModule("------ [" + sMessage + "]"); sMessage = "======== [" + sMessage + "] ========"; return CONTINUE; } virtual void OnChanPermission(const CNick& OpNick, const CNick& Nick, CChan& Channel, unsigned char uMode, bool bAdded, bool bNoChange) override { PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] set mode [" + Channel.GetName() + ((bAdded) ? "] +" : "] -") + CString(uMode) + " " + Nick.GetNick()); } virtual void OnOp(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] opped [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); } virtual void OnDeop(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] deopped [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); } virtual void OnVoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] voiced [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); } virtual void OnDevoice(const CNick& OpNick, const CNick& Nick, CChan& Channel, bool bNoChange) override { PutModule(((bNoChange) ? "[0] [" : "[1] [") + OpNick.GetNick() + "] devoiced [" + Nick.GetNick() + "] on [" + Channel.GetName() + "]"); } virtual void OnRawMode(const CNick& OpNick, CChan& Channel, const CString& sModes, const CString& sArgs) override { PutModule("* " + OpNick.GetNick() + " sets mode: " + sModes + " " + sArgs + " (" + Channel.GetName() + ")"); } virtual EModRet OnRaw(CString& sLine) override { // PutModule("OnRaw() [" + sLine + "]"); return CONTINUE; } virtual EModRet OnUserRaw(CString& sLine) override { // PutModule("UserRaw() [" + sLine + "]"); return CONTINUE; } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override { PutModule("[" + OpNick.GetNick() + "] kicked [" + sKickedNick + "] from [" + Channel.GetName() + "] with the msg [" + sMessage + "]"); } virtual void OnQuit(const CNick& Nick, const CString& sMessage, const vector& vChans) override { PutModule("* Quits: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ") (" + sMessage + ")"); } virtual EModRet OnTimerAutoJoin(CChan& Channel) override { PutModule("Attempting to join " + Channel.GetName()); return CONTINUE; } virtual void OnJoin(const CNick& Nick, CChan& Channel) override { PutModule("* Joins: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ")"); } virtual void OnPart(const CNick& Nick, CChan& Channel, const CString& sMessage) override { PutModule("* Parts: " + Nick.GetNick() + " (" + Nick.GetIdent() + "!" + Nick.GetHost() + ")"); } virtual EModRet OnInvite(const CNick& Nick, const CString& sChan) override { if (sChan.Equals("#test")) { PutModule(Nick.GetNick() + " invited us to " + sChan + ", ignoring invites to " + sChan); return HALT; } PutModule(Nick.GetNick() + " invited us to " + sChan); return CONTINUE; } virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) override { PutModule("* " + OldNick.GetNick() + " is now known as " + sNewNick); } virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) override { PutModule("[" + sTarget + "] userctcpreply [" + sMessage + "]"); sMessage = "\037" + sMessage + "\037"; return CONTINUE; } virtual EModRet OnCTCPReply(CNick& Nick, CString& sMessage) override { PutModule("[" + Nick.GetNick() + "] ctcpreply [" + sMessage + "]"); return CONTINUE; } virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) override { PutModule("[" + sTarget + "] userctcp [" + sMessage + "]"); return CONTINUE; } virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override { PutModule("[" + Nick.GetNick() + "] privctcp [" + sMessage + "]"); sMessage = "\002" + sMessage + "\002"; return CONTINUE; } virtual EModRet OnChanCTCP(CNick& Nick, CChan& Channel, CString& sMessage) override { PutModule("[" + Nick.GetNick() + "] chanctcp [" + sMessage + "] to [" + Channel.GetName() + "]"); sMessage = "\00311,5 " + sMessage + " \003"; return CONTINUE; } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { PutModule("[" + sTarget + "] usernotice [" + sMessage + "]"); sMessage = "\037" + sMessage + "\037"; return CONTINUE; } virtual EModRet OnPrivNotice(CNick& Nick, CString& sMessage) override { PutModule("[" + Nick.GetNick() + "] privnotice [" + sMessage + "]"); sMessage = "\002" + sMessage + "\002"; return CONTINUE; } virtual EModRet OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) override { PutModule("[" + Nick.GetNick() + "] channotice [" + sMessage + "] to [" + Channel.GetName() + "]"); sMessage = "\00311,5 " + sMessage + " \003"; return CONTINUE; } virtual EModRet OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) override { PutModule("* " + Nick.GetNick() + " changes topic on " + Channel.GetName() + " to '" + sTopic + "'"); return CONTINUE; } virtual EModRet OnUserTopic(CString& sTarget, CString& sTopic) override { PutModule("* " + GetClient()->GetNick() + " changed topic on " + sTarget + " to '" + sTopic + "'"); return CONTINUE; } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override { PutModule("[" + sTarget + "] usermsg [" + sMessage + "]"); sMessage = "Sample: \0034" + sMessage + "\003"; return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { PutModule("[" + Nick.GetNick() + "] privmsg [" + sMessage + "]"); sMessage = "\002" + sMessage + "\002"; return CONTINUE; } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override { if (sMessage == "!ping") { PutIRC("PRIVMSG " + Channel.GetName() + " :PONG?"); } sMessage = "x " + sMessage + " x"; PutModule(sMessage); return CONTINUE; } virtual void OnModCommand(const CString& sCommand) override { if (sCommand.Equals("TIMERS")) { ListTimers(); } } virtual EModRet OnStatusCommand(CString& sCommand) override { if (sCommand.Equals("SAMPLE")) { PutModule("Hi, I'm your friendly sample module."); return HALT; } return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("sample"); Info.SetHasArgs(true); Info.SetArgsHelpText("Description of module arguments goes here."); } MODULEDEFS(CSampleMod, "To be used as a sample for writing modules") znc-1.6.3/modules/modtcl/0000755000175000017500000000000012663147131015475 5ustar somebodysomebodyznc-1.6.3/modules/modtcl/Makefile.inc0000644000175000017500000000060312663147131017704 0ustar somebodysomebodyifeq "$(TCL_FLAGS)" "" FILES := $(shell echo $(FILES) | sed -e "s:modtcl::") else TCLHOOK := modtcl_install endif modtclCXXFLAGS := $(TCL_FLAGS) modtclLDFLAGS := $(TCL_FLAGS) .PHONY: modtcl_install install: $(TCLHOOK) modtcl_install: mkdir -p $(DESTDIR)$(DATADIR)/modtcl/ $(INSTALL_DATA) $(srcdir)/modtcl/modtcl.tcl $(srcdir)/modtcl/binds.tcl $(DESTDIR)$(DATADIR)/modtcl/ znc-1.6.3/modules/modtcl/modtcl.tcl0000644000175000017500000001121012663147131017456 0ustar somebodysomebody# Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # TCL master file for ZNC modtcl # # Usage: LoadModule = modtcl /path/to/this/file # # rehash simply reloads this file and shows info for any errors set ::MasterFile [info script] proc rehash {} { if {[catch {source $::MasterFile}]} { PutModule "Error rehashing tcl master file: $::errorInfo" } } proc bgerror {message} { PutModule "Background error: $::errorInfo" } # set basic eggdrop style variables set ::botnet-nick ZNC_[GetUsername] set ::botnick [GetCurNick] set ::server [GetServer] set ::server-online [expr [GetServerOnline] / 1000] # add some eggdrop style procs proc putlog message {PutModule $message} proc puthelp {text {option ""}} { if {[regexp -nocase {^(?:privmsg|notice) (\S+) :(.*)} $text . target line]} { if {$target == "*modtcl"} {PutModule $line; return} if {$target == "*status"} {PutStatus $line; return} if {[string index $target 0] != "#" || [botonchan $target]} {PutUser ":$::botnick![getchanhost $::botnick] $text"} } PutIRC $text } proc putserv {text {option ""}} {puthelp $text} proc putquick {text {option ""}} {puthelp $text} proc stripcodes {flags args} {return [regsub -all {\xF|\x2|\x16|\x1F|\x7|\x3([0-9]{1,2})?(,[0-9]{1,2})?} [join $args] {}]} proc unixtime {} {return [clock seconds]} proc duration {s} { set ret "" foreach {n m} "year 31536000 week 604800 day 86400 hour 3600 minute 60 second 1" { if {$s >= $m} { set tmp [expr $s / $m] if {$tmp == 1} {set i ""} else {set i "s"} set ret $ret[format "%lu %s%s " $tmp $n $i] incr s -[expr $tmp * $m] } } return $ret } proc encrypt {key string} {return [bencrypt $key $string]} proc decrypt {key string} {return [bdecrypt $key $string]} proc channels {} {return [GetChans]} proc chanlist {channel {flags ""}} { set ret "" foreach u [GetChannelUsers [string trim $channel "{}"]] {lappend ret [lindex $u 0]} return $ret } proc getchanmode channel {return [GetChannelModes [string trim $channel "{}"]]} proc getchanhost {nick {channel ""}} { # TODO: to have full info here we need to use /who #chan when we join if {$channel == ""} {set channel [join [channels]]} foreach c $channel { foreach u [GetChannelUsers $c] { if {[string match $nick [lindex $u 0]]} { return "[lindex $u 1]@[lindex $u 2]" } } } return "" } proc onchan {nick chan} {return [expr [lsearch -exact [string tolower [chanlist $chan]] [string tolower $nick]] != -1]} proc botonchan channel {return [onchan $::botnick $channel]} proc isop {nick {channel ""}} {return [PermCheck $nick "@" $channel]} proc isvoice {nick {channel ""}} {return [PermCheck $nick "+" $channel]} proc botisop {{channel ""}} {return [isop $::botnick $channel]} proc botisvoice {{channel ""}} {return [isvoice $::botnick $channel]} proc PermCheck {nick perm channel} { if {$channel == ""} {set channel [channels]} if {[ModuleLoaded crypt]} {regsub {^\244} $nick {} nick} foreach c $channel { foreach u [GetChannelUsers $c] { if {[string match -nocase $nick [lindex $u 0]] && [string match *$perm* [lindex $u 3]]} { return 1 } } } return 0 } proc ModuleLoaded modname { foreach {mod args glob} [join [GetModules]] { if {[string match -nocase $modname $mod]} {return 1} } return 0 } # rewrite all timers to use the after command proc utimer {seconds tcl-command} {after [expr $seconds * 1000] ${tcl-command}} proc timer {minutes tcl-command} {after [expr $minutes * 60 * 1000] ${tcl-command}} proc utimers {} {set t {}; foreach a [after info] {lappend t "0 [lindex [after info $a] 0] $a"}; return $t} proc timers {} {set t {}; foreach a [after info] {lappend t "0 [lindex [after info $a] 0] $a"}; return $t} proc killtimer id {return [after cancel $id]} proc killutimer id {return [after cancel $id]} # pseudo procs to satisfy script loading, no functionality proc setudef {type name} {return} proc modules {} {return "encryption"} proc channel {command {options ""}} {return ""} proc queuesize {{queue ""}} {return 0} proc matchattr {handle flags {channel ""}} {return 0} # load other script files source [file dirname $::MasterFile]/binds.tcl PutModule "Succesfully loaded modtcl with master file: [info script]" znc-1.6.3/modules/modtcl/binds.tcl0000644000175000017500000001164412663147131017306 0ustar somebodysomebody# Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # Binds module to process incoming messages with ZNC modtcl # # Supported bind types: bot, dcc, evnt, kick, msg, msgm, nick, pub, pubm, time # evnt: prerehash,rehash,init-server,disconnect-server # namespace eval Binds { # vars if {![info exists Binds::List]} { variable List [list] } # procs proc Add {type flags cmd {procname ""}} { if {![regexp {^(bot|dcc|evnt|kick|msg|msgm|nick|pub|pubm|time)$} $type]} { PutModule "Tcl error: Bind type: $type not supported" return } # ToDo: Flags check from user info (IsAdmin, etc) # ToDo: bind hit counter if {[lsearch $Binds::List "$type $flags [list $cmd] 0 [list $procname]"] == -1} { lappend Binds::List "$type $flags [list $cmd] 0 [list $procname]" } return $cmd } proc Del {type flags cmd procname} { if {[set match [lsearch [binds] "$type $flags $cmd 0 $procname"]] != -1 || [set match [lsearch [binds] "$type $flags {${cmd}} 0 $procname"]] != -1} { set Binds::List [lreplace $Binds::List $match $match] return $cmd } else { error "Tcl error: no such binding" } } proc ProcessPubm {nick user handle channel text} { # Loop bind list and execute foreach n [binds pub] { if {[string match [lindex $n 2] [lindex [split $text] 0]]} { [lindex $n 4] $nick $user $handle $channel [lrange [join $text] 1 end] } } foreach {type flags mask hits proc} [join [binds pubm]] { regsub {^%} $mask {*} mask if {[ModuleLoaded crypt]} {regsub {^\244} $nick {} nick} if {[string match -nocase $mask "$channel $text"]} { $proc $nick $user $handle $channel $text } } } proc ProcessMsgm {nick user handle text} { # Loop bind list and execute foreach n [binds msg] { if {[string match [lindex $n 2] [lindex [split $text] 0]]} { [lindex $n 4] $nick $user $handle [lrange [join $text] 1 end] } } foreach {type flags mask hits proc} [join [binds msgm]] { regsub {^%} $mask {*} mask if {[ModuleLoaded crypt]} {regsub {^\244} $nick {} nick} if {[string match -nocase $mask "$text"]} { $proc $nick $user $handle $text } } } proc ProcessTime {} { if {[clock format [clock seconds] -format "%S"] != 0} {return} set time [clock format [clock seconds] -format "%M %H %d %m %Y"] foreach {mi ho da mo ye} $time {} # Loop bind list and execute foreach n [binds time] { if {[string match [lindex $n 2] $time]} { [lindex $n 4] $mi $ho $da $mo $ye } } } proc ProcessEvnt {event} { foreach n [binds evnt] { if {[string match [lindex $n 2] $event]} { [lindex $n 4] $event } } switch $event { init-server { set ::botnick [GetCurNick] set ::server [GetServer] set ::server-online [expr [GetServerOnline] / 1000] } disconnect-server { set ::botnick "" set ::server "" set ::server-online 0 } } } proc ProcessBot {from-bot cmd text} { foreach n [binds bot] { if {[string match [lindex $n 2] $cmd]} { [lindex $n 4] ${from-bot} $cmd $text } } } proc ProcessNick {nick user handle channel newnick} { if {$nick == $::botnick} {set ::botnick $newnick} foreach n [binds nick] { if {[string match [lindex $n 2] $newnick]} { [lindex $n 4] $nick $user $handle $channel $newnick } } } proc ProcessKick {nick user handle channel target reason} { foreach n [binds kick] { if {[string match [lindex $n 2 0] $channel]} { if {[llength [lindex $n 2]] <= 1 || [string match [lindex $n 2 1] $target]} { if {[llength [lindex $n 2]] <= 2 || [string match [lindex $n 2 2] $reason]} { [lindex $n 4] $nick $user $handle $channel $target $reason } } } } } proc ProcessDcc {handle idx text} { set match 0 foreach n [binds dcc] { if {[string match -nocase [lindex $n 2] [string range [lindex $text 0] 1 end]]} { [lindex $n 4] $handle $idx [lrange $text 1 end] set match 1 } } if {!$match} { PutModule "Error, dcc trigger '[string range [lindex $text 0] 1 end]' doesnt exist" } } } # Provide aliases according to eggdrop specs proc ::bind {type flags cmd procname} {Binds::Add $type $flags $cmd $procname} proc ::unbind {type flags cmd procname} {Binds::Del $type $flags $cmd $procname} proc ::binds {{type ""}} {if {$type != ""} {set type "$type "};return [lsearch -all -inline $Binds::List "$type*"]} proc ::bindlist {{type ""}} {foreach bind $Binds::List {PutModule "$bind"}} PutModule "modtcl script loaded: Binds v0.2" znc-1.6.3/modules/listsockets.cpp0000644000175000017500000001511112663147131017265 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include class CSocketSorter { public: CSocketSorter(Csock* p) { m_pSock = p; } bool operator<(const CSocketSorter& other) const { // The 'biggest' item is displayed first. // return false: this is first // return true: other is first // Listeners go to the top if (m_pSock->GetType() != other.m_pSock->GetType()) { if (m_pSock->GetType() == Csock::LISTENER) return false; if (other.m_pSock->GetType() == Csock::LISTENER) return true; } const CString& sMyName = m_pSock->GetSockName(); const CString& sMyName2 = sMyName.Token(1, true, "::"); bool bMyEmpty = sMyName2.empty(); const CString& sHisName = other.GetSock()->GetSockName(); const CString& sHisName2 = sHisName.Token(1, true, "::"); bool bHisEmpty = sHisName2.empty(); // Then sort by first token after "::" if (bMyEmpty && !bHisEmpty) return false; if (bHisEmpty && !bMyEmpty) return true; if (!bMyEmpty && !bHisEmpty) { int c = sMyName2.StrCmp(sHisName2); if (c < 0) return false; if (c > 0) return true; } // and finally sort by the whole socket name return sMyName.StrCmp(sHisName) > 0; } Csock* GetSock() const { return m_pSock; } private: Csock* m_pSock; }; class CListSockets : public CModule { public: MODCONSTRUCTOR(CListSockets) { AddHelpCommand(); AddCommand("List", static_cast(&CListSockets::OnListCommand), "[-n]", "Show the list of active sockets. Pass -n to show IP addresses"); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { #ifndef MOD_LISTSOCKETS_ALLOW_EVERYONE if (!GetUser()->IsAdmin()) { sMessage = "You must be admin to use this module"; return false; } #endif return true; } std::priority_queue GetSockets() { CSockManager& m = CZNC::Get().GetManager(); std::priority_queue ret; for (unsigned int a = 0; a < m.size(); a++) { Csock* pSock = m[a]; // These sockets went through SwapSockByAddr. That means // another socket took over the connection from this // socket. So ignore this to avoid listing the // connection twice. if (pSock->GetCloseType() == Csock::CLT_DEREFERENCE) continue; ret.push(pSock); } return ret; } virtual bool WebRequiresAdmin() override { return true; } virtual CString GetWebMenuTitle() override { return "List sockets"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { if (CZNC::Get().GetManager().empty()) { return false; } std::priority_queue socks = GetSockets(); while (!socks.empty()) { Csock* pSocket = socks.top().GetSock(); socks.pop(); CTemplate& Row = Tmpl.AddRow("SocketsLoop"); Row["Name"] = pSocket->GetSockName(); Row["Created"] = GetCreatedTime(pSocket); Row["State"] = GetSocketState(pSocket); Row["SSL"] = pSocket->GetSSL() ? "Yes" : "No"; Row["Local"] = GetLocalHost(pSocket, true); Row["Remote"] = GetRemoteHost(pSocket, true); Row["In"] = CString::ToByteStr(pSocket->GetBytesRead()); Row["Out"] = CString::ToByteStr(pSocket->GetBytesWritten()); } return true; } return false; } void OnListCommand(const CString& sLine) { CString sArg = sLine.Token(1, true); bool bShowHosts = true; if (sArg.Equals("-n")) { bShowHosts = false; } ShowSocks(bShowHosts); } CString GetSocketState(Csock* pSocket) { switch (pSocket->GetType()) { case Csock::LISTENER: return "Listener"; case Csock::INBOUND: return "Inbound"; case Csock::OUTBOUND: if (pSocket->IsConnected()) return "Outbound"; else return "Connecting"; } return "UNKNOWN"; } CString GetCreatedTime(Csock* pSocket) { unsigned long long iStartTime = pSocket->GetStartTime(); time_t iTime = iStartTime / 1000; return CUtils::FormatTime(iTime, "%Y-%m-%d %H:%M:%S", GetUser()->GetTimezone()); } CString GetLocalHost(Csock* pSocket, bool bShowHosts) { CString sBindHost; if (bShowHosts) { sBindHost = pSocket->GetBindHost(); } if (sBindHost.empty()) { sBindHost = pSocket->GetLocalIP(); } return sBindHost + " " + CString(pSocket->GetLocalPort()); } CString GetRemoteHost(Csock* pSocket, bool bShowHosts) { CString sHost; u_short uPort; if (!bShowHosts) { sHost = pSocket->GetRemoteIP(); } // While connecting, there might be no ip available if (sHost.empty()) { sHost = pSocket->GetHostName(); } // While connecting, GetRemotePort() would return 0 if (pSocket->GetType() == Csock::OUTBOUND) { uPort = pSocket->GetPort(); } else { uPort = pSocket->GetRemotePort(); } if (uPort != 0) { return sHost + " " + CString(uPort); } return sHost; } void ShowSocks(bool bShowHosts) { if (CZNC::Get().GetManager().empty()) { PutStatus("You have no open sockets."); return; } std::priority_queue socks = GetSockets(); CTable Table; Table.AddColumn("Name"); Table.AddColumn("Created"); Table.AddColumn("State"); #ifdef HAVE_LIBSSL Table.AddColumn("SSL"); #endif Table.AddColumn("Local"); Table.AddColumn("Remote"); Table.AddColumn("In"); Table.AddColumn("Out"); while (!socks.empty()) { Csock* pSocket = socks.top().GetSock(); socks.pop(); Table.AddRow(); Table.SetCell("Name", pSocket->GetSockName()); Table.SetCell("Created", GetCreatedTime(pSocket)); Table.SetCell("State", GetSocketState(pSocket)); #ifdef HAVE_LIBSSL Table.SetCell("SSL", pSocket->GetSSL() ? "Yes" : "No"); #endif Table.SetCell("Local", GetLocalHost(pSocket, bShowHosts)); Table.SetCell("Remote", GetRemoteHost(pSocket, bShowHosts)); Table.SetCell("In", CString::ToByteStr(pSocket->GetBytesRead())); Table.SetCell("Out", CString::ToByteStr(pSocket->GetBytesWritten())); } PutModule(Table); return; } virtual ~CListSockets() { } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("listsockets"); } USERMODULEDEFS(CListSockets, "List active sockets") znc-1.6.3/modules/webadmin.cpp0000644000175000017500000017323612663147131016521 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include using std::stringstream; using std::make_pair; using std::set; using std::vector; using std::map; /* Stuff to be able to write this: // i will be name of local variable, see below // pUser can be NULL if only global modules are needed FOR_EACH_MODULE(i, pUser) { // i is local variable of type CModules::iterator, // so *i has type CModule* } */ struct FOR_EACH_MODULE_Type { enum { AtGlobal, AtUser, AtNetwork, } where; CModules CMtemp; CModules& CMuser; CModules& CMnet; FOR_EACH_MODULE_Type(CUser* pUser) : CMuser(pUser ? pUser->GetModules() : CMtemp), CMnet(CMtemp) { where = AtGlobal; } FOR_EACH_MODULE_Type(CIRCNetwork* pNetwork) : CMuser(pNetwork ? pNetwork->GetUser()->GetModules() : CMtemp), CMnet(pNetwork ? pNetwork->GetModules() : CMtemp) { where = AtGlobal; } FOR_EACH_MODULE_Type(std::pair arg) : CMuser(arg.first ? arg.first->GetModules() : CMtemp), CMnet(arg.second ? arg.second->GetModules() : CMtemp) { where = AtGlobal; } operator bool() { return false; } }; inline bool FOR_EACH_MODULE_CanContinue(FOR_EACH_MODULE_Type& state, CModules::iterator& i) { if (state.where == FOR_EACH_MODULE_Type::AtGlobal && i == CZNC::Get().GetModules().end()) { i = state.CMuser.begin(); state.where = FOR_EACH_MODULE_Type::AtUser; } if (state.where == FOR_EACH_MODULE_Type::AtUser && i == state.CMuser.end()) { i = state.CMnet.begin(); state.where = FOR_EACH_MODULE_Type::AtNetwork; } return !(state.where == FOR_EACH_MODULE_Type::AtNetwork && i == state.CMnet.end()); } #define FOR_EACH_MODULE(I, pUserOrNetwork)\ if (FOR_EACH_MODULE_Type FOR_EACH_MODULE_Var = pUserOrNetwork) {} else\ for (CModules::iterator I = CZNC::Get().GetModules().begin(); FOR_EACH_MODULE_CanContinue(FOR_EACH_MODULE_Var, I); ++I) class CWebAdminMod : public CModule { public: MODCONSTRUCTOR(CWebAdminMod) { VPair vParams; vParams.push_back(make_pair("user", "")); AddSubPage(std::make_shared("settings", "Global Settings", CWebSubPage::F_ADMIN)); AddSubPage(std::make_shared("edituser", "Your Settings", vParams)); AddSubPage(std::make_shared("traffic", "Traffic Info", CWebSubPage::F_ADMIN)); AddSubPage(std::make_shared("listusers", "Manage Users", CWebSubPage::F_ADMIN)); } virtual ~CWebAdminMod() { } virtual bool OnLoad(const CString& sArgStr, CString& sMessage) override { if (sArgStr.empty() || CModInfo::GlobalModule != GetType()) return true; // We don't accept any arguments, but for backwards // compatibility we have to do some magic here. sMessage = "Arguments converted to new syntax"; bool bSSL = false; bool bIPv6 = false; bool bShareIRCPorts = true; unsigned short uPort = 8080; CString sArgs(sArgStr); CString sPort; CString sListenHost; CString sURIPrefix; while (sArgs.Left(1) == "-") { CString sOpt = sArgs.Token(0); sArgs = sArgs.Token(1, true); if (sOpt.Equals("-IPV6")) { bIPv6 = true; } else if (sOpt.Equals("-IPV4")) { bIPv6 = false; } else if (sOpt.Equals("-noircport")) { bShareIRCPorts = false; } else { // Uhm... Unknown option? Let's just ignore all // arguments, older versions would have returned // an error and denied loading return true; } } // No arguments left: Only port sharing if (sArgs.empty() && bShareIRCPorts) return true; if (sArgs.find(" ") != CString::npos) { sListenHost = sArgs.Token(0); sPort = sArgs.Token(1, true); } else { sPort = sArgs; } if (sPort.Left(1) == "+") { sPort.TrimLeft("+"); bSSL = true; } if (!sPort.empty()) { uPort = sPort.ToUShort(); } if (!bShareIRCPorts) { // Make all existing listeners IRC-only const vector& vListeners = CZNC::Get().GetListeners(); vector::const_iterator it; for (it = vListeners.begin(); it != vListeners.end(); ++it) { (*it)->SetAcceptType(CListener::ACCEPT_IRC); } } // Now turn that into a listener instance CListener *pListener = new CListener(uPort, sListenHost, sURIPrefix, bSSL, (!bIPv6 ? ADDR_IPV4ONLY : ADDR_ALL), CListener::ACCEPT_HTTP); if (!pListener->Listen()) { sMessage = "Failed to add backwards-compatible listener"; return false; } CZNC::Get().AddListener(pListener); SetArgs(""); return true; } CUser* GetNewUser(CWebSock& WebSock, CUser* pUser) { std::shared_ptr spSession = WebSock.GetSession(); CString sUsername = WebSock.GetParam("newuser"); if (sUsername.empty()) { sUsername = WebSock.GetParam("user"); } if (sUsername.empty()) { WebSock.PrintErrorPage("Invalid Submission [Username is required]"); return NULL; } if (pUser) { /* If we are editing a user we must not change the user name */ sUsername = pUser->GetUserName(); } CString sArg = WebSock.GetParam("password"); if (sArg != WebSock.GetParam("password2")) { WebSock.PrintErrorPage("Invalid Submission [Passwords do not match]"); return NULL; } CUser* pNewUser = new CUser(sUsername); if (!sArg.empty()) { CString sSalt = CUtils::GetSalt(); CString sHash = CUser::SaltedHash(sArg, sSalt); pNewUser->SetPass(sHash, CUser::HASH_DEFAULT, sSalt); } VCString vsArgs; unsigned int a = 0; WebSock.GetRawParam("allowedips").Split("\n", vsArgs); if (vsArgs.size()) { for (a = 0; a < vsArgs.size(); a++) { pNewUser->AddAllowedHost(vsArgs[a].Trim_n()); } } else { pNewUser->AddAllowedHost("*"); } WebSock.GetRawParam("ctcpreplies").Split("\n", vsArgs); for (a = 0; a < vsArgs.size(); a++) { CString sReply = vsArgs[a].TrimRight_n("\r"); pNewUser->AddCTCPReply(sReply.Token(0).Trim_n(), sReply.Token(1, true).Trim_n()); } sArg = WebSock.GetParam("nick"); if (!sArg.empty()) { pNewUser->SetNick(sArg); } sArg = WebSock.GetParam("altnick"); if (!sArg.empty()) { pNewUser->SetAltNick(sArg); } sArg = WebSock.GetParam("statusprefix"); if (!sArg.empty()) { pNewUser->SetStatusPrefix(sArg); } sArg = WebSock.GetParam("ident"); if (!sArg.empty()) { pNewUser->SetIdent(sArg); } sArg = WebSock.GetParam("realname"); if (!sArg.empty()) { pNewUser->SetRealName(sArg); } sArg = WebSock.GetParam("quitmsg"); if (!sArg.empty()) { pNewUser->SetQuitMsg(sArg); } sArg = WebSock.GetParam("chanmodes"); if (!sArg.empty()) { pNewUser->SetDefaultChanModes(sArg); } sArg = WebSock.GetParam("timestampformat"); if (!sArg.empty()) { pNewUser->SetTimestampFormat(sArg); } sArg = WebSock.GetParam("bindhost"); // To change BindHosts be admin or don't have DenySetBindHost if (spSession->IsAdmin() || !spSession->GetUser()->DenySetBindHost()) { CString sArg2 = WebSock.GetParam("dccbindhost"); if (!sArg.empty()) { pNewUser->SetBindHost(sArg); } if (!sArg2.empty()) { pNewUser->SetDCCBindHost(sArg2); } const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (!spSession->IsAdmin() && !vsHosts.empty()) { VCString::const_iterator it; bool bFound = false; bool bFoundDCC = false; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { if (sArg.Equals(*it)) { bFound = true; } if (sArg2.Equals(*it)) { bFoundDCC = true; } } if (!bFound) { pNewUser->SetBindHost(pUser ? pUser->GetBindHost() : ""); } if (!bFoundDCC) { pNewUser->SetDCCBindHost(pUser ? pUser->GetDCCBindHost() : ""); } } } else if (pUser){ pNewUser->SetBindHost(pUser->GetBindHost()); pNewUser->SetDCCBindHost(pUser->GetDCCBindHost()); } sArg = WebSock.GetParam("bufsize"); if (!sArg.empty()) pNewUser->SetBufferCount(sArg.ToUInt(), spSession->IsAdmin()); if (!sArg.empty()) { // First apply the old limit in case the new one is too high if (pUser) pNewUser->SetBufferCount(pUser->GetBufferCount(), true); pNewUser->SetBufferCount(sArg.ToUInt(), spSession->IsAdmin()); } pNewUser->SetSkinName(WebSock.GetParam("skin")); pNewUser->SetAutoClearChanBuffer(WebSock.GetParam("autoclearchanbuffer").ToBool()); pNewUser->SetMultiClients(WebSock.GetParam("multiclients").ToBool()); pNewUser->SetTimestampAppend(WebSock.GetParam("appendtimestamp").ToBool()); pNewUser->SetTimestampPrepend(WebSock.GetParam("prependtimestamp").ToBool()); pNewUser->SetTimezone(WebSock.GetParam("timezone")); pNewUser->SetJoinTries(WebSock.GetParam("jointries").ToUInt()); pNewUser->SetMaxJoins(WebSock.GetParam("maxjoins").ToUInt()); pNewUser->SetAutoClearQueryBuffer(WebSock.GetParam("autoclearquerybuffer").ToBool()); pNewUser->SetMaxQueryBuffers(WebSock.GetParam("maxquerybuffers").ToUInt()); #ifdef HAVE_ICU CString sEncodingUtf = WebSock.GetParam("encoding_utf"); if (sEncodingUtf == "legacy") { pNewUser->SetClientEncoding(""); } CString sEncoding = WebSock.GetParam("encoding"); if (sEncoding.empty()) { sEncoding = "UTF-8"; } if (sEncodingUtf == "send") { pNewUser->SetClientEncoding("^" + sEncoding); } else if (sEncodingUtf == "receive") { pNewUser->SetClientEncoding("*" + sEncoding); } else if (sEncodingUtf == "simple") { pNewUser->SetClientEncoding(sEncoding); } #endif if (spSession->IsAdmin()) { pNewUser->SetDenyLoadMod(WebSock.GetParam("denyloadmod").ToBool()); pNewUser->SetDenySetBindHost(WebSock.GetParam("denysetbindhost").ToBool()); sArg = WebSock.GetParam("maxnetworks"); if (!sArg.empty()) pNewUser->SetMaxNetworks(sArg.ToUInt()); } else if (pUser) { pNewUser->SetDenyLoadMod(pUser->DenyLoadMod()); pNewUser->SetDenySetBindHost(pUser->DenySetBindHost()); pNewUser->SetMaxNetworks(pUser->MaxNetworks()); } // If pUser is not NULL, we are editing an existing user. // Users must not be able to change their own admin flag. if (pUser != CZNC::Get().FindUser(WebSock.GetUser())) { pNewUser->SetAdmin(WebSock.GetParam("isadmin").ToBool()); } else if (pUser) { pNewUser->SetAdmin(pUser->IsAdmin()); } if (spSession->IsAdmin() || (pUser && !pUser->DenyLoadMod())) { WebSock.GetParamValues("loadmod", vsArgs); // disallow unload webadmin from itself if (CModInfo::UserModule == GetType() && pUser == CZNC::Get().FindUser(WebSock.GetUser())) { bool bLoadedWebadmin = false; for (a = 0; a < vsArgs.size(); ++a) { CString sModName = vsArgs[a].TrimRight_n("\r"); if (sModName == GetModName()) { bLoadedWebadmin = true; break; } } if (!bLoadedWebadmin) { vsArgs.push_back(GetModName()); } } for (a = 0; a < vsArgs.size(); a++) { CString sModRet; CString sModName = vsArgs[a].TrimRight_n("\r"); CString sModLoadError; if (!sModName.empty()) { CString sArgs = WebSock.GetParam("modargs_" + sModName); try { if (!pNewUser->GetModules().LoadModule(sModName, sArgs, CModInfo::UserModule, pNewUser, NULL, sModRet)) { sModLoadError = "Unable to load module [" + sModName + "] [" + sModRet + "]"; } } catch (...) { sModLoadError = "Unable to load module [" + sModName + "] [" + sArgs + "]"; } if (!sModLoadError.empty()) { DEBUG(sModLoadError); spSession->AddError(sModLoadError); } } } } else if (pUser) { CModules& Modules = pUser->GetModules(); for (a = 0; a < Modules.size(); a++) { CString sModName = Modules[a]->GetModName(); CString sArgs = Modules[a]->GetArgs(); CString sModRet; CString sModLoadError; try { if (!pNewUser->GetModules().LoadModule(sModName, sArgs, CModInfo::UserModule, pNewUser, NULL, sModRet)) { sModLoadError = "Unable to load module [" + sModName + "] [" + sModRet + "]"; } } catch (...) { sModLoadError = "Unable to load module [" + sModName + "]"; } if (!sModLoadError.empty()) { DEBUG(sModLoadError); spSession->AddError(sModLoadError); } } } return pNewUser; } CString SafeGetUserNameParam(CWebSock& WebSock) { CString sUserName = WebSock.GetParam("user"); // check for POST param if(sUserName.empty() && !WebSock.IsPost()) { // if no POST param named user has been given and we are not // saving this form, fall back to using the GET parameter. sUserName = WebSock.GetParam("user", false); } return sUserName; } CString SafeGetNetworkParam(CWebSock& WebSock) { CString sNetwork = WebSock.GetParam("network"); // check for POST param if(sNetwork.empty() && !WebSock.IsPost()) { // if no POST param named user has been given and we are not // saving this form, fall back to using the GET parameter. sNetwork = WebSock.GetParam("network", false); } return sNetwork; } CUser* SafeGetUserFromParam(CWebSock& WebSock) { return CZNC::Get().FindUser(SafeGetUserNameParam(WebSock)); } CIRCNetwork* SafeGetNetworkFromParam(CWebSock& WebSock) { CUser* pUser = CZNC::Get().FindUser(SafeGetUserNameParam(WebSock)); CIRCNetwork* pNetwork = NULL; if (pUser) { pNetwork = pUser->FindNetwork(SafeGetNetworkParam(WebSock)); } return pNetwork; } virtual CString GetWebMenuTitle() override { return "webadmin"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { std::shared_ptr spSession = WebSock.GetSession(); if (sPageName == "settings") { // Admin Check if (!spSession->IsAdmin()) { return false; } return SettingsPage(WebSock, Tmpl); } else if (sPageName == "adduser") { // Admin Check if (!spSession->IsAdmin()) { return false; } return UserPage(WebSock, Tmpl); } else if (sPageName == "addnetwork") { CUser* pUser = SafeGetUserFromParam(WebSock); // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || spSession->GetUser() != pUser)) { return false; } if (pUser) { return NetworkPage(WebSock, Tmpl, pUser); } WebSock.PrintErrorPage("No such username"); return true; } else if (sPageName == "editnetwork") { CIRCNetwork* pNetwork = SafeGetNetworkFromParam(WebSock); // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || !pNetwork || spSession->GetUser() != pNetwork->GetUser())) { return false; } if (!pNetwork) { WebSock.PrintErrorPage("No such username or network"); return true; } return NetworkPage(WebSock, Tmpl, pNetwork->GetUser(), pNetwork); } else if (sPageName == "delnetwork") { CString sUser = WebSock.GetParam("user"); if (sUser.empty() && !WebSock.IsPost()) { sUser = WebSock.GetParam("user", false); } CUser* pUser = CZNC::Get().FindUser(sUser); // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || spSession->GetUser() != pUser)) { return false; } return DelNetwork(WebSock, pUser, Tmpl); } else if (sPageName == "editchan") { CIRCNetwork* pNetwork = SafeGetNetworkFromParam(WebSock); // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || !pNetwork || spSession->GetUser() != pNetwork->GetUser())) { return false; } if (!pNetwork) { WebSock.PrintErrorPage("No such username or network"); return true; } CString sChan = WebSock.GetParam("name"); if(sChan.empty() && !WebSock.IsPost()) { sChan = WebSock.GetParam("name", false); } CChan* pChan = pNetwork->FindChan(sChan); if (!pChan) { WebSock.PrintErrorPage("No such channel"); return true; } return ChanPage(WebSock, Tmpl, pNetwork, pChan); } else if (sPageName == "addchan") { CIRCNetwork* pNetwork = SafeGetNetworkFromParam(WebSock); // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || !pNetwork || spSession->GetUser() != pNetwork->GetUser())) { return false; } if (pNetwork) { return ChanPage(WebSock, Tmpl, pNetwork); } WebSock.PrintErrorPage("No such username or network"); return true; } else if (sPageName == "delchan") { CIRCNetwork* pNetwork = SafeGetNetworkFromParam(WebSock); // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || !pNetwork || spSession->GetUser() != pNetwork->GetUser())) { return false; } if (pNetwork) { return DelChan(WebSock, pNetwork); } WebSock.PrintErrorPage("No such username or network"); return true; } else if (sPageName == "deluser") { if (!spSession->IsAdmin()) { return false; } if (!WebSock.IsPost()) { // Show the "Are you sure?" page: CString sUser = WebSock.GetParam("user", false); CUser* pUser = CZNC::Get().FindUser(sUser); if (!pUser) { WebSock.PrintErrorPage("No such username"); return true; } Tmpl.SetFile("del_user.tmpl"); Tmpl["Username"] = sUser; return true; } // The "Are you sure?" page has been submitted with "Yes", // so we actually delete the user now: CString sUser = WebSock.GetParam("user"); CUser* pUser = CZNC::Get().FindUser(sUser); if (pUser && pUser == spSession->GetUser()) { WebSock.PrintErrorPage("Please don't delete yourself, suicide is not the answer!"); return true; } else if (CZNC::Get().DeleteUser(sUser)) { WebSock.Redirect(GetWebPath() + "listusers"); return true; } WebSock.PrintErrorPage("No such username"); return true; } else if (sPageName == "edituser") { CString sUserName = SafeGetUserNameParam(WebSock); CUser* pUser = CZNC::Get().FindUser(sUserName); if(!pUser) { if(sUserName.empty()) { pUser = spSession->GetUser(); } // else: the "no such user" message will be printed. } // Admin||Self Check if (!spSession->IsAdmin() && (!spSession->GetUser() || spSession->GetUser() != pUser)) { return false; } if (pUser) { return UserPage(WebSock, Tmpl, pUser); } WebSock.PrintErrorPage("No such username"); return true; } else if (sPageName == "listusers" && spSession->IsAdmin()) { return ListUsersPage(WebSock, Tmpl); } else if (sPageName == "traffic" && spSession->IsAdmin()) { return TrafficPage(WebSock, Tmpl); } else if (sPageName == "index") { return true; } else if (sPageName == "add_listener") { // Admin Check if (!spSession->IsAdmin()) { return false; } return AddListener(WebSock, Tmpl); } else if (sPageName == "del_listener") { // Admin Check if (!spSession->IsAdmin()) { return false; } return DelListener(WebSock, Tmpl); } return false; } bool ChanPage(CWebSock& WebSock, CTemplate& Tmpl, CIRCNetwork* pNetwork, CChan* pChan = NULL) { std::shared_ptr spSession = WebSock.GetSession(); Tmpl.SetFile("add_edit_chan.tmpl"); CUser* pUser = pNetwork->GetUser(); if (!pUser) { WebSock.PrintErrorPage("That user doesn't exist"); return true; } if (!WebSock.GetParam("submitted").ToUInt()) { Tmpl["User"] = pUser->GetUserName(); Tmpl["Network"] = pNetwork->GetName(); CTemplate& breadUser = Tmpl.AddRow("BreadCrumbs"); breadUser["Text"] = "Edit User [" + pUser->GetUserName() + "]"; breadUser["URL"] = GetWebPath() + "edituser?user=" + pUser->GetUserName(); CTemplate& breadNet = Tmpl.AddRow("BreadCrumbs"); breadNet["Text"] = "Edit Network [" + pNetwork->GetName() + "]"; breadNet["URL"] = GetWebPath() + "editnetwork?user=" + pUser->GetUserName() + "&network=" + pNetwork->GetName(); CTemplate& breadChan = Tmpl.AddRow("BreadCrumbs"); if (pChan) { Tmpl["Action"] = "editchan"; Tmpl["Edit"] = "true"; Tmpl["Title"] = "Edit Channel" + CString(" [" + pChan->GetName() + "]") + " of Network [" + pNetwork->GetName() + "] of User [" + pNetwork->GetUser()->GetUserName() + "]"; Tmpl["ChanName"] = pChan->GetName(); Tmpl["BufferCount"] = CString(pChan->GetBufferCount()); Tmpl["DefModes"] = pChan->GetDefaultModes(); Tmpl["Key"] = pChan->GetKey(); breadChan["Text"] = "Edit Channel [" + pChan->GetName() + "]"; if (pChan->InConfig()) { Tmpl["InConfig"] = "true"; } } else { Tmpl["Action"] = "addchan"; Tmpl["Title"] = "Add Channel" + CString(" for User [" + pUser->GetUserName() + "]"); Tmpl["BufferCount"] = CString(pUser->GetBufferCount()); Tmpl["DefModes"] = CString(pUser->GetDefaultChanModes()); Tmpl["InConfig"] = "true"; breadChan["Text"] = "Add Channel"; } // o1 used to be AutoCycle which was removed CTemplate& o2 = Tmpl.AddRow("OptionLoop"); o2["Name"] = "autoclearchanbuffer"; o2["DisplayName"] = "Auto Clear Chan Buffer"; o2["Tooltip"] = "Automatically Clear Channel Buffer After Playback"; if ((pChan && pChan->AutoClearChanBuffer()) || (!pChan && pUser->AutoClearChanBuffer())) { o2["Checked"] = "true"; } CTemplate& o3 = Tmpl.AddRow("OptionLoop"); o3["Name"] = "detached"; o3["DisplayName"] = "Detached"; if (pChan && pChan->IsDetached()) { o3["Checked"] = "true"; } CTemplate& o4 = Tmpl.AddRow("OptionLoop"); o4["Name"] = "disabled"; o4["DisplayName"] = "Disabled"; if (pChan && pChan->IsDisabled()) { o4["Checked"] = "true"; } FOR_EACH_MODULE(i, pNetwork) { CTemplate& mod = Tmpl.AddRow("EmbeddedModuleLoop"); mod.insert(Tmpl.begin(), Tmpl.end()); mod["WebadminAction"] = "display"; if ((*i)->OnEmbeddedWebRequest(WebSock, "webadmin/channel", mod)) { mod["Embed"] = WebSock.FindTmpl(*i, "WebadminChan.tmpl"); mod["ModName"] = (*i)->GetModName(); } } return true; } CString sChanName = WebSock.GetParam("name").Trim_n(); if (!pChan) { if (sChanName.empty()) { WebSock.PrintErrorPage("Channel name is a required argument"); return true; } // This could change the channel name and e.g. add a "#" prefix pChan = new CChan(sChanName, pNetwork, true); if (pNetwork->FindChan(pChan->GetName())) { WebSock.PrintErrorPage("Channel [" + pChan->GetName() + "] already exists"); delete pChan; return true; } if (!pNetwork->AddChan(pChan)) { WebSock.PrintErrorPage("Could not add channel [" + sChanName + "]"); return true; } } unsigned int uBufferCount = WebSock.GetParam("buffercount").ToUInt(); if (pChan->GetBufferCount() != uBufferCount) { pChan->SetBufferCount(uBufferCount, spSession->IsAdmin()); } pChan->SetDefaultModes(WebSock.GetParam("defmodes")); pChan->SetInConfig(WebSock.GetParam("save").ToBool()); bool bAutoClearChanBuffer = WebSock.GetParam("autoclearchanbuffer").ToBool(); if (pChan->AutoClearChanBuffer() != bAutoClearChanBuffer) { pChan->SetAutoClearChanBuffer(WebSock.GetParam("autoclearchanbuffer").ToBool()); } pChan->SetKey(WebSock.GetParam("key")); bool bDetached = WebSock.GetParam("detached").ToBool(); if (pChan->IsDetached() != bDetached) { if (bDetached) { pChan->DetachUser(); } else { pChan->AttachUser(); } } bool bDisabled = WebSock.GetParam("disabled").ToBool(); if (bDisabled) pChan->Disable(); else pChan->Enable(); CTemplate TmplMod; TmplMod["User"] = pUser->GetUserName(); TmplMod["ChanName"] = pChan->GetName(); TmplMod["WebadminAction"] = "change"; FOR_EACH_MODULE(it, pNetwork) { (*it)->OnEmbeddedWebRequest(WebSock, "webadmin/channel", TmplMod); } if (!CZNC::Get().WriteConfig()) { WebSock.PrintErrorPage("Channel added/modified, but config was not written"); return true; } if (WebSock.HasParam("submit_return")) { WebSock.Redirect(GetWebPath() + "editnetwork?user=" + pUser->GetUserName().Escape_n(CString::EURL) + "&network=" + pNetwork->GetName().Escape_n(CString::EURL)); } else { WebSock.Redirect(GetWebPath() + "editchan?user=" + pUser->GetUserName().Escape_n(CString::EURL) + "&network=" + pNetwork->GetName().Escape_n(CString::EURL) + "&name=" + pChan->GetName().Escape_n(CString::EURL)); } return true; } bool NetworkPage(CWebSock& WebSock, CTemplate& Tmpl, CUser* pUser, CIRCNetwork* pNetwork = NULL) { std::shared_ptr spSession = WebSock.GetSession(); Tmpl.SetFile("add_edit_network.tmpl"); if (!WebSock.GetParam("submitted").ToUInt()) { Tmpl["Username"] = pUser->GetUserName(); set ssNetworkMods; CZNC::Get().GetModules().GetAvailableMods(ssNetworkMods, CModInfo::NetworkModule); for (set::iterator it = ssNetworkMods.begin(); it != ssNetworkMods.end(); ++it) { const CModInfo& Info = *it; CTemplate& l = Tmpl.AddRow("ModuleLoop"); l["Name"] = Info.GetName(); l["Description"] = Info.GetDescription(); l["Wiki"] = Info.GetWikiPage(); l["HasArgs"] = CString(Info.GetHasArgs()); l["ArgsHelpText"] = Info.GetArgsHelpText(); if (pNetwork) { CModule *pModule = pNetwork->GetModules().FindModule(Info.GetName()); if (pModule) { l["Checked"] = "true"; l["Args"] = pModule->GetArgs(); } } // Check if module is loaded globally l["CanBeLoadedGlobally"] = CString(Info.SupportsType(CModInfo::GlobalModule)); l["LoadedGlobally"] = CString(CZNC::Get().GetModules().FindModule(Info.GetName()) != NULL); // Check if module is loaded by user l["CanBeLoadedByUser"] = CString(Info.SupportsType(CModInfo::UserModule)); l["LoadedByUser"] = CString(pUser->GetModules().FindModule(Info.GetName()) != NULL); if (!spSession->IsAdmin() && pUser->DenyLoadMod()) { l["Disabled"] = "true"; } } // To change BindHosts be admin or don't have DenySetBindHost if (spSession->IsAdmin() || !spSession->GetUser()->DenySetBindHost()) { Tmpl["BindHostEdit"] = "true"; const VCString& vsBindHosts = CZNC::Get().GetBindHosts(); if (vsBindHosts.empty()) { if (pNetwork) { Tmpl["BindHost"] = pNetwork->GetBindHost(); } } else { bool bFoundBindHost = false; for (unsigned int b = 0; b < vsBindHosts.size(); b++) { const CString& sBindHost = vsBindHosts[b]; CTemplate& l = Tmpl.AddRow("BindHostLoop"); l["BindHost"] = sBindHost; if (pNetwork && pNetwork->GetBindHost() == sBindHost) { l["Checked"] = "true"; bFoundBindHost = true; } } // If our current bindhost is not in the global list... if (pNetwork && !bFoundBindHost && !pNetwork->GetBindHost().empty()) { CTemplate& l = Tmpl.AddRow("BindHostLoop"); l["BindHost"] = pNetwork->GetBindHost(); l["Checked"] = "true"; } } } CTemplate& breadUser = Tmpl.AddRow("BreadCrumbs"); breadUser["Text"] = "Edit User [" + pUser->GetUserName() + "]"; breadUser["URL"] = GetWebPath() + "edituser?user=" + pUser->GetUserName(); CTemplate& breadNet = Tmpl.AddRow("BreadCrumbs"); if (pNetwork) { Tmpl["Action"] = "editnetwork"; Tmpl["Edit"] = "true"; Tmpl["Title"] = "Edit Network" + CString(" [" + pNetwork->GetName() + "]") + " of User [" + pUser->GetUserName() + "]"; Tmpl["Name"] = pNetwork->GetName(); Tmpl["Nick"] = pNetwork->GetNick(); Tmpl["AltNick"] = pNetwork->GetAltNick(); Tmpl["Ident"] = pNetwork->GetIdent(); Tmpl["RealName"] = pNetwork->GetRealName(); Tmpl["QuitMsg"] = pNetwork->GetQuitMsg(); Tmpl["FloodProtection"] = CString(CIRCSock::IsFloodProtected(pNetwork->GetFloodRate())); Tmpl["FloodRate"] = CString(pNetwork->GetFloodRate()); Tmpl["FloodBurst"] = CString(pNetwork->GetFloodBurst()); Tmpl["JoinDelay"] = CString(pNetwork->GetJoinDelay()); Tmpl["IRCConnectEnabled"] = CString(pNetwork->GetIRCConnectEnabled()); breadNet["Text"] = "Edit Network [" + pNetwork->GetName() + "]"; const vector& vServers = pNetwork->GetServers(); for (unsigned int a = 0; a < vServers.size(); a++) { CTemplate& l = Tmpl.AddRow("ServerLoop"); l["Server"] = vServers[a]->GetString(); } const vector& Channels = pNetwork->GetChans(); for (unsigned int c = 0; c < Channels.size(); c++) { CChan* pChan = Channels[c]; CTemplate& l = Tmpl.AddRow("ChannelLoop"); l["Network"] = pNetwork->GetName(); l["Username"] = pUser->GetUserName(); l["Name"] = pChan->GetName(); l["Perms"] = pChan->GetPermStr(); l["CurModes"] = pChan->GetModeString(); l["DefModes"] = pChan->GetDefaultModes(); if (pChan->HasBufferCountSet()) { l["BufferCount"] = CString(pChan->GetBufferCount()); } else { l["BufferCount"] = CString(pChan->GetBufferCount()) + " (default)"; } l["Options"] = pChan->GetOptions(); if (pChan->InConfig()) { l["InConfig"] = "true"; } } for (const CString& sFP : pNetwork->GetTrustedFingerprints()) { CTemplate& l = Tmpl.AddRow("TrustedFingerprints"); l["FP"] = sFP; } } else { if (!spSession->IsAdmin() && !pUser->HasSpaceForNewNetwork()) { WebSock.PrintErrorPage("Network number limit reached. Ask an admin to increase the limit for you, or delete unneeded networks from Your Settings."); return true; } Tmpl["Action"] = "addnetwork"; Tmpl["Title"] = "Add Network for User [" + pUser->GetUserName() + "]"; Tmpl["IRCConnectEnabled"] = "true"; Tmpl["FloodProtection"] = "true"; Tmpl["FloodRate"] = "1.0"; Tmpl["FloodBurst"] = "4"; Tmpl["JoinDelay"] = "0"; breadNet["Text"] = "Add Network"; } FOR_EACH_MODULE(i, make_pair(pUser, pNetwork)) { CTemplate& mod = Tmpl.AddRow("EmbeddedModuleLoop"); mod.insert(Tmpl.begin(), Tmpl.end()); mod["WebadminAction"] = "display"; if ((*i)->OnEmbeddedWebRequest(WebSock, "webadmin/network", mod)) { mod["Embed"] = WebSock.FindTmpl(*i, "WebadminNetwork.tmpl"); mod["ModName"] = (*i)->GetModName(); } } #ifdef HAVE_ICU for (const CString& sEncoding : CUtils::GetEncodings()) { CTemplate& l = Tmpl.AddRow("EncodingLoop"); l["Encoding"] = sEncoding; } const CString sEncoding = pNetwork ? pNetwork->GetEncoding() : "^UTF-8"; if (sEncoding.empty()) { Tmpl["EncodingUtf"] = "legacy"; } else if (sEncoding[0] == '*') { Tmpl["EncodingUtf"] = "receive"; Tmpl["Encoding"] = sEncoding.substr(1); } else if (sEncoding[0] == '^') { Tmpl["EncodingUtf"] = "send"; Tmpl["Encoding"] = sEncoding.substr(1); } else { Tmpl["EncodingUtf"] = "simple"; Tmpl["Encoding"] = sEncoding; } #else Tmpl["EncodingDisabled"] = "true"; Tmpl["EncodingUtf"] = "legacy"; #endif return true; } CString sName = WebSock.GetParam("name").Trim_n(); if (sName.empty()) { WebSock.PrintErrorPage("Network name is a required argument"); return true; } if (!pNetwork && !spSession->IsAdmin() && !pUser->HasSpaceForNewNetwork()) { WebSock.PrintErrorPage("Network number limit reached. Ask an admin to increase the limit for you, or delete few old ones from Your Settings"); return true; } if (!pNetwork || pNetwork->GetName() != sName) { CString sNetworkAddError; CIRCNetwork* pOldNetwork = pNetwork; pNetwork = pUser->AddNetwork(sName, sNetworkAddError); if (!pNetwork) { WebSock.PrintErrorPage(sNetworkAddError); return true; } if (pOldNetwork) { for (CModule* pModule : pOldNetwork->GetModules()) { CString sPath = pUser->GetUserPath() + "/networks/" + sName + "/moddata/" + pModule->GetModName(); pModule->MoveRegistry(sPath); } pNetwork->Clone(*pOldNetwork, false); pUser->DeleteNetwork(pOldNetwork->GetName()); } } CString sArg; pNetwork->SetNick(WebSock.GetParam("nick")); pNetwork->SetAltNick(WebSock.GetParam("altnick")); pNetwork->SetIdent(WebSock.GetParam("ident")); pNetwork->SetRealName(WebSock.GetParam("realname")); pNetwork->SetQuitMsg(WebSock.GetParam("quitmsg")); pNetwork->SetIRCConnectEnabled(WebSock.GetParam("doconnect").ToBool()); sArg = WebSock.GetParam("bindhost"); // To change BindHosts be admin or don't have DenySetBindHost if (spSession->IsAdmin() || !spSession->GetUser()->DenySetBindHost()) { CString sHost = WebSock.GetParam("bindhost"); const VCString& vsHosts = CZNC::Get().GetBindHosts(); if (!spSession->IsAdmin() && !vsHosts.empty()) { VCString::const_iterator it; bool bFound = false; for (it = vsHosts.begin(); it != vsHosts.end(); ++it) { if (sHost.Equals(*it)) { bFound = true; break; } } if (!bFound) { sHost = pNetwork->GetBindHost(); } } pNetwork->SetBindHost(sHost); } if (WebSock.GetParam("floodprotection").ToBool()) { pNetwork->SetFloodRate(WebSock.GetParam("floodrate").ToDouble()); pNetwork->SetFloodBurst(WebSock.GetParam("floodburst").ToUShort()); } else { pNetwork->SetFloodRate(-1); } pNetwork->SetJoinDelay(WebSock.GetParam("joindelay").ToUShort()); #ifdef HAVE_ICU CString sEncodingUtf = WebSock.GetParam("encoding_utf"); if (sEncodingUtf == "legacy") { pNetwork->SetEncoding(""); } CString sEncoding = WebSock.GetParam("encoding"); if (sEncoding.empty()) { sEncoding = "UTF-8"; } if (sEncodingUtf == "send") { pNetwork->SetEncoding("^" + sEncoding); } else if (sEncodingUtf == "receive") { pNetwork->SetEncoding("*" + sEncoding); } else if (sEncodingUtf == "simple") { pNetwork->SetEncoding(sEncoding); } #endif VCString vsArgs; pNetwork->DelServers(); WebSock.GetRawParam("servers").Split("\n", vsArgs); for (unsigned int a = 0; a < vsArgs.size(); a++) { pNetwork->AddServer(vsArgs[a].Trim_n()); } WebSock.GetRawParam("fingerprints").Split("\n", vsArgs); while (!pNetwork->GetTrustedFingerprints().empty()) { pNetwork->DelTrustedFingerprint(*pNetwork->GetTrustedFingerprints().begin()); } for (const CString& sFP : vsArgs) { pNetwork->AddTrustedFingerprint(sFP); } WebSock.GetParamValues("channel", vsArgs); for (unsigned int a = 0; a < vsArgs.size(); a++) { const CString& sChan = vsArgs[a]; CChan *pChan = pNetwork->FindChan(sChan.TrimRight_n("\r")); if (pChan) { pChan->SetInConfig(WebSock.GetParam("save_" + sChan).ToBool()); } } set ssArgs; WebSock.GetParamValues("loadmod", ssArgs); if (spSession->IsAdmin() || !pUser->DenyLoadMod()) { for (set::iterator it = ssArgs.begin(); it != ssArgs.end(); ++it) { CString sModRet; CString sModName = (*it).TrimRight_n("\r"); CString sModLoadError; if (!sModName.empty()) { CString sArgs = WebSock.GetParam("modargs_" + sModName); CModule *pMod = pNetwork->GetModules().FindModule(sModName); if (!pMod) { if (!pNetwork->GetModules().LoadModule(sModName, sArgs, CModInfo::NetworkModule, pUser, pNetwork, sModRet)) { sModLoadError = "Unable to load module [" + sModName + "] [" + sModRet + "]"; } } else if (pMod->GetArgs() != sArgs) { if (!pNetwork->GetModules().ReloadModule(sModName, sArgs, pUser, pNetwork, sModRet)) { sModLoadError = "Unable to reload module [" + sModName + "] [" + sModRet + "]"; } } if (!sModLoadError.empty()) { DEBUG(sModLoadError); WebSock.GetSession()->AddError(sModLoadError); } } } } const CModules& vCurMods = pNetwork->GetModules(); set ssUnloadMods; for (unsigned int a = 0; a < vCurMods.size(); a++) { CModule* pCurMod = vCurMods[a]; if (ssArgs.find(pCurMod->GetModName()) == ssArgs.end() && pCurMod->GetModName() != GetModName()) { ssUnloadMods.insert(pCurMod->GetModName()); } } for (set::iterator it2 = ssUnloadMods.begin(); it2 != ssUnloadMods.end(); ++it2) { pNetwork->GetModules().UnloadModule(*it2); } CTemplate TmplMod; TmplMod["Username"] = pUser->GetUserName(); TmplMod["Name"] = pNetwork->GetName(); TmplMod["WebadminAction"] = "change"; FOR_EACH_MODULE(it, make_pair(pUser, pNetwork)) { (*it)->OnEmbeddedWebRequest(WebSock, "webadmin/network", TmplMod); } if (!CZNC::Get().WriteConfig()) { WebSock.PrintErrorPage("Network added/modified, but config was not written"); return true; } if (WebSock.HasParam("submit_return")) { WebSock.Redirect(GetWebPath() + "edituser?user=" + pUser->GetUserName().Escape_n(CString::EURL)); } else { WebSock.Redirect(GetWebPath() + "editnetwork?user=" + pUser->GetUserName().Escape_n(CString::EURL) + "&network=" + pNetwork->GetName().Escape_n(CString::EURL)); } return true; } bool DelNetwork(CWebSock& WebSock, CUser* pUser, CTemplate& Tmpl) { CString sNetwork = WebSock.GetParam("name"); if (sNetwork.empty() && !WebSock.IsPost()) { sNetwork = WebSock.GetParam("name", false); } if (!pUser) { WebSock.PrintErrorPage("That user doesn't exist"); return true; } if (sNetwork.empty()) { WebSock.PrintErrorPage("That network doesn't exist for this user"); return true; } if (!WebSock.IsPost()) { // Show the "Are you sure?" page: Tmpl.SetFile("del_network.tmpl"); Tmpl["Username"] = pUser->GetUserName(); Tmpl["Network"] = sNetwork; return true; } pUser->DeleteNetwork(sNetwork); if (!CZNC::Get().WriteConfig()) { WebSock.PrintErrorPage("Network deleted, but config was not written"); return true; } WebSock.Redirect(GetWebPath() + "edituser?user=" + pUser->GetUserName().Escape_n(CString::EURL)); return false; } bool DelChan(CWebSock& WebSock, CIRCNetwork* pNetwork) { CString sChan = WebSock.GetParam("name", false); if (sChan.empty()) { WebSock.PrintErrorPage("That channel doesn't exist for this user"); return true; } pNetwork->DelChan(sChan); pNetwork->PutIRC("PART " + sChan); if (!CZNC::Get().WriteConfig()) { WebSock.PrintErrorPage("Channel deleted, but config was not written"); return true; } WebSock.Redirect(GetWebPath() + "editnetwork?user=" + pNetwork->GetUser()->GetUserName().Escape_n(CString::EURL) + "&network=" + pNetwork->GetName().Escape_n(CString::EURL)); return false; } bool UserPage(CWebSock& WebSock, CTemplate& Tmpl, CUser* pUser = NULL) { std::shared_ptr spSession = WebSock.GetSession(); Tmpl.SetFile("add_edit_user.tmpl"); if (!WebSock.GetParam("submitted").ToUInt()) { if (pUser) { Tmpl["Action"] = "edituser"; Tmpl["Title"] = "Edit User [" + pUser->GetUserName() + "]"; Tmpl["Edit"] = "true"; } else { CString sUsername = WebSock.GetParam("clone", false); pUser = CZNC::Get().FindUser(sUsername); if (pUser) { Tmpl["Title"] = "Clone User [" + pUser->GetUserName() + "]"; Tmpl["Clone"] = "true"; Tmpl["CloneUsername"] = pUser->GetUserName(); } } Tmpl["ImAdmin"] = CString(spSession->IsAdmin()); if (pUser) { Tmpl["Username"] = pUser->GetUserName(); Tmpl["Nick"] = pUser->GetNick(); Tmpl["AltNick"] = pUser->GetAltNick(); Tmpl["StatusPrefix"] = pUser->GetStatusPrefix(); Tmpl["Ident"] = pUser->GetIdent(); Tmpl["RealName"] = pUser->GetRealName(); Tmpl["QuitMsg"] = pUser->GetQuitMsg(); Tmpl["DefaultChanModes"] = pUser->GetDefaultChanModes(); Tmpl["BufferCount"] = CString(pUser->GetBufferCount()); Tmpl["TimestampFormat"] = pUser->GetTimestampFormat(); Tmpl["Timezone"] = pUser->GetTimezone(); Tmpl["JoinTries"] = CString(pUser->JoinTries()); Tmpl["MaxNetworks"] = CString(pUser->MaxNetworks()); Tmpl["MaxJoins"] = CString(pUser->MaxJoins()); Tmpl["MaxQueryBuffers"] = CString(pUser->MaxQueryBuffers()); const set& ssAllowedHosts = pUser->GetAllowedHosts(); for (set::const_iterator it = ssAllowedHosts.begin(); it != ssAllowedHosts.end(); ++it) { CTemplate& l = Tmpl.AddRow("AllowedHostLoop"); l["Host"] = *it; } const vector& vNetworks = pUser->GetNetworks(); for (unsigned int a = 0; a < vNetworks.size(); a++) { CTemplate& l = Tmpl.AddRow("NetworkLoop"); l["Name"] = vNetworks[a]->GetName(); l["Username"] = pUser->GetUserName(); l["Clients"] = CString(vNetworks[a]->GetClients().size()); l["IRCNick"] = vNetworks[a]->GetIRCNick().GetNick(); CServer* pServer = vNetworks[a]->GetCurrentServer(); if (pServer) { l["Server"] = pServer->GetName() + ":" + (pServer->IsSSL() ? "+" : "") + CString(pServer->GetPort()); } } const MCString& msCTCPReplies = pUser->GetCTCPReplies(); for (MCString::const_iterator it2 = msCTCPReplies.begin(); it2 != msCTCPReplies.end(); ++it2) { CTemplate& l = Tmpl.AddRow("CTCPLoop"); l["CTCP"] = it2->first + " " + it2->second; } } else { Tmpl["Action"] = "adduser"; Tmpl["Title"] = "Add User"; Tmpl["StatusPrefix"] = "*"; } SCString ssTimezones = CUtils::GetTimezones(); for (SCString::iterator i = ssTimezones.begin(); i != ssTimezones.end(); ++i) { CTemplate& l = Tmpl.AddRow("TZLoop"); l["TZ"] = *i; } #ifdef HAVE_ICU for (const CString& sEncoding : CUtils::GetEncodings()) { CTemplate& l = Tmpl.AddRow("EncodingLoop"); l["Encoding"] = sEncoding; } const CString sEncoding = pUser ? pUser->GetClientEncoding() : "^UTF-8"; if (sEncoding.empty()) { Tmpl["EncodingUtf"] = "legacy"; } else if (sEncoding[0] == '*') { Tmpl["EncodingUtf"] = "receive"; Tmpl["Encoding"] = sEncoding.substr(1); } else if (sEncoding[0] == '^') { Tmpl["EncodingUtf"] = "send"; Tmpl["Encoding"] = sEncoding.substr(1); } else { Tmpl["EncodingUtf"] = "simple"; Tmpl["Encoding"] = sEncoding; } #else Tmpl["EncodingDisabled"] = "true"; Tmpl["EncodingUtf"] = "legacy"; #endif // To change BindHosts be admin or don't have DenySetBindHost if (spSession->IsAdmin() || !spSession->GetUser()->DenySetBindHost()) { Tmpl["BindHostEdit"] = "true"; const VCString& vsBindHosts = CZNC::Get().GetBindHosts(); if (vsBindHosts.empty()) { if (pUser) { Tmpl["BindHost"] = pUser->GetBindHost(); Tmpl["DCCBindHost"] = pUser->GetDCCBindHost(); } } else { bool bFoundBindHost = false; bool bFoundDCCBindHost = false; for (unsigned int b = 0; b < vsBindHosts.size(); b++) { const CString& sBindHost = vsBindHosts[b]; CTemplate& l = Tmpl.AddRow("BindHostLoop"); CTemplate& k = Tmpl.AddRow("DCCBindHostLoop"); l["BindHost"] = sBindHost; k["BindHost"] = sBindHost; if (pUser && pUser->GetBindHost() == sBindHost) { l["Checked"] = "true"; bFoundBindHost = true; } if (pUser && pUser->GetDCCBindHost() == sBindHost) { k["Checked"] = "true"; bFoundDCCBindHost = true; } } // If our current bindhost is not in the global list... if (pUser && !bFoundBindHost && !pUser->GetBindHost().empty()) { CTemplate& l = Tmpl.AddRow("BindHostLoop"); l["BindHost"] = pUser->GetBindHost(); l["Checked"] = "true"; } if (pUser && !bFoundDCCBindHost && !pUser->GetDCCBindHost().empty()) { CTemplate& l = Tmpl.AddRow("DCCBindHostLoop"); l["BindHost"] = pUser->GetDCCBindHost(); l["Checked"] = "true"; } } } vector vDirs; WebSock.GetAvailSkins(vDirs); for (unsigned int d = 0; d < vDirs.size(); d++) { const CString& SubDir = vDirs[d]; CTemplate& l = Tmpl.AddRow("SkinLoop"); l["Name"] = SubDir; if (pUser && SubDir == pUser->GetSkinName()) { l["Checked"] = "true"; } } set ssUserMods; CZNC::Get().GetModules().GetAvailableMods(ssUserMods); for (set::iterator it = ssUserMods.begin(); it != ssUserMods.end(); ++it) { const CModInfo& Info = *it; CTemplate& l = Tmpl.AddRow("ModuleLoop"); l["Name"] = Info.GetName(); l["Description"] = Info.GetDescription(); l["Wiki"] = Info.GetWikiPage(); l["HasArgs"] = CString(Info.GetHasArgs()); l["ArgsHelpText"] = Info.GetArgsHelpText(); CModule *pModule = NULL; if (pUser) { pModule = pUser->GetModules().FindModule(Info.GetName()); // Check if module is loaded by all or some networks const vector& userNetworks = pUser->GetNetworks(); unsigned int networksWithRenderedModuleCount = 0; for (unsigned int networkIndex = 0; networkIndex < userNetworks.size(); ++networkIndex) { const CIRCNetwork* pCurrentNetwork = userNetworks[networkIndex]; const CModules& networkModules = pCurrentNetwork->GetModules(); if (networkModules.FindModule(Info.GetName())) { networksWithRenderedModuleCount++; } } l["CanBeLoadedByNetwork"] = CString(Info.SupportsType(CModInfo::NetworkModule)); l["LoadedByAllNetworks"] = CString(networksWithRenderedModuleCount == userNetworks.size()); l["LoadedBySomeNetworks"] = CString(networksWithRenderedModuleCount != 0); } if (pModule) { l["Checked"] = "true"; l["Args"] = pModule->GetArgs(); if (CModInfo::UserModule == GetType() && Info.GetName() == GetModName()) { l["Disabled"] = "true"; } } l["CanBeLoadedGlobally"] = CString(Info.SupportsType(CModInfo::GlobalModule)); // Check if module is loaded globally l["LoadedGlobally"] = CString(CZNC::Get().GetModules().FindModule(Info.GetName()) != NULL); if (!spSession->IsAdmin() && pUser && pUser->DenyLoadMod()) { l["Disabled"] = "true"; } } CTemplate& o1 = Tmpl.AddRow("OptionLoop"); o1["Name"] = "autoclearchanbuffer"; o1["DisplayName"] = "Auto Clear Chan Buffer"; o1["Tooltip"] = "Automatically Clear Channel Buffer After Playback (the default value for new channels)"; if (!pUser || pUser->AutoClearChanBuffer()) { o1["Checked"] = "true"; } /* o2 used to be auto cycle which was removed */ CTemplate& o4 = Tmpl.AddRow("OptionLoop"); o4["Name"] = "multiclients"; o4["DisplayName"] = "Multi Clients"; if (!pUser || pUser->MultiClients()) { o4["Checked"] = "true"; } CTemplate& o7 = Tmpl.AddRow("OptionLoop"); o7["Name"] = "appendtimestamp"; o7["DisplayName"] = "Append Timestamps"; if (pUser && pUser->GetTimestampAppend()) { o7["Checked"] = "true"; } CTemplate& o8 = Tmpl.AddRow("OptionLoop"); o8["Name"] = "prependtimestamp"; o8["DisplayName"] = "Prepend Timestamps"; if (pUser && pUser->GetTimestampPrepend()) { o8["Checked"] = "true"; } if (spSession->IsAdmin()) { CTemplate& o9 = Tmpl.AddRow("OptionLoop"); o9["Name"] = "denyloadmod"; o9["DisplayName"] = "Deny LoadMod"; if (pUser && pUser->DenyLoadMod()) { o9["Checked"] = "true"; } CTemplate& o10 = Tmpl.AddRow("OptionLoop"); o10["Name"] = "isadmin"; o10["DisplayName"] = "Admin"; if (pUser && pUser->IsAdmin()) { o10["Checked"] = "true"; } if (pUser && pUser == CZNC::Get().FindUser(WebSock.GetUser())) { o10["Disabled"] = "true"; } CTemplate& o11 = Tmpl.AddRow("OptionLoop"); o11["Name"] = "denysetbindhost"; o11["DisplayName"] = "Deny SetBindHost"; if (pUser && pUser->DenySetBindHost()) { o11["Checked"] = "true"; } } CTemplate& o12 = Tmpl.AddRow("OptionLoop"); o12["Name"] = "autoclearquerybuffer"; o12["DisplayName"] = "Auto Clear Query Buffer"; o12["Tooltip"] = "Automatically Clear Query Buffer After Playback"; if (!pUser || pUser->AutoClearQueryBuffer()) { o12["Checked"] = "true"; } FOR_EACH_MODULE(i, pUser) { CTemplate& mod = Tmpl.AddRow("EmbeddedModuleLoop"); mod.insert(Tmpl.begin(), Tmpl.end()); mod["WebadminAction"] = "display"; if ((*i)->OnEmbeddedWebRequest(WebSock, "webadmin/user", mod)) { mod["Embed"] = WebSock.FindTmpl(*i, "WebadminUser.tmpl"); mod["ModName"] = (*i)->GetModName(); } } return true; } /* If pUser is NULL, we are adding a user, else we are editing this one */ CString sUsername = WebSock.GetParam("user"); if (!pUser && CZNC::Get().FindUser(sUsername)) { WebSock.PrintErrorPage("Invalid Submission [User " + sUsername + " already exists]"); return true; } CUser* pNewUser = GetNewUser(WebSock, pUser); if (!pNewUser) { // GetNewUser already called WebSock.PrintErrorPage() return true; } CString sErr; CString sAction; if (!pUser) { CString sClone = WebSock.GetParam("clone"); if (CUser *pCloneUser = CZNC::Get().FindUser(sClone)) { pNewUser->CloneNetworks(*pCloneUser); } // Add User Submission if (!CZNC::Get().AddUser(pNewUser, sErr)) { delete pNewUser; WebSock.PrintErrorPage("Invalid submission [" + sErr + "]"); return true; } pUser = pNewUser; sAction = "added"; } else { // Edit User Submission if (!pUser->Clone(*pNewUser, sErr, false)) { delete pNewUser; WebSock.PrintErrorPage("Invalid Submission [" + sErr + "]"); return true; } delete pNewUser; sAction = "edited"; } CTemplate TmplMod; TmplMod["Username"] = sUsername; TmplMod["WebadminAction"] = "change"; FOR_EACH_MODULE(it, pUser) { (*it)->OnEmbeddedWebRequest(WebSock, "webadmin/user", TmplMod); } if (!CZNC::Get().WriteConfig()) { WebSock.PrintErrorPage("User " + sAction + ", but config was not written"); return true; } if (spSession->IsAdmin() && WebSock.HasParam("submit_return")) { WebSock.Redirect(GetWebPath() + "listusers"); } else { WebSock.Redirect(GetWebPath() + "edituser?user=" + pUser->GetUserName()); } /* we don't want the template to be printed while we redirect */ return false; } bool ListUsersPage(CWebSock& WebSock, CTemplate& Tmpl) { std::shared_ptr spSession = WebSock.GetSession(); const map& msUsers = CZNC::Get().GetUserMap(); Tmpl["Title"] = "Manage Users"; Tmpl["Action"] = "listusers"; unsigned int a = 0; for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it, a++) { CTemplate& l = Tmpl.AddRow("UserLoop"); CUser& User = *it->second; l["Username"] = User.GetUserName(); l["Clients"] = CString(User.GetAllClients().size()); l["Networks"] = CString(User.GetNetworks().size()); if (&User == spSession->GetUser()) { l["IsSelf"] = "true"; } } return true; } bool TrafficPage(CWebSock& WebSock, CTemplate& Tmpl) { Tmpl["Title"] = "Traffic Info"; Tmpl["Uptime"] = CZNC::Get().GetUptime(); const map& msUsers = CZNC::Get().GetUserMap(); Tmpl["TotalUsers"] = CString(msUsers.size()); size_t uiNetworks = 0, uiAttached = 0, uiClients = 0, uiServers = 0; for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { CUser& User = *it->second; vector vNetworks = User.GetNetworks(); for (vector::const_iterator it2 = vNetworks.begin(); it2 != vNetworks.end(); ++it2) { CIRCNetwork *pNetwork = *it2; uiNetworks++; if (pNetwork->IsIRCConnected()) { uiServers++; } if (pNetwork->IsNetworkAttached()) { uiAttached++; } uiClients += pNetwork->GetClients().size(); } uiClients += User.GetUserClients().size(); } Tmpl["TotalNetworks"] = CString(uiNetworks); Tmpl["AttachedNetworks"] = CString(uiAttached); Tmpl["TotalCConnections"] = CString(uiClients); Tmpl["TotalIRCConnections"] = CString(uiServers); CZNC::TrafficStatsPair Users, ZNC, Total; CZNC::TrafficStatsMap traffic = CZNC::Get().GetTrafficStats(Users, ZNC, Total); CZNC::TrafficStatsMap::const_iterator it; for (it = traffic.begin(); it != traffic.end(); ++it) { CTemplate& l = Tmpl.AddRow("TrafficLoop"); l["Username"] = it->first; l["In"] = CString::ToByteStr(it->second.first); l["Out"] = CString::ToByteStr(it->second.second); l["Total"] = CString::ToByteStr(it->second.first + it->second.second); } Tmpl["UserIn"] = CString::ToByteStr(Users.first); Tmpl["UserOut"] = CString::ToByteStr(Users.second); Tmpl["UserTotal"] = CString::ToByteStr(Users.first + Users.second); Tmpl["ZNCIn"] = CString::ToByteStr(ZNC.first); Tmpl["ZNCOut"] = CString::ToByteStr(ZNC.second); Tmpl["ZNCTotal"] = CString::ToByteStr(ZNC.first + ZNC.second); Tmpl["AllIn"] = CString::ToByteStr(Total.first); Tmpl["AllOut"] = CString::ToByteStr(Total.second); Tmpl["AllTotal"] = CString::ToByteStr(Total.first + Total.second); return true; } bool AddListener(CWebSock& WebSock, CTemplate& Tmpl) { unsigned short uPort = WebSock.GetParam("port").ToUShort(); CString sHost = WebSock.GetParam("host"); CString sURIPrefix = WebSock.GetParam("uriprefix"); if (sHost == "*") sHost = ""; bool bSSL = WebSock.GetParam("ssl").ToBool(); bool bIPv4 = WebSock.GetParam("ipv4").ToBool(); bool bIPv6 = WebSock.GetParam("ipv6").ToBool(); bool bIRC = WebSock.GetParam("irc").ToBool(); bool bWeb = WebSock.GetParam("web").ToBool(); EAddrType eAddr = ADDR_ALL; if (bIPv4) { if (bIPv6) { eAddr = ADDR_ALL; } else { eAddr = ADDR_IPV4ONLY; } } else { if (bIPv6) { eAddr = ADDR_IPV6ONLY; } else { WebSock.GetSession()->AddError("Choose either IPv4 or IPv6 or both."); return SettingsPage(WebSock, Tmpl); } } CListener::EAcceptType eAccept; if (bIRC) { if (bWeb) { eAccept = CListener::ACCEPT_ALL; } else { eAccept = CListener::ACCEPT_IRC; } } else { if (bWeb) { eAccept = CListener::ACCEPT_HTTP; } else { WebSock.GetSession()->AddError("Choose either IRC or Web or both."); return SettingsPage(WebSock, Tmpl); } } CString sMessage; if (CZNC::Get().AddListener(uPort, sHost, sURIPrefix, bSSL, eAddr, eAccept, sMessage)) { if (!sMessage.empty()) { WebSock.GetSession()->AddSuccess(sMessage); } if (!CZNC::Get().WriteConfig()) { WebSock.GetSession()->AddError("Port changed, but config was not written"); } } else { WebSock.GetSession()->AddError(sMessage); } return SettingsPage(WebSock, Tmpl); } bool DelListener(CWebSock& WebSock, CTemplate& Tmpl) { unsigned short uPort = WebSock.GetParam("port").ToUShort(); CString sHost = WebSock.GetParam("host"); bool bIPv4 = WebSock.GetParam("ipv4").ToBool(); bool bIPv6 = WebSock.GetParam("ipv6").ToBool(); EAddrType eAddr = ADDR_ALL; if (bIPv4) { if (bIPv6) { eAddr = ADDR_ALL; } else { eAddr = ADDR_IPV4ONLY; } } else { if (bIPv6) { eAddr = ADDR_IPV6ONLY; } else { WebSock.GetSession()->AddError("Invalid request."); return SettingsPage(WebSock, Tmpl); } } CListener* pListener = CZNC::Get().FindListener(uPort, sHost, eAddr); if (pListener) { CZNC::Get().DelListener(pListener); if (!CZNC::Get().WriteConfig()) { WebSock.GetSession()->AddError("Port changed, but config was not written"); } } else { WebSock.GetSession()->AddError("The specified listener was not found."); } return SettingsPage(WebSock, Tmpl); } bool SettingsPage(CWebSock& WebSock, CTemplate& Tmpl) { Tmpl.SetFile("settings.tmpl"); if (!WebSock.GetParam("submitted").ToUInt()) { Tmpl["Action"] = "settings"; Tmpl["Title"] = "Settings"; Tmpl["StatusPrefix"] = CZNC::Get().GetStatusPrefix(); Tmpl["MaxBufferSize"] = CString(CZNC::Get().GetMaxBufferSize()); Tmpl["ConnectDelay"] = CString(CZNC::Get().GetConnectDelay()); Tmpl["ServerThrottle"] = CString(CZNC::Get().GetServerThrottle()); Tmpl["AnonIPLimit"] = CString(CZNC::Get().GetAnonIPLimit()); Tmpl["ProtectWebSessions"] = CString(CZNC::Get().GetProtectWebSessions()); Tmpl["HideVersion"] = CString(CZNC::Get().GetHideVersion()); const VCString& vsBindHosts = CZNC::Get().GetBindHosts(); for (unsigned int a = 0; a < vsBindHosts.size(); a++) { CTemplate& l = Tmpl.AddRow("BindHostLoop"); l["BindHost"] = vsBindHosts[a]; } const VCString& vsMotd = CZNC::Get().GetMotd(); for (unsigned int b = 0; b < vsMotd.size(); b++) { CTemplate& l = Tmpl.AddRow("MOTDLoop"); l["Line"] = vsMotd[b]; } const vector& vpListeners = CZNC::Get().GetListeners(); for (unsigned int c = 0; c < vpListeners.size(); c++) { CListener* pListener = vpListeners[c]; CTemplate& l = Tmpl.AddRow("ListenLoop"); l["Port"] = CString(pListener->GetPort()); l["BindHost"] = pListener->GetBindHost(); l["IsWeb"] = CString(pListener->GetAcceptType() != CListener::ACCEPT_IRC); l["IsIRC"] = CString(pListener->GetAcceptType() != CListener::ACCEPT_HTTP); l["URIPrefix"] = pListener->GetURIPrefix() + "/"; // simple protection for user from shooting his own foot // TODO check also for hosts/families // such check is only here, user still can forge HTTP request to delete web port l["SuggestDeletion"] = CString(pListener->GetPort() != WebSock.GetLocalPort()); #ifdef HAVE_LIBSSL if (pListener->IsSSL()) { l["IsSSL"] = "true"; } #endif #ifdef HAVE_IPV6 switch (pListener->GetAddrType()) { case ADDR_IPV4ONLY: l["IsIPV4"] = "true"; break; case ADDR_IPV6ONLY: l["IsIPV6"] = "true"; break; case ADDR_ALL: l["IsIPV4"] = "true"; l["IsIPV6"] = "true"; break; } #else l["IsIPV4"] = "true"; #endif } vector vDirs; WebSock.GetAvailSkins(vDirs); for (unsigned int d = 0; d < vDirs.size(); d++) { const CString& SubDir = vDirs[d]; CTemplate& l = Tmpl.AddRow("SkinLoop"); l["Name"] = SubDir; if (SubDir == CZNC::Get().GetSkinName()) { l["Checked"] = "true"; } } set ssGlobalMods; CZNC::Get().GetModules().GetAvailableMods(ssGlobalMods, CModInfo::GlobalModule); for (set::iterator it = ssGlobalMods.begin(); it != ssGlobalMods.end(); ++it) { const CModInfo& Info = *it; CTemplate& l = Tmpl.AddRow("ModuleLoop"); CModule *pModule = CZNC::Get().GetModules().FindModule(Info.GetName()); if (pModule) { l["Checked"] = "true"; l["Args"] = pModule->GetArgs(); if (CModInfo::GlobalModule == GetType() && Info.GetName() == GetModName()) { l["Disabled"] = "true"; } } l["Name"] = Info.GetName(); l["Description"] = Info.GetDescription(); l["Wiki"] = Info.GetWikiPage(); l["HasArgs"] = CString(Info.GetHasArgs()); l["ArgsHelpText"] = Info.GetArgsHelpText(); // Check if the module is loaded by all or some users, and/or by all or some networks unsigned int usersWithRenderedModuleCount = 0; unsigned int networksWithRenderedModuleCount = 0; unsigned int networksCount = 0; const map& allUsers = CZNC::Get().GetUserMap(); for (map::const_iterator usersIt = allUsers.begin(); usersIt != allUsers.end(); ++usersIt) { const CUser& User = *usersIt->second; // Count users which has loaded a render module const CModules& userModules = User.GetModules(); if (userModules.FindModule(Info.GetName())) { usersWithRenderedModuleCount++; } // Count networks which has loaded a render module const vector& userNetworks = User.GetNetworks(); networksCount += userNetworks.size(); for (unsigned int networkIndex = 0; networkIndex < userNetworks.size(); ++networkIndex) { const CIRCNetwork *pCurrentNetwork = userNetworks[networkIndex]; if (pCurrentNetwork->GetModules().FindModule(Info.GetName())) { networksWithRenderedModuleCount++; } } } l["CanBeLoadedByNetwork"] = CString(Info.SupportsType(CModInfo::NetworkModule)); l["LoadedByAllNetworks"] = CString(networksWithRenderedModuleCount == networksCount); l["LoadedBySomeNetworks"] = CString(networksWithRenderedModuleCount != 0); l["CanBeLoadedByUser"] = CString(Info.SupportsType(CModInfo::UserModule)); l["LoadedByAllUsers"] = CString(usersWithRenderedModuleCount == allUsers.size()); l["LoadedBySomeUsers"] = CString(usersWithRenderedModuleCount != 0); } return true; } CString sArg; sArg = WebSock.GetParam("statusprefix"); CZNC::Get().SetStatusPrefix(sArg); sArg = WebSock.GetParam("maxbufsize"); CZNC::Get().SetMaxBufferSize(sArg.ToUInt()); sArg = WebSock.GetParam("connectdelay"); CZNC::Get().SetConnectDelay(sArg.ToUInt()); sArg = WebSock.GetParam("serverthrottle"); CZNC::Get().SetServerThrottle(sArg.ToUInt()); sArg = WebSock.GetParam("anoniplimit"); CZNC::Get().SetAnonIPLimit(sArg.ToUInt()); sArg = WebSock.GetParam("protectwebsessions"); CZNC::Get().SetProtectWebSessions(sArg.ToBool()); sArg = WebSock.GetParam("hideversion"); CZNC::Get().SetHideVersion(sArg.ToBool()); VCString vsArgs; WebSock.GetRawParam("motd").Split("\n", vsArgs); CZNC::Get().ClearMotd(); unsigned int a = 0; for (a = 0; a < vsArgs.size(); a++) { CZNC::Get().AddMotd(vsArgs[a].TrimRight_n()); } WebSock.GetRawParam("bindhosts").Split("\n", vsArgs); CZNC::Get().ClearBindHosts(); for (a = 0; a < vsArgs.size(); a++) { CZNC::Get().AddBindHost(vsArgs[a].Trim_n()); } CZNC::Get().SetSkinName(WebSock.GetParam("skin")); set ssArgs; WebSock.GetParamValues("loadmod", ssArgs); for (set::iterator it = ssArgs.begin(); it != ssArgs.end(); ++it) { CString sModRet; CString sModName = (*it).TrimRight_n("\r"); CString sModLoadError; if (!sModName.empty()) { CString sArgs = WebSock.GetParam("modargs_" + sModName); CModule *pMod = CZNC::Get().GetModules().FindModule(sModName); if (!pMod) { if (!CZNC::Get().GetModules().LoadModule(sModName, sArgs, CModInfo::GlobalModule, NULL, NULL, sModRet)) { sModLoadError = "Unable to load module [" + sModName + "] [" + sModRet + "]"; } } else if (pMod->GetArgs() != sArgs) { if (!CZNC::Get().GetModules().ReloadModule(sModName, sArgs, NULL, NULL, sModRet)) { sModLoadError = "Unable to reload module [" + sModName + "] [" + sModRet + "]"; } } if (!sModLoadError.empty()) { DEBUG(sModLoadError); WebSock.GetSession()->AddError(sModLoadError); } } } const CModules& vCurMods = CZNC::Get().GetModules(); set ssUnloadMods; for (a = 0; a < vCurMods.size(); a++) { CModule* pCurMod = vCurMods[a]; if (ssArgs.find(pCurMod->GetModName()) == ssArgs.end() && (CModInfo::GlobalModule != GetType() || pCurMod->GetModName() != GetModName())) { ssUnloadMods.insert(pCurMod->GetModName()); } } for (set::iterator it2 = ssUnloadMods.begin(); it2 != ssUnloadMods.end(); ++it2) { CZNC::Get().GetModules().UnloadModule(*it2); } if (!CZNC::Get().WriteConfig()) { WebSock.GetSession()->AddError("Settings changed, but config was not written"); } WebSock.Redirect(GetWebPath() + "settings"); /* we don't want the template to be printed while we redirect */ return false; } }; template<> void TModInfo(CModInfo& Info) { Info.AddType(CModInfo::UserModule); Info.SetWikiPage("webadmin"); } GLOBALMODULEDEFS(CWebAdminMod, "Web based administration module.") znc-1.6.3/modules/modtcl.cpp0000644000175000017500000003536712663147131016217 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include #include #include #include using std::vector; using std::map; #define STDVAR (ClientData cd, Tcl_Interp *irp, int argc, const char *argv[]) #define BADARGS(nl, nh, example) do { \ if ((argc < (nl)) || (argc > (nh))) { \ Tcl_AppendResult(irp, "wrong # args: should be \"", \ argv[0], (example), "\"", NULL); \ return TCL_ERROR; \ } \ } while (0) class CModTcl; class CModTclTimer : public CTimer { public: CModTclTimer(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription), m_pParent(NULL) {} virtual ~CModTclTimer() {} protected: virtual void RunJob() override; CModTcl* m_pParent; }; class CModTclStartTimer : public CTimer { public: CModTclStartTimer(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription), m_pParent(NULL) {} virtual ~CModTclStartTimer() {} protected: virtual void RunJob() override; CModTcl* m_pParent; }; class CModTcl : public CModule { public: MODCONSTRUCTOR(CModTcl) { interp = NULL; } virtual ~CModTcl() { if (interp) { Tcl_DeleteInterp(interp); } } virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) override { #ifndef MOD_MODTCL_ALLOW_EVERYONE if (!GetUser()->IsAdmin()) { sErrorMsg = "You must be admin to use the modtcl module"; return false; } #endif AddTimer(new CModTclStartTimer(this, 1, 1, "ModTclStarter", "Timer for modtcl to load the interpreter.")); return true; } void Start() { CString sMyArgs = GetArgs(); interp = Tcl_CreateInterp(); Tcl_Init(interp); Tcl_CreateCommand(interp, "Binds::ProcessPubm", tcl_Bind, this, NULL); Tcl_CreateCommand(interp, "Binds::ProcessMsgm", tcl_Bind, this, NULL); Tcl_CreateCommand(interp, "Binds::ProcessTime", tcl_Bind, this, NULL); Tcl_CreateCommand(interp, "Binds::ProcessEvnt", tcl_Bind, this, NULL); Tcl_CreateCommand(interp, "Binds::ProcessNick", tcl_Bind, this, NULL); Tcl_CreateCommand(interp, "Binds::ProcessKick", tcl_Bind, this, NULL); Tcl_CreateCommand(interp, "PutIRC", tcl_PutIRC, this, NULL); Tcl_CreateCommand(interp, "PutModule", tcl_PutModule, this, NULL); Tcl_CreateCommand(interp, "PutStatus", tcl_PutStatus, this, NULL); Tcl_CreateCommand(interp, "PutStatusNotice", tcl_PutStatusNotice, this, NULL); Tcl_CreateCommand(interp, "PutUser", tcl_PutUser, this, NULL); Tcl_CreateCommand(interp, "GetCurNick", tcl_GetCurNick, this, NULL); Tcl_CreateCommand(interp, "GetUsername", tcl_GetUsername, this, NULL); Tcl_CreateCommand(interp, "GetRealName", tcl_GetRealName, this, NULL); Tcl_CreateCommand(interp, "GetVHost", tcl_GetBindHost, this, NULL); Tcl_CreateCommand(interp, "GetBindHost", tcl_GetBindHost, this, NULL); Tcl_CreateCommand(interp, "GetChans", tcl_GetChans, this, NULL); Tcl_CreateCommand(interp, "GetChannelUsers", tcl_GetChannelUsers, this, NULL); Tcl_CreateCommand(interp, "GetChannelModes", tcl_GetChannelModes, this, NULL); Tcl_CreateCommand(interp, "GetServer", tcl_GetServer, this, NULL); Tcl_CreateCommand(interp, "GetServerOnline", tcl_GetServerOnline, this, NULL); Tcl_CreateCommand(interp, "GetModules", tcl_GetModules, this, NULL); Tcl_CreateCommand(interp, "GetClientCount", tcl_GetClientCount, this, NULL); Tcl_CreateCommand(interp, "exit", tcl_exit, this, NULL); if (!sMyArgs.empty()) { i = Tcl_EvalFile(interp, sMyArgs.c_str()); if (i != TCL_OK) { PutModule(Tcl_GetStringResult(interp)); } } AddTimer(new CModTclTimer(this, 1, 0, "ModTclUpdate", "Timer for modtcl to process pending events and idle callbacks.")); } virtual void OnModCommand(const CString& sCommand) override { CString sResult; VCString vsResult; CString sCmd = sCommand; if (sCmd.Token(0).CaseCmp(".tcl") == 0) sCmd = sCmd.Token(1,true); if (sCmd.Left(1).CaseCmp(".") == 0) sCmd = "Binds::ProcessDcc - - {" + sCmd + "}"; Tcl_Eval(interp, sCmd.c_str()); sResult = CString(Tcl_GetStringResult(interp)); if (!sResult.empty()) { sResult.Split("\n", vsResult); unsigned int a = 0; for (a = 0; a < vsResult.size(); a++) PutModule(vsResult[a].TrimRight_n()); } } void TclUpdate() { while (Tcl_DoOneEvent(TCL_DONT_WAIT)) {} i = Tcl_Eval(interp,"Binds::ProcessTime"); if (i != TCL_OK) { PutModule(Tcl_GetStringResult(interp)); } } CString TclEscape(CString sLine) { sLine.Replace("\\","\\\\"); sLine.Replace("{","\\{"); sLine.Replace("}","\\}"); return sLine; } virtual void OnPreRehash() override { if (interp) Tcl_Eval(interp,"Binds::ProcessEvnt prerehash"); } virtual void OnPostRehash() override { if (interp) { Tcl_Eval(interp,"rehash"); Tcl_Eval(interp,"Binds::ProcessEvnt rehash"); } } virtual void OnIRCConnected() override { if (interp) Tcl_Eval(interp, "Binds::ProcessEvnt init-server"); } virtual void OnIRCDisconnected() override { if (interp) Tcl_Eval(interp, "Binds::ProcessEvnt disconnect-server"); } virtual EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override { CString sMes = TclEscape(sMessage); CString sNick = TclEscape(CString(Nick.GetNick())); CString sHost = TclEscape(CString(Nick.GetIdent() + "@" + Nick.GetHost())); CString sChannel = TclEscape(CString(Channel.GetName())); CString sCommand = "Binds::ProcessPubm {" + sNick + "} {" + sHost + "} - {" + sChannel + "} {" + sMes + "}"; i = Tcl_Eval(interp, sCommand.c_str()); if (i != TCL_OK) { PutModule(Tcl_GetStringResult(interp)); } return CONTINUE; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { CString sMes = TclEscape(sMessage); CString sNick = TclEscape(CString(Nick.GetNick())); CString sHost = TclEscape(CString(Nick.GetIdent() + "@" + Nick.GetHost())); CString sCommand = "Binds::ProcessMsgm {" + sNick + "} {" + sHost + "} - {" + sMes + "}"; i = Tcl_Eval(interp, sCommand.c_str()); if (i != TCL_OK) { PutModule(Tcl_GetStringResult(interp)); } return CONTINUE; } virtual void OnNick(const CNick& OldNick, const CString& sNewNick, const vector& vChans) override { CString sOldNick = TclEscape(CString(OldNick.GetNick())); CString sNewNickTmp = TclEscape(sNewNick); CString sHost = TclEscape(CString(OldNick.GetIdent() + "@" + OldNick.GetHost())); CString sCommand; // Nick change is triggered for each common chan so that binds can be chan specific unsigned int nLength = vChans.size(); for (unsigned int n = 0; n < nLength; n++) { sCommand = "Binds::ProcessNick {" + sOldNick + "} {" + sHost + "} - {" + vChans[n]->GetName() + "} {" + sNewNickTmp + "}"; i = Tcl_Eval(interp, sCommand.c_str()); if (i != TCL_OK) { PutModule(Tcl_GetStringResult(interp)); } } } virtual void OnKick(const CNick& OpNick, const CString& sKickedNick, CChan& Channel, const CString& sMessage) override { CString sOpNick = TclEscape(CString(OpNick.GetNick())); CString sNick = TclEscape(sKickedNick); CString sOpHost = TclEscape(CString(OpNick.GetIdent() + "@" + OpNick.GetHost())); CString sCommand = "Binds::ProcessKick {" + sOpNick + "} {" + sOpHost + "} - {" + Channel.GetName() + "} {" + sNick + "} {" + sMessage + "}"; i = Tcl_Eval(interp, sCommand.c_str()); if (i != TCL_OK) { PutModule(Tcl_GetStringResult(interp)); } } private: Tcl_Interp *interp; int i; static CString argvit(const char *argv[], unsigned int end, unsigned int begin, CString delim) { CString sRet; unsigned int i; if (begin < end) sRet = CString(argv[begin]); for (i = begin + 1; i < end; i++) { sRet = sRet + delim + CString(argv[i]); } return sRet; } // Placeholder for binds incase binds.tcl isn't used static int tcl_Bind STDVAR {return TCL_OK;} static int tcl_GetCurNick STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->GetNetwork()->GetCurNick().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetUsername STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->GetUser()->GetUserName().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetRealName STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->GetUser()->GetRealName().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetBindHost STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)mod->GetUser()->GetBindHost().c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetChans STDVAR { char *p; const char *l[1]; CModTcl *mod = static_cast(cd); BADARGS(1, 1, ""); const vector& Channels = mod->GetNetwork()->GetChans(); for (unsigned int c = 0; c < Channels.size(); c++) { CChan* pChan = Channels[c]; l[0] = pChan->GetName().c_str(); p = Tcl_Merge(1, l); Tcl_AppendElement(irp, p); Tcl_Free((char *)p); } return TCL_OK; } static int tcl_GetChannelUsers STDVAR { char *p; const char *l[4]; CModTcl *mod = static_cast(cd); BADARGS(2, 999, " channel"); CString sChannel = argvit(argv, argc, 1, " "); CChan *pChannel = mod->GetNetwork()->FindChan(sChannel); if (!pChannel) { CString sMsg = "invalid channel: " + sChannel; Tcl_SetResult(irp, (char*)sMsg.c_str(), TCL_VOLATILE); return TCL_ERROR; } const map& msNicks = pChannel->GetNicks(); for (map::const_iterator it = msNicks.begin(); it != msNicks.end(); ++it) { const CNick& Nick = it->second; l[0] = (Nick.GetNick()).c_str(); l[1] = (Nick.GetIdent()).c_str(); l[2] = (Nick.GetHost()).c_str(); l[3] = (Nick.GetPermStr()).c_str(); p = Tcl_Merge(4, l); Tcl_AppendElement(irp, p); Tcl_Free((char *)p); } return TCL_OK; } static int tcl_GetChannelModes STDVAR { CModTcl *mod = static_cast(cd); BADARGS(2, 999, " channel"); CString sChannel = argvit(argv, argc, 1, " "); CChan *pChannel = mod->GetNetwork()->FindChan(sChannel); CString sMsg; if (!pChannel) { sMsg = "invalid channel: " + sChannel; Tcl_SetResult(irp, (char*)sMsg.c_str(), TCL_VOLATILE); return TCL_ERROR; } sMsg = pChannel->GetModeString(); Tcl_SetResult(irp, (char*)sMsg.c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetServer STDVAR { CModTcl *mod = static_cast(cd); CServer* pServer = mod->GetNetwork()->GetCurrentServer(); CString sMsg; if (pServer) sMsg = pServer->GetName() + ":" + CString(pServer->GetPort()); Tcl_SetResult(irp, (char*)sMsg.c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetServerOnline STDVAR { CModTcl *mod = static_cast(cd); CIRCSock* pIRCSock = mod->GetNetwork()->GetIRCSock(); CString sMsg = "0"; if (pIRCSock) sMsg = CString(pIRCSock->GetStartTime()); Tcl_SetResult(irp, (char*)sMsg.c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_GetModules STDVAR { char *p; const char *l[3]; CModTcl *mod = static_cast(cd); BADARGS(1, 1, ""); CModules& GModules = CZNC::Get().GetModules(); CModules& Modules = mod->GetUser()->GetModules(); for (unsigned int b = 0; b < GModules.size(); b++) { l[0] = GModules[b]->GetModName().c_str(); l[1] = GModules[b]->GetArgs().c_str(); l[2] = "1"; // IsGlobal p = Tcl_Merge(3, l); Tcl_AppendElement(irp, p); Tcl_Free((char *)p); } for (unsigned int b = 0; b < Modules.size(); b++) { l[0] = Modules[b]->GetModName().c_str(); l[1] = Modules[b]->GetArgs().c_str(); l[2] = "0"; // IsGlobal p = Tcl_Merge(3, l); Tcl_AppendElement(irp, p); Tcl_Free((char *)p); } return TCL_OK; } static int tcl_GetClientCount STDVAR { CModTcl *mod = static_cast(cd); Tcl_SetResult(irp, (char *)CString(mod->GetNetwork()->GetClients().size()).c_str(), TCL_VOLATILE); return TCL_OK; } static int tcl_PutIRC STDVAR { CString sMsg; CModTcl *mod = static_cast(cd); BADARGS(2, 999, " string"); sMsg = argvit(argv, argc, 1, " "); mod->GetNetwork()->PutIRC(sMsg); return TCL_OK; } static int tcl_PutModule STDVAR { CString sMsg; VCString vsMsg; CModTcl *mod = static_cast(cd); BADARGS(2, 999, " string"); sMsg = argvit(argv, argc, 1, " "); //mod->PutModule(sMsg); sMsg.Split("\n", vsMsg); unsigned int a = 0; for (a = 0; a < vsMsg.size(); a++) mod->PutModule(vsMsg[a].TrimRight_n()); return TCL_OK; } static int tcl_PutStatus STDVAR { CString sMsg; CModTcl *mod = static_cast(cd); BADARGS(2, 999, " string"); sMsg = argvit(argv, argc, 1, " "); mod->PutStatus(sMsg); return TCL_OK; } static int tcl_PutStatusNotice STDVAR { CString sMsg; CModTcl *mod = static_cast(cd); BADARGS(2, 999, " string"); sMsg = argvit(argv, argc, 1, " "); mod->GetUser()->PutStatusNotice(sMsg); return TCL_OK; } static int tcl_PutUser STDVAR { CString sMsg; CModTcl *mod = static_cast(cd); BADARGS(2, 999, " string"); sMsg = argvit(argv, argc, 1, " "); mod->GetUser()->PutUser(sMsg); return TCL_OK; } static int tcl_exit STDVAR { CString sMsg; CModTcl *mod = static_cast(cd); BADARGS(1, 2, " ?reason?"); if (! mod->GetUser()->IsAdmin()) { sMsg = "You need to be administrator to shutdown the bnc."; Tcl_SetResult(irp, (char*)sMsg.c_str(), TCL_VOLATILE); return TCL_ERROR; } if (argc > 1) { sMsg = argvit(argv, argc, 1, " "); CZNC::Get().Broadcast(sMsg); usleep(100000); // Sleep for 10ms to attempt to allow the previous Broadcast() to go through to all users } throw CException(CException::EX_Shutdown); return TCL_OK; } }; void CModTclTimer::RunJob() { CModTcl *p = (CModTcl *)GetModule(); if (p) p->TclUpdate(); } void CModTclStartTimer::RunJob() { CModTcl *p = (CModTcl *)GetModule(); if (p) p->Start(); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("modtcl"); Info.SetHasArgs(true); Info.SetArgsHelpText("Absolute path to modtcl.tcl file"); } NETWORKMODULEDEFS(CModTcl, "Loads Tcl scripts as ZNC modules") znc-1.6.3/modules/missingmotd.cpp0000644000175000017500000000201012663147131017245 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include class CMissingMotd : public CModule { public: MODCONSTRUCTOR(CMissingMotd) {} virtual void OnClientLogin() override { PutUser(":irc.znc.in 422 :MOTD File is missing"); } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("missingmotd"); Info.SetHasArgs(false); } USERMODULEDEFS(CMissingMotd, "Sends 422 to clients when they login") znc-1.6.3/modules/stickychan.cpp0000644000175000017500000001506112663147131017062 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; class CStickyChan : public CModule { public: MODCONSTRUCTOR(CStickyChan) { AddHelpCommand(); AddCommand("Stick", static_cast(&CStickyChan::OnStickCommand), "<#channel> [key]", "Sticks a channel"); AddCommand("Unstick", static_cast(&CStickyChan::OnUnstickCommand), "<#channel>", "Unsticks a channel"); AddCommand("List", static_cast(&CStickyChan::OnListCommand), "", "Lists sticky channels"); } virtual ~CStickyChan() { } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override; virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) override { for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { if (sChannel.Equals(it->first)) { CChan* pChan = GetNetwork()->FindChan(sChannel); if (pChan) { pChan->JoinUser(); return HALT; } } } return CONTINUE; } void OnStickCommand(const CString& sCommand) { CString sChannel = sCommand.Token(1).AsLower(); if (sChannel.empty()) { PutModule("Usage: Stick <#channel> [key]"); return; } SetNV(sChannel, sCommand.Token(2)); PutModule("Stuck " + sChannel); } void OnUnstickCommand(const CString& sCommand) { CString sChannel = sCommand.Token(1); if (sChannel.empty()) { PutModule("Usage: Unstick <#channel>"); return; } MCString::iterator it = FindNV(sChannel); if (it != EndNV()) DelNV(it); PutModule("Unstuck " + sChannel); } void OnListCommand(const CString& sCommand) { int i = 1; for (MCString::iterator it = BeginNV(); it != EndNV(); ++it, i++) { if (it->second.empty()) PutModule(CString(i) + ": " + it->first); else PutModule(CString(i) + ": " + it->first + " (" + it->second + ")"); } PutModule(" -- End of List"); } void RunJob() { CIRCNetwork* pNetwork = GetNetwork(); if (!pNetwork->GetIRCSock()) return; for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { CChan *pChan = pNetwork->FindChan(it->first); if (!pChan) { pChan = new CChan(it->first, pNetwork, true); if (!it->second.empty()) pChan->SetKey(it->second); if (!pNetwork->AddChan(pChan)) { /* AddChan() deleted that channel */ PutModule("Could not join [" + it->first + "] (# prefix missing?)"); continue; } } if (!pChan->IsOn() && pNetwork->IsIRCConnected()) { PutModule("Joining [" + pChan->GetName() + "]"); PutIRC("JOIN " + pChan->GetName() + (pChan->GetKey().empty() ? "" : " " + pChan->GetKey())); } } } virtual CString GetWebMenuTitle() override { return "Sticky Chans"; } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { bool bSubmitted = (WebSock.GetParam("submitted").ToInt() != 0); const vector& Channels = GetNetwork()->GetChans(); for (unsigned int c = 0; c < Channels.size(); c++) { const CString sChan = Channels[c]->GetName(); bool bStick = FindNV(sChan) != EndNV(); if(bSubmitted) { bool bNewStick = WebSock.GetParam("stick_" + sChan).ToBool(); if(bNewStick && !bStick) SetNV(sChan, ""); // no password support for now unless chansaver is active too else if(!bNewStick && bStick) { MCString::iterator it = FindNV(sChan); if(it != EndNV()) DelNV(it); } bStick = bNewStick; } CTemplate& Row = Tmpl.AddRow("ChannelLoop"); Row["Name"] = sChan; Row["Sticky"] = CString(bStick); } if(bSubmitted) { WebSock.GetSession()->AddSuccess("Changes have been saved!"); } return true; } return false; } virtual bool OnEmbeddedWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "webadmin/channel") { CString sChan = Tmpl["ChanName"]; bool bStick = FindNV(sChan) != EndNV(); if (Tmpl["WebadminAction"].Equals("display")) { Tmpl["Sticky"] = CString(bStick); } else if (WebSock.GetParam("embed_stickychan_presented").ToBool()) { bool bNewStick = WebSock.GetParam("embed_stickychan_sticky").ToBool(); if(bNewStick && !bStick) { SetNV(sChan, ""); // no password support for now unless chansaver is active too WebSock.GetSession()->AddSuccess("Channel become sticky!"); } else if(!bNewStick && bStick) { DelNV(sChan); WebSock.GetSession()->AddSuccess("Channel stopped being sticky!"); } } return true; } return false; } EModRet OnRaw(CString& sLine) override { CString sNumeric = sLine.Token(1); if (sNumeric.Equals("479")) { // ERR_BADCHANNAME (juped channels or illegal channel name - ircd hybrid) // prevent the module from getting into an infinite loop of trying to join it. // :irc.network.net 479 mynick #channel :Illegal channel name CString sChannel = sLine.Token(3); for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { if (sChannel.Equals(it->first)) { PutModule("Channel [" + sChannel + "] cannot be joined, it is an illegal channel name. Unsticking."); OnUnstickCommand("unstick " + sChannel); return CONTINUE; } } } return CONTINUE; } }; static void RunTimer(CModule * pModule, CFPTimer *pTimer) { ((CStickyChan *)pModule)->RunJob(); } bool CStickyChan::OnLoad(const CString& sArgs, CString& sMessage) { VCString vsChans; VCString::iterator it; sArgs.Split(",", vsChans, false); for (it = vsChans.begin(); it != vsChans.end(); ++it) { CString sChan = it->Token(0); CString sKey = it->Token(1, true); SetNV(sChan, sKey); } // Since we now have these channels added, clear the argument list SetArgs(""); AddTimer(RunTimer, "StickyChanTimer", 15); return(true); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("stickychan"); Info.SetHasArgs(true); Info.SetArgsHelpText("List of channels, separated by comma."); } NETWORKMODULEDEFS(CStickyChan, "configless sticky chans, keeps you there very stickily even") znc-1.6.3/modules/partyline.cpp0000644000175000017500000005014212663147131016730 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::set; using std::vector; using std::map; // If you change these and it breaks, you get to keep the pieces #define CHAN_PREFIX_1 "~" #define CHAN_PREFIX_1C '~' #define CHAN_PREFIX CHAN_PREFIX_1 "#" #define NICK_PREFIX CString("?") #define NICK_PREFIX_C '?' class CPartylineChannel { public: CPartylineChannel(const CString& sName) { m_sName = sName.AsLower(); } ~CPartylineChannel() {} const CString& GetTopic() const { return m_sTopic; } const CString& GetName() const { return m_sName; } const set& GetNicks() const { return m_ssNicks; } void SetTopic(const CString& s) { m_sTopic = s; } void AddNick(const CString& s) { m_ssNicks.insert(s); } void DelNick(const CString& s) { m_ssNicks.erase(s); } bool IsInChannel(const CString& s) { return m_ssNicks.find(s) != m_ssNicks.end(); } protected: CString m_sTopic; CString m_sName; set m_ssNicks; }; class CPartylineMod : public CModule { public: void ListChannelsCommand(const CString& sLine) { if (m_ssChannels.empty()) { PutModule("There are no open channels."); return; } CTable Table; Table.AddColumn("Channel"); Table.AddColumn("Users"); for (set::const_iterator a = m_ssChannels.begin(); a != m_ssChannels.end(); ++a) { Table.AddRow(); Table.SetCell("Channel", (*a)->GetName()); Table.SetCell("Users", CString((*a)->GetNicks().size())); } PutModule(Table); } MODCONSTRUCTOR(CPartylineMod) { AddHelpCommand(); AddCommand("List", static_cast(&CPartylineMod::ListChannelsCommand), "", "List all open channels"); } virtual ~CPartylineMod() { // Kick all clients who are in partyline channels for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end(); ++it) { set ssNicks = (*it)->GetNicks(); for (set::const_iterator it2 = ssNicks.begin(); it2 != ssNicks.end(); ++it2) { CUser* pUser = CZNC::Get().FindUser(*it2); vector vClients = pUser->GetAllClients(); for (vector::const_iterator it3 = vClients.begin(); it3 != vClients.end(); ++it3) { CClient* pClient = *it3; pClient->PutClient( ":*" + GetModName() + "!znc@znc.in KICK " + (*it)->GetName() + " " + pClient->GetNick() + " :" + GetModName() + " unloaded"); } } } while (!m_ssChannels.empty()) { delete *m_ssChannels.begin(); m_ssChannels.erase(m_ssChannels.begin()); } } virtual bool OnBoot() override { // The config is now read completely, so all Users are set up Load(); return true; } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { const map& msUsers = CZNC::Get().GetUserMap(); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { CUser* pUser = it->second; for (vector::const_iterator i = pUser->GetNetworks().begin(); i != pUser->GetNetworks().end(); ++i) { CIRCNetwork* pNetwork = *i; if (pNetwork->GetIRCSock()) { if (pNetwork->GetChanPrefixes().find(CHAN_PREFIX_1) == CString::npos) { pNetwork->PutUser(":" + GetIRCServer(pNetwork) + " 005 " + pNetwork->GetIRCNick().GetNick() + " CHANTYPES=" + pNetwork->GetChanPrefixes() + CHAN_PREFIX_1 " :are supported by this server."); } } } } VCString vsChans; VCString::const_iterator it; sArgs.Split(" ", vsChans, false); for (it = vsChans.begin(); it != vsChans.end(); ++it) { if (it->Left(2) == CHAN_PREFIX) { m_ssDefaultChans.insert(it->Left(32)); } } Load(); return true; } void Load() { CString sAction, sKey; CPartylineChannel* pChannel; for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { if (it->first.find(":") != CString::npos) { sAction = it->first.Token(0, false, ":"); sKey = it->first.Token(1, true, ":"); } else { // backwards compatibility for older NV data sAction = "fixedchan"; sKey = it->first; } if (sAction == "fixedchan") { // Sorry, this was removed } if (sAction == "topic") { pChannel = FindChannel(sKey); if (pChannel && !(it->second).empty()) { PutChan(pChannel->GetNicks(), ":irc.znc.in TOPIC " + pChannel->GetName() + " :" + it->second); pChannel->SetTopic(it->second); } } } return; } void SaveTopic(CPartylineChannel* pChannel) { if (!pChannel->GetTopic().empty()) SetNV("topic:" + pChannel->GetName(), pChannel->GetTopic()); else DelNV("topic:" + pChannel->GetName()); } virtual EModRet OnDeleteUser(CUser& User) override { // Loop through each chan for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end();) { CPartylineChannel *pChan = *it; // RemoveUser() might delete channels, so make sure our // iterator doesn't break. ++it; RemoveUser(&User, pChan, "KICK", "User deleted", true); } return CONTINUE; } virtual EModRet OnRaw(CString& sLine) override { if (sLine.Token(1) == "005") { CString::size_type uPos = sLine.AsUpper().find("CHANTYPES="); if (uPos != CString::npos) { uPos = sLine.find(" ", uPos); if (uPos == CString::npos) sLine.append(CHAN_PREFIX_1); else sLine.insert(uPos, CHAN_PREFIX_1); m_spInjectedPrefixes.insert(GetNetwork()); } } return CONTINUE; } virtual void OnIRCDisconnected() override { m_spInjectedPrefixes.erase(GetNetwork()); } virtual void OnClientLogin() override { CUser* pUser = GetUser(); CClient* pClient = GetClient(); CIRCNetwork* pNetwork = GetNetwork(); if (m_spInjectedPrefixes.find(pNetwork) == m_spInjectedPrefixes.end() && pNetwork && !pNetwork->GetChanPrefixes().empty()) { pClient->PutClient(":" + GetIRCServer(pNetwork) + " 005 " + pClient->GetNick() + " CHANTYPES=" + pNetwork->GetChanPrefixes() + CHAN_PREFIX_1 " :are supported by this server."); } // Make sure this user is in the default channels for (set::iterator a = m_ssDefaultChans.begin(); a != m_ssDefaultChans.end(); ++a) { CPartylineChannel* pChannel = GetChannel(*a); const CString& sNick = pUser->GetUserName(); if (pChannel->IsInChannel(sNick)) continue; CString sHost = pUser->GetBindHost(); const set& ssNicks = pChannel->GetNicks(); if (sHost.empty()) { sHost = "znc.in"; } PutChan(ssNicks, ":" + NICK_PREFIX + sNick + "!" + pUser->GetIdent() + "@" + sHost + " JOIN " + *a, false); pChannel->AddNick(sNick); } CString sNickMask = pClient->GetNickMask(); for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end(); ++it) { const set& ssNicks = (*it)->GetNicks(); if ((*it)->IsInChannel(pUser->GetUserName())) { pClient->PutClient(":" + sNickMask + " JOIN " + (*it)->GetName()); if (!(*it)->GetTopic().empty()) { pClient->PutClient(":" + GetIRCServer(pNetwork) + " 332 " + pClient->GetNickMask() + " " + (*it)->GetName() + " :" + (*it)->GetTopic()); } SendNickList(pUser, pNetwork, ssNicks, (*it)->GetName()); PutChan(ssNicks, ":*" + GetModName() + "!znc@znc.in MODE " + (*it)->GetName() + " +" + CString(pUser->IsAdmin() ? "o" : "v") + " " + NICK_PREFIX + pUser->GetUserName(), false); } } } virtual void OnClientDisconnect() override { CUser* pUser = GetUser(); if (!pUser->IsUserAttached() && !pUser->IsBeingDeleted()) { for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end(); ++it) { const set& ssNicks = (*it)->GetNicks(); if (ssNicks.find(pUser->GetUserName()) != ssNicks.end()) { PutChan(ssNicks, ":*" + GetModName() + "!znc@znc.in MODE " + (*it)->GetName() + " -ov " + NICK_PREFIX + pUser->GetUserName() + " " + NICK_PREFIX + pUser->GetUserName(), false); } } } } virtual EModRet OnUserRaw(CString& sLine) override { if (sLine.Equals("WHO " CHAN_PREFIX_1, false, 5)) { return HALT; } else if (sLine.Equals("MODE " CHAN_PREFIX_1, false, 6)) { return HALT; } else if (sLine.Equals("TOPIC " CHAN_PREFIX, false, 8)) { CString sChannel = sLine.Token(1); CString sTopic = sLine.Token(2, true); sTopic.TrimPrefix(":"); CUser* pUser = GetUser(); CClient* pClient = GetClient(); CPartylineChannel* pChannel = FindChannel(sChannel); if (pChannel && pChannel->IsInChannel(pUser->GetUserName())) { const set& ssNicks = pChannel->GetNicks(); if (!sTopic.empty()) { if (pUser->IsAdmin()) { PutChan(ssNicks, ":" + pClient->GetNickMask() + " TOPIC " + sChannel + " :" + sTopic); pChannel->SetTopic(sTopic); SaveTopic(pChannel); } else { pUser->PutUser(":irc.znc.in 482 " + pClient->GetNick() + " " + sChannel + " :You're not channel operator"); } } else { sTopic = pChannel->GetTopic(); if (sTopic.empty()) { pUser->PutUser(":irc.znc.in 331 " + pClient->GetNick() + " " + sChannel + " :No topic is set."); } else { pUser->PutUser(":irc.znc.in 332 " + pClient->GetNick() + " " + sChannel + " :" + sTopic); } } } else { pUser->PutUser(":irc.znc.in 442 " + pClient->GetNick() + " " + sChannel + " :You're not on that channel"); } return HALT; } return CONTINUE; } virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) override { if (sChannel.Left(1) != CHAN_PREFIX_1) { return CONTINUE; } if (sChannel.Left(2) != CHAN_PREFIX) { GetClient()->PutClient(":" + GetIRCServer(GetNetwork()) + " 401 " + GetClient()->GetNick() + " " + sChannel + " :No such channel"); return HALT; } CPartylineChannel* pChannel = FindChannel(sChannel); PartUser(GetUser(), pChannel); return HALT; } void PartUser(CUser* pUser, CPartylineChannel* pChannel, const CString& sMessage = "") { RemoveUser(pUser, pChannel, "PART", sMessage); } void RemoveUser(CUser* pUser, CPartylineChannel* pChannel, const CString& sCommand, const CString& sMessage = "", bool bNickAsTarget = false) { if (!pChannel || !pChannel->IsInChannel(pUser->GetUserName())) { return; } vector vClients = pUser->GetAllClients(); CString sCmd = " " + sCommand + " "; CString sMsg = sMessage; if (!sMsg.empty()) sMsg = " :" + sMsg; pChannel->DelNick(pUser->GetUserName()); const set& ssNicks = pChannel->GetNicks(); CString sHost = pUser->GetBindHost(); if (sHost.empty()) { sHost = "znc.in"; } if (bNickAsTarget) { for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pClient = *it; pClient->PutClient(":" + pClient->GetNickMask() + sCmd + pChannel->GetName() + " " + pClient->GetNick() + sMsg); } PutChan(ssNicks, ":" + NICK_PREFIX + pUser->GetUserName() + "!" + pUser->GetIdent() + "@" + sHost + sCmd + pChannel->GetName() + " " + NICK_PREFIX + pUser->GetUserName() + sMsg, false, true, pUser); } else { for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pClient = *it; pClient->PutClient(":" + pClient->GetNickMask() + sCmd + pChannel->GetName() + sMsg); } PutChan(ssNicks, ":" + NICK_PREFIX + pUser->GetUserName() + "!" + pUser->GetIdent() + "@" + sHost + sCmd + pChannel->GetName() + sMsg, false, true, pUser); } if (!pUser->IsBeingDeleted() && m_ssDefaultChans.find(pChannel->GetName()) != m_ssDefaultChans.end()) { JoinUser(pUser, pChannel); } if (ssNicks.empty()) { delete pChannel; m_ssChannels.erase(pChannel); } } virtual EModRet OnUserJoin(CString& sChannel, CString& sKey) override { if (sChannel.Left(1) != CHAN_PREFIX_1) { return CONTINUE; } if (sChannel.Left(2) != CHAN_PREFIX) { GetClient()->PutClient(":" + GetIRCServer(GetNetwork()) + " 403 " + GetClient()->GetNick() + " " + sChannel + " :Channels look like " CHAN_PREFIX "znc"); return HALT; } sChannel = sChannel.Left(32); CPartylineChannel* pChannel = GetChannel(sChannel); JoinUser(GetUser(), pChannel); return HALT; } void JoinUser(CUser* pUser, CPartylineChannel* pChannel) { if (pChannel && !pChannel->IsInChannel(pUser->GetUserName())) { vector vClients = pUser->GetAllClients(); const set& ssNicks = pChannel->GetNicks(); const CString& sNick = pUser->GetUserName(); pChannel->AddNick(sNick); CString sHost = pUser->GetBindHost(); if (sHost.empty()) { sHost = "znc.in"; } for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pClient = *it; pClient->PutClient(":" + pClient->GetNickMask() + " JOIN " + pChannel->GetName()); } PutChan(ssNicks, ":" + NICK_PREFIX + sNick + "!" + pUser->GetIdent() + "@" + sHost + " JOIN " + pChannel->GetName(), false, true, pUser); if (!pChannel->GetTopic().empty()) { for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pClient = *it; pClient->PutClient(":" + GetIRCServer(pClient->GetNetwork()) + " 332 " + pClient->GetNickMask() + " " + pChannel->GetName() + " :" + pChannel->GetTopic()); } } SendNickList(pUser, NULL, ssNicks, pChannel->GetName()); /* Tell the other clients we have op or voice, the current user's clients already know from NAMES list */ if (pUser->IsAdmin()) { PutChan(ssNicks, ":*" + GetModName() + "!znc@znc.in MODE " + pChannel->GetName() + " +o " + NICK_PREFIX + pUser->GetUserName(), false, false, pUser); } PutChan(ssNicks, ":*" + GetModName() + "!znc@znc.in MODE " + pChannel->GetName() + " +v " + NICK_PREFIX + pUser->GetUserName(), false, false, pUser); } } EModRet HandleMessage(const CString& sCmd, const CString& sTarget, const CString& sMessage) { if (sTarget.empty()) { return CONTINUE; } char cPrefix = sTarget[0]; if (cPrefix != CHAN_PREFIX_1C && cPrefix != NICK_PREFIX_C) { return CONTINUE; } CUser* pUser = GetUser(); CClient* pClient = GetClient(); CIRCNetwork* pNetwork = GetNetwork(); CString sHost = pUser->GetBindHost(); if (sHost.empty()) { sHost = "znc.in"; } if (cPrefix == CHAN_PREFIX_1C) { if (FindChannel(sTarget) == NULL) { pClient->PutClient(":" + GetIRCServer(pNetwork) + " 401 " + pClient->GetNick() + " " + sTarget + " :No such channel"); return HALT; } PutChan(sTarget, ":" + NICK_PREFIX + pUser->GetUserName() + "!" + pUser->GetIdent() + "@" + sHost + " " + sCmd + " " + sTarget + " :" + sMessage, true, false); } else { CString sNick = sTarget.LeftChomp_n(1); CUser* pTargetUser = CZNC::Get().FindUser(sNick); if (pTargetUser) { vector vClients = pTargetUser->GetAllClients(); if (vClients.empty()) { pClient->PutClient(":" + GetIRCServer(pNetwork) + " 401 " + pClient->GetNick() + " " + sTarget + " :User is not attached: " + sNick + ""); return HALT; } for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pTarget = *it; pTarget->PutClient(":" + NICK_PREFIX + pUser->GetUserName() + "!" + pUser->GetIdent() + "@" + sHost + " " + sCmd + " " + pTarget->GetNick() + " :" + sMessage); } } else { pClient->PutClient(":" + GetIRCServer(pNetwork) + " 401 " + pClient->GetNick() + " " + sTarget + " :No such znc user: " + sNick + ""); } } return HALT; } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override { return HandleMessage("PRIVMSG", sTarget, sMessage); } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { return HandleMessage("NOTICE", sTarget, sMessage); } virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override { return HandleMessage("PRIVMSG", sTarget, "\001ACTION " + sMessage + "\001"); } virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) override { return HandleMessage("PRIVMSG", sTarget, "\001" + sMessage + "\001"); } virtual EModRet OnUserCTCPReply(CString& sTarget, CString& sMessage) override { return HandleMessage("NOTICE", sTarget, "\001" + sMessage + "\001"); } const CString GetIRCServer(CIRCNetwork *pNetwork) { if (!pNetwork) { return "irc.znc.in"; } const CString& sServer = pNetwork->GetIRCServer(); if (!sServer.empty()) return sServer; return "irc.znc.in"; } bool PutChan(const CString& sChan, const CString& sLine, bool bIncludeCurUser = true, bool bIncludeClient = true, CUser* pUser = NULL, CClient* pClient = NULL) { CPartylineChannel* pChannel = FindChannel(sChan); if (pChannel != NULL) { PutChan(pChannel->GetNicks(), sLine, bIncludeCurUser, bIncludeClient, pUser, pClient); return true; } return false; } void PutChan(const set& ssNicks, const CString& sLine, bool bIncludeCurUser = true, bool bIncludeClient = true, CUser* pUser = NULL, CClient* pClient = NULL) { const map& msUsers = CZNC::Get().GetUserMap(); if (!pUser) pUser = GetUser(); if (!pClient) pClient = GetClient(); for (map::const_iterator it = msUsers.begin(); it != msUsers.end(); ++it) { if (ssNicks.find(it->first) != ssNicks.end()) { if (it->second == pUser) { if (bIncludeCurUser) { it->second->PutAllUser(sLine, NULL, (bIncludeClient ? NULL : pClient)); } } else { it->second->PutAllUser(sLine); } } } } void PutUserIRCNick(CUser* pUser, const CString& sPre, const CString& sPost) { const vector& vClients = pUser->GetAllClients(); vector::const_iterator it; for (it = vClients.begin(); it != vClients.end(); ++it) { (*it)->PutClient(sPre + (*it)->GetNick() + sPost); } } void SendNickList(CUser* pUser, CIRCNetwork* pNetwork, const set& ssNicks, const CString& sChan) { CString sNickList; for (set::const_iterator it = ssNicks.begin(); it != ssNicks.end(); ++it) { CUser* pChanUser = CZNC::Get().FindUser(*it); if (pChanUser == pUser) { continue; } if (pChanUser && pChanUser->IsUserAttached()) { sNickList += (pChanUser->IsAdmin()) ? "@" : "+"; } sNickList += NICK_PREFIX + (*it) + " "; if (sNickList.size() >= 500) { PutUserIRCNick(pUser, ":" + GetIRCServer(pNetwork) + " 353 ", " @ " + sChan + " :" + sNickList); sNickList.clear(); } } if (sNickList.size()) { PutUserIRCNick(pUser, ":" + GetIRCServer(pNetwork) + " 353 ", " @ " + sChan + " :" + sNickList); } vector vClients = pUser->GetAllClients(); for (vector::const_iterator it = vClients.begin(); it != vClients.end(); ++it) { CClient* pClient = *it; pClient->PutClient(":" + GetIRCServer(pNetwork) + " 353 " + pClient->GetNick() + " @ " + sChan + " :" + ((pUser->IsAdmin()) ? "@" : "+") + pClient->GetNick()); } PutUserIRCNick(pUser, ":" + GetIRCServer(pNetwork) + " 366 ", " " + sChan + " :End of /NAMES list."); } CPartylineChannel* FindChannel(const CString& sChan) { CString sChannel = sChan.AsLower(); for (set::iterator it = m_ssChannels.begin(); it != m_ssChannels.end(); ++it) { if ((*it)->GetName().AsLower() == sChannel) return *it; } return NULL; } CPartylineChannel* GetChannel(const CString& sChannel) { CPartylineChannel* pChannel = FindChannel(sChannel); if (!pChannel) { pChannel = new CPartylineChannel(sChannel.AsLower()); m_ssChannels.insert(pChannel); } return pChannel; } private: set m_ssChannels; set m_spInjectedPrefixes; set m_ssDefaultChans; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("partyline"); Info.SetHasArgs(true); Info.SetArgsHelpText("You may enter a list of channels the user joins, when entering the internal partyline."); } GLOBALMODULEDEFS(CPartylineMod, "Internal channels and queries for users connected to znc") znc-1.6.3/modules/awaystore.cpp0000644000175000017500000003212412663147131016737 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * Author: imaginos * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * Quiet Away and message logger * * I originally wrote this module for when I had multiple clients connected to ZNC. I would leave work and forget to close my client, arriving at home * and re-attaching there someone may have messaged me in commute and I wouldn't know it until I would arrive back at work the next day. I wrote it such that * my xchat client would monitor desktop activity and ping the module to let it know I was active. Within a few minutes of inactivity the pinging stops and * the away module sets the user as away and logging commences. */ #define REQUIRESSL #include #include #include using std::vector; using std::map; #define CRYPT_VERIFICATION_TOKEN "::__:AWAY:__::" class CAway; class CAwayJob : public CTimer { public: CAwayJob(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {} virtual ~CAwayJob() {} protected: virtual void RunJob() override; }; class CAway : public CModule { void AwayCommand(const CString& sCommand) { CString sReason; time_t curtime; time(&curtime); if (sCommand.Token(1) != "-quiet") { sReason = CUtils::FormatTime(curtime, sCommand.Token(1, true), GetUser()->GetTimezone()); PutModNotice("You have been marked as away"); } else { sReason = CUtils::FormatTime(curtime, sCommand.Token(2, true), GetUser()->GetTimezone()); } Away(false, sReason); } void BackCommand(const CString& sCommand) { if ((m_vMessages.empty()) && (sCommand.Token(1) != "-quiet")) PutModNotice("Welcome Back!"); Ping(); Back(); } void MessagesCommand(const CString& sCommand) { for (u_int a = 0; a < m_vMessages.size(); a++) PutModule(m_vMessages[a]); } void ReplayCommand(const CString& sCommand) { CString nick = GetClient()->GetNick(); for (u_int a = 0; a < m_vMessages.size(); a++) { CString sWhom = m_vMessages[a].Token(1, false, ":"); CString sMessage = m_vMessages[a].Token(2, true, ":"); PutUser(":" + sWhom + " PRIVMSG " + nick + " :" + sMessage); } } void DeleteCommand(const CString& sCommand) { CString sWhich = sCommand.Token(1); if (sWhich == "all") { PutModNotice("Deleted " + CString(m_vMessages.size()) + " Messages."); for (u_int a = 0; a < m_vMessages.size(); a++) m_vMessages.erase(m_vMessages.begin() + a--); } else if (sWhich.empty()) { PutModNotice("USAGE: delete "); return; } else { u_int iNum = sWhich.ToUInt(); if (iNum >= m_vMessages.size()) { PutModNotice("Illegal Message # Requested"); return; } else { m_vMessages.erase(m_vMessages.begin() + iNum); PutModNotice("Message Erased."); } SaveBufferToDisk(); } } void SaveCommand(const CString& sCommand) { if (m_saveMessages) { SaveBufferToDisk(); PutModNotice("Messages saved to disk."); } else { PutModNotice("There are no messages to save."); } } void PingCommand(const CString& sCommand) { Ping(); if (m_bIsAway) Back(); } void PassCommand(const CString& sCommand) { m_sPassword = sCommand.Token(1); PutModNotice("Password Updated to [" + m_sPassword + "]"); } void ShowCommand(const CString& sCommand) { map< CString, vector< CString> > msvOutput; for (u_int a = 0; a < m_vMessages.size(); a++) { CString sTime = m_vMessages[a].Token(0, false); CString sWhom = m_vMessages[a].Token(1, false); CString sMessage = m_vMessages[a].Token(2, true); if ((sTime.empty()) || (sWhom.empty()) || (sMessage.empty())) { // illegal format PutModule("Corrupt message! [" + m_vMessages[a] + "]"); m_vMessages.erase(m_vMessages.begin() + a--); continue; } time_t iTime = sTime.ToULong(); char szFormat[64]; struct tm t; localtime_r(&iTime, &t); size_t iCount = strftime(szFormat, 64, "%F %T", &t); if (iCount <= 0) { PutModule("Corrupt time stamp! [" + m_vMessages[a] + "]"); m_vMessages.erase(m_vMessages.begin() + a--); continue; } CString sTmp = " " + CString(a) + ") ["; sTmp.append(szFormat, iCount); sTmp += "] "; sTmp += sMessage; msvOutput[sWhom].push_back(sTmp); } for (map< CString, vector< CString> >::iterator it = msvOutput.begin(); it != msvOutput.end(); ++it) { PutModule(it->first); for (u_int a = 0; a < it->second.size(); a++) PutModule(it->second[a]); } PutModule("#--- End Messages"); } void EnableTimerCommand(const CString& sCommand) { SetAwayTime(300); PutModule("Timer set to 300 seconds"); } void DisableTimerCommand(const CString& sCommand) { SetAwayTime(0); PutModule("Timer disabled"); } void SetTimerCommand(const CString& sCommand) { int iSetting = sCommand.Token(1).ToInt(); SetAwayTime(iSetting); if (iSetting == 0) PutModule("Timer disabled"); else PutModule("Timer set to " + CString(iSetting) + " seconds"); } void TimerCommand(const CString& sCommand) { PutModule("Current timer setting: " + CString(GetAwayTime()) + " seconds"); } public: MODCONSTRUCTOR(CAway) { Ping(); m_bIsAway = false; m_bBootError = false; m_saveMessages = true; SetAwayTime(300); AddTimer(new CAwayJob(this, 60, 0, "AwayJob", "Checks for idle and saves messages every 1 minute")); AddHelpCommand(); AddCommand("Away", static_cast(&CAway::AwayCommand), "[-quiet]"); AddCommand("Back", static_cast(&CAway::BackCommand), "[-quiet]"); AddCommand("Messages", static_cast(&CAway::BackCommand)); AddCommand("Delete", static_cast(&CAway::DeleteCommand), "delete "); AddCommand("Save", static_cast(&CAway::SaveCommand)); AddCommand("Ping", static_cast(&CAway::PingCommand)); AddCommand("Pass", static_cast(&CAway::PassCommand)); AddCommand("Show", static_cast(&CAway::ShowCommand)); AddCommand("Replay", static_cast(&CAway::ReplayCommand)); AddCommand("EnableTimer", static_cast(&CAway::EnableTimerCommand)); AddCommand("DisableTimer", static_cast(&CAway::DisableTimerCommand)); AddCommand("SetTimer", static_cast(&CAway::SetTimerCommand), ""); AddCommand("Timer", static_cast(&CAway::TimerCommand)); } virtual ~CAway() { if (!m_bBootError) SaveBufferToDisk(); } virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { CString sMyArgs = sArgs; size_t uIndex = 0; if (sMyArgs.Token(0) == "-nostore") { uIndex++; m_saveMessages = false; } if (sMyArgs.Token(uIndex) == "-notimer") { SetAwayTime(0); sMyArgs = sMyArgs.Token(uIndex + 1, true); } else if (sMyArgs.Token(uIndex) == "-timer") { SetAwayTime(sMyArgs.Token(uIndex + 1).ToInt()); sMyArgs = sMyArgs.Token(uIndex + 2, true); } if (m_saveMessages) { if (!sMyArgs.empty()) { m_sPassword = CBlowfish::MD5(sMyArgs); } else { sMessage = "This module needs as an argument a keyphrase used for encryption"; return false; } if (!BootStrap()) { sMessage = "Failed to decrypt your saved messages - " "Did you give the right encryption key as an argument to this module?"; m_bBootError = true; return false; } } return true; } virtual void OnIRCConnected() override { if (m_bIsAway) Away(true); // reset away if we are reconnected else Back(); // ircd seems to remember your away if you killed the client and came back } bool BootStrap() { CString sFile; if (DecryptMessages(sFile)) { VCString vsLines; VCString::iterator it; sFile.Split("\n", vsLines); for (it = vsLines.begin(); it != vsLines.end(); ++it) { CString sLine(*it); sLine.Trim(); AddMessage(sLine); } } else { m_sPassword = ""; CUtils::PrintError("[" + GetModName() + ".so] Failed to Decrypt Messages"); return(false); } return(true); } void SaveBufferToDisk() { if (!m_sPassword.empty()) { CString sFile = CRYPT_VERIFICATION_TOKEN; for (u_int b = 0; b < m_vMessages.size(); b++) sFile += m_vMessages[b] + "\n"; CBlowfish c(m_sPassword, BF_ENCRYPT); sFile = c.Crypt(sFile); CString sPath = GetPath(); if (!sPath.empty()) { CFile File(sPath); if (File.Open(O_WRONLY | O_CREAT | O_TRUNC, 0600)) { File.Chmod(0600); File.Write(sFile); } File.Close(); } } } virtual void OnClientLogin() override { Back(true); } virtual void OnClientDisconnect() override { Away(); } CString GetPath() { CString sBuffer = GetUser()->GetUserName(); CString sRet = GetSavePath(); sRet += "/.znc-away-" + CBlowfish::MD5(sBuffer, true); return(sRet); } void Away(bool bForce = false, const CString & sReason = "") { if ((!m_bIsAway) || (bForce)) { if (!bForce) m_sReason = sReason; else if (!sReason.empty()) m_sReason = sReason; time_t iTime = time(NULL); char *pTime = ctime(&iTime); CString sTime; if (pTime) { sTime = pTime; sTime.Trim(); } if (m_sReason.empty()) m_sReason = "Auto Away at " + sTime; PutIRC("AWAY :" + m_sReason); m_bIsAway = true; } } void Back(bool bUsePrivMessage = false) { PutIRC("away"); m_bIsAway = false; if (!m_vMessages.empty()) { if (bUsePrivMessage) { PutModule("Welcome Back!"); PutModule("You have " + CString(m_vMessages.size()) + " messages!"); } else { PutModNotice("Welcome Back!"); PutModNotice("You have " + CString(m_vMessages.size()) + " messages!"); } } m_sReason = ""; } virtual EModRet OnPrivMsg(CNick& Nick, CString& sMessage) override { if (m_bIsAway) AddMessage(time(NULL), Nick, sMessage); return(CONTINUE); } virtual EModRet OnPrivAction(CNick& Nick, CString& sMessage) override { if (m_bIsAway) { AddMessage(time(NULL), Nick, "* " + sMessage); } return(CONTINUE); } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { Ping(); if (m_bIsAway) Back(); return(CONTINUE); } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override { Ping(); if (m_bIsAway) Back(); return(CONTINUE); } virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override { Ping(); if (m_bIsAway) Back(); return(CONTINUE); } time_t GetTimeStamp() const { return(m_iLastSentData); } void Ping() { m_iLastSentData = time(NULL); } time_t GetAwayTime() { return m_iAutoAway; } void SetAwayTime(time_t u) { m_iAutoAway = u; } bool IsAway() { return(m_bIsAway); } private: CString m_sPassword; bool m_bBootError; bool DecryptMessages(CString & sBuffer) { CString sMessages = GetPath(); CString sFile; sBuffer = ""; CFile File(sMessages); if (sMessages.empty() || !File.Open() || !File.ReadFile(sFile)) { PutModule("Unable to find buffer"); return(true); // gonna be successful here } File.Close(); if (!sFile.empty()) { CBlowfish c(m_sPassword, BF_DECRYPT); sBuffer = c.Crypt(sFile); if (sBuffer.Left(strlen(CRYPT_VERIFICATION_TOKEN)) != CRYPT_VERIFICATION_TOKEN) { // failed to decode :( PutModule("Unable to decode Encrypted messages"); return(false); } sBuffer.erase(0, strlen(CRYPT_VERIFICATION_TOKEN)); } return(true); } void AddMessage(time_t iTime, const CNick & Nick, const CString & sMessage) { if (Nick.GetNick() == GetNetwork()->GetIRCNick().GetNick()) return; // ignore messages from self AddMessage(CString(iTime) + " " + Nick.GetNickMask() + " " + sMessage); } void AddMessage(const CString & sText) { if (m_saveMessages) { m_vMessages.push_back(sText); } } time_t m_iLastSentData; bool m_bIsAway; time_t m_iAutoAway; vector m_vMessages; CString m_sReason; bool m_saveMessages; }; void CAwayJob::RunJob() { CAway *p = (CAway *)GetModule(); p->SaveBufferToDisk(); if (!p->IsAway()) { time_t iNow = time(NULL); if ((iNow - p->GetTimeStamp()) > p->GetAwayTime() && p->GetAwayTime() != 0) p->Away(); } } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("awaystore"); Info.SetHasArgs(true); Info.SetArgsHelpText("[ -notimer | -timer N ] passw0rd . N is number of seconds, 600 by default."); } NETWORKMODULEDEFS(CAway, "Adds auto-away with logging, useful when you use ZNC from different locations"); znc-1.6.3/modules/simple_away.cpp0000644000175000017500000001352112663147131017233 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #define SIMPLE_AWAY_DEFAULT_REASON "Auto away at %s" #define SIMPLE_AWAY_DEFAULT_TIME 60 class CSimpleAway; class CSimpleAwayJob : public CTimer { public: CSimpleAwayJob(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {} virtual ~CSimpleAwayJob() {} protected: virtual void RunJob() override; }; class CSimpleAway : public CModule { private: CString m_sReason; unsigned int m_iAwayWait; bool m_bClientSetAway; bool m_bWeSetAway; public: MODCONSTRUCTOR(CSimpleAway) { m_sReason = SIMPLE_AWAY_DEFAULT_REASON; m_iAwayWait = SIMPLE_AWAY_DEFAULT_TIME; m_bClientSetAway = false; m_bWeSetAway = false; AddHelpCommand(); AddCommand("Reason", static_cast(&CSimpleAway::OnReasonCommand), "[]", "Prints or sets the away reason (%s is replaced with the time you were set away)"); AddCommand("Timer", static_cast(&CSimpleAway::OnTimerCommand), "", "Prints the current time to wait before setting you away"); AddCommand("SetTimer", static_cast(&CSimpleAway::OnSetTimerCommand), "", "Sets the time to wait before setting you away"); AddCommand("DisableTimer", static_cast(&CSimpleAway::OnDisableTimerCommand), "", "Disables the wait time before setting you away"); } virtual ~CSimpleAway() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { CString sReasonArg; // Load AwayWait CString sFirstArg = sArgs.Token(0); if (sFirstArg.Equals("-notimer")) { SetAwayWait(0); sReasonArg = sArgs.Token(1, true); } else if (sFirstArg.Equals("-timer")) { SetAwayWait(sArgs.Token(1).ToUInt()); sReasonArg = sArgs.Token(2, true); } else { CString sAwayWait = GetNV("awaywait"); if (!sAwayWait.empty()) SetAwayWait(sAwayWait.ToUInt(), false); sReasonArg = sArgs; } // Load Reason if (!sReasonArg.empty()) { SetReason(sReasonArg); } else { CString sSavedReason = GetNV("reason"); if (!sSavedReason.empty()) SetReason(sSavedReason, false); } // Set away on load, required if loaded via webadmin if (GetNetwork()->IsIRCConnected() && !GetNetwork()->IsUserAttached()) SetAway(false); return true; } virtual void OnIRCConnected() override { if (GetNetwork()->IsUserAttached()) SetBack(); else SetAway(false); } virtual void OnClientLogin() override { SetBack(); } virtual void OnClientDisconnect() override { /* There might still be other clients */ if (!GetNetwork()->IsUserAttached()) SetAway(); } void OnReasonCommand(const CString& sLine) { CString sReason = sLine.Token(1, true); if (!sReason.empty()) { SetReason(sReason); PutModule("Away reason set"); } else { PutModule("Away reason: " + m_sReason); PutModule("Current away reason would be: " + ExpandReason()); } } void OnTimerCommand(const CString& sLine) { PutModule("Current timer setting: " + CString(m_iAwayWait) + " seconds"); } void OnSetTimerCommand(const CString& sLine) { SetAwayWait(sLine.Token(1).ToUInt()); if (m_iAwayWait == 0) PutModule("Timer disabled"); else PutModule("Timer set to " + CString(m_iAwayWait) + " seconds"); } void OnDisableTimerCommand(const CString& sLine) { SetAwayWait(0); PutModule("Timer disabled"); } virtual EModRet OnUserRaw(CString &sLine) override { if (!sLine.Token(0).Equals("AWAY")) return CONTINUE; // If a client set us away, we don't touch that away message const CString sArg = sLine.Token(1, true).Trim_n(" "); if (sArg.empty() || sArg == ":") m_bClientSetAway = false; else m_bClientSetAway = true; m_bWeSetAway = false; return CONTINUE; } void SetAway(bool bTimer = true) { if (bTimer) { RemTimer("simple_away"); AddTimer(new CSimpleAwayJob(this, m_iAwayWait, 1, "simple_away", "Sets you away after detach")); } else { if (!m_bClientSetAway) { PutIRC("AWAY :" + ExpandReason()); m_bWeSetAway = true; } } } void SetBack() { RemTimer("simple_away"); if (m_bWeSetAway) { PutIRC("AWAY"); m_bWeSetAway = false; } } private: CString ExpandReason() { CString sReason = m_sReason; if (sReason.empty()) sReason = SIMPLE_AWAY_DEFAULT_REASON; time_t iTime = time(NULL); CString sTime = CUtils::CTime(iTime, GetUser()->GetTimezone()); sReason.Replace("%s", sTime); return sReason; } /* Settings */ void SetReason(CString& sReason, bool bSave = true) { if (bSave) SetNV("reason", sReason); m_sReason = sReason; } void SetAwayWait(unsigned int iAwayWait, bool bSave = true) { if (bSave) SetNV("awaywait", CString(iAwayWait)); m_iAwayWait = iAwayWait; } }; void CSimpleAwayJob::RunJob() { ((CSimpleAway*)GetModule())->SetAway(false); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("simple_away"); Info.SetHasArgs(true); Info.SetArgsHelpText("You might enter up to 3 arguments, like -notimer awaymessage or -timer 5 awaymessage."); } NETWORKMODULEDEFS(CSimpleAway, "This module will automatically set you away on IRC while you are disconnected from the bouncer.") znc-1.6.3/modules/modules_online.cpp0000644000175000017500000000633412663147131017741 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include class CFOModule : public CModule { public: MODCONSTRUCTOR(CFOModule) {} virtual ~CFOModule() {} bool IsOnlineModNick(const CString& sNick) { const CString& sPrefix = GetUser()->GetStatusPrefix(); if (!sNick.Equals(sPrefix, false, sPrefix.length())) return false; CString sModNick = sNick.substr(sPrefix.length()); if (sModNick.Equals("status") || GetNetwork()->GetModules().FindModule(sModNick) || GetUser()->GetModules().FindModule(sModNick) || CZNC::Get().GetModules().FindModule(sModNick)) return true; return false; } virtual EModRet OnUserRaw(CString& sLine) override { //Handle ISON if (sLine.Token(0).Equals("ison")) { VCString vsNicks; VCString::const_iterator it; // Get the list of nicks which are being asked for sLine.Token(1, true).TrimLeft_n(":").Split(" ", vsNicks, false); CString sBNCNicks; for (it = vsNicks.begin(); it != vsNicks.end(); ++it) { if (IsOnlineModNick(*it)) { sBNCNicks += " " + *it; } } // Remove the leading space sBNCNicks.LeftChomp(); if (!GetNetwork()->GetIRCSock()) { // if we are not connected to any IRC server, send // an empty or module-nick filled response. PutUser(":irc.znc.in 303 " + GetClient()->GetNick() + " :" + sBNCNicks); } else { // We let the server handle this request and then act on // the 303 response from the IRC server. m_ISONRequests.push_back(sBNCNicks); } } //Handle WHOIS if (sLine.Token(0).Equals("whois")) { CString sNick = sLine.Token(1); if (IsOnlineModNick(sNick)) { CIRCNetwork* pNetwork = GetNetwork(); PutUser(":znc.in 311 " + pNetwork->GetCurNick() + " " + sNick + " znc znc.in * :" + sNick); PutUser(":znc.in 312 " + pNetwork->GetCurNick() + " " + sNick + " *.znc.in :Bouncer"); PutUser(":znc.in 318 " + pNetwork->GetCurNick() + " " + sNick + " :End of /WHOIS list."); return HALT; } } return CONTINUE; } virtual EModRet OnRaw(CString& sLine) override { //Handle 303 reply if m_Requests is not empty if (sLine.Token(1) == "303" && !m_ISONRequests.empty()) { VCString::iterator it = m_ISONRequests.begin(); sLine.Trim(); // Only append a space if this isn't an empty reply if (sLine.Right(1) != ":") { sLine += " "; } //add BNC nicks to the reply sLine += *it; m_ISONRequests.erase(it); } return CONTINUE; } private: VCString m_ISONRequests; }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("modules_online"); } NETWORKMODULEDEFS(CFOModule, "Make ZNC's *modules to be \"online\".") znc-1.6.3/modules/disconkick.cpp0000644000175000017500000000262412663147131017044 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::vector; class CKickClientOnIRCDisconnect: public CModule { public: MODCONSTRUCTOR(CKickClientOnIRCDisconnect) {} void OnIRCDisconnected() override { const vector& vChans = GetNetwork()->GetChans(); for(vector::const_iterator it = vChans.begin(); it != vChans.end(); ++it) { if((*it)->IsOn()) { PutUser(":ZNC!znc@znc.in KICK " + (*it)->GetName() + " " + GetNetwork()->GetIRCNick().GetNick() + " :You have been disconnected from the IRC server"); } } } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("disconkick"); } USERMODULEDEFS(CKickClientOnIRCDisconnect, "Kicks the client from all channels when the connection to the IRC server is lost") znc-1.6.3/modules/bouncedcc.cpp0000644000175000017500000003757012663147131016660 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include using std::set; class CBounceDCCMod; class CDCCBounce : public CSocket { public: CDCCBounce(CBounceDCCMod* pMod, unsigned long uLongIP, unsigned short uPort, const CString& sFileName, const CString& sRemoteNick, const CString& sRemoteIP, bool bIsChat = false); CDCCBounce(CBounceDCCMod* pMod, const CString& sHostname, unsigned short uPort, const CString& sRemoteNick, const CString& sRemoteIP, const CString& sFileName, int iTimeout = 60, bool bIsChat = false); virtual ~CDCCBounce(); static unsigned short DCCRequest(const CString& sNick, unsigned long uLongIP, unsigned short uPort, const CString& sFileName, bool bIsChat, CBounceDCCMod* pMod, const CString& sRemoteIP); void ReadLine(const CString& sData) override; virtual void ReadData(const char* data, size_t len) override; virtual void ReadPaused() override; virtual void Timeout() override; virtual void ConnectionRefused() override; virtual void ReachedMaxBuffer() override; virtual void SockError(int iErrno, const CString& sDescription) override; virtual void Connected() override; virtual void Disconnected() override; virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) override; void Shutdown(); void PutServ(const CString& sLine); void PutPeer(const CString& sLine); bool IsPeerConnected() { return (m_pPeer) ? m_pPeer->IsConnected() : false; } // Setters void SetPeer(CDCCBounce* p) { m_pPeer = p; } void SetRemoteIP(const CString& s) { m_sRemoteIP = s; } void SetRemoteNick(const CString& s) { m_sRemoteNick = s; } void SetRemote(bool b) { m_bIsRemote = b; } // !Setters // Getters unsigned short GetUserPort() const { return m_uRemotePort; } const CString& GetRemoteAddr() const { return m_sRemoteIP; } const CString& GetRemoteNick() const { return m_sRemoteNick; } const CString& GetFileName() const { return m_sFileName; } CDCCBounce* GetPeer() const { return m_pPeer; } bool IsRemote() { return m_bIsRemote; } bool IsChat() { return m_bIsChat; } // !Getters private: protected: CString m_sRemoteNick; CString m_sRemoteIP; CString m_sConnectIP; CString m_sLocalIP; CString m_sFileName; CBounceDCCMod* m_pModule; CDCCBounce* m_pPeer; unsigned short m_uRemotePort; bool m_bIsChat; bool m_bIsRemote; static const unsigned int m_uiMaxDCCBuffer; static const unsigned int m_uiMinDCCBuffer; }; // If we buffer more than this in memory, we will throttle the receiving side const unsigned int CDCCBounce::m_uiMaxDCCBuffer = 10 * 1024; // If less than this is in the buffer, the receiving side continues const unsigned int CDCCBounce::m_uiMinDCCBuffer = 2 * 1024; class CBounceDCCMod : public CModule { public: void ListDCCsCommand(const CString& sLine) { CTable Table; Table.AddColumn("Type"); Table.AddColumn("State"); Table.AddColumn("Speed"); Table.AddColumn("Nick"); Table.AddColumn("IP"); Table.AddColumn("File"); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCBounce* pSock = (CDCCBounce*) *it; CString sSockName = pSock->GetSockName(); if (!(pSock->IsRemote())) { Table.AddRow(); Table.SetCell("Nick", pSock->GetRemoteNick()); Table.SetCell("IP", pSock->GetRemoteAddr()); if (pSock->IsChat()) { Table.SetCell("Type", "Chat"); } else { Table.SetCell("Type", "Xfer"); Table.SetCell("File", pSock->GetFileName()); } CString sState = "Waiting"; if ((pSock->IsConnected()) || (pSock->IsPeerConnected())) { sState = "Halfway"; if ((pSock->IsConnected()) && (pSock->IsPeerConnected())) { sState = "Connected"; } } Table.SetCell("State", sState); } } if (PutModule(Table) == 0) { PutModule("You have no active DCCs."); } } void UseClientIPCommand(const CString& sLine) { CString sValue = sLine.Token(1, true); if (!sValue.empty()) { SetNV("UseClientIP", sValue); } PutModule("UseClientIP: " + CString(GetNV("UseClientIP").ToBool())); } MODCONSTRUCTOR(CBounceDCCMod) { AddHelpCommand(); AddCommand("ListDCCs", static_cast(&CBounceDCCMod::ListDCCsCommand), "", "List all active DCCs"); AddCommand("UseClientIP", static_cast(&CBounceDCCMod::UseClientIPCommand), ""); } virtual ~CBounceDCCMod() {} CString GetLocalDCCIP() { return GetUser()->GetLocalDCCIP(); } bool UseClientIP() { return GetNV("UseClientIP").ToBool(); } virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) override { if (sMessage.Equals("DCC ", false, 4)) { CString sType = sMessage.Token(1, false, " ", false, "\"", "\"", true); CString sFile = sMessage.Token(2, false, " ", false, "\"", "\"", false); unsigned long uLongIP = sMessage.Token(3, false, " ", false, "\"", "\"", true).ToULong(); unsigned short uPort = sMessage.Token(4, false, " ", false, "\"", "\"", true).ToUShort(); unsigned long uFileSize = sMessage.Token(5, false, " ", false, "\"", "\"", true).ToULong(); CString sIP = GetLocalDCCIP(); if (!UseClientIP()) { uLongIP = CUtils::GetLongIP(GetClient()->GetRemoteIP()); } if (sType.Equals("CHAT")) { unsigned short uBNCPort = CDCCBounce::DCCRequest(sTarget, uLongIP, uPort, "", true, this, ""); if (uBNCPort) { PutIRC("PRIVMSG " + sTarget + " :\001DCC CHAT chat " + CString(CUtils::GetLongIP(sIP)) + " " + CString(uBNCPort) + "\001"); } } else if (sType.Equals("SEND")) { // DCC SEND readme.txt 403120438 5550 1104 unsigned short uBNCPort = CDCCBounce::DCCRequest(sTarget, uLongIP, uPort, sFile, false, this, ""); if (uBNCPort) { PutIRC("PRIVMSG " + sTarget + " :\001DCC SEND " + sFile + " " + CString(CUtils::GetLongIP(sIP)) + " " + CString(uBNCPort) + " " + CString(uFileSize) + "\001"); } } else if (sType.Equals("RESUME")) { // PRIVMSG user :DCC RESUME "znc.o" 58810 151552 unsigned short uResumePort = sMessage.Token(3).ToUShort(); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCBounce* pSock = (CDCCBounce*) *it; if (pSock->GetLocalPort() == uResumePort) { PutIRC("PRIVMSG " + sTarget + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + "\001"); } } } else if (sType.Equals("ACCEPT")) { // Need to lookup the connection by port, filter the port, and forward to the user set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCBounce* pSock = (CDCCBounce*) *it; if (pSock->GetUserPort() == sMessage.Token(3).ToUShort()) { PutIRC("PRIVMSG " + sTarget + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetLocalPort()) + " " + sMessage.Token(4) + "\001"); } } } return HALTCORE; } return CONTINUE; } virtual EModRet OnPrivCTCP(CNick& Nick, CString& sMessage) override { CIRCNetwork* pNetwork = GetNetwork(); if (sMessage.Equals("DCC ", false, 4) && pNetwork->IsUserAttached()) { // DCC CHAT chat 2453612361 44592 CString sType = sMessage.Token(1, false, " ", false, "\"", "\"", true); CString sFile = sMessage.Token(2, false, " ", false, "\"", "\"", false); unsigned long uLongIP = sMessage.Token(3, false, " ", false, "\"", "\"", true).ToULong(); unsigned short uPort = sMessage.Token(4, false, " ", false, "\"", "\"", true).ToUShort(); unsigned long uFileSize = sMessage.Token(5, false, " ", false, "\"", "\"", true).ToULong(); if (sType.Equals("CHAT")) { CNick FromNick(Nick.GetNickMask()); unsigned short uBNCPort = CDCCBounce::DCCRequest(FromNick.GetNick(), uLongIP, uPort, "", true, this, CUtils::GetIP(uLongIP)); if (uBNCPort) { CString sIP = GetLocalDCCIP(); PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + pNetwork->GetCurNick() + " :\001DCC CHAT chat " + CString(CUtils::GetLongIP(sIP)) + " " + CString(uBNCPort) + "\001"); } } else if (sType.Equals("SEND")) { // DCC SEND readme.txt 403120438 5550 1104 unsigned short uBNCPort = CDCCBounce::DCCRequest(Nick.GetNick(), uLongIP, uPort, sFile, false, this, CUtils::GetIP(uLongIP)); if (uBNCPort) { CString sIP = GetLocalDCCIP(); PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + pNetwork->GetCurNick() + " :\001DCC SEND " + sFile + " " + CString(CUtils::GetLongIP(sIP)) + " " + CString(uBNCPort) + " " + CString(uFileSize) + "\001"); } } else if (sType.Equals("RESUME")) { // Need to lookup the connection by port, filter the port, and forward to the user unsigned short uResumePort = sMessage.Token(3).ToUShort(); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCBounce* pSock = (CDCCBounce*) *it; if (pSock->GetLocalPort() == uResumePort) { PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + pNetwork->GetCurNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + "\001"); } } } else if (sType.Equals("ACCEPT")) { // Need to lookup the connection by port, filter the port, and forward to the user set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCBounce* pSock = (CDCCBounce*) *it; if (pSock->GetUserPort() == sMessage.Token(3).ToUShort()) { PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + pNetwork->GetCurNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetLocalPort()) + " " + sMessage.Token(4) + "\001"); } } } return HALTCORE; } return CONTINUE; } }; CDCCBounce::CDCCBounce(CBounceDCCMod* pMod, unsigned long uLongIP, unsigned short uPort, const CString& sFileName, const CString& sRemoteNick, const CString& sRemoteIP, bool bIsChat) : CSocket(pMod) { m_uRemotePort = uPort; m_sConnectIP = CUtils::GetIP(uLongIP); m_sRemoteIP = sRemoteIP; m_sFileName = sFileName; m_sRemoteNick = sRemoteNick; m_pModule = pMod; m_bIsChat = bIsChat; m_sLocalIP = pMod->GetLocalDCCIP(); m_pPeer = NULL; m_bIsRemote = false; if (bIsChat) { EnableReadLine(); } else { DisableReadLine(); } } CDCCBounce::CDCCBounce(CBounceDCCMod* pMod, const CString& sHostname, unsigned short uPort, const CString& sRemoteNick, const CString& sRemoteIP, const CString& sFileName, int iTimeout, bool bIsChat) : CSocket(pMod, sHostname, uPort, iTimeout) { m_uRemotePort = 0; m_bIsChat = bIsChat; m_pModule = pMod; m_pPeer = NULL; m_sRemoteNick = sRemoteNick; m_sFileName = sFileName; m_sRemoteIP = sRemoteIP; m_bIsRemote = false; SetMaxBufferThreshold(10240); if (bIsChat) { EnableReadLine(); } else { DisableReadLine(); } } CDCCBounce::~CDCCBounce() { if (m_pPeer) { m_pPeer->Shutdown(); m_pPeer = NULL; } } void CDCCBounce::ReadLine(const CString& sData) { CString sLine = sData.TrimRight_n("\r\n"); DEBUG(GetSockName() << " <- [" << sLine << "]"); PutPeer(sLine); } void CDCCBounce::ReachedMaxBuffer() { DEBUG(GetSockName() << " == ReachedMaxBuffer()"); CString sType = (m_bIsChat) ? "Chat" : "Xfer"; m_pModule->PutModule("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Too long line received"); Close(); } void CDCCBounce::ReadData(const char* data, size_t len) { if (m_pPeer) { m_pPeer->Write(data, len); size_t BufLen = m_pPeer->GetInternalWriteBuffer().length(); if (BufLen >= m_uiMaxDCCBuffer) { DEBUG(GetSockName() << " The send buffer is over the " "limit (" << BufLen <<"), throttling"); PauseRead(); } } } void CDCCBounce::ReadPaused() { if (!m_pPeer || m_pPeer->GetInternalWriteBuffer().length() <= m_uiMinDCCBuffer) UnPauseRead(); } void CDCCBounce::Timeout() { DEBUG(GetSockName() << " == Timeout()"); CString sType = (m_bIsChat) ? "Chat" : "Xfer"; if (IsRemote()) { CString sHost = Csock::GetHostName(); if (!sHost.empty()) { sHost = " to [" + sHost + " " + CString(Csock::GetPort()) + "]"; } else { sHost = "."; } m_pModule->PutModule("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Timeout while connecting" + sHost); } else { m_pModule->PutModule("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Timeout waiting for incoming connection [" + Csock::GetLocalIP() + ":" + CString(Csock::GetLocalPort()) + "]"); } } void CDCCBounce::ConnectionRefused() { DEBUG(GetSockName() << " == ConnectionRefused()"); CString sType = (m_bIsChat) ? "Chat" : "Xfer"; CString sHost = Csock::GetHostName(); if (!sHost.empty()) { sHost = " to [" + sHost + " " + CString(Csock::GetPort()) + "]"; } else { sHost = "."; } m_pModule->PutModule("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Connection Refused while connecting" + sHost); } void CDCCBounce::SockError(int iErrno, const CString& sDescription) { DEBUG(GetSockName() << " == SockError(" << iErrno << ")"); CString sType = (m_bIsChat) ? "Chat" : "Xfer"; if (IsRemote()) { CString sHost = Csock::GetHostName(); if (!sHost.empty()) { sHost = "[" + sHost + " " + CString(Csock::GetPort()) + "]"; } m_pModule->PutModule("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Socket error [" + sDescription + "]" + sHost); } else { m_pModule->PutModule("DCC " + sType + " Bounce (" + m_sRemoteNick + "): Socket error [" + sDescription + "] [" + Csock::GetLocalIP() + ":" + CString(Csock::GetLocalPort()) + "]"); } } void CDCCBounce::Connected() { SetTimeout(0); DEBUG(GetSockName() << " == Connected()"); } void CDCCBounce::Disconnected() { DEBUG(GetSockName() << " == Disconnected()"); } void CDCCBounce::Shutdown() { m_pPeer = NULL; DEBUG(GetSockName() << " == Close(); because my peer told me to"); Close(); } Csock* CDCCBounce::GetSockObj(const CString& sHost, unsigned short uPort) { Close(); if (m_sRemoteIP.empty()) { m_sRemoteIP = sHost; } CDCCBounce* pSock = new CDCCBounce(m_pModule, sHost, uPort, m_sRemoteNick, m_sRemoteIP, m_sFileName, m_bIsChat); CDCCBounce* pRemoteSock = new CDCCBounce(m_pModule, sHost, uPort, m_sRemoteNick, m_sRemoteIP, m_sFileName, m_bIsChat); pSock->SetPeer(pRemoteSock); pRemoteSock->SetPeer(pSock); pRemoteSock->SetRemote(true); pSock->SetRemote(false); CZNC::Get().GetManager().Connect(m_sConnectIP, m_uRemotePort, "DCC::" + CString((m_bIsChat) ? "Chat" : "XFER") + "::Remote::" + m_sRemoteNick, 60, false, m_sLocalIP, pRemoteSock); pSock->SetSockName(GetSockName()); return pSock; } void CDCCBounce::PutServ(const CString& sLine) { DEBUG(GetSockName() << " -> [" << sLine << "]"); Write(sLine + "\r\n"); } void CDCCBounce::PutPeer(const CString& sLine) { if (m_pPeer) { m_pPeer->PutServ(sLine); } else { PutServ("*** Not connected yet ***"); } } unsigned short CDCCBounce::DCCRequest(const CString& sNick, unsigned long uLongIP, unsigned short uPort, const CString& sFileName, bool bIsChat, CBounceDCCMod* pMod, const CString& sRemoteIP) { CDCCBounce* pDCCBounce = new CDCCBounce(pMod, uLongIP, uPort, sFileName, sNick, sRemoteIP, bIsChat); unsigned short uListenPort = CZNC::Get().GetManager().ListenRand("DCC::" + CString((bIsChat) ? "Chat" : "Xfer") + "::Local::" + sNick, pMod->GetLocalDCCIP(), false, SOMAXCONN, pDCCBounce, 120); return uListenPort; } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("bouncedcc"); } USERMODULEDEFS(CBounceDCCMod, "Bounces DCC transfers through ZNC instead of sending them directly to the user. ") znc-1.6.3/modules/route_replies.cpp0000644000175000017500000003101212663147131017575 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include struct reply { const char *szReply; bool bLastResponse; }; // TODO this list is far from complete, no errors are handled static const struct { const char *szRequest; struct reply vReplies[19]; } vRouteReplies[] = { {"WHO", { {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {"352", false}, /* rfc1459 RPL_WHOREPLY */ {"315", true}, /* rfc1459 RPL_ENDOFWHO */ {"354", false}, // e.g. Quaknet uses this for WHO #chan %n {"403", true}, // No such chan {NULL, true} }}, {"LIST", { {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {"321", false}, /* rfc1459 RPL_LISTSTART */ {"322", false}, /* rfc1459 RPL_LIST */ {"323", true}, /* rfc1459 RPL_LISTEND */ {NULL, true} }}, {"NAMES", { {"353", false}, /* rfc1459 RPL_NAMREPLY */ {"366", true}, /* rfc1459 RPL_ENDOFNAMES */ // No such nick/channel {"401", true}, {NULL, true}, }}, {"LUSERS", { {"251", false}, /* rfc1459 RPL_LUSERCLIENT */ {"252", false}, /* rfc1459 RPL_LUSEROP */ {"253", false}, /* rfc1459 RPL_LUSERUNKNOWN */ {"254", false}, /* rfc1459 RPL_LUSERCHANNELS */ {"255", false}, /* rfc1459 RPL_LUSERME */ {"265", false}, {"266", true}, // We don't handle 250 here since some IRCds don't sent it //{"250", true}, {NULL, true} }}, {"WHOIS", { {"311", false}, /* rfc1459 RPL_WHOISUSER */ {"312", false}, /* rfc1459 RPL_WHOISSERVER */ {"313", false}, /* rfc1459 RPL_WHOISOPERATOR */ {"317", false}, /* rfc1459 RPL_WHOISIDLE */ {"319", false}, /* rfc1459 RPL_WHOISCHANNELS */ {"301", false}, /* rfc1459 RPL_AWAY */ {"276", false}, /* oftc-hybrid RPL_WHOISCERTFP */ {"330", false}, /* ratbox RPL_WHOISLOGGEDIN aka ircu RPL_WHOISACCOUNT */ {"338", false}, /* RPL_WHOISACTUALLY -- "actually using host" */ {"378", false}, /* RPL_WHOISHOST -- real address of vhosts */ {"671", false}, /* RPL_WHOISSECURE */ {"307", false}, /* RPL_WHOISREGNICK */ {"379", false}, /* RPL_WHOISMODES */ {"760", false}, /* ircv3.2 RPL_WHOISKEYVALUE */ {"318", true}, /* rfc1459 RPL_ENDOFWHOIS */ {"401", true}, /* rfc1459 ERR_NOSUCHNICK */ {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {"431", true}, /* rfc1459 ERR_NONICKNAMEGIVEN */ {NULL, true} }}, {"PING", { {"PONG", true}, {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {"409", true}, /* rfc1459 ERR_NOORIGIN */ {NULL, true} }}, {"USERHOST", { {"302", true}, {"461", true}, /* rfc1459 ERR_NEEDMOREPARAMS */ {NULL, true} }}, {"TIME", { {"391", true}, /* rfc1459 RPL_TIME */ {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {NULL, true} }}, {"WHOWAS", { {"406", false}, /* rfc1459 ERR_WASNOSUCHNICK */ {"312", false}, /* rfc1459 RPL_WHOISSERVER */ {"314", false}, /* rfc1459 RPL_WHOWASUSER */ {"369", true}, /* rfc1459 RPL_ENDOFWHOWAS */ {"431", true}, /* rfc1459 ERR_NONICKNAMEGIVEN */ {NULL, true} }}, {"ISON", { {"303", true}, /* rfc1459 RPL_ISON */ {"461", true}, /* rfc1459 ERR_NEEDMOREPARAMS */ {NULL, true} }}, {"LINKS", { {"364", false}, /* rfc1459 RPL_LINKS */ {"365", true}, /* rfc1459 RPL_ENDOFLINKS */ {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {NULL, true} }}, {"MAP", { {"006", false}, // inspircd {"270", false}, // SilverLeo wants this two added {"015", false}, {"017", true}, {"007", true}, {"481", true}, /* rfc1459 ERR_NOPRIVILEGES */ {NULL, true} }}, {"TRACE", { {"200", false}, /* rfc1459 RPL_TRACELINK */ {"201", false}, /* rfc1459 RPL_TRACECONNECTING */ {"202", false}, /* rfc1459 RPL_TRACEHANDSHAKE */ {"203", false}, /* rfc1459 RPL_TRACEUNKNOWN */ {"204", false}, /* rfc1459 RPL_TRACEOPERATOR */ {"205", false}, /* rfc1459 RPL_TRACEUSER */ {"206", false}, /* rfc1459 RPL_TRACESERVER */ {"208", false}, /* rfc1459 RPL_TRACENEWTYPE */ {"261", false}, /* rfc1459 RPL_TRACELOG */ {"262", true}, {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {NULL, true} }}, {"USERS", { {"265", false}, {"266", true}, {"392", false}, /* rfc1459 RPL_USERSSTART */ {"393", false}, /* rfc1459 RPL_USERS */ {"394", true}, /* rfc1459 RPL_ENDOFUSERS */ {"395", false}, /* rfc1459 RPL_NOUSERS */ {"402", true}, /* rfc1459 ERR_NOSUCHSERVER */ {"424", true}, /* rfc1459 ERR_FILEERROR */ {"446", true}, /* rfc1459 ERR_USERSDISABLED */ {NULL, true}, }}, {"METADATA", { {"761", false}, /* ircv3.2 RPL_KEYVALUE */ {"762", true}, /* ircv3.2 RPL_METADATAEND */ {"765", true}, /* ircv3.2 ERR_TARGETINVALID */ {"766", true}, /* ircv3.2 ERR_NOMATCHINGKEYS */ {"767", true}, /* ircv3.2 ERR_KEYINVALID */ {"768", true}, /* ircv3.2 ERR_KEYNOTSET */ {"769", true}, /* ircv3.2 ERR_KEYNOPERMISSION */ {NULL, true}, }}, // This is just a list of all possible /mode replies stuffed together. // Since there should never be more than one of these going on, this // should work fine and makes the code simpler. {"MODE", { // "You're not a channel operator" {"482", true}, // MODE I {"346", false}, {"347", true}, // MODE b {"367", false}, {"368", true}, // MODE e {"348", false}, {"349", true}, {"467", true}, /* rfc1459 ERR_KEYSET */ {"472", true}, /* rfc1459 ERR_UNKNOWNMODE */ {"501", true}, /* rfc1459 ERR_UMODEUNKNOWNFLAG */ {"502", true}, /* rfc1459 ERR_USERSDONTMATCH */ {NULL, true}, }}, // END (last item!) {NULL, {{NULL, true}}} }; class CRouteTimeout : public CTimer { public: CRouteTimeout(CModule* pModule, unsigned int uInterval, unsigned int uCycles, const CString& sLabel, const CString& sDescription) : CTimer(pModule, uInterval, uCycles, sLabel, sDescription) {} virtual ~CRouteTimeout() {} protected: virtual void RunJob() override; }; struct queued_req { CString sLine; const struct reply *reply; }; typedef std::map > requestQueue; class CRouteRepliesMod : public CModule { public: MODCONSTRUCTOR(CRouteRepliesMod) { m_pDoing = NULL; m_pReplies = NULL; AddHelpCommand(); AddCommand("Silent", static_cast(&CRouteRepliesMod::SilentCommand), "[yes|no]", "Decides whether to show the timeout messages or not"); } virtual ~CRouteRepliesMod() { requestQueue::iterator it; while (!m_vsPending.empty()) { it = m_vsPending.begin(); while (!it->second.empty()) { PutIRC(it->second[0].sLine); it->second.erase(it->second.begin()); } m_vsPending.erase(it); } } virtual void OnIRCConnected() override { m_pDoing = NULL; m_pReplies = NULL; m_vsPending.clear(); // No way we get a reply, so stop the timer (If it's running) RemTimer("RouteTimeout"); } virtual void OnIRCDisconnected() override { OnIRCConnected(); // Let's keep it in one place } virtual void OnClientDisconnect() override { requestQueue::iterator it; if (GetClient() == m_pDoing) { // The replies which aren't received yet will be // broadcasted to everyone, but at least nothing breaks RemTimer("RouteTimeout"); m_pDoing = NULL; m_pReplies = NULL; } it = m_vsPending.find(GetClient()); if (it != m_vsPending.end()) m_vsPending.erase(it); SendRequest(); } virtual EModRet OnRaw(CString& sLine) override { CString sCmd = sLine.Token(1).AsUpper(); size_t i = 0; if (!m_pReplies) return CONTINUE; // Is this a "not enough arguments" error? if (sCmd == "461") { // :server 461 nick WHO :Not enough parameters CString sOrigCmd = sLine.Token(3); if (m_sLastRequest.Token(0).Equals(sOrigCmd)) { // This is the reply to the last request if (RouteReply(sLine, true)) return HALTCORE; return CONTINUE; } } while (m_pReplies[i].szReply != NULL) { if (m_pReplies[i].szReply == sCmd) { if (RouteReply(sLine, m_pReplies[i].bLastResponse, sCmd == "353")) return HALTCORE; return CONTINUE; } i++; } // TODO HALTCORE is wrong, it should not be passed to // the clients, but the core itself should still handle it! return CONTINUE; } virtual EModRet OnUserRaw(CString& sLine) override { CString sCmd = sLine.Token(0).AsUpper(); if (!GetNetwork()->GetIRCSock()) return CONTINUE; if (sCmd.Equals("MODE")) { // Check if this is a mode request that needs to be handled // If there are arguments to a mode change, // we must not route it. if (!sLine.Token(3, true).empty()) return CONTINUE; // Grab the mode change parameter CString sMode = sLine.Token(2); // If this is a channel mode request, znc core replies to it if (sMode.empty()) return CONTINUE; // Check if this is a mode change or a specific // mode request (the later needs to be routed). sMode.TrimPrefix("+"); if (sMode.length() != 1) return CONTINUE; // Now just check if it's one of the supported modes switch (sMode[0]) { case 'I': case 'b': case 'e': break; default: return CONTINUE; } // Ok, this looks like we should route it. // Fall through to the next loop } for (size_t i = 0; vRouteReplies[i].szRequest != NULL; i++) { if (vRouteReplies[i].szRequest == sCmd) { struct queued_req req = { sLine, vRouteReplies[i].vReplies }; m_vsPending[GetClient()].push_back(req); SendRequest(); return HALTCORE; } } return CONTINUE; } void Timeout() { // The timer will be deleted after this by the event loop if (!GetNV("silent_timeouts").ToBool()) { PutModule("This module hit a timeout which is probably a connectivity issue."); PutModule("However, if you can provide steps to reproduce this issue, please do report a bug."); PutModule("To disable this message, do \"/msg " + GetModNick() + " silent yes\""); PutModule("Last request: " + m_sLastRequest); PutModule("Expected replies: "); for (size_t i = 0; m_pReplies[i].szReply != NULL; i++) { if (m_pReplies[i].bLastResponse) PutModule(m_pReplies[i].szReply + CString(" (last)")); else PutModule(m_pReplies[i].szReply); } } m_pDoing = NULL; m_pReplies = NULL; SendRequest(); } private: bool RouteReply(const CString& sLine, bool bFinished = false, bool bIsRaw353 = false) { if (!m_pDoing) return false; // 353 needs special treatment due to NAMESX and UHNAMES if (bIsRaw353) GetNetwork()->GetIRCSock()->ForwardRaw353(sLine, m_pDoing); else m_pDoing->PutClient(sLine); if (bFinished) { // Stop the timeout RemTimer("RouteTimeout"); m_pDoing = NULL; m_pReplies = NULL; SendRequest(); } return true; } void SendRequest() { requestQueue::iterator it; if (m_pDoing || m_pReplies) return; if (m_vsPending.empty()) return; it = m_vsPending.begin(); if (it->second.empty()) { m_vsPending.erase(it); SendRequest(); return; } // When we are called from the timer, we need to remove it. // We can't delete it (segfault on return), thus we // just stop it. The main loop will delete it. CTimer *pTimer = FindTimer("RouteTimeout"); if (pTimer) { pTimer->Stop(); UnlinkTimer(pTimer); } AddTimer(new CRouteTimeout(this, 60, 1, "RouteTimeout", "Recover from missing / wrong server replies")); m_pDoing = it->first; m_pReplies = it->second[0].reply; m_sLastRequest = it->second[0].sLine; PutIRC(it->second[0].sLine); it->second.erase(it->second.begin()); } void SilentCommand(const CString& sLine) { const CString sValue = sLine.Token(1); if (!sValue.empty()) { SetNV("silent_timeouts", sValue); } CString sPrefix = GetNV("silent_timeouts").ToBool() ? "dis" : "en"; PutModule("Timeout messages are " + sPrefix + "abled."); } CClient *m_pDoing; const struct reply *m_pReplies; requestQueue m_vsPending; // This field is only used for display purpose. CString m_sLastRequest; }; void CRouteTimeout::RunJob() { CRouteRepliesMod *pMod = (CRouteRepliesMod *) GetModule(); pMod->Timeout(); } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("route_replies"); } NETWORKMODULEDEFS(CRouteRepliesMod, "Send replies (e.g. to /who) to the right client only") znc-1.6.3/modules/notes.cpp0000644000175000017500000001321112663147131016045 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include using std::stringstream; class CNotesMod : public CModule { bool m_bShowNotesOnLogin{}; void ListCommand(const CString &sLine) { ListNotes(); } void AddNoteCommand(const CString &sLine) { CString sKey(sLine.Token(1)); CString sValue(sLine.Token(2, true)); if (!GetNV(sKey).empty()) { PutModule("That note already exists. Use MOD to overwrite."); } else if (AddNote(sKey, sValue)) { PutModule("Added note [" + sKey + "]"); } else { PutModule("Unable to add note [" + sKey + "]"); } } void ModCommand(const CString &sLine) { CString sKey(sLine.Token(1)); CString sValue(sLine.Token(2, true)); if (AddNote(sKey, sValue)) { PutModule("Set note for [" + sKey + "]"); } else { PutModule("Unable to add note [" + sKey + "]"); } } void GetCommand(const CString &sLine) { CString sNote = GetNV(sLine.Token(1, true)); if (sNote.empty()) { PutModule("This note doesn't exist."); } else { PutModule(sNote); } } void DelCommand(const CString &sLine) { CString sKey(sLine.Token(1)); if (DelNote(sKey)) { PutModule("Deleted note [" + sKey + "]"); } else { PutModule("Unable to delete note [" + sKey + "]"); } } public: MODCONSTRUCTOR(CNotesMod) { using std::placeholders::_1; AddHelpCommand(); AddCommand("List", static_cast(&CNotesMod::ListCommand)); AddCommand("Add", static_cast(&CNotesMod::AddNoteCommand), " "); AddCommand("Del", static_cast(&CNotesMod::DelCommand), "", "Delete a note"); AddCommand("Mod", " ", "Modify a note", std::bind(&CNotesMod::ModCommand, this, _1)); AddCommand("Get", "", "", [this](const CString& sLine){ GetCommand(sLine); }); } virtual ~CNotesMod() {} virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { m_bShowNotesOnLogin = !sArgs.Equals("-disableNotesOnLogin"); return true; } virtual CString GetWebMenuTitle() override { return "Notes"; } virtual void OnClientLogin() override { if (m_bShowNotesOnLogin) { ListNotes(true); } } virtual EModRet OnUserRaw(CString& sLine) override { if (sLine.Left(1) != "#") { return CONTINUE; } CString sKey; bool bOverwrite = false; if (sLine == "#?") { ListNotes(true); return HALT; } else if (sLine.Left(2) == "#-") { sKey = sLine.Token(0).LeftChomp_n(2); if (DelNote(sKey)) { PutModNotice("Deleted note [" + sKey + "]"); } else { PutModNotice("Unable to delete note [" + sKey + "]"); } return HALT; } else if (sLine.Left(2) == "#+") { sKey = sLine.Token(0).LeftChomp_n(2); bOverwrite = true; } else if (sLine.Left(1) == "#") { sKey = sLine.Token(0).LeftChomp_n(1); } CString sValue(sLine.Token(1, true)); if (!sKey.empty()) { if (!bOverwrite && FindNV(sKey) != EndNV()) { PutModNotice("That note already exists. Use /#+ to overwrite."); } else if (AddNote(sKey, sValue)) { if (!bOverwrite) { PutModNotice("Added note [" + sKey + "]"); } else { PutModNotice("Set note for [" + sKey + "]"); } } else { PutModNotice("Unable to add note [" + sKey + "]"); } } return HALT; } bool DelNote(const CString& sKey) { return DelNV(sKey); } bool AddNote(const CString& sKey, const CString& sNote) { if (sKey.empty()) { return false; } return SetNV(sKey, sNote); } void ListNotes(bool bNotice = false) { CClient* pClient = GetClient(); if (pClient) { CTable Table; Table.AddColumn("Key"); Table.AddColumn("Note"); for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { Table.AddRow(); Table.SetCell("Key", it->first); Table.SetCell("Note", it->second); } if (Table.size()) { unsigned int idx = 0; CString sLine; while (Table.GetLine(idx++, sLine)) { if (bNotice) { pClient->PutModNotice(GetModName(), sLine); } else { pClient->PutModule(GetModName(), sLine); } } } else { if (bNotice) { PutModNotice("You have no entries."); } else { PutModule("You have no entries."); } } } } virtual bool OnWebRequest(CWebSock& WebSock, const CString& sPageName, CTemplate& Tmpl) override { if (sPageName == "index") { for (MCString::iterator it = BeginNV(); it != EndNV(); ++it) { CTemplate& Row = Tmpl.AddRow("NotesLoop"); Row["Key"] = it->first; Row["Note"] = it->second; } return true; } else if (sPageName == "delnote") { DelNote(WebSock.GetParam("key", false)); WebSock.Redirect(GetWebPath()); return true; } else if (sPageName == "addnote") { AddNote(WebSock.GetParam("key"), WebSock.GetParam("note")); WebSock.Redirect(GetWebPath()); return true; } return false; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("notes"); Info.SetHasArgs(true); Info.SetArgsHelpText("This user module takes up to one arguments. It can be -disableNotesOnLogin not to show notes upon client login"); } USERMODULEDEFS(CNotesMod, "Keep and replay notes") znc-1.6.3/modules/dcc.cpp0000644000175000017500000003577412663147131015470 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include using std::set; class CDCCMod; class CDCCSock : public CSocket { public: CDCCSock(CDCCMod* pMod, const CString& sRemoteNick, const CString& sLocalFile, unsigned long uFileSize = 0, CFile* pFile = NULL); CDCCSock(CDCCMod* pMod, const CString& sRemoteNick, const CString& sRemoteIP, unsigned short uRemotePort, const CString& sLocalFile, unsigned long uFileSize); virtual ~CDCCSock(); virtual void ReadData(const char* data, size_t len) override; virtual void ConnectionRefused() override; virtual void SockError(int iErrno, const CString& sDescription) override; virtual void Timeout() override; virtual void Connected() override; virtual void Disconnected() override; void SendPacket(); virtual Csock* GetSockObj(const CString& sHost, unsigned short uPort) override; CFile* OpenFile(bool bWrite = true); bool Seek(unsigned long int uPos); // Setters void SetRemoteIP(const CString& s) { m_sRemoteIP = s; } void SetRemoteNick(const CString& s) { m_sRemoteNick = s; } void SetFileName(const CString& s) { m_sFileName = s; } void SetFileOffset(unsigned long u) { m_uBytesSoFar = u; } // !Setters // Getters unsigned short GetUserPort() const { return m_uRemotePort; } const CString& GetRemoteNick() const { return m_sRemoteNick; } const CString& GetFileName() const { return m_sFileName; } const CString& GetLocalFile() const { return m_sLocalFile; } CFile* GetFile() { return m_pFile; } double GetProgress() const { return ((m_uFileSize) && (m_uBytesSoFar)) ? (double) (((double) m_uBytesSoFar / (double) m_uFileSize) *100.0) : 0; } bool IsSend() const { return m_bSend; } //const CString& GetRemoteIP() const { return m_sRemoteIP; } // !Getters private: protected: CString m_sRemoteNick; CString m_sRemoteIP; CString m_sFileName; CString m_sLocalFile; CString m_sSendBuf; unsigned short m_uRemotePort; unsigned long long m_uFileSize; unsigned long long m_uBytesSoFar; bool m_bSend; bool m_bNoDelFile; CFile* m_pFile; CDCCMod* m_pModule; }; class CDCCMod : public CModule { public: MODCONSTRUCTOR(CDCCMod) { AddHelpCommand(); AddCommand("Send", static_cast(&CDCCMod::SendCommand), " "); AddCommand("Get", static_cast(&CDCCMod::GetCommand), ""); AddCommand("ListTransfers", static_cast(&CDCCMod::ListTransfersCommand)); } virtual ~CDCCMod() {} #ifndef MOD_DCC_ALLOW_EVERYONE virtual bool OnLoad(const CString& sArgs, CString& sMessage) override { if (!GetUser()->IsAdmin()) { sMessage = "You must be admin to use the DCC module"; return false; } return true; } #endif bool SendFile(const CString& sRemoteNick, const CString& sFileName) { CString sFullPath = CDir::ChangeDir(GetSavePath(), sFileName, CZNC::Get().GetHomePath()); CDCCSock* pSock = new CDCCSock(this, sRemoteNick, sFullPath); CFile* pFile = pSock->OpenFile(false); if (!pFile) { delete pSock; return false; } CString sLocalDCCIP = GetUser()->GetLocalDCCIP(); unsigned short uPort = CZNC::Get().GetManager().ListenRand("DCC::LISTEN::" + sRemoteNick, sLocalDCCIP, false, SOMAXCONN, pSock, 120); if (GetUser()->GetNick().Equals(sRemoteNick)) { PutUser(":*dcc!znc@znc.in PRIVMSG " + sRemoteNick + " :\001DCC SEND " + pFile->GetShortName() + " " + CString(CUtils::GetLongIP(sLocalDCCIP)) + " " + CString(uPort) + " " + CString(pFile->GetSize()) + "\001"); } else { PutIRC("PRIVMSG " + sRemoteNick + " :\001DCC SEND " + pFile->GetShortName() + " " + CString(CUtils::GetLongIP(sLocalDCCIP)) + " " + CString(uPort) + " " + CString(pFile->GetSize()) + "\001"); } PutModule("DCC -> [" + sRemoteNick + "][" + pFile->GetShortName() + "] - Attempting Send."); return true; } bool GetFile(const CString& sRemoteNick, const CString& sRemoteIP, unsigned short uRemotePort, const CString& sFileName, unsigned long uFileSize) { if (CFile::Exists(sFileName)) { PutModule("DCC <- [" + sRemoteNick + "][" + sFileName + "] - File already exists."); return false; } CDCCSock* pSock = new CDCCSock(this, sRemoteNick, sRemoteIP, uRemotePort, sFileName, uFileSize); if (!pSock->OpenFile()) { delete pSock; return false; } CZNC::Get().GetManager().Connect(sRemoteIP, uRemotePort, "DCC::GET::" + sRemoteNick, 60, false, GetUser()->GetLocalDCCIP(), pSock); PutModule("DCC <- [" + sRemoteNick + "][" + sFileName + "] - Attempting to connect to [" + sRemoteIP + "]"); return true; } void SendCommand(const CString& sLine) { CString sToNick = sLine.Token(1); CString sFile = sLine.Token(2); CString sAllowedPath = GetSavePath(); CString sAbsolutePath; if ((sToNick.empty()) || (sFile.empty())) { PutModule("Usage: Send "); return; } sAbsolutePath = CDir::CheckPathPrefix(sAllowedPath, sFile); if (sAbsolutePath.empty()) { PutStatus("Illegal path."); return; } SendFile(sToNick, sFile); } void GetCommand(const CString& sLine) { CString sFile = sLine.Token(1); CString sAllowedPath = GetSavePath(); CString sAbsolutePath; if (sFile.empty()) { PutModule("Usage: Get "); return; } sAbsolutePath = CDir::CheckPathPrefix(sAllowedPath, sFile); if (sAbsolutePath.empty()) { PutModule("Illegal path."); return; } SendFile(GetUser()->GetNick(), sFile); } void ListTransfersCommand(const CString& sLine) { CTable Table; Table.AddColumn("Type"); Table.AddColumn("State"); Table.AddColumn("Speed"); Table.AddColumn("Nick"); Table.AddColumn("IP"); Table.AddColumn("File"); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCSock* pSock = (CDCCSock*) *it; Table.AddRow(); Table.SetCell("Nick", pSock->GetRemoteNick()); Table.SetCell("IP", pSock->GetRemoteIP()); Table.SetCell("File", pSock->GetFileName()); if (pSock->IsSend()) { Table.SetCell("Type", "Sending"); } else { Table.SetCell("Type", "Getting"); } if (pSock->GetType() == Csock::LISTENER) { Table.SetCell("State", "Waiting"); } else { Table.SetCell("State", CString::ToPercent(pSock->GetProgress())); Table.SetCell("Speed", CString((int)(pSock->GetAvgRead() / 1024.0)) + " KiB/s"); } } if (PutModule(Table) == 0) { PutModule("You have no active DCC transfers."); } } virtual void OnModCTCP(const CString& sMessage) override { if (sMessage.Equals("DCC RESUME ", false, 11)) { CString sFile = sMessage.Token(2); unsigned short uResumePort = sMessage.Token(3).ToUShort(); unsigned long uResumeSize = sMessage.Token(4).ToULong(); set::const_iterator it; for (it = BeginSockets(); it != EndSockets(); ++it) { CDCCSock* pSock = (CDCCSock*) *it; if (pSock->GetLocalPort() == uResumePort) { if (pSock->Seek(uResumeSize)) { PutModule("DCC -> [" + pSock->GetRemoteNick() + "][" + pSock->GetFileName() + "] - Attempting to resume from file position [" + CString(uResumeSize) + "]"); PutUser(":*dcc!znc@znc.in PRIVMSG " + GetUser()->GetNick() + " :\001DCC ACCEPT " + sFile + " " + CString(uResumePort) + " " + CString(uResumeSize) + "\001"); } else { PutModule("DCC -> [" + GetUser()->GetNick() + "][" + sFile + "] Unable to find send to initiate resume."); } } } } else if (sMessage.Equals("DCC SEND ", false, 9)) { CString sLocalFile = CDir::CheckPathPrefix(GetSavePath(), sMessage.Token(2)); if (sLocalFile.empty()) { PutModule("Bad DCC file: " + sMessage.Token(2)); } unsigned long uLongIP = sMessage.Token(3).ToULong(); unsigned short uPort = sMessage.Token(4).ToUShort(); unsigned long uFileSize = sMessage.Token(5).ToULong(); GetFile(GetClient()->GetNick(), CUtils::GetIP(uLongIP), uPort, sLocalFile, uFileSize); } } }; CDCCSock::CDCCSock(CDCCMod* pMod, const CString& sRemoteNick, const CString& sLocalFile, unsigned long uFileSize, CFile* pFile) : CSocket(pMod) { m_sRemoteNick = sRemoteNick; m_uFileSize = uFileSize; m_uRemotePort = 0; m_uBytesSoFar = 0; m_pModule = pMod; m_pFile = pFile; m_sLocalFile = sLocalFile; m_bSend = true; m_bNoDelFile = false; SetMaxBufferThreshold(0); } CDCCSock::CDCCSock(CDCCMod* pMod, const CString& sRemoteNick, const CString& sRemoteIP, unsigned short uRemotePort, const CString& sLocalFile, unsigned long uFileSize) : CSocket(pMod) { m_sRemoteNick = sRemoteNick; m_sRemoteIP = sRemoteIP; m_uRemotePort = uRemotePort; m_uFileSize = uFileSize; m_uBytesSoFar = 0; m_pModule = pMod; m_pFile = NULL; m_sLocalFile = sLocalFile; m_bSend = false; m_bNoDelFile = false; SetMaxBufferThreshold(0); } CDCCSock::~CDCCSock() { if ((m_pFile) && (!m_bNoDelFile)) { m_pFile->Close(); delete m_pFile; } } void CDCCSock::ReadData(const char* data, size_t len) { if (!m_pFile) { DEBUG("File not open! closing get."); m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - File not open!"); Close(); return; } // DCC specs says the receiving end sends the number of bytes it // received so far as a 4 byte integer in network byte order, so we need // uint32_t to do the job portably. This also means that the maximum // file that we can transfer is 4 GiB big (see OpenFile()). if (m_bSend) { m_sSendBuf.append(data, len); while (m_sSendBuf.size() >= 4) { uint32_t iRemoteSoFar; memcpy(&iRemoteSoFar, m_sSendBuf.data(), sizeof(iRemoteSoFar)); iRemoteSoFar = ntohl(iRemoteSoFar); if ((iRemoteSoFar + 65536) >= m_uBytesSoFar) { SendPacket(); } m_sSendBuf.erase(0, 4); } } else { m_pFile->Write(data, len); m_uBytesSoFar += len; uint32_t uSoFar = htonl((uint32_t)m_uBytesSoFar); Write((char*) &uSoFar, sizeof(uSoFar)); if (m_uBytesSoFar >= m_uFileSize) { Close(); } } } void CDCCSock::ConnectionRefused() { DEBUG(GetSockName() << " == ConnectionRefused()"); m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - Connection Refused."); } void CDCCSock::Timeout() { DEBUG(GetSockName() << " == Timeout()"); m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - Timed Out."); } void CDCCSock::SockError(int iErrno, const CString& sDescription) { DEBUG(GetSockName() << " == SockError(" << iErrno << ", " << sDescription << ")"); m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - Socket Error [" + sDescription + "]"); } void CDCCSock::Connected() { DEBUG(GetSockName() << " == Connected(" << GetRemoteIP() << ")"); m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - Transfer Started."); if (m_bSend) { SendPacket(); } SetTimeout(120); } void CDCCSock::Disconnected() { const CString sStart = ((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - "; DEBUG(GetSockName() << " == Disconnected()"); if (m_uBytesSoFar > m_uFileSize) { m_pModule->PutModule(sStart + "TooMuchData!"); } else if (m_uBytesSoFar == m_uFileSize) { if (m_bSend) { m_pModule->PutModule(sStart + "Completed! - Sent [" + m_sLocalFile + "] at [" + CString((int) (GetAvgWrite() / 1024.0)) + " KiB/s ]"); } else { m_pModule->PutModule(sStart + "Completed! - Saved to [" + m_sLocalFile + "] at [" + CString((int) (GetAvgRead() / 1024.0)) + " KiB/s ]"); } } else { m_pModule->PutModule(sStart + "Incomplete!"); } } void CDCCSock::SendPacket() { if (!m_pFile) { m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - File closed prematurely."); Close(); return; } if (GetInternalWriteBuffer().size() > 1024 * 1024) { // There is still enough data to be written, don't add more // stuff to that buffer. DEBUG("SendPacket(): Skipping send, buffer still full enough [" << GetInternalWriteBuffer().size() << "][" << m_sRemoteNick << "][" << m_sFileName << "]"); return; } char szBuf[4096]; ssize_t iLen = m_pFile->Read(szBuf, 4096); if (iLen < 0) { m_pModule->PutModule(((m_bSend) ? "DCC -> [" : "DCC <- [") + m_sRemoteNick + "][" + m_sFileName + "] - Error reading from file."); Close(); return; } if (iLen > 0) { Write(szBuf, iLen); m_uBytesSoFar += iLen; } } Csock* CDCCSock::GetSockObj(const CString& sHost, unsigned short uPort) { Close(); CDCCSock* pSock = new CDCCSock(m_pModule, m_sRemoteNick, m_sLocalFile, m_uFileSize, m_pFile); pSock->SetSockName("DCC::SEND::" + m_sRemoteNick); pSock->SetTimeout(120); pSock->SetFileName(m_sFileName); pSock->SetFileOffset(m_uBytesSoFar); m_bNoDelFile = true; return pSock; } CFile* CDCCSock::OpenFile(bool bWrite) { if ((m_pFile) || (m_sLocalFile.empty())) { m_pModule->PutModule(((bWrite) ? "DCC <- [" : "DCC -> [") + m_sRemoteNick + "][" + m_sLocalFile + "] - Unable to open file."); return NULL; } m_pFile = new CFile(m_sLocalFile); if (bWrite) { if (m_pFile->Exists()) { delete m_pFile; m_pFile = NULL; m_pModule->PutModule("DCC <- [" + m_sRemoteNick + "] - File already exists [" + m_sLocalFile + "]"); return NULL; } if (!m_pFile->Open(O_WRONLY | O_TRUNC | O_CREAT)) { delete m_pFile; m_pFile = NULL; m_pModule->PutModule("DCC <- [" + m_sRemoteNick + "] - Could not open file [" + m_sLocalFile + "]"); return NULL; } } else { if (!m_pFile->IsReg()) { delete m_pFile; m_pFile = NULL; m_pModule->PutModule("DCC -> [" + m_sRemoteNick + "] - Not a file [" + m_sLocalFile + "]"); return NULL; } if (!m_pFile->Open()) { delete m_pFile; m_pFile = NULL; m_pModule->PutModule("DCC -> [" + m_sRemoteNick + "] - Could not open file [" + m_sLocalFile + "]"); return NULL; } // The DCC specs only allow file transfers with files smaller // than 4GiB (see ReadData()). unsigned long long uFileSize = m_pFile->GetSize(); if (uFileSize > (unsigned long long) 0xffffffffULL) { delete m_pFile; m_pFile = NULL; m_pModule->PutModule("DCC -> [" + m_sRemoteNick + "] - File too large (>4 GiB) [" + m_sLocalFile + "]"); return NULL; } m_uFileSize = uFileSize; } m_sFileName = m_pFile->GetShortName(); return m_pFile; } bool CDCCSock::Seek(unsigned long int uPos) { if (m_pFile) { if (m_pFile->Seek(uPos)) { m_uBytesSoFar = uPos; return true; } } return false; } template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("dcc"); } USERMODULEDEFS(CDCCMod, "This module allows you to transfer files to and from ZNC") znc-1.6.3/modules/clearbufferonmsg.cpp0000644000175000017500000000465312663147131020253 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include #include using std::vector; class CClearBufferOnMsgMod : public CModule { public: MODCONSTRUCTOR(CClearBufferOnMsgMod) {} void ClearAllBuffers() { CIRCNetwork* pNetwork = GetNetwork(); if (pNetwork) { const vector& vChans = pNetwork->GetChans(); for (vector::const_iterator it = vChans.begin(); it != vChans.end(); ++it) { // Skip detached channels, they weren't read yet if ((*it)->IsDetached()) continue; (*it)->ClearBuffer(); // We deny AutoClearChanBuffer on all channels since this module // doesn't make any sense with it (*it)->SetAutoClearChanBuffer(false); } vector VQueries = pNetwork->GetQueries(); for (vector::const_iterator it = VQueries.begin(); it != VQueries.end(); ++it) { pNetwork->DelQuery((*it)->GetName()); } } } virtual EModRet OnUserMsg(CString& sTarget, CString& sMessage) override { ClearAllBuffers(); return CONTINUE; } virtual EModRet OnUserCTCP(CString& sTarget, CString& sMessage) override { ClearAllBuffers(); return CONTINUE; } virtual EModRet OnUserAction(CString& sTarget, CString& sMessage) override { ClearAllBuffers(); return CONTINUE; } virtual EModRet OnUserNotice(CString& sTarget, CString& sMessage) override { ClearAllBuffers(); return CONTINUE; } virtual EModRet OnUserPart(CString& sChannel, CString& sMessage) override { ClearAllBuffers(); return CONTINUE; } virtual EModRet OnUserTopic(CString& sChannel, CString& sTopic) override { ClearAllBuffers(); return CONTINUE; } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("clearbufferonmsg"); } USERMODULEDEFS(CClearBufferOnMsgMod, "Clear all channel and query buffers whenever the user does something") znc-1.6.3/modules/notify_connect.cpp0000644000175000017500000000252712663147131017746 0ustar somebodysomebody/* * Copyright (C) 2004-2015 ZNC, see the NOTICE file for details. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include #include class CNotifyConnectMod : public CModule { public: MODCONSTRUCTOR(CNotifyConnectMod) {} virtual void OnClientLogin() override { SendAdmins(GetUser()->GetUserName() + " attached (from " + GetClient()->GetRemoteIP() + ")"); } virtual void OnClientDisconnect() override { SendAdmins(GetUser()->GetUserName() + " detached (from " + GetClient()->GetRemoteIP() + ")"); } private: void SendAdmins(const CString &msg) { CZNC::Get().Broadcast(msg, true, NULL, GetClient()); } }; template<> void TModInfo(CModInfo& Info) { Info.SetWikiPage("notify_connect"); } GLOBALMODULEDEFS(CNotifyConnectMod, "Notifies all admin users when a client connects or disconnects.") znc-1.6.3/Doxyfile0000644000175000017500000022527312663147131014264 0ustar somebodysomebody# Doxyfile 1.8.1.2 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" "). #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all # text before the first occurrence of this tag. Doxygen uses libiconv (or the # iconv built into libc) for the transcoding. See # http://www.gnu.org/software/libiconv for the list of possible encodings. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or sequence of words) that should # identify the project. Note that if you do not use Doxywizard you need # to put quotes around the project name if it contains spaces. PROJECT_NAME = ZNC # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = trunk # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer # a quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = # With the PROJECT_LOGO tag one can specify an logo or icon that is # included in the documentation. The maximum height of the logo should not # exceed 55 pixels and the maximum width should not exceed 200 pixels. # Doxygen will copy the logo to the output directory. PROJECT_LOGO = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = doc # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create # 4096 sub-directories (in 2 levels) under the output directory of each output # format and will distribute the generated files over these directories. # Enabling this option can be useful when feeding doxygen a huge amount of # source files, where putting all generated files in the same directory would # otherwise cause performance problems for the file system. CREATE_SUBDIRS = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, # Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, # Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English # messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, # Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak, # Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator # that is used to form the text in various listings. Each string # in this list, if found as the leading text of the brief description, will be # stripped from the text and the result after processing the whole list, is # used as the annotated text. Otherwise, the brief description is used as-is. # If left blank, the following values are used ("$name" is automatically # replaced with the name of the entity): "The $name class" "The $name widget" # "The $name file" "is" "provides" "specifies" "contains" # "represents" "a" "an" "the" ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. INLINE_INHERITED_MEMB = YES # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = NO # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the # path to strip. STRIP_FROM_PATH = # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of # the path mentioned in the documentation of a class, which tells # the reader which header file to include in order to use a class. # If left blank only the name of the header file containing the class # definition is used. Otherwise one should specify the include paths that # are normally passed to the compiler using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful if your file system # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like regular Qt-style comments # (thus requiring an explicit @brief command for a brief description.) JAVADOC_AUTOBRIEF = YES # If the QT_AUTOBRIEF tag is set to YES then Doxygen will # interpret the first line (until the first dot) of a Qt-style # comment as the brief description. If set to NO, the comments # will behave just like regular Qt-style comments (thus requiring # an explicit \brief command for a brief description.) QT_AUTOBRIEF = YES # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # re-implements. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce # a new page for each member. If set to NO, the documentation of a member will # be part of the file/class/namespace that contains it. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 8 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # This tag can be used to specify a number of word-keyword mappings (TCL only). # A mapping has the form "name=value". For example adding # "class=itcl::class" will allow you to use the command class in the # itcl::class meaning. TCL_SUBST = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C # sources only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java # sources only. Doxygen will then generate output that is more tailored for # Java. For instance, namespaces will be presented as packages, qualified # scopes will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources only. Doxygen will then generate output that is more tailored for # Fortran. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for # VHDL. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given extension. # Doxygen has a built-in mapping, but you can override or extend it using this # tag. The format is ext=language, where ext is a file extension, and language # is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, # C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make # doxygen treat .inc files as Fortran files (default is PHP), and .f files as C # (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions # you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. EXTENSION_MAPPING = # If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all # comments according to the Markdown format, which allows for more readable # documentation. See http://daringfireball.net/projects/markdown/ for details. # The output of markdown processing is further processed by doxygen, so you # can mix doxygen, HTML, and XML commands with Markdown formatting. # Disable only in case of backward compatibilities issues. MARKDOWN_SUPPORT = YES # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should # set this tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); v.s. # func(std::string) {}). This also makes the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. BUILTIN_STL_SUPPORT = YES # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. # Doxygen will parse them like normal C++ but will assume all classes use public # instead of private inheritance when no explicit protection keyword is present. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate getter # and setter methods for a property. Setting this option to YES (the default) # will make doxygen replace the get and set methods by a property in the # documentation. This will only work if the methods are indeed getting or # setting a simple type. If this is not the case, or you want to show the # methods anyway, you should set this option to NO. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and # unions are shown inside the group in which they are included (e.g. using # @ingroup) instead of on a separate page (for HTML and Man pages) or # section (for LaTeX and RTF). INLINE_GROUPED_CLASSES = NO # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and # unions with only public data fields will be shown inline in the documentation # of the scope in which they are defined (i.e. file, namespace, or group # documentation), provided this scope is documented. If set to NO (the default), # structs, classes, and unions are shown on a separate page (for HTML and Man # pages) or section (for LaTeX and RTF). INLINE_SIMPLE_STRUCTS = NO # When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum # is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically # be useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. TYPEDEF_HIDES_STRUCT = NO # The SYMBOL_CACHE_SIZE determines the size of the internal cache use to # determine which symbols to keep in memory and which to flush to disk. # When the cache is full, less often used symbols will be written to disk. # For small to medium size projects (<1000 input files) the default value is # probably good enough. For larger projects a too small cache size can cause # doxygen to be busy swapping symbols to and from disk most of the time # causing a significant performance penalty. # If the system has enough physical memory increasing the cache will improve the # performance by keeping more symbols in memory. Note that the value works on # a logarithmic scale so increasing the size by one will roughly double the # memory usage. The cache size is given by this formula: # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols. SYMBOL_CACHE_SIZE = 0 # Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be # set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given # their name and scope. Since this can be an expensive process and often the # same symbol appear multiple times in the code, doxygen keeps a cache of # pre-resolved symbols. If the cache is too small doxygen will become slower. # If the cache is too large, memory is wasted. The cache size is given by this # formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0, # corresponding to a cache size of 2^16 = 65536 symbols. LOOKUP_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_PACKAGE tag is set to YES all members with package or internal scope will be included in the documentation. EXTRACT_PACKAGE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = NO # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. When set to YES local # methods, which are defined in the implementation section but not in # the interface are included in the documentation. # If set to NO (the default) only methods in the interface are included. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base # name of the file that contains the anonymous namespace. By default # anonymous namespaces are hidden. EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen # will list include files with double quotes in the documentation # rather than with sharp brackets. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the # brief documentation of file, namespace and class members alphabetically # by member name. If set to NO (the default) the members will appear in # declaration order. SORT_BRIEF_DOCS = NO # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen # will sort the (brief and detailed) documentation of class members so that # constructors and destructors are listed first. If set to NO (the default) # the constructors will appear in the respective orders defined by # SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. # This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO # and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. SORT_MEMBERS_CTORS_1ST = YES # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the # hierarchy of group names into alphabetical order. If set to NO (the default) # the group names will appear in their defined order. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be # sorted by fully-qualified names, including namespaces. If set to # NO (the default), the class list will be sorted only by class name, # not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the # alphabetical list. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to # do proper type resolution of all parameters of a function it will reject a # match between the prototype and the implementation of a member function even # if there is only one candidate or it is obvious which candidate to choose # by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen # will still accept a match between prototype and implementation in such cases. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or macro consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and macros in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES # Set the SHOW_FILES tag to NO to disable the generation of the Files page. # This will remove the Files entry from the Quick Index and from the # Folder Tree View (if specified). The default is YES. SHOW_FILES = YES # Set the SHOW_NAMESPACES tag to NO to disable the generation of the # Namespaces page. # This will remove the Namespaces entry from the Quick Index # and from the Folder Tree View (if specified). The default is YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command , where is the value of # the FILE_VERSION_FILTER tag, and is the name of an input file # provided by doxygen. Whatever the program writes to standard output # is used as the file version. See the manual for examples. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file # that represents doxygen's defaults, run doxygen with the -l option. # You can optionally specify a file name after the option, if omitted # DoxygenLayout.xml will be used as the name of the layout file. LAYOUT_FILE = # The CITE_BIB_FILES tag can be used to specify one or more bib files # containing the references data. This must be a list of .bib files. The # .bib extension is automatically appended if omitted. Using this command # requires the bibtex tool to be installed. See also # http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style # of the bibliography can be controlled using LATEX_BIB_STYLE. To use this # feature you need bibtex and perl available in the search path. CITE_BIB_FILES = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # The WARN_NO_PARAMDOC option can be enabled to get warnings for # functions that are documented, but have no documentation for their parameters # or return value. If set to NO (the default) doxygen will only warn about # wrong or incomplete parameter documentation, but not about the absence of # documentation. WARN_NO_PARAMDOC = NO # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. Optionally the format may contain # $version, which will be replaced by the version of the file (if it could # be obtained via FILE_VERSION_FILTER) WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is # also the default input encoding. Doxygen uses libiconv (or the iconv built # into libc) for the transcoding. See http://www.gnu.org/software/libiconv for # the list of possible encodings. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh # *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py # *.f90 *.f *.for *.vhd *.vhdl FILE_PATTERNS = *.h # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. # Note that relative paths are relative to the directory from which doxygen is # run. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. Note that the wildcards are matched # against the file with absolute path, so to exclude all test directories # for example use the pattern */test/* EXCLUDE_PATTERNS = # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. # If FILTER_PATTERNS is specified, this tag will be # ignored. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. # Doxygen will compare the file name with each pattern and apply the # filter if there is a match. # The filters are a list of the form: # pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further # info on how filters are used. If FILTER_PATTERNS is empty or if # non of the patterns match the file name, INPUT_FILTER is applied. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) # and it is also possible to disable source filtering for a specific pattern # using *.ext= (so without naming a filter). This option only has effect when # FILTER_SOURCE_FILES is enabled. FILTER_SOURCE_PATTERNS = #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. # Note: To get rid of all source code in the generated output, make sure also # VERBATIM_HEADERS is set to NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C, C++ and Fortran comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the REFERENCES_LINK_SOURCE tag is set to YES (the default) # and SOURCE_BROWSER tag is set to YES, then the hyperlinks from # functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will # link to the source code. # Otherwise they will link to the documentation. REFERENCES_LINK_SOURCE = YES # If the USE_HTAGS tag is set to YES then the references to source code # will point to the HTML generated by the htags(1) tool instead of doxygen # built-in source browser. The htags tool is part of GNU's global source # tagging system (see http://www.gnu.org/software/global/global.html). You # will need version 4.8.6 or higher. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = YES # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. Note that when using a custom header you are responsible # for the proper inclusion of any scripts and style sheets that doxygen # needs, which is dependent on the configuration options used. # It is advised to generate a default header using "doxygen -w html # header.html footer.html stylesheet.css YourConfigFile" and then modify # that header. Note that the header is subject to change so you typically # have to redo this when upgrading to a newer version of doxygen or when # changing the value of configuration settings such as GENERATE_TREEVIEW! HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet. Note that doxygen will try to copy # the style sheet file to the HTML output directory, so don't put your own # style sheet in the HTML output directory as well, or it will be erased! HTML_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that # the files will be copied as-is; there are no commands or markers available. HTML_EXTRA_FILES = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. # Doxygen will adjust the colors in the style sheet and background images # according to this color. Hue is specified as an angle on a colorwheel, # see http://en.wikipedia.org/wiki/Hue for more information. # For instance the value 0 represents red, 60 is yellow, 120 is green, # 180 is cyan, 240 is blue, 300 purple, and 360 is red again. # The allowed range is 0 to 359. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of # the colors in the HTML output. For a value of 0 the output will use # grayscales only. A value of 255 will produce the most vivid colors. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to # the luminance component of the colors in the HTML output. Values below # 100 gradually make the output lighter, whereas values above 100 make # the output darker. The value divided by 100 is the actual gamma applied, # so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, # and 100 does not change the gamma. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting # this to NO can help when comparing the output of multiple runs. HTML_TIMESTAMP = YES # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. HTML_DYNAMIC_SECTIONS = YES # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of # entries shown in the various tree structured indices initially; the user # can expand and collapse entries dynamically later on. Doxygen will expand # the tree to such a level that at most the specified number of entries are # visible (unless a fully collapsed tree already exceeds this amount). # So setting the number of entries 1 will produce a full collapsed tree by # default. 0 is a special value representing an infinite number of entries # and will result in a full expanded tree by default. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files # will be generated that can be used as input for Apple's Xcode 3 # integrated development environment, introduced with OSX 10.5 (Leopard). # To create a documentation set, doxygen will generate a Makefile in the # HTML output directory. Running make will produce the docset in that # directory and running "make install" will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find # it at startup. # See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. GENERATE_DOCSET = NO # When GENERATE_DOCSET tag is set to YES, this tag determines the name of the # feed. A documentation feed provides an umbrella under which multiple # documentation sets from a single provider (such as a company or product suite) # can be grouped. DOCSET_FEEDNAME = "Doxygen generated docs" # When GENERATE_DOCSET tag is set to YES, this tag specifies a string that # should uniquely identify the documentation set bundle. This should be a # reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen # will append .docset to the name. DOCSET_BUNDLE_ID = org.doxygen.Project # When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compiled HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output directory. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING # is used to encode HtmlHelp index (hhk), content (hhc) and project file # content. CHM_INDEX_ENCODING = # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated # that can be used as input for Qt's qhelpgenerator to generate a # Qt Compressed Help (.qch) of the generated HTML documentation. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can # be used to specify the file name of the resulting .qch file. # The path specified is relative to the HTML output folder. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating # Qt Help Project output. For more information please see # http://doc.trolltech.com/qthelpproject.html#namespace QHP_NAMESPACE = # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating # Qt Help Project output. For more information please see # http://doc.trolltech.com/qthelpproject.html#virtual-folders QHP_VIRTUAL_FOLDER = doc # If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to # add. For more information please see # http://doc.trolltech.com/qthelpproject.html#custom-filters QHP_CUST_FILTER_NAME = # The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see # # Qt Help Project / Custom Filters. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's # filter section matches. # # Qt Help Project / Filter Attributes. QHP_SECT_FILTER_ATTRS = # If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can # be used to specify the location of Qt's qhelpgenerator. # If non-empty doxygen will try to run qhelpgenerator on the generated # .qhp file. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files # will be generated, which together with the HTML files, form an Eclipse help # plugin. To install this plugin and make it available under the help contents # menu in Eclipse, the contents of the directory containing the HTML and XML # files needs to be copied into the plugins directory of eclipse. The name of # the directory within the plugins directory should be the same as # the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before # the help appears. GENERATE_ECLIPSEHELP = NO # A unique identifier for the eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have # this name. ECLIPSE_DOC_ID = org.doxygen.Project # The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) # at top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. Since the tabs have the same information as the # navigation tree you can set this option to NO if you already set # GENERATE_TREEVIEW to YES. DISABLE_INDEX = NO # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. # If the tag value is set to YES, a side panel will be generated # containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). # Windows users are probably better off using the HTML help feature. # Since the tree basically has the same information as the tab index you # could consider to set DISABLE_INDEX to NO when enabling this option. GENERATE_TREEVIEW = NO # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values # (range [0,1..20]) that doxygen will group on one line in the generated HTML # documentation. Note that a value of 0 will completely suppress the enum # values from appearing in the overview section. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 # When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open # links to external symbols imported via tag files in a separate window. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of Latex formulas included # as images in the HTML documentation. The default is 10. Note that # when you change the font size after a successful doxygen run you need # to manually remove any form_*.png images from the HTML output directory # to force them to be regenerated. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are # not supported properly for IE 6.0, but are supported on all modern browsers. # Note that when changing this option you need to delete any form_*.png files # in the HTML output before the changes have effect. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax # (see http://www.mathjax.org) which uses client side Javascript for the # rendering instead of using prerendered bitmaps. Use this if you do not # have LaTeX installed or if you want to formulas look prettier in the HTML # output. When enabled you may also need to install MathJax separately and # configure the path to it using the MATHJAX_RELPATH option. USE_MATHJAX = NO # When MathJax is enabled you need to specify the location relative to the # HTML output directory using the MATHJAX_RELPATH option. The destination # directory should contain the MathJax.js script. For instance, if the mathjax # directory is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to # the MathJax Content Delivery Network so you can quickly see the result without # installing MathJax. # However, it is strongly recommended to install a local # copy of MathJax from http://www.mathjax.org before deployment. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension # names that should be enabled during MathJax rendering. MATHJAX_EXTENSIONS = # When the SEARCHENGINE tag is enabled doxygen will generate a search box # for the HTML output. The underlying search engine uses javascript # and DHTML and should work on any modern browser. Note that when using # HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets # (GENERATE_DOCSET) there is already a search function so this one should # typically be disabled. For large projects the javascript based search engine # can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. SEARCHENGINE = YES # When the SERVER_BASED_SEARCH tag is enabled the search engine will be # implemented using a PHP enabled web server instead of at the web client # using Javascript. Doxygen will generate the search PHP script and index # file to put on the web server. The advantage of the server # based approach is that it scales better to large projects and allows # full text search. The disadvantages are that it is more difficult to setup # and does not have live searching capabilities. SERVER_BASED_SEARCH = NO #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. # Note that when enabling USE_PDFLATEX this option is only used for # generating bitmaps for formulas in the HTML output, but not in the # Makefile that is written to the output directory. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = a4wide # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for # the generated latex document. The footer should contain everything after # the last chapter. If it is left blank doxygen will generate a # standard footer. Notice: only use this tag if you know what you are doing! LATEX_FOOTER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO # If LATEX_SOURCE_CODE is set to YES then doxygen will include # source code with syntax highlighting in the LaTeX output. # Note that which sources are shown also depends on other settings # such as SOURCE_BROWSER. LATEX_SOURCE_CODE = NO # The LATEX_BIB_STYLE tag can be used to specify the style to use for the # bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See # http://en.wikipedia.org/wiki/BibTeX for more info. LATEX_BIB_STYLE = plain #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimized for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load style sheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assignments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = # If the XML_PROGRAMLISTING tag is set to YES Doxygen will # dump the program listings (including syntax highlighting # and cross-referencing information) to the XML output. Note that # enabling this will significantly increase the size of the XML output. XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. # This is useful # if you want to understand what is going on. # On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_DEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # pointed to by INCLUDE_PATH will be searched when a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. To prevent a macro definition from being # undefined via #undef or recursively expanded use the := operator # instead of the = operator. PREDEFINED = HAVE_IPV6 \ HAVE_LIBSSL \ HAVE_LSTAT \ _NO_CSOCKET_NS \ _MODULES # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition that # overrules the definition found in the source code. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all references to function-like macros # that are alone on a line, have an all uppercase name, and do not end with a # semicolon, because these will confuse the parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. For each # tag file the location of the external documentation should be added. The # format of a tag file without this location is as follows: # # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths # or URLs. Note that each tag file must have a unique name (where the name does # NOT include the path). If a tag file is not located in the directory in which # doxygen is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base # or super classes. Setting the tag to NO turns the diagrams off. Note that # this option also works with HAVE_DOT disabled, but it is recommended to # install and use dot, since it yields more powerful graphs. CLASS_DIAGRAMS = YES # You can define message sequence charts within doxygen comments using the \msc # command. Doxygen will then run the mscgen tool (see # http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the # documentation. The MSCGEN_PATH tag allows you to specify the directory where # the mscgen tool resides. If left empty the tool is assumed to be found in the # default search path. MSCGEN_PATH = # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = YES # The DOT_NUM_THREADS specifies the number of dot invocations doxygen is # allowed to run in parallel. When set to 0 (the default) doxygen will # base this on the number of processors available in the system. You can set it # explicitly to a value larger than 0 to get control over the balance # between CPU load and processing speed. DOT_NUM_THREADS = 0 # By default doxygen will use the Helvetica font for all dot files that # doxygen generates. When you want a differently looking font you can specify # the font name using DOT_FONTNAME. You need to make sure dot is able to find # the font, which can be done by putting it in a standard location or by setting # the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the # directory containing the font. DOT_FONTNAME = FreeSans # The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. # The default size is 10pt. DOT_FONTSIZE = 10 # By default doxygen will tell dot to use the Helvetica font. # If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to # set the path where dot can find it. DOT_FONTPATH = # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen # will generate a graph for groups, showing the direct groups dependencies GROUP_GRAPHS = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If the UML_LOOK tag is enabled, the fields and methods are shown inside # the class node. If there are many fields or methods and many nodes the # graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS # threshold limits the number of items for each type to make the size more # managable. Set this to 0 for no limit. Note that the threshold may be # exceeded by 50% before the limit is enforced. UML_LIMIT_NUM_FIELDS = 10 # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = NO # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT options are set to YES then # doxygen will generate a call dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable call graphs # for selected functions only using the \callgraph command. CALL_GRAPH = NO # If the CALLER_GRAPH and HAVE_DOT tags are set to YES then # doxygen will generate a caller dependency graph for every global function # or class method. Note that enabling this option will significantly increase # the time of a run. So in most cases it will be better to enable caller # graphs for selected functions only using the \callergraph command. CALLER_GRAPH = NO # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will generate a graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES # then doxygen will show the dependencies a directory has on other directories # in a graphical way. The dependency relations are determined by the #include # relations between the files in the directories. DIRECTORY_GRAPH = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are svg, png, jpg, or gif. # If left blank png will be used. If you choose svg you need to set # HTML_FILE_EXTENSION to xhtml in order to make the SVG files # visible in IE 9+ (other browsers do not have this requirement). DOT_IMAGE_FORMAT = png # If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to # enable generation of interactive SVG images that allow zooming and panning. # Note that this requires a modern browser other than Internet Explorer. # Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you # need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files # visible. Older versions of IE do not have SVG support. INTERACTIVE_SVG = NO # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found in the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MSCFILE_DIRS tag can be used to specify one or more directories that # contain msc files that are included in the documentation (see the # \mscfile command). MSCFILE_DIRS = # The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of # nodes that will be shown in the graph. If the number of nodes in a graph # becomes larger than this value, doxygen will truncate the graph, which is # visualized by representing a node as a red box. Note that doxygen if the # number of direct children of the root node in a graph is already larger than # DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note # that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. DOT_GRAPH_MAX_NODES = 50 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes # that lay further from the root node will be omitted. Note that setting this # option to 1 or 2 may greatly reduce the computation time needed for large # code bases. Also note that the size of a graph can be further restricted by # DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. MAX_DOT_GRAPH_DEPTH = 0 # Set the DOT_TRANSPARENT tag to YES to generate images with a transparent # background. This is disabled by default, because dot on Windows does not # seem to support this out of the box. Warning: Depending on the platform used, # enabling this option may lead to badly anti-aliased labels on the edges of # a graph (i.e. they become hard to read). DOT_TRANSPARENT = YES # Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output # files in one run (i.e. multiple -o and -T options on the command line). This # makes dot run faster, but since only newer versions of dot (>1.8.10) # support this, this feature is disabled by default. DOT_MULTI_TARGETS = NO # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES znc-1.6.3/Makefile.in0000644000175000017500000001704612663147145014625 0ustar somebodysomebodySHELL := @SHELL@ # Support out-of-tree builds srcdir := @srcdir@ VPATH := @srcdir@ prefix := @prefix@ exec_prefix := @exec_prefix@ datarootdir := @datarootdir@ bindir := @bindir@ datadir := @datadir@ sysconfdir := @sysconfdir@ libdir := @libdir@ includedir := @includedir@ sbindir := @sbindir@ localstatedir := @localstatedir@ systemdsystemunitdir := @systemdsystemunitdir@ CXX := @CXX@ CXXFLAGS := -I$(srcdir)/include -Iinclude @CPPFLAGS@ @CXXFLAGS@ LDFLAGS := @LDFLAGS@ LIBS := @LIBS@ LIBZNC := @LIBZNC@ LIBZNCDIR:= @LIBZNCDIR@ MODDIR := @MODDIR@ DATADIR := @DATADIR@ PKGCONFIGDIR := $(libdir)/pkgconfig INSTALL := @INSTALL@ INSTALL_PROGRAM := @INSTALL_PROGRAM@ INSTALL_SCRIPT := @INSTALL_SCRIPT@ INSTALL_DATA := @INSTALL_DATA@ GIT := @GIT@ SED := @SED@ GTEST_DOWNLOAD := GTEST_DIR := @GTEST_DIR@ ifeq "$(GTEST_DIR)" "" GTEST_VER := 1.7.0 GTEST_DIR := test/gtest-$(GTEST_VER) GTEST_DOWNLOAD := 1 endif LIB_SRCS := ZNCString.cpp Csocket.cpp znc.cpp IRCNetwork.cpp User.cpp IRCSock.cpp \ Client.cpp Chan.cpp Nick.cpp Server.cpp Modules.cpp MD5.cpp Buffer.cpp Utils.cpp \ FileUtils.cpp HTTPSock.cpp Template.cpp ClientCommand.cpp Socket.cpp SHA256.cpp \ WebModules.cpp Listener.cpp Config.cpp ZNCDebug.cpp Threads.cpp version.cpp Query.cpp \ SSLVerifyHost.cpp LIB_SRCS := $(addprefix src/,$(LIB_SRCS)) BIN_SRCS := src/main.cpp LIB_OBJS := $(patsubst %cpp,%o,$(LIB_SRCS)) BIN_OBJS := $(patsubst %cpp,%o,$(BIN_SRCS)) TESTS := StringTest ConfigTest UtilsTest ThreadTest NickTest ClientTest NetworkTest TESTS := $(addprefix test/,$(addsuffix .o,$(TESTS))) CLEAN := znc src/*.o test/*.o core core.* .version_extra .depend modules/.depend unittest DISTCLEAN := Makefile config.log config.status znc-buildmod include/znc/zncconfig.h \ modules/Makefile man/Makefile znc.pc znc-uninstalled.pc test/Makefile CXXFLAGS += -D_MODDIR_=\"$(MODDIR)\" -D_DATADIR_=\"$(DATADIR)\" ifneq "$(V)" "" VERBOSE=1 endif ifeq "$(VERBOSE)" "" Q=@ E=@echo C=-s else Q= E=@\# C= endif .PHONY: all man modules clean distclean install version_extra_recompile test .SECONDARY: all: znc man modules $(LIBZNC) @echo "" @echo " ZNC was successfully compiled." @echo " Use '$(MAKE) install' to install ZNC to '$(prefix)'." ifeq "$(LIBZNC)" "" OBJS := $(BIN_OBJS) $(LIB_OBJS) znc: $(OBJS) $(E) Linking znc... $(Q)$(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) else znc: $(BIN_OBJS) $(LIBZNC) $(E) Linking znc... $(Q)$(CXX) $(LDFLAGS) -o $@ $(BIN_OBJS) -L. -lznc -Wl,-rpath,$(LIBZNCDIR) $(LIBS) $(LIBZNC): $(LIB_OBJS) $(E) Linking $(LIBZNC)... $(Q)$(CXX) $(LDFLAGS) -shared -o $@ $(LIB_OBJS) $(LIBS) endif unittest: $(LIB_OBJS) test/gtest-all.o test/gtest-main.o $(TESTS) $(E) Linking unit test... $(Q)$(CXX) $(LDFLAGS) -o $@ $(LIB_OBJS) test/gtest-all.o test/gtest-main.o $(TESTS) $(LIBS) man: @$(MAKE) -C man $(C) modules: $(LIBZNC) include/znc/Csocket.h @$(MAKE) -C modules $(C) clean: rm -rf $(CLEAN) @$(MAKE) -C modules clean; @$(MAKE) -C man clean distclean: clean rm -rf $(DISTCLEAN) src/%.o: src/%.cpp Makefile include/znc/Csocket.h @mkdir -p .depend src $(E) Building core object $*... $(Q)$(CXX) $(CXXFLAGS) -c -o $@ $< -MD -MF .depend/$*.dep -MT $@ test/%.o: test/%.cpp Makefile include/znc/Csocket.h @mkdir -p .depend test $(E) Building test object $*... $(Q)$(CXX) $(CXXFLAGS) -I$(GTEST_DIR)/include -c -o $@ $< -MD -MF .depend/$*.test.dep -MT $@ test/gtest-all.o: $(GTEST_DIR)/src/gtest-all.cc Makefile @mkdir -p .depend test $(E) Building test object gtest-all... $(Q)$(CXX) $(CXXFLAGS) -I$(GTEST_DIR)/include -I$(GTEST_DIR) -c -o $@ $< -MD -MF .depend/gtest-all.dep -MT $@ test/gtest-main.o: $(GTEST_DIR)/src/gtest_main.cc Makefile @mkdir -p .depend test $(E) Building test object gtest-main... $(Q)$(CXX) $(CXXFLAGS) -I$(GTEST_DIR)/include -c -o $@ $< -MD -MF .depend/gtest-main.dep -MT $@ ifneq "$(GTEST_DOWNLOAD)" "" test/gtest.zip: @mkdir -p .depend test $(E) Downloading GoogleTest $(GTEST_VER) $(Q)wget http://googletest.googlecode.com/files/gtest-$(GTEST_VER).zip -O $@ $(GTEST_DIR)/src/gtest-all.cc $(GTEST_DIR)/src/gtest_main.cc $(GTEST_DIR)/include/gtest/gtest.h: test/gtest.zip $(E) Unpacking GoogleTest $(GTEST_VER) $(Q)test -r $@ || unzip $^ -d test/ $(Q)test -r $@ $(Q)touch -c $@ endif ifneq "" "" # If git commit was changed since previous build, add a phony target to dependencies, forcing version.o to be recompiled # Nightlies have pregenerated version.cpp src/version.cpp: Makefile version.sh $(shell if [ x`cat .version_extra 2> /dev/null` != x`$(srcdir)/version.sh $(GIT) 3>&2 2> /dev/null` ]; then echo version_extra_recompile; fi) @mkdir -p .depend src $(E) Building source file version.cpp... $(Q)WRITE_OUTPUT=yes $(srcdir)/version.sh "$(GIT)" > .version_extra 2> /dev/null CLEAN += src/version.cpp src/Csocket.cpp include/znc/Csocket.h src/Csocket.cpp: third_party/Csocket/Csocket.cc @rm -f $@ @mkdir -p src @sed -e 's:#include "Csocket.h":#include :' $^ > $@ include/znc/Csocket.h: third_party/Csocket/Csocket.h @rm -f $@ @mkdir -p include/znc @sed -e 's:#include "defines.h":#include :' $^ > $@ third_party/Csocket/Csocket.h third_party/Csocket/Csocket.cc: @echo It looks like git submodules are not initialized. Run: git submodule update --init --recursive @exit 1 endif install: znc $(LIBZNC) test -d $(DESTDIR)$(bindir) || $(INSTALL) -d $(DESTDIR)$(bindir) test -d $(DESTDIR)$(includedir)/znc || $(INSTALL) -d $(DESTDIR)$(includedir)/znc test -d $(DESTDIR)$(PKGCONFIGDIR) || $(INSTALL) -d $(DESTDIR)$(PKGCONFIGDIR) test -d $(DESTDIR)$(MODDIR) || $(INSTALL) -d $(DESTDIR)$(MODDIR) test -d $(DESTDIR)$(DATADIR) || $(INSTALL) -d $(DESTDIR)$(DATADIR) cp -R $(srcdir)/webskins $(DESTDIR)$(DATADIR) find $(DESTDIR)$(DATADIR)/webskins -type d -exec chmod 0755 '{}' \; find $(DESTDIR)$(DATADIR)/webskins -type f -exec chmod 0644 '{}' \; $(INSTALL_PROGRAM) znc $(DESTDIR)$(bindir) $(INSTALL_SCRIPT) znc-buildmod $(DESTDIR)$(bindir) $(INSTALL_DATA) $(srcdir)/include/znc/*.h $(DESTDIR)$(includedir)/znc $(INSTALL_DATA) include/znc/zncconfig.h $(DESTDIR)$(includedir)/znc $(INSTALL_DATA) znc.pc $(DESTDIR)$(PKGCONFIGDIR) @$(MAKE) -C modules install DESTDIR=$(DESTDIR); if test -n "$(LIBZNC)"; then \ test -d $(DESTDIR)$(LIBZNCDIR) || $(INSTALL) -d $(DESTDIR)$(LIBZNCDIR) || exit 1 ; \ $(INSTALL_PROGRAM) $(LIBZNC) $(DESTDIR)$(LIBZNCDIR) || exit 1 ; \ fi @$(MAKE) -C man install DESTDIR=$(DESTDIR) @HAVE_SYSTEMD_TRUE@test -d $(DESTDIR)$(systemdsystemunitdir) || $(INSTALL) -d $(DESTDIR)$(systemdsystemunitdir) @HAVE_SYSTEMD_TRUE@$(INSTALL_DATA) $(srcdir)/znc.service $(DESTDIR)$(systemdsystemunitdir) @echo "" @echo "******************************************************************" @echo " ZNC was successfully installed." @echo " You can use '$(bindir)/znc --makeconf'" @echo " to generate a config file." @echo "" @echo " If you need help with using ZNC, please visit our wiki at:" @echo " http://znc.in" uninstall: rm $(DESTDIR)$(bindir)/znc rm $(DESTDIR)$(bindir)/znc-buildmod rm $(DESTDIR)$(includedir)/znc/*.h rm $(DESTDIR)$(PKGCONFIGDIR)/znc.pc rm -rf $(DESTDIR)$(DATADIR)/webskins if test -n "$(LIBZNC)"; then \ rm $(DESTDIR)$(LIBZNCDIR)/$(LIBZNC) || exit 1 ; \ rmdir $(DESTDIR)$(LIBZNCDIR) || exit 1 ; \ fi @$(MAKE) -C man uninstall DESTDIR=$(DESTDIR) @if test -n "modules"; then \ $(MAKE) -C modules uninstall DESTDIR=$(DESTDIR); \ fi rmdir $(DESTDIR)$(bindir) rmdir $(DESTDIR)$(includedir)/znc rmdir $(DESTDIR)$(PKGCONFIGDIR) @echo "Successfully uninstalled, but empty directories were left behind" test: unittest $(Q)./unittest -include $(wildcard .depend/*.dep) znc-1.6.3/ChangeLog.md0000644000175000017500000024651312663147131014727 0ustar somebodysomebody# ZNC 1.6.3 (2016-02-16) ## Core * New character encoding is now applied immediately, without reconnect. * Fixed build with LibreSSL. * Fixed error 404 when accessing the web UI with the configured URI prefix, but without the `/` in the end. * `znc-buildmod` now exits with non-zero exit code when the .cpp file is not found. * Fixed `znc-buildmod` on Cygwin. * ExpandString got expanded. It now expands `%znc%` to `ZNC - http://znc.in`, honoring the global "Hide version" setting. * Default quit message is switched from `ZNC - http://znc.in` to `%znc%`, which is the same, but "automatically" changes the shown version when ZNC gets upgraded. Before, the old version was recorded in the user's quit message, and stayed the same regardless of the current version of ZNC. ## Modules * modperl: * Fixed a memory leak. * sasl: * Added an option to show which mechanisms failed or succeeded. * webadmin: * Fixed an error message on invalid user settings to say what exactly was invalid. * No more autocomplete password in user settings. It led to an error when ZNC thought the user is going to change a password, but the passwords didn't match. # ZNC 1.6.2 (2015-11-15) ## Fixes * Fixed a use-after-delete in webadmin. It was already partially fixed in ZNC 1.4; since 1.4 it has been still possible to trigger, but much harder. * Fixed a startup failure when awaynick and simple_away were both loaded, and simple_away had arguments. * Fixed a build failure when using an ancient OpenSSL version. * Fixed a build failure when using OpenSSL which was built without SSLv3 support. * Bindhost was sometimes used as ident. * `CAP :END` wasn't parsed correctly, causing timeout during login for some clients. * Fixed channel keys if client joined several channels in single command. * Fixed memory leak when reading an invalid config. ## Modules * autovoice: * Check for autovoices when we are opped. * controlpanel: * Fixed `DelCTCPReply` case-insensitivity. * dcc: * Add missing return statement. It was harmless. * modpython: * Fixed a memory leak. * modules_online: * Wrong ident was used before. * stickychan: * Fixed to unstick inaccessible channels to avoid infinite join loops. ## Internal * Fixed the nick passed to `CModule::OnChanMsg()` so it has channel permissions set. * Fixed noisy `-Winconsistent-missing-override` compilation warnings. * Initialized some fields in constructors of modules before `OnLoad()`. ## Cosmetic * Various modules had commands with empty descriptions. * perform: * Say "number" instead of "nr". * route_replies: * Make the timeout error message more clear. # ZNC 1.6.1 (2015-08-04) ## Fixes * Fixed the problem that channels were no longer removed from the config despite of chansaver being loaded. * Fixed query buffer size for users who have the default channel buffer size set to 0. * Fixed a startup failure when simple_away was loaded after awaynick. * Fixed channel matching commands, such as DETACH, to be case insensitive. * Specified the required compiler versions in the configure script. * Fixed a rare conflict of HTTP-Basic auth and cookies. * Hid local IP address from the 404 page. * Fixed a build failure for users who have `-Werror=missing-declarations` in their `CXXFLAGS`. * Fixed `CXXFLAGS=-DVERSION_EXTRA="foo"` which is used by some distros to package ZNC. * Fixed `znc-buildmod` on Cygwin. ## Modules * chansaver: * Fixed random loading behavior due to an uninitialized member variable. * modpython: * Fixed access to `CUser::GetUserClients()` and `CUser::GetAllClients()`. * sasl: * Improved help texts for the SET and REQUIREAUTH commands. * savebuff: * Fixed periodical writes on the disk when the module is loaded after startup. * webadmin: * Fixed module checkboxes not to claim that all networks/users have loaded a module when there are no networks/users. * Added an explanation that ZNC was built without ICU support, when encoding settings are disabled for that reason. * Improved the breadcrumbs. * Mentioned ExpandString in CTCP replies. * Added an explanation how to delete port which is used to access webadmin. ## Internal * Fixed `CThreadPool` destructor to handle spurious wakeups. * Fixed `make distclean` to remove `zncconfig.h`. * Improved the error message about `--datadir`. * Fixed a compilation warning when `HAVE_LIBSSL` is not defined. * Fixed 'comparision' typos in CString documentation. * Added a non-minified version of the jQuery source code to make Linux distributions (Debian) happy, even though the jQuery license does not require this. # ZNC 1.6.0 (2015-02-12) ## New * Switch versioning scheme to ... * Add settings for which SSL/TLS protocols to use (SSLProtocols), which ciphers to enable (SSLCiphers). By default TLSv1+ are enabled, SSLv2/3 are disabled. Default ciphers are what Mozilla advices: https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29 * Validate SSL certificates. * Allow clients to specify an ID as part of username (user[@identifier][/network]). Currently not used, but modules can use it. * Add alias module for ZNC-side command interception and processing. * Support character encodings with separate settings for networks, and for clients. It replaces older charset module, which didn't work well with webadmin, log and other modules. * Support X-Forwarded-For HTTP header, used with new TrustedProxy setting. * Add URIPrefix option for HTTP listeners, used with reverse proxy. * Store query buffers per query the same way it's done for channels, add new option AutoClearQueryBuffer. * Add DisableChan command to *status, it was available only in webadmin before. * Allow wildcards in arguments of Help commands of *status and various modules. * Support IRCv3.2 batches, used for buffer playbacks. * Support IRCv3.2 self-message. * Remove awaynick module. It's considered bad etiquette. * Add JoinDelay setting, which allows a delay between connection to server, and joining first channel. By default it joins immediately after connect. * Make Detach, EnableChan and DisableChan commands of *status accept multiple channels. * znc-buildmod: Build output to the current working directory. * Wrap long lines in tables (e.g. in Help or ListAvailMods commands). * Support ECDHE if available in OpenSSL. * Report ZNC version more consistently, add HideVersion setting, which hides ZNC version from public. * Bump compiler requirements to support C++11. This means GCC 4.7+, Clang 3.2+, SWIG 3.0.0+. ## Fixes * Disable TLS compression. * Disallow setting ConnectDelay to zero, don't hammer server with our failed connects. * Simplify --makeconf. * Fix logic to find an available nick when connecting to server. * Fix handling of CTCP flood. * Allow network specific quit messages. * Make various text labels gender-neutral. * Fix finding SWIG 3 on FreeBSD. * Handle multi-receiver NOTICE and PRIVMSG. * Make channels follow user-level settings when appropriate. * Write disabled status to config for disabled channels. * Fix double output in messages from modules. * Fix memory leak in gzip compression in HTTP server. * Use random DNS result instead of choosing the same one every time. * Fix HTTP basic auth. * Mention network in message shown if client didn't send PASS. ## Modules * autoattach: * Make it also a network module. * autoreply: * Use NOTICE instead of PRIVMSG. * autoop: * Add support for multiple hostmasks per user. * awaystore: * Store CTCP ACTIONs too. * Reset timer and return from away when a client does a CTCP ACTION. * Allows use of strftime formatting in away messages. * bouncedcc: * Fix quotes in file names. * Fix check for "Connected" state. * buffextras: * Make it also a network module. * chansaver: * Fix saving channel keys. * Add support for loading as a global module. * controlpanel: * Add AddChan, DelChan commands, useful for admins to edit other users' channels, was available only in webadmin before. * Check if adding a new channel succeeded. * Revise Help output. * Allow wildcards for GetChan and SetChan. * flooddetach: * Show current value in Lines and Secs commands. * Add Silent [yes|no] command, similar to route_replies. * listsockets: * Show traffic stats. * log: * Use only lower case characters in log filenames. * Use directories and YYYY-MM-DD filename by default. * Add support for logging rules. E.g. /msg *log setrules #znc !#* * modperl: * Fix some int_t types. * modpython: * Fix calling overloaded methods with parameter CString&. * Support CZNC::GetUserMap(). * Set has_args and args_help_text from module. * Release python/swig ownership when adding object created in python to ZNC container. * Fix some int_t types. * Enable default arguments feature of SWIG 3.0.4. No functionality change, it just makes generated code a bit more beautiful. * nickserv: * Support tddirc.net. * Remove commands Ghost, Recover, Release, Group. The same functionality is available via new alias module. * q: * Add JoinOnInvite, JoinAfterCloaked options. * Don't cloak host on first module load if already connected to IRC. * Add web configuration. * Use HMAC-SHA-256 instead of HMAC-MD5. * route_replies: * Handle numerics 307 and 379 in /whois reply. Handle IRCv3.2 METADATA numerics. * sample: * Make it a network module, which are easier to write. * sasl: * Remove DH-BLOWFISH and DH-AES. See http://nullroute.eu.org/~grawity/irc-sasl-dh.html and http://kaniini.dereferenced.org/2014/12/26/do-not-use-DH-AES-or-DH-BLOWFISH.html for details. * savebuff: * Do not skip channels with AutoClearChanBuffer=true. * Handle empty password in SetPass the same way as during startup. * simple_away: * Apply auto-away on load if no user is connected. * stickychan: * Don't join channels when not connected. * watch: * Add support for detached-only clients, and detached-only channels. * webadmin: * Combine "List Users" and "Add User". * Module argument autocomplete="off", for nickserv module, which contains password in argument before first save. * For every module show in which other levels that module is loaded (global/user/network). * Open links to wiki pages about modules in separate window/tab. * Support renaming a network (it was already possible outside of webadmin, via /znc MoveNetwork). However, it doesn't support moving networks between users yet, for that use /znc command. * Add missing page title on Traffic page. * Improve navigation: "Save and continue". * Clarify that timestamp format is useless with server-time. ## Internal * Move Csocket to git submodule. * Unit tests, via GTest. * Allow lambdas for module command callbacks. * New modules hooks: OnSendToClient, OnSendToIRC, OnJoining, OnMode2, OnChanBufferPlayLine2, OnPrivBufferPlayLine2. * Add methods to CString: StartsWith, EndsWith, Join, Find, Contains, and Convert. * Add limited support for using threads in modules: CModuleJob class. * Inherit CClient and CIRCSock from a common class CIRCSocket. * Add CZNC::CreateInstance to make porting ZNC to MSVC a bit easier. * Add CUtils::Get/SetMessageTags(). * Add CIRCNetwork::FindChans(). * Add CChan::SendBuffer(client, buffer) overload. * Add CIRCNetwork::LoadModule() helper. * Add CClient::IsPlaybackActive(). * Web: Discard sessions in LRU order. * Introduce CaseSensitivity enum class. * Fix CNick::Parse(). * Remove redundant CWebSocket::GetModule(). * Switch from CSmartPtr to std::shared_ptr. * Fix GetClients() const correctness. * Make self-signed cert with SHA-256, provide DH parameters in --makepem. * Use override keyword. * Show username of every http request in -D output. * Split CUserTimer into CIRCNetworkPingTimer and CIRCNetworkJoinTimer. * Give a reason for disabled features during ./configure, where it makes sense. * Use make-tarball.sh for nightlies too. * Revise CChan::JoinUser() & AttachUser(). * Modules: use public API. * Modules: use AddCommand(). * Add ChangeLog.md. # ZNC 1.4 (2014-05-08) This release is done to fix a denial of service attack through webadmin. After authentication, users can crash ZNC through a use-after-delete. Additionally, a number of fixes and nice, low-risk additions from our development branch is included. In detail, these are: ## New * Reduce users' confusion during --makeconf. * Warn people that making ZNC listen on port 6667 might cause problems with some web browsers. * Always generate a SSL certificate during --makeconf. * Stop asking for a bind host / listen host in --makeconf. People who don't want wildcard binds can configure this later. * Don't create ~/.znc/modules if it doesn't exist yet. ## Fixes * Fix a use-after-delete in webadmin. CVE-2014-9403 * Honor the BindHost whitelist when configuring BindHosts in controlpanel module. * Ignore trailing whitespace in /znc jump arguments. * Change formatting of startup messages so that we never overwrite part of a message when printing the result of an action. * Fix configure on non-bash shells. * Send the correct error for invalid CAP subcommands. * Make sure znc-buildmod includes zncconfig.h at the beginning of module code. ## Modules * Make awaystore automatically call the Ping command when the Back command is used. * Add SSL information and port number to servers in network list in webadmin. * Disable password autocompletion when editing users in webadmin. * Make nickserv module work on StarChat.net and ircline.org. * Remove accidental timeout for run commands in shell module. * certauth now uses a case insensitive comparison on hexadecimal fingerprints. ### controlpanel * Correct double output. * Add support for the MaxNetworks global setting. * Add support for the BindHost per-network setting. ### modperl and modpython * Make OnAddNetwork and OnDeleteNetwork module hooks work. * Don't create .pyc files during compilation. * Fix modperl on MacOS X. Twice. * Require at least SWIG 2.0.12 on MacOS X. ## Internal * Don't redefine _FORTIFY_SOURCE if compiler already defines it. * Cache list of available timezones instead of re-reading it whenever it is needed. * Improve const-correctness. * Fix various low-priority compiler warnings. * Change in-memory storage format for ServerThrottle. * Use native API on Win32 to replace a file with another file. * Add src/version.cpp to .gitignore. # ZNC 1.2 (2013-11-04) ## New * ZNC has been relicensed to Apache 2.0 * Show password block in --makepass in new format * Return MaxJoins setting, it helps against server sending ZNC too many lines at once and disconnecting with "Max SendQ exceeded" * Make /znc detach case insensitive, allow "/detach #chan1,#chan2" syntax * No longer store 381 in the buffer ## Fixes * CModule::OnMode(): Fix a stupid NULL pointer dereference * Fix NULL pointer dereference in webadmin. * Fix a crash when you delete a user with more than one attached client * Fix a random crash with module hooks * Revert "Rewrite the JOIN channel logic, dropping MaxJoins" * Fix build on some systems * Fix build of shallow git clone * Fix build of git tags * Fix OOT builds with swig files in source dir * Don't send NAMES and TOPIC for detached channels when a client connects * Fix memory leak * Consistency between Del* and Rem* in command names * Fix changing client nick when client connects. * Timezone GMT+N is really GMT+N now. It behaved like -N before. * Escape special characters in debug output (znc --debug) * Don't disconnect networkless users without PINGing them first. * Don't lose dlerror() message. * Fix use-after-free which may happen during shutdown * Fix "Error: Success" message in SSL * Fixed double forward slashes and incorrect active module highlighting. * make clean: Only delete files that can be regenerated * Don't make backup of znc.conf readable by everyone. * makepem: create pem only rw for the user, on non-win32 * Don't ever try to overwrite /usr/bin/git * Fix user modes * Request secure cookie transmission for HTTPS * "make clean" removes .depend/ * Fix support for /msg @#chan :hi * Fix saving config on some cygwin installations * Fix error message for invalid network name ## Modules * Return old fakeonline module (accidentally removed in 1.0) as modules_online * autoattach: add string searching * autocycle: Convert to a network module * chansaver: Fix chansaver to not rewrite the config each time a user joins a channel on startup * cert: Make default type of cert mod to be network. * watch: Don't handle multiple matching patterns for each target * route_replies: Add some WHOIS numerics * block_motd: Allow block_motd to be loaded per-network and globally * notify_connect: Fixed syntax on attach/detach messages to be more consistent * cyrusauth: Fix user creation ### controlpanel * Support network module manipulation * Increases general verbosity of command results. * Fix bug for "Disconnect" help * Standardize error wordings ### webadmin * Allow loading webadmin as user module. * Show instructions on how to use networks in Add Network too * clarify that + is SSL * Show example timezone in webadmin * Enable embedding network modules. * Enable embedding modules to network pages. * Change save network to show the network and not redirect user ### sasl * Implement DH-AES encrypted password scheme. * Add missing length check * Description line for DH-BLOWFISH * Fixing unaligned accesses ### awaystore * Fix loading old configs which refered to "away" module * Fix displaying IPv6 addresses ### crypt * Add time stamp to buffered messages * Use ASCII for nick prefix and make it configurable ### nickserv * Make NickServ nickname configurable. * Add support for NickServ on wenet.ru and Azzurra * nickserv: don't confuse people so much ### log * Add -sanitize option to log module. * Convert / and \ character to - in nicks for filenames. * Create files with the same permissions as the whole log directory. ### charset * Don't try to build charset module if iconv is not found * Fix: Converted raw string include NULL character in charset module ### modperl * A bit more debug output on modperl * Fix perl modules being shown incorrectly in the webadmin ### partyline * Fix PartyLine so that forced channels may not be left at all - users will be rejoined at once. * Fix partyline rejoin on user deletion ## Internal * Require SWIG 2.0.8 for modperl/modpython (removes hacks to make older SWIG work) * Web interface now supports gzip compression * Update server-time to new specs with ISO 8601 * Add a generic threads abstraction * Add CString::StripControls to strip controls (Colors, C0) from strings * Change PutModule to handle multiple lines * Debug output: Only print queued lines if they are really just queued * Add initial unit tests, runnable by "make test" * Add nick comparison function CNick::NickEquals * Force including zncconfig.h at the beginning of every .cpp * Add OnAddNetwork, OnDeleteNetwork module hooks # ZNC 1.0 (2012-11-07) ## The Big News Multiple networks per user Think about new users as "user groups", while new networks are similar to old users. To login to ZNC, use user/network:password as password, or user/network as username. Also, you can switch between different networks on the fly using the /znc JumpNetwork command. When you first run ZNC 1.0, it will automatically convert your config and create a network called "default" for each user. Settings from each user are moved into these "default" networks. When you log into ZNC without setting a network, the "default" network will automatically be chosen for you. Users can create new networks up to an admin-configurable limit. By default, this limit is one network per user. Existing user-per-network setups can be migrated to the new multinetwork setup using the /znc MoveNetwork command. You can see a list of networks via /znc ListNetworks and /znc ListAllUserNetworks. ## Timezones Timezone can now be configured by name, e.g. "GMT-9", or "Europe/Madrid". Old TimezoneOffset setting (which was the number of hours between the server's timezone and the user's timezone) is deprecated and should not be used anymore. Its old value is lost. The reason for this change is that the old TimezoneOffset was not trivial to count and often broke during switches to/from daylight savings time. So if you previously used the TimezoneOffset option, you now have to configure your timezone again (via the webadmin or controlpanel module). ## No more ZNC-Extra Most modules from ZNC-Extra are now enabled in the usual installation. It was pointless to have them shipped in the tarball, but requiring user to add some weird flags to ./configure. Antiidle, fakeonline and motdfile modules are dropped. Away module is renamed to awaystore to better explain its meaning. ## Fixes * Don't try IPv6 servers when IPv6 isn't available. Use threads for non-blocking DNS instead of c-ares. * Fix debug output of identfile. * Don't forward WHO replies with multi-prefix to clients which don't support multi-prefix * Send nick changes to clients before we call the OnNick module hook * Don't connect to SSLed IRC servers when ZNC is compiled without SSL support * Fix check for visibility support in the compiler * Fix compilation on cygwin again, including modperl and modpython * Support parting several channels at once * Fix a crash in admin (now controlpanel) module * Fix webadmin to deny setting a bindhost that is not on the global list of allowed bindhosts. * Fix using empty value for defaults in user page in webadmin. ## Minor Stuff * Rename admin module to controlpanel to make it clearer that it's not the same as admin flag of a user. * Add protection from flood. If you send multiple lines at once, they will be slowed down, so that the server will not disconnect ZNC due to flood. It can be configured and can be completely turned off. Default settings are: 1 line per second, first 4 lines are sent at once. * Modules can support several types now: a module can be loaded as a user module, as a network module and as a global module, if the module supports these types. * Rename (non-)KeepBuffer to AutoClearChanBuffer * Process starttls numeric * Improvements to modperl, modpython, modtcl. * Add timestamps to znc --debug * Listeners editor in webadmin * Add sasl module which uses SASL to authenticate to NickServ. * Rename saslauth to cyrusauth, to make it clearer that it's not needed to do SASL authentication to NickServ. * Modules get a way to describe their arguments. * webadmin: allow editing of the bindhost without global list. * Don't send our password required notice until after CAP negotiation * Rewrite the JOIN channel logic, dropping MaxJoins * Support messages directed to specific user prefixes (like /msg @#channel Hello) * Show link to http://znc.in/ from web as a link. It was plain text before. * Webadmin: use HTML5 numeric inputs for numbers. * Add SSL/IPv6/DNS info to znc --version * Clarify that only admins can load the shell module. * cyrusauth: Allow creating new users on first login * Clear channel buffers when keep buffer is disabled if we're online * send_raw: Add a command to send a line to the current client * webadmin: Implement clone user * autoreply: Honor RFC 2812. * Add 381 to the buffer ("You are now an IRC Operator") * identfile: Pause the connection queue while we have a locked file * Add ShowBindHost command * autoop: Check for autoops when we get op status * Improvements and fixes to the partyline module * partyline Drop support for fixed channels * Check that there're modules available on startup. Check if ZNC is installed or not. * Modified description field for bouncedcc module to explain what the module actually does. * nickserv: add support for nickserv requests on wenet.ru and rusnet. * send 422 event if MOTD buffer is empty * route_replies: Handle much more replies * Clear text colors before appending timestamps to buffer lines, add space before AppendTimestamp for colorless lines. * Don't replace our motd with a different servers motd * webadmin: Add a "Disabled" checkbox for channels * Send a 464 ERR_PASSWDMISMATCH to clients that did not supply a password * Separate compilation and linking for modules. * Trim spaces from end of commands to autoattach. * nickserv: add ghost, recover and release * Warn if config was saved in a newer ZNC version. * Backup znc.conf when upgrading ZNC. ## Internal Stuff * #include instead of #include "...h" * Add string formatting function with named params. * Python, perl: support global, user, network modules. * Csock: able use non-int number of secs for timer. * CString("off").ToBool() shouldn't be true * Python: Override __eq__ to allow comparison of strings * python: Allow iterating over CModules * Add methods to CModule to get the web path * Rework modperl to better integrate with perl. * Store all 005 values in a map. * Python: Use znc.Socket if no socket class is specified in CreateSocket() * CZNC::WriteConfig(): Better --debug output * Slight refactor of CBuffer & CBufLine. * Implemented an OnInvite hook * Allow a client to become "away" * Create a connection queue * Set default TrimPrefix to ":" * Add a config writer * Wrap MODULECALL macros in a do-while * Don't require CTimer's label to be unique if its empty * Allow loading python modules with modpython (ex. modname/__init__.py) * bNoChange in On{,De}{Op,Voice} wast incorrect * Drop znc-config, change znc-buildmod so it doesn't need znc-config # ZNC 0.206 (2012-04-05) ## Fixes * Identfile: don't crash when ZNC is shutting down. * CTCPReplies setting with empty value now blocks those CTCP requests to the client. * Show more sane error messages instead of "Error: Success". * Imapauth: Follow RFC more closely. * "No" is a false value too. ## Minor stuff * Add Show command to identfile, which should help you understand what's going on, if identfile is blocking every connection attempt for some reason. * Make TLS certs valid for 10 years. * Ask for port > 1024 in --makeconf. * Reset JoinTries counter when we enable a channel. # ZNC 0.204 (2012-01-22) This release fixes CVE-2012-0033, http://www.openwall.com/lists/oss-security/2012/01/08/2 https://bugs.gentoo.org/show_bug.cgi?id=CVE-2012-0033 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-0033 ## Fixes * Fix a crash in bouncedcc module with DCC RESUME. * Fix modperl compilation. * Don't use mkdir during install. * Fix compilation failures, which happened sometimes when an older ZNC was already installed. * Check for the swig2.0 binary too, instead of only swig. ## Minor stuff * Unload modules in reverse order. * Don't send server redirects (numeric 010) to clients. * Make it possible to filter the result of the help command. * Drop @DEFS@ from the build system so that we don't force HAVE_CONFIG_H upon others. * Move autocycle to extra. * Handle raw 482 in route_replies. * Improve identfile's debug messages. * Send a MODE request when JOINing. * Block raw 301 in antiidle. # ZNC 0.202 (2011-09-21) This is a bugfix-mostly release. ## Fixes * Fix a crash when a user changes the buffer size of a channel. * Fix a NULL pointer dereference in buffer-related module hooks. * Fix the autocycle module to not fight with ChanServ. * Fix the getchan command in the admin module. * Don't timeout bouncedcc connections so that idling DCC chats are possible. * Fix build error when compiling against uclibc(++). ## Minor stuff * Improve the timeout message in the route_replies module. * Add the -r parameter to the man page of ZNC. * Install .py files along with .pyc. # ZNC 0.200 (2011-08-20) ## The Big News * Move ident spoofing from ZNC core into new identfile module. * Move dcc handling from ZNC core into new modules bouncedcc and dcc. * Remove the obsolete fixfreenode module. * New module: cert * Move away into ZNC-Extra. ## Fixes * In ZNC 0.098 there was a memleak whenever someone JOINs a channel. * Compile even when OpenSSL was built with no-ssl2. * Correctly handle excessive web sessions. * Correctly save non-ASCII characters to the NV. * Fix znc-buildmod when ZNC was compiled out of tree. * Don't always use IPv6 when verifying the listener in --makeconf. ## Minor Things * Remove a pointless MODE request which ZNC sent on every JOIN. * Raise ZNC's timeouts. * Log's logging path becomes configurable. * Add a replay command to away. * Add a get command to notes. * Add -disableNotesOnLogin argument to notes. * Add hostmask handling to autoattach. * Make it possible for modules to provide additional info, e.g. providing a homepage URL. * Various improvements to modpython. * Hardcode a default entry for the CN in znc --makepem. * Work around Mac OS' and Solaris' brokenness. * Make ZNC compile without getopt_long(). This fixes compilation on e.g. Solaris 9 and hopefully Irix. * Check for errors like "no space left on disk" while writing the config file. * Improve the error handling when reading the config. * Move module data files to own directory in the source and in installation prefix. * Handle Listeners after SSLCertFile during startup. * Check for required SWIG version in ./configure. * Make it possible to use ExpandString-stuff in QuitMsg. * znc-buildmod: Print ZNC's version number. * Add config option ProtectWebSessions which makes it possible to disable the IP check for web sessions. ## Internal Stuff * Build modules with hidden symbol visibility. * Clean up includes. This might break external modules. * New CModCommand for simplifiying module commands. * Add the OnIRCConnectionError(CIRCSock *pIRCSock) module hook * Remove config-related module hooks. * Fix CString::Escape_n() * Make the CUser::IsIRCConnected method check if ZNC already successfully logged in to IRC. * and more... # ZNC 0.098 (2011-03-28) ## New stuff * Add a list of features to the output of /znc version. (cce5824) * Add modpython. (a564e2) (88c84ef) (1854e1) (9745dcb) (644632) (4c6d52c) (b7700fe) (0f2265c) * Verify during --makeconf that the specified listener works. (11ffe9d) * Add TimestampFormat and StatusPrefix settings to admin. (853ddc5) * Add DCCBindHost, channel keys and some more to webadmin. (570fab6) (eb26386) (1e0585c) * Add a web interface to listsockets. (144cdf) * Add a web interface to perform. (c8910c) (89edf703) (ba183e46) * Don't reply to CTCP floods. (142eeb) * Accept wildcards for /znc DetachChan, EnableChan, ClearBuffer and SetBuffer. (e66b24) * Added reconnect and disconnect commands to admin. (65ae83) * Moved from SourceForge to GitHub. (daa610) (ed17804) (86c0e97) (e6bff0c) (087f01) * Don't force --foreground when compiling with --enable-debug. (778449) (fbd8d6) * Add functions for managing CTCPReplies to admin. (3f0e200) * Allow omitting user names with some commands in admin. (4faad67) * Some fixed with ISpoofFile and SSLCertFile paths which use "~". (cd7822) (f69aeff) (ce10cee) ## Fixes * Send more than a single channel per JOIN command. (3327a97) (6a1d27) * Properly unload perl modules so that their code is reread on next load. (ce45917) * Make certauth remember its module list across restarts again. (451b7e32) * Ignore dereferenced sockets in listsockets. (50b57b) * Fix a cross-compilation problem in configure. (d9b4ba1) * Bind web sessions to IP addresses. (577a097) (4556cc) * Limit the number of web sessions per IP. (913a3c8) (bf6dc45) * Build on cygwin again. (37b70a) * Allow admins to ignore MaxBufferSize in webadmin. (b37e23) * Fix some compiler warning generated by clang. (c7c12f0) * Call modules for mode-changes done by not-in-channel nicks. (a53306) * Fix installation with checkinstall and the permissions of some static data. (4c7808) (3d3235) ## Minor stuff * Properly report errors in admin's addserver command. (ed924cb) * Improvements of modperl. (1baa019) (12b1cf6) (7237b9) (ece2c88) * Check for modperl that we have at least Perl 5.10. (0bc606) * Verify in configure that tcl actually works. (89bd527) * Add a warning header to znc.conf that warns about editing the file. (2472ea) (8cadb6) * Improve the ISpoof debug output. (128af8e) * Improve HTTP client-side caching for static files. (9ef41ae) (4e5f9e8) * Removed all generated/copied scripts from the repo. (fde73c60) (9574d6) (e2ce2cf) (5a6a7b) * Only allow admins to use email. (81c864) * Make clearbufferonmsg clear the buffer a little less often. (ddd302fbf) * Make the output from /znc help smaller. (0d928c) * Add a web interface to send_raw. (d8b181) (a93a586) ## Internal stuff * Some optimizations with lots of users and channels. (b359f) (5e070e) * Various changes to the Makefiles. (33e1ccc) (0ad5cf) (df3409) (e17348c) (936b43) (18234a) (0cc8beb) (d21a1be) (517307b) (40632f) (afa16df) (4be0572) (452e3f) (9fec8f) (f76f1e7) (6b396f) * Added a third argument to the OnPart module hook. (a0c0b7) (1d10335) (e4b48d5) * Added vim modelines to some files. (dc8a39) * Added an auto-generated zncconfig.h (8a1c2a4) (aeeb1eb3) (f4927709) (40a1bb) (3ecbf13) (87037f) (b6c8e1) * Update to latest Csocket. (cc552f) * Handle paths like "~/foo" in CFile. (cb2e50a) * Add some generic interface for module commands. (ebd7e53) (8e59fb9) (31bbffa) * CUser::m_sUserName was made const. (d44e590) # ZNC 0.096 (2010-11-06) ## New stuff * Added a new module: clearbufferonmsg. (r2107) (r2151) * Added an optional server name argument to /znc jump. (r2109) * Big overhaul for modperl. (r2119) (r2120) (r2122) (r2123) (r2125) (r2127) (r2133) (r2136) (r2138) (r2140) (r2142) (r2143) (r2144) (r2146) (r2147) (r2156) (r2160) * Modules can now directly influence other modules' web pages. (r2128) (r2129) (r2130) (r2131) (r2132) (r2134) (r2135) ## Fixes * The route_replies module now handles "354" who replies. (r2112) * Fixed a bogus "invalid password" error during login with some clients. (r2117) * Reject long input lines on incoming connections. (r2124) * The lastseen module should only link to webadmin if the latter is loaded. (r2126) * Fixed cases where HTTP requests were incorrectly dropped. (r2148) (r2149) * Fixed partyline to work with servers that don't send a 005 CHANTYPES. (r2162) * Fixed error message from configure if dlopen() isn't found. (r2166) ## Minor stuff * Renamed "vhost" to "bindhost" to better describe what the option does. (r2113) * Honor timezone offset in the simple_away module. (r2114) * Load global modules as soon as their config line is read. (r2118) * Use poll() instead of select() by default. (r2153) (r2165) * Ignore the channel key "*" in the chansaver module. (r2155) ## Internal stuff * Fixed some function prototypes. (r2108) * Rearranged ZNC's CAP handling to IRCds. (r2137) * Added more doxygen comments. (r2139) (r2145) (r2150) (r2152) (r2154) (r2157) * Removed some useless typedefs. (r2158) * Clean up the lastseen module. (r2163) (r2164) # ZNC 0.094 (2010-08-20) ## New stuff * Add new global setting MaxBufferSize instead of hardcoding a value. (r2020) (r2025) * Support CAP. (r2022) (r2024) (r2027) (r2041) (r2048) (r2070) (r2071) (r2097) (r2098) (r2099) (r2100) * Add new module certauth which works similar to certfp. (r2029) * route_replies now also supports routing channel ban lists, ban exemptions and invite exceptions. (r2035) * Add a -nostore flag to the away module. (r2044) * Add a new config option SSLCertFile. (r2086) (r2088) ## Fixes * Fix configure to automatically disable modperl if perl is not found. (r2017) * Include the port number in cookie names to make them unique across different znc instances on the same box. (r2030) * Make sure that we have at least c-ares 1.5.0. (r2055) * Make znc work on solaris. (r2064) (r2065) (r2067) (r2068) * Improve configure's and make's output. (r2079) (r2080) (r2094) (r2101) * Complain about truncated config files. (r2083) * Fix some std::out_of_range error triggerable by people with a valid login. (r2087) (r2093) (r2095) * Make fakeonline behave while we are not connected to an IRC server. (r2091) * Always attach to channels when joining them. (r2092) * Fix a NULL pointer dereference in route_replies. (r2102) (r2103) ## Minor stuff * Allow leading and trailing spaces in config entries. (r2010) * Various minor changes. (r2012) (r2014) (r2021) * Use pkg-config for finding openssl, if it's available. We still fall back to the old code if this fails. (r2018) * znc no longer accepts an alternative file name for znc.conf as its argument. (r2037) * Generate correct HTTP status codes in webmods and make sure this doesn't happen again. (r2039) (r2040) * Rewrite our PING/PONG handling. (r2043) * Raise the size of the query buffer to 250. (r2089) * Update to latest Csocket. (r2096) ## Internal stuff * Remove the fake module usage in WebMods. (r2011) * Remove fake modules completely. (r2012) (r2015) * Make CTable more robust. (r2031) * Move the OnKick() module call so it is issued when the nick still is visible in the channel. (r2038) * Remove CZNC::GetUser() since CZNC::FindUser() does the same. (r2046) * Minor changes to webmod skins. (r2061) (r2062) * Add new macros GLOBALMODULECALL and ALLMODULECALL. (r2074) (r2075) (r2076) * Remove a bogus CClient* argument from some module calls. (r2077) * Mark some functions as const. (r2081) (r2082) (r2084) (r2085) # ZNC 0.092 (2010-07-03) This is a bugfix-only release, mainly for fixing CVE-2010-2488. ## Fixes * ZNC wrongly counted outgoing connections towards the AnonIPLimit config option. (r2050) * The traffic stats caused a NULL pointer dereference if there were any unauthenticated connections. CVE-2010-2488 (r2051) * Csocket had a bug where a wrong error message was generated and one that caused busy loops with c-ares. (r2053) # ZNC 0.090 (2010-06-06) ## Upgrading from previous versions ## Errors during start-up The shell, email and imapauth modules have been moved from the regular module set to the "extra" set, you have to use --enable-extra with ./configure to compile them. So, to fix these errors, edit the znc.conf file in ~/.znc/configs and don't load those modules, or recompile znc with extra. ### WebMods While previously only the "webadmin" provided an HTTP server/interface, the HTTP server is now integrated into ZNC's core. This means that all modules (not only webadmin) can now provide web pages. Examples shipping with ZNC are lastseen, stickychan and notes. Old-style module arguments to webadmin will be automatically converted to the new syntax. Please note that the WebMods interface uses session cookies instead of 'Basic' HTTP authentication. All URLs to webadmin's settings pages have changed. Please adjust your scripts etc. if necessary. ### Running without installing If you want to run ZNC without doing make install, i.e. if you want to run it from the source dir, you will have to add --enable-run-from-source as an argument to ./configure. You do not have to care about this if you use a --prefix= or if you install ZNC system-wide. ### I upgraded and WebAdmin/WebMods is acting weird, Log Out does not work. Starting with 0.090, ZNC uses cookies instead of HTTP Basic authentication. If your browser is still sending the Basic credentials to ZNC, e.g. because you have saved them in a bookmark, or password manager, or simply haven't restarted your browser in a while, those will continue to work, even after you click the Log Out button. To fix this, remove any user:pass@host portions from your bookmarks, remove all entries for ZNC's web interface from your password manager, and restart your browser. ## New stuff * Webmods - Every module can now provide its own webpages. (r1784) (r1785) (r1787) (r1788) (r1789) (r1790) (r1791) (r1792) (r1793) (r1795) (r1796) (r1797) (r1800) (r1801) (r1802) (r1804) (r1805) (r1806) (r1824) (r1825) (r1826) (r1827) (r1843) (r1844) (r1868) (r1886) (r1888) (r1915) (r1916) (r1931) (r1934) (r1870) (r1871) (r1872) (r1873) (r1874) (r1875) (r1876) (r1879) (r1887) (r1891) (r1967) (r1982) (r1984) (r1996) (r1997) (r2000) (r2002) (r2003) * Webmods and thus webadmin now use cookies for managing sessions instead of HTTP authentication. (r1799) (r1819) (r1823) (r1839) (r1840) (r1857) (r1858) (r1859) (r1861) (r1862) * WebMod-enabled lastseen, stickychan modules. (r1880) (r1881) (r1889) (r1918) * Partyline now also handles notices, /me and CTCP. (r1758) * Partyline now saves channel topics across restarts. (r1898) (r1901) * Added a "number of channels" column to /znc listusers. (r1769) * Added an optional user name argument to /znc listchans. (r1770) * Support for the general CAP protocol and the multi-prefix and userhost-in-names caps on connections to the IRC server. (r1812) * ZNC can now listen on IPv4-only, IPv6-only or on both-IP sockets. Renamed "Listen" config option to "Listener". (r1816) (r1817) (r1977) * Added LoadModule, UnLoadModule, ListMods commands to the Admin module. (r1845) (r1864) * Added ability to set/get TimezoneOffset to the Admin module. (r1906) * Added "Connect to IRC + automatically re-connect" checkbox to webadmin. (r1851) * Remember "automatically connect + reconnect" flag across restarts by writing it to the config file. (r1852) * Added AddPort, DelPort, ListPorts command to *status. (r1899) (r1913) * Added optional quit message argument to disconnect command. (r1926) * Added new charset module to extra. (r1942) (r1947) (r1977) (r1985) (r1994) * Added a traffic info page to webadmin. (r1958) (r1959) ## Fixes * Don't let ZNC connect to itself. (r1760) * Added a missing error message to /znc updatemod. (r1772) * Generate cryptographically stronger certificates in --makepem. (r1774) * Autoattach now triggers on channel actions. (r1778) * --disable-tcl now really disables TCL instead of enabling it. (r1782) * User name comparison in blockuser is now case-sensitive. (r1786) * Fixed /names when route_replies is loaded. (r1811) * autoreply now ignores messages from self. (r1828) * Don't forward our own QUIT messages to clients. (r1860) * Do not create empty directories if one does ./znc --datadir=NON_EXISTING_DIR. (r1878) * Query to Raw send the command to IRC instead of to the client. (r1892) * Fixed desync in Partyline after addfixchan or delfixchan. (r1904) * Save passwords for Nickserv module as NV instead of keeping them as arguments. (r1914) * CSRF Protection. (r1932) (r1933) (r1935) (r1936) (r1938) (r1940) (r1944) * Fixed a rare configure failure with modperl. (r1946) * disconkick now only sends kicks for channels the client actually joined. (r1952) * More sanity checks while rewriting znc.conf. (r1962) * Fixed static compilation with libcrypto which needs libdl by checking for libdl earlier. (r1969) * Fixed modtcl with newer tcl versions. (r1970) * Better error message if pkg-config is not found. (r1983) * Fixed a possible race condition in autoop which could cause bogous "invalid password" messages. (r1998) ## Minor stuff * Fixed a memory leak and some coding style thanks to cppcheck. (r1761) (r1762) (r1763) (r1764) (r1776) (r1777) * Updated to latest Csocket. (r1766) (r1767) (r1814) (r1905) (r1930) * Cleanup to /znc help. (r1771) * Removed --disable-modules. Modules are now always enabled. (r1794) (r1829) * saslauth: Error out "better" on invalid module arguments. (r1809) * Changed the default ConnectDelay from 30s to 5s. (r1822) * Misc style/skin fixes to webadmin/webmods. (r1853) (r1854) (r1856) (r1883) (r1884) (r1885) (r1890) (r1900) (r1907) (r1908) (r1909) (r1911) (r1912) (r1917) (r1945) (r2005) * Do not expose ZNC's version number through the web interface unless there's an active user session. (r1877) * Updated AUTHORS file. (r1902) (r1910) (r1999) * Moved some modules into/out of extra. (r1919) (r1922) (r1923) * Added ./configure --enable-run-from-script, without it ZNC will no longer look for modules in ./modules/. (r1927) (r1928) (r2001) * Made a dedicated page to confirm user deletion in webadmin. (r1937) (r1939) (r1941) (r1943) * Use spaces for seperating ip addresses from ports. (r1955) * ZNC's built-in MOTD now goes through ExpandString. (r1956) * Check for root before generating a new config file. (r1988) * Added a flag for adding irc-only / http-only ports via /znc addport. (r1990) (r1992) ## Internal stuff * Minor cleanup to various places. (r1757) (r1759) (r1846) (r1847) (r1863) (r1865) (r1920) (r1921) (r2004) * Changes in configure. (r1893) (r1894) (r1895) (r1896) (r1897) * Flakes messed with the version number. (r1768) * CString::Split() now Trim()s values before pushing them if bTrimWhiteSpace is true. (r1798) * Added new module hooks for config entries. (r1803) (r1848) (r1849) (r1850) * New module hook OnAddUser(). (r1820) (r1821) * Cleanup to ISUPPORT parser. (r1807) * Use Split() instead of Token() where possible. (r1808) * Modularize CIRCSock::ForwardRaw353(). (r1810) * Use a better seed for srand(). (r1813) * Changes to debug output. (r1815) (r1836) (r1837) (r1855) (r1882) * Support for delayed HTTP request processing. (r1830) (r1833) (r1834) (r1835) (r1838) (r1841) (r1842) * Fixed CSmartPtr's operator==. (r1818) * Better port/listener management exposed through CZNC. (r1866) (r1867) * Move CListener and CRealListener into their own files. (r1924) * Move the HTTP/IRC switching to CIncomingConnection. (r1925) * Add IsIRCAway() to CUser. (r1903) * Move some common pid file code into new InitPidFile(). (r1929) * Templates can now sort loops based on a key. (r1948) (r1949) (r1951) (r1953) (r1954) * A lot of work went into this release, we would like to thank everyone who contributed code, helped testing or provided feedback. # ZNC 0.080 (2010-02-18) ## New stuff * Update to latest Csocket. (r1682) (r1727) (r1735) (r1751) (r1752) (r1753) * Only allow admins to load modtcl unless -DMOD_MODTCL_ALLOW_EVERYONE is used. (r1684) * Include /me's in the query buffer. (r1687) * Some tweaks to savebuff to differentiate it more from buffextras. (r1691) (r1692) * send_raw can now also send to clients. (r1697) * Move the "Another client authenticated as you"-message into new module clientnotify. (r1698) * Imported block_motd module into extra. (r1700) * Imported flooddetach into extra. (r1701) (r1717) * Added new setting ServerThrottle which sets a timeout between connections to the same server. (r1702) (r1705) * Only ask for the more common modules in --makeconf. (r1706) * Use UTF-8 as default charset for webadmin. (r1716) * Revamped default webadmin skin. It's very grayish, but looks way more like 2010 than the old default skin does. (r1720) * New font style for the "ice" webadmin skin. (r1721) * Added a summary line to /znc listchans. (r1729) * The admin module can now handle more settings and got some missing permission checks added. (r1743) (r1744) (r1745) (r1746) (r1747) ## Fixes * Apply new ConnectDelay settings immediately after a rehash. (r1679) * Do a clean shutdown just before a restart. (r1681) * Fix a theoretical crash in modtcl. (r1685) * Users should use the correct save and download path after Clone(). (r1686) * Several improvements to znc-buildmod. (r1688) (r1689) (r1690) (r1695) * Fix a crash with modperl by loading modules differently. (r1714) * Fix HTTP Cache-Control headers for static files served by webadmin. (r1719) * Send the nicklist to a user who is being force-rejoined in partyline. (r1731) * Set the issuer name in CUtils::GenerateCert(). (r1732) * Fixed some inconsistency with /znc reloadmod. (r1749) * Added a work-around for SSL connections which incorrectly errored out during handshake. (r1750) ## Minor stuff * Don't try to catch SIGILL, SIGBUS or SIGSEGV, the default action will do fine. (r1680) * Added IP-address to messages from notify_connect. (r1699) * Switched to Csocket's own c-ares code. (r1704) (r1707) (r1708) (r1709) (r1710) (r1712) (r1713) * Add more doxygen comments. (r1715) (r1718) (r1737) * Removed useless "add your current ip" checkbox from webadmin's edit user page. (r1722) * Don't try to request a MOTD if there is none. (r1728) ## Internal stuff * It's 2010, where's my hoverboard? (r1693) * Got rid of Timers.h. (r1696) * Added a Clone() method to CNick. (r1711) * Call OnChanAction() after OnChanCTCP(). (r1730) * Random cleanups to CFile::Delete(). (r1694) * Other random cleanups. (r1723) (r1724) (r1725) (r1726) (r1736) * Move the implementation of CSocket to Socket.cpp/h. (r1733) # ZNC 0.078 (2009-12-18) ## New stuff * Add a DCCVHost config option which specifies the VHost (IP only!) for DCC bouncing. (r1647) * Users cloned via the admin module no longer automatically connect to IRC. (r1653) * Inform new clients about their /away status. (r1655) * The "BUG" messages from route_replies can now be turned off via /msg *route_replies silent yes. (r1660) * Rewrite znc.conf on SIGUSR1. (r1666) * ISpoofFormat now supports ExpandString. (r1670) ## Fixes * Allow specifing port and password for delserver. (r1640) * Write the config file on restart and shutdown. (r1641) * Disable c-ares if it is not found unless --enable-c-ares was used. (r1644) (r1645) * blockuser was missing an admin check. (r1648) * Sometimes, removing a server caused znc to lose track of which server it is connected to. (r1659) * Include a more portable header for uint32_t in SHA256.h. (r1665) * Fixed cases where ZNC didn't properly block PONG replies to its own PINGs. (r1668) * Fixed a possible crash if a client disconnected before an auth module was able to verify the login. (r1669) * Away allowed to accidentally execute IRC commands. (r1672) * Correctly bind to named hosts if c-ares is enabled. (r1673) * Don't accept only spaces as QuitMsg because this would cause an invalid config to be written out. (r1675) ## Minor stuff * Comment out some weird code in Client.cpp. (r1646) * Remove connect_throttle since it's obsoleted by fail2ban. (r1649) * Remove outdated sample znc.conf. (r1654) * route_replies now got a higher timeout before it generates a "BUG" message. (r1657) * Documented the signals on which znc reacts better. (r1667) ## Internal stuff * New module hook OnIRCConnecting(). (r1638) * Remove obsolete CUtils::GetHashPass(). (r1642) * A module's GetDescription() now returns a C-String. (r1661) (r1662) * When opening a module, check the version number first and don't do anything on a mismatch. (r1663) # ZNC 0.076 (2009-09-24) ## New stuff * Add a make uninstall Makefile target. (r1580) * Imported modules from znc-extra: fixfreenode, buffextras, autoreply, route_replies, adminlog. (r1591) (r1592) (r1593) (r1594) (r1595) * Imported the rest of znc-extra under modules/extra hidden behind configure's --enable-extra. (r1605) (r1606) (r1608) (r1609) (r1610) * ZNC now uses SHA-256 instead of MD5 for hashing passwords. MD5 hashes still work correctly. (r1618) ## Fixes * Don't cache duplicate raw 005 (e.g. due to /version). (r1579) * Send a MODE removing all user modes to clients when we lose the irc connection. (r1583) * Use a nickmask instead of a nick as the source for ZNC-generated MODE commands. (r1584) * Use the right error codes if startup fails. (r1585) * Fix a NULL pointer dereference in some of the ares-specific code. (r1586) * VHost and Motd input boxes in graphiX and dark-clouds in webadmin didn't insert newlines. (r1588) * Generate proper error messages when loading modules. This was broken since znc 0.070. (r1596) * Allow unloading of removed modules. This was broken since znc 0.070. (r1597) * Fix savebuff with KeepBuffer = false. (r1616) * Fix accidental low buffer size for webadmin sockets. (r1617) * AltNicks are no longer truncated to 9 characters. (r1620) * Webadmin can now successfully add new admin users and have them load the shell module. (r1625) * Webadmin no longer includes the znc version in the auth realm. (r1627) * CUser::Clone now handles modules after all other settings, making it work with shell. (r1628) * Some CSS selectors in webadmin's dark-clouds and graphiX skins were wrong. (r1631) * The help of admin was improved. (r1632) (r1633) ## Minor stuff * make distclean now also removes the pkg-config files. (r1581) * Add the autoconf check for large file support. (r1587) * Generic "not enough arguments" support for route_replies and some fix for /lusers. (r1598) (r1600) * ZNC now tries to join channels in random order. (r1601) (r1602) (r1603) * route_replies now handles "No such channel" for /names. (r1614) * Fixes a theoretical crash on shutdown. (r1624) * saslauth was moved to znc-extra. (r1626) ## Internal stuff * Now using autoconf 2.64. (r1604) * Removed unused classes CNoCopy and CSafePtr. (r1607) * Moved CZNC::FindModPath() to CModules. (r1611) * Added CModules::GetModDirs() as a central place for finding module dirs. (r1612) (r1629) * Added CModules::GetModPathInfo() which works like GetModInfo() but which takes the full path to the module. (r1613) * Updated to latest Csocket which adds openssl 1.0 compatibility and fixes some minor bug. (r1615) (r1621) * Merged the internal join and ping timers. (r1622) (r1623) # ZNC 0.074 (2009-07-23) ## Fixes * Fix a regression due to (r1569): Webadmin was broken if the skins were accessed through an absolute path (=almost always). (r1574) * Fix a possible crash if users are deleted while they have active DCC sockets. (r1575) Sorry for breaking your webadmin experience guys. :( # ZNC 0.072 (2009-07-21) All webadmin skins are broken in this release due to a bug in webadmin itself. This is fixed in the next release. High-impact security bugs There was a path traversal bug in ZNC which allowed attackers write access to any place to which ZNC has write access. The attacker only needed a user account (with BounceDCCs enabled). Details are in the commit message. (r1570) This is CVE-2009-2658. Affected versions All ZNC versions since ZNC 0.022 (Initial import in SVN) are affected. ## New stuff * /msg *status uptime is now accessible to everyone. (r1526) * ZNC can now optionally use c-ares for asynchronous DNS resolving. (r1548) (r1549) (r1550) (r1551) (r1552) (r1553) (r1556) (r1565) (r1566) * The new config option AnonIPLimit limits the number of unidentified connections per IP. (r1561) (r1563) (r1567) ## Fixes * znc --no-color --makeconf still used some color codes. (r1519) * Webadmin favicons were broken since (r1481). (r1524) * znc.pc was installed to the wrong directory in multilib systems. (r1530) * Handle flags like e.g. --allow-root for /msg *status restart. (r1531) (r1533) * Fix channel user mode tracking. (r1574) * Fix a possible crash if users are deleted while they are connecting to IRC. (r1557) * Limit HTTP POST data to 1 MiB. (r1559) * OnStatusCommand() wasn't called for commands executed via /znc. (r1562) * On systems where sizeof(off_t) is 4, all ZNC-originated DCCs failed with "File too large (>4 GiB)". (r1568) * ZNC didn't properly verify paths when checking for directory traversal attacks (Low impact). (r1569) ## Minor stuff * Minor speed optimizations. (r1527) (r1532) * stickychan now accepts a channel list as module arguments. (r1534) * Added a clear command to nickserv. (r1554) * Added an execute command to perform. (r1558) * Added a swap command to perform. (r1560) * fail2ban clears all bans on rehash. (r1564) ## Internal stuff * The API for traffic stats changed. (r1521) (r1523) * Some optimizations to CSmartPtr. (r1522) * CString now accepts an optional precision for converting floating point numbers. (r1525) * Made home dir optional in CDir::ChangeDir(). (r1536) * Stuff. (r1537) (r1550) * EMFILE in CSockets is handled by closing the socket. (r1544) * Special thanks to cnu and flakes! # ZNC 0.070 (2009-05-23) ## New stuff * Add a CloneUser command to admin. (r1477) * Make webadmin work better with browser caches in conjunction with changing skins. (r1481) (r1482) * Better error messages if binding a listening port fails. (r1483) * admin module now supports per-channel settings. (r1484) * Fix the KICK that partyline generates when a user is deleted. (r1486) * fail2ban now allows a couple of login attempts before an IP is banned. (r1489) * Fixed a crash bug in stickychan. (r1500) * Install a pkg-config .pc file. (r1503) * Auto-detect globalness in re/un/loadmod commands. (r1505) ## Fixes * Fix a bug where ZNC lost its lock on the config file. (r1457) * Limit DCC transfers to files smaller than 4 GiB. (r1461) * Make znc -D actually work. (r1466) * Make znc --datadir ./meh --makeconf work. The restart used to fail. (r1468) * Fix a crash bug if CNick::GetPermStr() was called on CNick objects from module calls. (r1491) * Some fixes for solaris. (r1496) (r1497) (r1498) * nickserv module now also works on OFTC. (r1502) * Make sure the "Invalid password" message is sent before a client socket is closed. (r1506) * Fix a bug where ZNC would reply with stale cached MODEs for a "MODE #chan" request. (r1507) ## Minor stuff * Man page updates. (r1467) * Make CFile::Close() check close()'s return values if --debug is used. (r1476) * Update to latest Csocket. (r1490) * Improve the error messages generated by /msg *status loadmod. (r1493) * Remove broken znc --encrypt-pem. (r1495) ## Internal stuff * cout and endl are included in Utils.h, not main.h. (r1449) * CFile::Get*Time() now return a time_t. (r1453) (r1479) * Switched some more CFile members to more appropriate return types. (r1454) (r1471) * CFile::Seek() now takes an off_t as its argument. (r1458) * Turn TCacheMap into more of a map. (r1487) (r1488) * Updates to latest Csocket. (r1509) * API breakage: CAuthBase now wants a Csock* instead of just the remote ip. (r1511) (r1512) * New Module hooks (r1494) * OnChanBufferStarting() * OnChanBufferPlayLine() * OnChanBufferEnding() * OnPrivBufferPlayLine() # ZNC 0.068 (2009-03-29) ## New stuff * watch now uses ExpandString on the patterns. (r1402) * A user is now always notified for failed logins to his account. This now also works with auth modules like imapauth. (r1415) (r1416) * Added /msg *status UpdateModule which reloads an user module on all users. (r1418) (r1419) * A module whose version doesn't match the current ZNC version is now marked as such in ListAvailModules and friends. (r1420) * Added a Set password command to admin. (r1423) (r1424) * ZNC no longer uses znc.conf-backup. (r1432) * Two new command line options were added to ZNC: * ZNC --foreground and znc -f stop ZNC from forking into the background. (r1441) * ZNC --debug and znc -D produce output as if ZNC was compiled with --enable-debug. (r1442) (r1443) ## Fixes * cd in shell works again. (r1401) * Make WALLOPS properly honour KeepBuffer. Before this, they were always added to the replay buffer. (r1405) * ZNC now handles raw 432 Illegal Nickname when trying to login to IRC and sends its AltNick. (r1425) * Fix a crash with recursion in module calls. (r1438) * Fixed some compiler warnings with -Wmissing-declarations. (r1439) ## Minor stuff * Allow a leading colon on client's PASS commands. (r1403) * CFile::IsDir() failed on "/". (r1404) * CZNC::AddUser() now always returns a useful error description. (r1406) * Some micro-optimizations. (r1408) (r1409) * The new default for JoinTries is 10. This should help some excess flood problems. (r1411) * All webadmin skins must now reside inside the webadmin skins dir or they are rejected. (r1412) * Watch now saves its module settings as soon as possible, to prevent data loss on unclean shutdown. (r1413) (r1414) * Regenerated configure with autoconf 2.63. (r1426) * Some dead code elimination. (r1435) * Clean up znc -n output a little. (r1437) ## Internal stuff * CString::Base64Decode() now strips newlines. (r1410) * Remove CModInfo::IsSystem() since it was almost unused and quite useless. (r1417) * Some minor changes to CSmartPtr. (r1421) (r1422) * Added CFile::Sync(), a fsync() wrapper. (r1431) # ZNC 0.066 (2009-02-24) There was a privilege escalation bug in webadmin which could allow all ZNC users to write to znc.conf. They could gain shell access through this. (r1395) (r1396) This is CVE-2009-0759. ## Affected versions This bug affects all versions of ZNC which include the webadmin module. Let's just say this affects every ZNC version, ok? ;) ## Who can use this bug? First, ZNC must have the webadmin module loaded and accessible to the outside. Now any user who already has a valid login can exploit this bug. An admin must help (unknowingly) to trigger this bug by reloading the config. ## Impact Through this bug users can write arbitrary strings to the znc.conf file. Unprivileged ZNC users can make themselves admin and load the shell module to gain shell access. Unprivileged ZNC users can temporarily overwrite any file ZNC has write access to via ISpoof. This can be used to overwrite ~/.ssh/authorized_keys and gain shell access. Unprivileged ZNC users can permanently truncate any file to which ZNC has write access via ISpoof. ZNC never saves more than 1kB for restoring the ISpoofFile. ## How can I protect myself? Upgrade to ZNC 0.066 or newer or unload webadmin. ## What happens? Webadmin doesn't properly validate user input. If you send a manipulated POST request to webadmin's edit user page which includes newlines in e.g. the QuitMessage field, this field will be written unmodified to the config. This way you can add new lines to znc.conf. The new lines will not be parsed until the next rehash or restart. This can be done with nearly all input fields in webadmin. Because every user can modify himself via webadmin, every user can exploit this bug. ## Thanks Thanks to cnu for finding and reporting this bug. ## New stuff * Added the admin module. (r1379) (r1386) * savebuff and away no longer ask for a password on startup. (r1388) * Added the fail2ban module. (r1390) ## Fixes * savebuff now also works with KeepBuffer turned off. (r1384) * webadmin did not properly escape module description which could allow XSS attacks. (r1391) * Fix some "use of uninitialized variable" warnings. (r1392) * Check the return value of strftime(). This allowed reading stack memory. (r1394) ## Minor stuff * Some dead code elimination. (r1381) * Don't have two places where the version number is defined. (r1382) ## Internal stuff * Removed some useless and unused CFile members. (r1383) * Removed the DEBUG_ONLY define. (r1385) * OnFailedLogin() is now called for all failed logins, not only failed IRC ones. This changes CAuthBase API. (r1389) # ZNC 0.064 (2009-02-16) ## New stuff * schat now prints a message if a client connects and there are still some active schats. (r1282) * awaynick: Set awaynick on connect, not after some time. (r1291) * Allow adding new servers through /msg *status addserver even if a server with the same name but e.g. a different port is already added. (r1295) (r1296) * Show the current server in /msg *status listservers with a star. (r1308) * /msg *status listmods now displays the module's arguments instead of its description. Use listavailmods for the description. (r1310) * ZNC now updates the channel buffers for detached channels and thus gives a buffer replay when you reattach. (r1325) * watch now adds timestamps to messages it adds to the playback buffers. (r1333) * ZNC should now work on cygwin out of the box (use --disable-ipv6). (r1351) * Webadmin will handle all HTTP requests on the irc ports. (r1368) (r1375) ## Fixes * Handle read errors in CFile::Copy() instead of going into an endless loop. (r1280) (r1287) * Make schat work properly again and clean it up a little. (r1281) (r1303) * Removed all calls to getcwd(). We now no longer depend on PATH_MAX. (r1286) * stickychan: Don't try to join channels if we are not connected to IRC. (r1298) * watch now saved its settings. (r1304) * Don't forward PONG replies that we requested to the user. (r1309) * awaynick evaluated the awaynick multiple times and thus didn't set the nick back. (r1313) * znc-config --version said '@VERSION@' instead of the actual version number. (r1319) * Handle JOIN redirects due to +L. (r1327) * Remove the length restrictions on webadmin's password fields which led to silent password truncation. (r1330) * Webadmin now reloads global modules if you change their arguments. (r1331) * The main binary is no longer built with position independent code. (r1338) * ZNC failed to bounce DCCs if its own ip started with a value above 127. (r1340) * Savebuff no longer reloads old channel buffers if you did /msg *status clearbuffer. (r1345) * Some work has been done to make ZNC work with mingw (It doesn't work out of the box yet). (r1339) (r1341) (r1342) (r1343) (r1344) (r1354) (r1355) (r1356) (r1358) (r1359) * modperl used huge amounts of memory after some time. This is now fixed. (r1357) * shell now generates error messages if e.g. fork() fails. (r1369) * If the allowed buffer size is lowered, the buffer is now automatically shrunk. (r1371) * webadmin now refuses to transfer files bigger than 16 MiB, because it would block ZNC. (r1374) ## Minor stuff * Only reply to /mode requests if we actually know the answer. (r1290) * Lowered some timeouts. (r1297) * Memory usage optimizations. (r1300) (r1301) (r1302) * Allow custom compiler flags in znc-buildmod via the $CXXFLAGS and $LIBS environment flags. (r1312) * Show the client's IP in debug output if no username is available yet. (r1315) * Allow /msg *status setbuffer for channels we are currently not on. (r1323) * Updated the README. (r1326) * Use @includedir@ instead of @prefix@/include in the Makefile. (r1328) * Use RTLD_NOW for loading modules instead of RTLD_LAZY which could take down the bouncer. (r1332) * Use stat() instead of lstat() if the later one isn't available. (r1339) * CExecSock now generates an error message if execvp() fails. (r1362) * Improved some error messages. (r1367) ## Internal stuff * Add traffic tracking support to CSocket. Every module that uses CSocket now automatically gets the traffic it causes tracked. (r1283) * Add VERSION_MINOR and VERSION_MAJOR defines. (r1284) (r1285) * Rework CZNC::Get*Path() a little. (r1289) (r1292) (r1299) * Remove the IPv6 stuff from CServer. It wasn't used at all. (r1294) * Make email use CSocket instead of Csock. (r1305) * Cleaned up and improved CFile::ReadLine() and CChan::AddNicks() a little. (r1306) (r1307) * Replaced most calls to strtoul() and atoi() with calls to the appropriate CString members. (r1320) * Moved the SetArgs() call before the OnLoad() call so that modules can overwrite there arguments in OnLoad(). (r1329) * Let CZNC::AddUser() check if the user name is still free. (r1346) * API stuff * Added CModule::IsGlobal(). (r1283) * Added CModule::BeginTimers(), EndTimers(), BeginSockets() and EndSockets(). (r1293) * Added CModule::ClearNV(). (r1304) * Removed ReadFile(), WriteFile(), ReadLine() (Use CFile instead), Lower(), Upper() (Use CString::AsUpper(), ::ToUpper(), ::*Lower() instead) and added CFile::ReadFile() (r1311) * Added CModules::OnUnknownUserRaw(). (r1314) * Added CUtils::SaltedHash() for computing the salted MD5 hashes ZNC uses. (r1324) * Removed CLockFile and made CFile take over its job. (r1337) (r1352) (r1353) * Change the return type to CUtils::GetPass() to CString. (r1343) * Added a DEBUG(f) define that expands to DEBUG_ONLY(cout << f << endl). (r1348) (r1349) * Removed some unused functions and definitions. (r1360) (r1361) # ZNC 0.062 (2008-12-06) ## New stuff * Add --disable-optimization to configure. (r1206) * New webadmin skin dark-clouds by bigpresh. (r1210) * Added the q module as a replacement for QAuth. (r1217) (r1218) * Added an enhanced /znc command: (r1228) * /znc jump is equal to /msg *status jump * /znc *shell pwd is equal to /msg *shell pwd * Webadmin should generate less traffic, because it now uses client-side caching for static data (images, style sheets, ...). (r1248) * Changes to the vhost interface from *status: (r1256) * New commands: AddVHost, RemVHost and ListVHosts. * SetVHost now only accepts vhosts from the ListVHosts list, if it is non-empty. * ZNC now should compile and work fine on Mac OS. (r1258) * IPv6 is now enabled by default unless you disable it with --disable-ipv6. (r1270) ## Fixes * Make keepnick usable. (r1203) (r1209) * Don't display 'Your message to .. got lost' for our own nick. (r1211) * Fix compile error with GCC 4.3.1 if ssl is disabled. Thanks to sebastinas. (r1212) * Limit the maximum buffer space each socket may use to prevent DoS attacks. (r1233) * Properly clean the cached perms when you are kicked from a channel. (r1236) * Due to changes in rev 1155-1158, modperl crashed on load on some machines. (r1237) (r1239) * Stickychan didn't work with disabled channels. (r1238) * Catch a throw UNLOAD in the OnBoot module hook. (r1249) * Webadmin now accepts symlinks in the skin dir. (r1252) * Fix for partyline if a force-joined user is deleted. (r1263) (r1264) * Revert change from (r1125) so that we compile on fbsd 4 again. (r1273) ## Minor stuff * Recompile everything if configure is run again. (r1205) * Improved the readability of ListMods und ListAvailMods. (r1216) * Accept "y" and "n" as answers to yes/no questions in --makeconf. (r1244) * --makeconf now also generates a ssl certificate if a ssl listening port is configured. (r1246) * Improved and cleaned up the simple_away module. (r1247) * The nickserv module automatically saves the password and never displays it anymore. (r1250) * Use relative instead of absolute URLs in all webadmin skins. (r1253) (r1254) * Add znc-config --cxx and use it in znc-buildmod. (r1255) * Support out-of-tree-builds. (r1257) * Make schat's showsocks command admin-only. (r1260) * Fix compilation with GCC 4.4. (r1269) * Use AC_PATH_PROG instead of which to find the perl binary. (r1274) * New AUTHORS file format. (r1275) ## Internal stuff * Removed redundant checks for NULL pointers (r1220) (r1227) * Renamed String.h and String.cpp to ZNCString. (r1202) * Print a warning in CTable if an unknown column is SetCell()'d (r1223) * Update to latest Csocket (r1225) * Remove CSocket::m_sLabel and its accessor functions. Use the socket name Csocket provides instead. (r1229) * modules Makefile: Small cleanup, one defines less and no compiler flags passed multiple times. (r1235) * Webadmin now uses CSocket instead of using Csock and keeping a list of sockets itself. (r1240) * Mark some global and static variables as const. (r1241) * Cleanup perform, no feature changes. (r1242) * Some tweaking to configure.in. Among other things, we now honour CPPFLAGS and don't check for a C compiler anymore. (r1251) * On rare occasions webadmin generated weird error messages. (r1259) * OnStatusCommand now doesn't have the const attribute on its argument. (r1262) * Some new functions: * some CString constructors (e.g. CString(true) results in "true") (r1243) (r1245) * CString::TrimPrefix() and CString::TrimSuffix() (r1224) (r1226) * CString::Equals() (r1232) (r1234) * CTable::Clear() (r1230) * CClient::PutStatus(const CTable&) (r1222) * CGlobalModule::OnClientConnect() (r1266) (r1268) * CModule::OnIRCRegistration() (r1271) * CModule::OnTimerAutoJoin() (r1272) * Renames: * CModule::OnUserAttached() is now known as CModules::OnClientLogin(). (r1266) * CModule::OnUserDetached() is now known as CModules::OnClientDisconnect(). (r1266) # ZNC 0.060 (2008-09-13) * Print a message when SIGHUP is caught. (r1197) * Moved autocycle into a module. (r1191) (r1192) * New module call OnMode(). (r1189) * Added MaxJoins and JoinTries to webadmin. (r1187) * Fix channel keyword (+k) related mess up on Quakenet (RFC, anyone?). (r1186) (r1190) * Added new module call OnUserTopicRequest(). (r1185) * Also add traffic generated by modules to the traffic stats. (r1183) * Don't use znc.com but znc.in everywhere (hostname of *status etc). (r1181) (r1195) * Close the listening port if we ran out of free FDs. (r1180) * Add a config option MaxJoins which limits the number of joins ZNC sends in one burst. (r1177) * Bug fix where WriteToDisk() didn't made sure a fail was empty. (r1176) * Add ShowMOTD and reorder the HELP output of *status. (r1175) * Add /msg *status restart . Thanks to kroimon. (r1174) * Make --makeconf more userfriendly. Thanks to kroimon. (r1173) * Dont start a new znc process after --makeconf. Thanks to kroimon. (r1171) * Add CModule::PutModule(const CTable&). (r1168) (r1169) * Unify some preprocessor macros in Modules.cpp. (r1166) * Catch a throw UNLOAD from CModule::OnLoad(). (r1164) * A couple of bugs with OnModCTCP(), OnModCommand() and OnModNotice() where fixed. (r1162) * Quicker connects and reconnects to IRC. (r1161) * Speedup the CTable class. (r1160) * Update our bundled Csocket. (r1159) * Some fixes to modperl for hppa. * Move keepnick into a module. (r1151) (r1152) (r1153) * Split up some big functions and files. (r1148) (r1149) (r1150) * modperl now fails to load if it can't find modperl.pm. (r1147) * Handle nick prefixes and such stuff from clients correctly. (r1144) (r1145) * Simplify the code connecting users a little. (r1143) * Fix partyline for users who are not connected to IRC. (r1141) * We are in a channel when we receive a join for it, not an 'end of /names'. (r1140) * Enable some more debug flags with --enable-debug. (r1138) * Don't ever throw exceptions in CModules::LoadModule(). (r1137) * Don't give any stdin to commands executed from the shell module. (r1136) * Fix some over-the-end iterator dereference on parting empty channels. (r1133) * Replace usage of getresuid() with getuid() and geteuid(). (r1132) * Use salted hashes for increased security. (r1127) (r1139) * Don't mention any libraries in znc-config. (r1126) * Don't define __GNU_LIBRARY__ for FreeBSD. (r1125) # ZNC 0.058 (2008-07-10) * Fix a crash with NAMESX-enabled IRC servers. (r1118) * Fix a privilege escalation bug in webadmin if auth modules are used. (r1113) * Remove -D_GNU_SOURCE from our CXXFLAGS. (r1110) * CUtils::GetInput() now kills the process if reading from stdin fails. (r1109) * Properly include limits.h for PATH_MAX. (r1108) * Don't allow running ZNC as root unless --allow-root is given. (r1102) * Add more possibilities for ExpandString(). (r1101) * Autoattach doesn't allow you adding an entry twice now. (r1100) * Print a warning if PATH_MAX is undefined. (r1099) * Use ExpandString() for CTCPReply. (r1096) * Add Uptime command to *status. (r1095) (r1107) * Make --makeconf clearer. (r1093) * Add man pages for znc, znc-buildmod and znc-config. (r1091) * Perl modules are no longer installed with executable bit set. (r1090) * Crypt now forwards messages to other connected clients. (r1088) * Fix a theoretical crash bug in the DNS resolving code. (r1087) * Modules now get their module name as ident, not 'znc'. (r1084) * Handle channel CTCPs the same way private CTCPs are handled. (r1082) * Webadmin: Add support for timezone offset. (r1079) * Webadmin: Remove the *.de webadmin skins. (r1078) * Webadmin: Don't reset all channel settings when a user page is saved. (r1074) * Fix a possible crash when rehashing failed to open the config file. (r1073) * The instructions at the end of makeconf showed a wrong port. (r1072) * Throttle DCC transfers to the speed of the sending side. (r1069) * De-bashify znc-buildmod. (r1068) * Time out unauthed clients after 60 secs. (r1067) * Don't fail with conspire as IRC client. (r1066) * Replace CString::Token() with a much faster version. (r1065) * DenyLoadMod users no longer can use ListAvailMods. (r1063) * Add a VERSION_EXTRA define which can be influenced via CXXFLAGS and which is appended to ZNC's version number. (r1062) # ZNC 0.056 (2008-05-24) * Rehashing also handles channel settings. (r1058) * Make znc-buildmod work with prefixes. (r1054) * Greatly speed up CUser::GetIRCSock(). Thanks to w00t. (r1053) * Don't link the ZNC binary against libsasl2. (r1050) * Make CString::RandomString() produce a more random string (this is used for autoop and increases its security). (r1047) * Remove OnRehashDone() and add OnPreRehash() and OnPostRehash(). (r1046) * Show traffic stats in a readable unit instead of lots of bytes. (r1038) * Fixed a bug were nick changes where silently dropped if we are in no channels. (r1037) * Remove the /watch command from watch. (r1035) * znc-buildmod now reports errors via exit code. (r1034) * Display a better error message if znc.conf cannot be opened. (r1033) * Print a warning from *status if some message or notice is lost because we are not connected to IRC. (r1032) * Make ./configure --bindir=DIR work. (r1031) * Always track header dependencies. This means we require a compile supporting -MMD and -MF. (r1026) * Improve some error messages if we can't connect to IRC. (r1023) * Use \n instead of \r\n for znc.conf. (r1022) * Fix some invalid replies from the shell module. (r1021) * Support chans other than #chan and &chan. (r1019) * Make chansaver add all channels to the config on load. (r1018) * Reply to PINGs if we are not connected to a server. (r1016) * Fix some bugs with Csocket, one caused segfaults when connecting to special SSL hosts. (r1015) * Use MODFLAGS instead of CXXFLAGS for modules. Do MODFLAGS=something ./configure if you want a flag that is used only by modules. (r1012) * Add OnTopic() module call. (r1011) * Don't create empty .registry files for modules. See find ~/.znc -iname ".registry" -size 0 for a list of files you can delete. (r1010) * Only allow admins to load the shell module. (r1007) * Fix CModule::DelNV()'s return value. (r1006) * Fix CUser::Clone() to handle all the settings. (r1005) * Mark all our FDs as close-on-exec. (r1004) # ZNC 0.054 (2008-04-01) * Forward /names replies for unknown channels. * Global modules can no longer hook into every config line, but only those prefixed with 'GM:'. * Don't forward topic changes for detached channels. * Remove ~/.znc/configs/backups and instead only keep one backup under znc.conf-backup. * Update /msg *status help. * Add --datadir to znc-config. * Update bundled Csocket to the latest version. This fixes some bugs (e.g. not closing SSL connections properly). * Use $HOME if possible to get the user's home (No need to read /etc/passwd anymore). * Use -Wshadow and fix all those warnings. * Add /msg *status ListAvailMods. Thanks to SilverLeo. * Add OnRehashDone() module call. * Add rehashing (SIGHUP and /msg *status rehash). * Also write a pid file if we are compiled with --enable-debug. Thanks to SilverLeo. * Add ClearVHost and 'fix' SetVHost. Thanks to SilverLeo. * Increase the connect timeout for IRC connections to 2 mins. * Add a user's vhost to the list on the user page in webadmin. * Add --no-color switch and only use colors if we are on a terminal. * Add DenySetVHost config option. Thanks to Veit Wahlich aka cru. * Change --makeconf's default for KeepNick and KeepBuffer to false. * Add simple_away module. This sets you away some time after you disconnect from ZNC. * Don't write unneeded settings to the section. Thanks to SilverLeo. * Remove OnFinishedConfig() module call. Use OnBoot() instead. * Fix some GCC 4.3 warnings. Thanks to darix again. * Move the static data (webadmin's skins) to /usr/share/znc per default. Thanks to Marcus Rueckert aka darix. * New znc-buildmod which works on shells other than bash. * Add ClearAllChannelBuffers to *status. * Handle CTCPs to *status. * autoattach now saves and reloads its settings. * Let webadmin use the user's defaults for new chans. Thanks to SilverLeo. # ZNC 0.052 (2007-12-02) * Added saslauth module. * Add del command to autoattach. * Make awaynick save its settings and restore them when it is loaded again. * Added disconnect and connect commands to *status. * CTCPReply = VERSION now ignores ctcp version requests (as long as no client is attached). This works for every CTCP request. * Add -W to our default CXXFLAGS. * Remove save command from perform, it wasn't needed. * Add list command to stickychan. * --with-module-prefix=x now really uses x and not x/znc (Inspired by CNU :) ). * Use a dynamic select timeout (sleep until next cron runs). This should save some CPU time. * Fix NAMESX / UHNAMES, round two (multi-client breakage). * Module API change (without any breakage): OnLoad gets sMessage instead of sErrorMsg. * Fix a mem-leak. * Disable auto-rejoin on kick and add module kickrejoin. * Respect $CXXFLAGS env var in configure. * Removed some executable bits on graphiX' images. * Added README file and removed docs/. * Removed the antiidle module. * Fixes for GCC 4.3 (Debian bug #417793). * Some dead code / code duplications removed. * Rewrote Makefile.ins and don't strip binaries anymore by default. # ZNC 0.050 (2007-08-11) * fixed UHNAMES bug (ident was messed up, wrong joins were sent) * fixed /lusers bug (line was cached more than once) * added disabled chans to the core * send out a notice asking for the server password if client doesn't send one * added ConnectDelay config option * added timestamps on the backlog * added some module calls * added basic traffic stats * added usermodes support * API breakage (CModule::OnLoad got an extra param) * added fixed channels to the partyline module * fixed partyline bugs introduced by last item * fixed a NULL pointer dereference if /nick command was received from a client while not connected to IRC * added a JoinTries per-user config option which specifies how often we try to rejoin a channel (default: 0 -> unlimited) * make configure fail if it can't find openssl (or perl, ...) * new modules: antiidle, nickserv # ZNC 0.047 (2007-05-15) * NULL pointer dereference when a user uses webadmin while not on irc * A logged in user could access any file with /msg *status send/get * znc --makeconf now restarts znc correctly * New webadmin skin (+ german translations) * Updated to new Csocket version * Allow @ and . in user names which now can also be longer * Added crox and psychon to AUTHORS * Relay messages to other clients of the current user (for the crypt module) * Added chansaver Module * Moved awaynick functionality into a module * Added perform module from psychon * fixed bug when compiling without module support * Added a configurable Timer to the away module * Added support for Topics in the partyline module * Added support for reloading global modules * Added a timer to ping inactive clients * Migrated away from CString::ToString() in favor of explicit constructors * IMAP Authentication Module added * Fixed issues with gcc 4.1 * Added concept of default channels that a user is automatically joined to every time they attach * Added SetVHost command * Added error reporting and quit msgs as *status output * Added a server ping for idle connections - Thanks zparta * added -ldl fix for openssl crypto package. fixes static lib link requirement * Explicitly set RTLD_LOCAL, some systems require it - thanks x-x * Added SendBuffer and ClearBuffer client commands * Added support for to talk unencrypted * added with-modules-prefix and moved modules by default to PREFIX/libexec * Added license and contact info * remove compression initialization until standard has normalized a bit # ZNC 0.045 (2006-02-20) * Added +o/v -o/v for when users attach/detach - partyline module * Changed internal naming of CUserSock to CClient for consistency * Fixed some issues with older bsd boxes * Added ListenHost for binding to a specific ip instead of inaddr_any * Allow - and _ as valid username chars * respect compiler, we don't force you to use g++ anymore, don't include system includes for deps * Added Replace_n() and fixed internal loop bug in Replace() (thanks psycho for finding it) * Don't allow .. in GET * Added autoop module * Added support for buffering of /me actions * Added Template support in webadmin now you can write your own skins easily :) * Added ipv6 support * Support for multiple Listen Ports (note the config option "ListenPort" changed to "Listen") # ZNC 0.044 (2005-10-14) * Fixed issue where pipe between client and irc sockets would get out of sync, this was introduced in 0.043 * Added *status commands to list users and clients connected # ZNC 0.043 (2005-10-13) * Added Multi-Client support * Added Global partyline module * Added MOTD config option * Added Admin permission * Added SaveConfig admin-only *status command * Added Broadcast admin-only *status command # ZNC 0.041 (2005-09-08) * This release fixes some issues with 64bit systems. # ZNC 0.040 (2005-09-07) This release contains a lot of features/bugfixes and a great new global module called admin.cpp which will allow you to add/remove/edit users and settings on the fly via a web browser. # ZNC 0.039 (2005-09-07) This release contains a lot of features/bugfixes and a great new global module called admin.cpp which will allow you to add/remove/edit users and settings on the fly via a web browser. # ZNC 0.038 (2005-09-07) This release contains a lot of bugfixes and a great new global module called admin.cpp which will allow you to add/remove/edit users and settings on the fly via a web browser. # ZNC 0.037 (2005-05-22) # ZNC 0.036 (2005-05-15) # ZNC 0.035 (2005-05-14) # ZNC 0.034 (2005-05-01) # ZNC 0.033 (2005-04-26) # ZNC 0.030 (2005-04-21) # ZNC 0.029 (2005-04-12) # ZNC 0.028 (2005-04-04) # ZNC 0.027 (2005-04-04) # ZNC 0.025 (2005-04-03) # ZNC 0.023 (2005-03-10) znc-1.6.3/znc-buildmod.in0000755000175000017500000000232312663147131015465 0ustar somebodysomebody#!/bin/sh ERROR="[ !! ]" WARNING="[ ** ]" OK="[ ok ]" # Check if we got everything we need check_binary() { which $1 > /dev/null 2>&1 if test $? = 1 ; then echo "${ERROR} Could not find $1. $2" exit 1 fi } if test "x$CXX" = "x" ; then CXX="@CXX@" fi if test "x$CXX" = "x" ; then CXX=g++ fi check_binary ${CXX} "What happened to your compiler?" if test -z "$1"; then echo "${WARNING} USAGE: $0 [file.cpp ... ]" exit 1 fi CXXFLAGS="@CPPFLAGS@ @MODFLAGS@ -I@prefix@/include $CXXFLAGS" MODLINK="@MODLINK@ $MODLINK" VERSION="@PACKAGE_VERSION@" # Ugly cygwin stuff :( LIBZNC="@LIBZNC@" LIBZNCDIR="@LIBZNCDIR@" if test "x" = "x$LIBZNC"; then LIBZNCFLAGS="" else LIBZNCFLAGS="-L$LIBZNCDIR -lznc" fi LIBS="$LIBZNCFLAGS $LIBS" while test ! -z "$1" do FILE=$1 shift MOD="${FILE%.cpp}" MOD="${MOD%.cc}" MOD="${MOD##*/}" if test ! -f "${FILE}"; then echo "${ERROR} Building \"${MOD}\" for ZNC $VERSION... File not found" exit 1 else printf "Building \"${MOD}.so\" for ZNC $VERSION... " if ${CXX} ${CXXFLAGS} ${INCLUDES} ${LDFLAGS} ${MODLINK} -o "${MOD}.so" "${FILE}" ${LIBS} ; then echo "${OK}" else echo "${ERROR} Error while building \"${MOD}.so\"" exit 1 fi fi done exit 0 znc-1.6.3/webskins/0000755000175000017500000000000012663147131014370 5ustar somebodysomebodyznc-1.6.3/webskins/_default_/0000755000175000017500000000000012663147131016312 5ustar somebodysomebodyznc-1.6.3/webskins/_default_/tmpl/0000755000175000017500000000000012663147131017266 5ustar somebodysomebodyznc-1.6.3/webskins/_default_/tmpl/Banner.tmpl0000644000175000017500000000011612663147131021367 0ustar somebodysomebodyznc-1.6.3/webskins/_default_/tmpl/InfoBar.tmpl0000644000175000017500000000032012663147131021477 0ustar somebodysomebody
Logged in as: (from )
znc-1.6.3/webskins/_default_/tmpl/index.tmpl0000644000175000017500000000072612663147131021300 0ustar somebodysomebody

Welcome to ZNC's web interface!

No Web-enabled modules have been loaded. Load modules from IRC ("/msg *status help" and "/msg *status loadmod <module>"). Once you have loaded some Web-enabled modules, the menu will expand.

znc-1.6.3/webskins/_default_/tmpl/BreadCrumbs.tmpl0000644000175000017500000000046412663147131022361 0ustar somebodysomebody znc-1.6.3/webskins/_default_/tmpl/DocType.tmpl0000644000175000017500000000007512663147131021535 0ustar somebodysomebodyxml version="1.0" encoding="UTF-8"?> znc-1.6.3/webskins/_default_/tmpl/Menu.tmpl0000644000175000017500000000401112663147131021064 0ustar somebodysomebody znc-1.6.3/webskins/_default_/tmpl/MessageBar.tmpl0000644000175000017500000000031312663147131022172 0ustar somebodysomebody
znc-1.6.3/webskins/_default_/tmpl/FooterTag.tmpl0000644000175000017500000000000012663147131022044 0ustar somebodysomebodyznc-1.6.3/webskins/_default_/tmpl/_csrf_check.tmpl0000644000175000017500000000011512663147131022412 0ustar somebodysomebody znc-1.6.3/webskins/_default_/tmpl/Error.tmpl0000644000175000017500000000011112663147131021246 0ustar somebodysomebody

znc-1.6.3/webskins/_default_/tmpl/Footer.tmpl0000644000175000017500000000051012663147131021416 0ustar somebodysomebody
znc-1.6.3/webskins/_default_/tmpl/LowerBanner.tmpl0000644000175000017500000000006612663147131022404 0ustar somebodysomebody

znc-1.6.3/webskins/_default_/tmpl/ExtraHeader.tmpl0000644000175000017500000000023012663147131022353 0ustar somebodysomebodyznc-1.6.3/webskins/_default_/tmpl/Options.tmpl0000644000175000017500000000003112663147131021611 0ustar somebodysomebody znc-1.6.3/webskins/_default_/tmpl/Header.tmpl0000644000175000017500000000124112663147131021352 0ustar somebodysomebody This is a wrapper file which simply includes BaseHeader.tmpl so that new skins can make a Header.tmpl similar to... ...this way a skin can base itself off of the same html as the default skin but still add custom css/js @todo In the future I'd like to support something like or even just do a current file vs inc'd file comparison to make sure they aren't the same. This way we can from the "derived" Header.tmpl and not cause an recursive loop. znc-1.6.3/webskins/_default_/tmpl/LoginBar.tmpl0000644000175000017500000000105612663147131021663 0ustar somebodysomebody Logout  
User: Pass:
znc-1.6.3/webskins/_default_/tmpl/BaseHeader.tmpl0000644000175000017500000000337212663147131022154 0ustar somebodysomebody ZNC - <? VAR Title DEFAULT="Web Frontend" ?>
In your subpage (module page or static page) you'll probably want to do something like this... This is my super cool sub page! If you'd like to add your own local css file to be included after the global main.css, you can make your own Header.tmpl like so... znc-1.6.3/webskins/_default_/pub/0000755000175000017500000000000012663147131017100 5ustar somebodysomebodyznc-1.6.3/webskins/_default_/pub/_default_.css0000644000175000017500000001137512663147131021543 0ustar somebodysomebody@charset "UTF-8"; * { margin: 0; padding: 0; } html { height: 100%; } body { height: 100%; background-color: #fff; color: #000; font-family: Tahoma, sans-serif; } a, a:link, a:active, a:visited, a:focus { color: #00008B; text-decoration: none; outline: none; } a:hover { text-decoration: underline; } #main a:visited { color: #99008B; } #wrapper { background-color: #eee; min-height: 80%; overflow: hidden; margin: 0 auto; width: 900px; border: 1px solid #ccc; border-top: none; -moz-box-shadow: 0 0 1em #666; -webkit-box-shadow: 0 0 1em #666; box-shadow: 0 0 1em #666; } #banner_top { background-color: #ccc; } #banner_top a { color: #000; text-decoration: none; } h1 { line-height: 37px; padding: 0 0.9em 0 0.6em; width: 50px; text-align: center; background-color: #aaa; font-weight: normal; font-style: italic; font-size: 100%; } #tag { height: 4em; line-height: 4em; text-align: center; font-size: 70%; color: #aaa; } #main { padding: 0 20px 20px 20px; font-size: 90%; width: 680px; } #menu { border-left: 2px solid #aaa; padding-left: 10px; position: absolute; margin-left: 700px; width: 170px; font-size: 14px; } ul.nav, ul.nav li, ul.nav ul { list-style: none; } ul.nav li.topitem { margin-right: 55px; } ul.nav li, ul.nav li.topitem .title { display: block; margin-bottom: 5px; } ul.nav li.subitem { font-size: 90%; } ul.nav li.topitem:before, ul.nav li.modtitle:before { content: "» "; } ul.nav li.topitem, ul.nav li.modtitle { padding-left: 3px; } ul.nav li.parent:before { content: ""; } ul.nav li.parent { padding-left: 0; } ul.nav li.subitem { margin-left: 20px; } #infobar { text-align: right; clear: both; position: relative; top: -30px; margin-left: 485px; background-color: #ccc; color: #333; padding: 0 6px 3px 0; } .errorbar + #infobar { top: -59px; } #infobar input { border: none; font-family: Tahoma, sans-serif; padding: 1px; font-size: 14px; margin: 0 4px; width: 120px; } #infobar input.submit { border: 1px solid #333; font-size: 12px; width: 60px; } #infobar_ident, .logoutbox, .loginbox { padding: 4px; font-size: 70%; } #infobar_ident { margin-right: 4px; } .logoutbox, .loginbox { padding-top: 7px; } .successbar, .errorbar { width: 100%; background-color: #900; padding: 5px 10px; font-weight: bold; color: #fff; } .successbar { background-color: #070; } h2 { margin-bottom: 0.4em; } h3 { margin-top: 1.2em; margin-bottom: 0.4em; } .textsection, .toptable { width: 670px; overflow: hidden; } .section { clear: both; } .sectionbody { margin-left: 1em; } .sectionbody input, textarea, select { border: 2px solid #ccc; font-family: Tahoma, sans-serif; padding: 3px; font-size: 14px; } input:focus, textarea:focus, select:focus { -moz-box-shadow: 0 0 0.4em #aaa; -webkit-box-shadow: 0 0 0.4em #aaa; box-shadow: 0 0 0.4em #aaa; outline: none; /* for webkit */ } textarea { height: 90px; } div.submitline { margin: 1em; padding-top: 1em; border-top: 1px solid #aaa; } .submitline input { width: 200px; height: 2.2em; } input.full, textarea.full, .full input, .full textarea { width: 500px; } input.twothird, textarea.twothird, .twothird input, .twothird textarea { width: 450px; } input.half, textarea.half, .half input, .half textarea { width: 300px; } input.third, textarea.third, .third input, .third textarea { width: 150px; } input.sixth, textarea.sixth, .sixth input, .sixth textarea { width: 75px; } input.number { width: 40px; } table { border: 1px solid #ccc; border-spacing: 1px; } td, th { padding: 5px 7px; min-width: 35px; } thead td, th { background-color: #a0a0a0; } th { text-align: left; } tbody td { background-color: #cecece; } tr.evenrow td { background-color: #dadada; } .info { font-style: italic; font-size: 80%; } .subsection { clear: both; margin: 0; } .subsection div { float: left; } .subsection .inputlabel { width: 120px; text-align: right; padding: 10px 5px 0 0; } .subsection input, .subsection select, .subsection textarea { margin: 5px 0 5px 0; min-width: 75px; vertical-align: middle; } .subsection div.checkbox { padding: 9px 0 0 3px; } .subsection div.checkbox input { min-width: 0; } .section .info { margin-bottom: 5px; display: block; } .subsection .info { text-align: right; } .half .info { width: 435px; } .third .info { width: 285px; } .twothird .info { width: 585px; } td.mod_descr, td.mod_name, td.mod_args input { font-size: 80%; } td.mod_name, .checkboxandlabel { white-space: nowrap; } .lotsofcheckboxes .checkboxandlabel { display: block; float: left; width: 200px; margin-top: 0.5em; } #breadcrumb { width: 670px; padding: 0 0 3px 1px; margin-bottom: 10px; border-bottom: 1px solid #aaa; } td { word-wrap: break-word; } .textsection p { margin-bottom: 0.7em; } znc-1.6.3/webskins/_default_/pub/jquery-1.11.2.js0000644000175000017500000105303012663147131021475 0ustar somebodysomebody/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function( global, factory ) { if ( typeof module === "object" && typeof module.exports === "object" ) { // For CommonJS and CommonJS-like environments where a proper window is present, // execute the factory and get jQuery // For environments that do not inherently posses a window with a document // (such as Node.js), expose a jQuery-making factory as module.exports // This accentuates the need for the creation of a real window // e.g. var jQuery = require("jquery")(window); // See ticket #14549 for more info module.exports = global.document ? factory( global, true ) : function( w ) { if ( !w.document ) { throw new Error( "jQuery requires a window with a document" ); } return factory( w ); }; } else { factory( global ); } // Pass this if window is not defined yet }(typeof window !== "undefined" ? window : this, function( window, noGlobal ) { // Can't do this because several apps including ASP.NET trace // the stack via arguments.caller.callee and Firefox dies if // you try to trace through "use strict" call chains. (#13335) // Support: Firefox 18+ // var deletedIds = []; var slice = deletedIds.slice; var concat = deletedIds.concat; var push = deletedIds.push; var indexOf = deletedIds.indexOf; var class2type = {}; var toString = class2type.toString; var hasOwn = class2type.hasOwnProperty; var support = {}; var version = "1.11.2", // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' // Need init if jQuery is called (just allow error to be thrown if not included) return new jQuery.fn.init( selector, context ); }, // Support: Android<4.1, IE<9 // Make sure we trim BOM and NBSP rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, // Matches dashed string for camelizing rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return letter.toUpperCase(); }; jQuery.fn = jQuery.prototype = { // The current version of jQuery being used jquery: version, constructor: jQuery, // Start with an empty selector selector: "", // The default length of a jQuery object is 0 length: 0, toArray: function() { return slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num != null ? // Return just the one element from the set ( num < 0 ? this[ num + this.length ] : this[ num ] ) : // Return all the elements in a clean array slice.call( this ); }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; ret.context = this.context; // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. // (You can seed the arguments with an array of args, but this is // only used internally.) each: function( callback, args ) { return jQuery.each( this, callback, args ); }, map: function( callback ) { return this.pushStack( jQuery.map(this, function( elem, i ) { return callback.call( elem, i, elem ); })); }, slice: function() { return this.pushStack( slice.apply( this, arguments ) ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); }, end: function() { return this.prevObject || this.constructor(null); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, sort: deletedIds.sort, splice: deletedIds.splice }; jQuery.extend = jQuery.fn.extend = function() { var src, copyIsArray, copy, name, options, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; // skip the boolean and the target target = arguments[ i ] || {}; i++; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction(target) ) { target = {}; } // extend jQuery itself if only one argument is passed if ( i === length ) { target = this; i--; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( (options = arguments[ i ]) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray(src) ? src : []; } else { clone = src && jQuery.isPlainObject(src) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend({ // Unique for each copy of jQuery on the page expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), // Assume jQuery is ready without the ready module isReady: true, error: function( msg ) { throw new Error( msg ); }, noop: function() {}, // See test/unit/core.js for details concerning isFunction. // Since version 1.3, DOM methods and functions like alert // aren't supported. They return false on IE (#2968). isFunction: function( obj ) { return jQuery.type(obj) === "function"; }, isArray: Array.isArray || function( obj ) { return jQuery.type(obj) === "array"; }, isWindow: function( obj ) { /* jshint eqeqeq: false */ return obj != null && obj == obj.window; }, isNumeric: function( obj ) { // parseFloat NaNs numeric-cast false positives (null|true|false|"") // ...but misinterprets leading-number strings, particularly hex literals ("0x...") // subtraction forces infinities to NaN // adding 1 corrects loss of precision from parseFloat (#15100) return !jQuery.isArray( obj ) && (obj - parseFloat( obj ) + 1) >= 0; }, isEmptyObject: function( obj ) { var name; for ( name in obj ) { return false; } return true; }, isPlainObject: function( obj ) { var key; // Must be an Object. // Because of IE, we also have to check the presence of the constructor property. // Make sure that DOM nodes and window objects don't pass through, as well if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { return false; } try { // Not own constructor property must be Object if ( obj.constructor && !hasOwn.call(obj, "constructor") && !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { return false; } } catch ( e ) { // IE8,9 Will throw exceptions on certain host objects #9897 return false; } // Support: IE<9 // Handle iteration over inherited properties before own properties. if ( support.ownLast ) { for ( key in obj ) { return hasOwn.call( obj, key ); } } // Own properties are enumerated firstly, so to speed up, // if last one is own, then all properties are own. for ( key in obj ) {} return key === undefined || hasOwn.call( obj, key ); }, type: function( obj ) { if ( obj == null ) { return obj + ""; } return typeof obj === "object" || typeof obj === "function" ? class2type[ toString.call(obj) ] || "object" : typeof obj; }, // Evaluates a script in a global context // Workarounds based on findings by Jim Driscoll // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context globalEval: function( data ) { if ( data && jQuery.trim( data ) ) { // We use execScript on Internet Explorer // We use an anonymous function so that context is window // rather than jQuery in Firefox ( window.execScript || function( data ) { window[ "eval" ].call( window, data ); } )( data ); } }, // Convert dashed to camelCase; used by the css and data modules // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, // args is for internal usage only each: function( obj, callback, args ) { var value, i = 0, length = obj.length, isArray = isArraylike( obj ); if ( args ) { if ( isArray ) { for ( ; i < length; i++ ) { value = callback.apply( obj[ i ], args ); if ( value === false ) { break; } } } else { for ( i in obj ) { value = callback.apply( obj[ i ], args ); if ( value === false ) { break; } } } // A special, fast, case for the most common use of each } else { if ( isArray ) { for ( ; i < length; i++ ) { value = callback.call( obj[ i ], i, obj[ i ] ); if ( value === false ) { break; } } } else { for ( i in obj ) { value = callback.call( obj[ i ], i, obj[ i ] ); if ( value === false ) { break; } } } } return obj; }, // Support: Android<4.1, IE<9 trim: function( text ) { return text == null ? "" : ( text + "" ).replace( rtrim, "" ); }, // results is for internal usage only makeArray: function( arr, results ) { var ret = results || []; if ( arr != null ) { if ( isArraylike( Object(arr) ) ) { jQuery.merge( ret, typeof arr === "string" ? [ arr ] : arr ); } else { push.call( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { var len; if ( arr ) { if ( indexOf ) { return indexOf.call( arr, elem, i ); } len = arr.length; i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0; for ( ; i < len; i++ ) { // Skip accessing in sparse arrays if ( i in arr && arr[ i ] === elem ) { return i; } } } return -1; }, merge: function( first, second ) { var len = +second.length, j = 0, i = first.length; while ( j < len ) { first[ i++ ] = second[ j++ ]; } // Support: IE<9 // Workaround casting of .length to NaN on otherwise arraylike objects (e.g., NodeLists) if ( len !== len ) { while ( second[j] !== undefined ) { first[ i++ ] = second[ j++ ]; } } first.length = i; return first; }, grep: function( elems, callback, invert ) { var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { callbackInverse = !callback( elems[ i ], i ); if ( callbackInverse !== callbackExpect ) { matches.push( elems[ i ] ); } } return matches; }, // arg is for internal usage only map: function( elems, callback, arg ) { var value, i = 0, length = elems.length, isArray = isArraylike( elems ), ret = []; // Go through the array, translating each of the items to their new values if ( isArray ) { for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } // Go through every key on the object, } else { for ( i in elems ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } } // Flatten any nested arrays return concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { var args, proxy, tmp; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind args = slice.call( arguments, 2 ); proxy = function() { return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, now: function() { return +( new Date() ); }, // jQuery.support is not used in Core but other projects attach their // properties to it so it needs to exist. support: support }); // Populate the class2type map jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); }); function isArraylike( obj ) { var length = obj.length, type = jQuery.type( obj ); if ( type === "function" || jQuery.isWindow( obj ) ) { return false; } if ( obj.nodeType === 1 && length ) { return true; } return type === "array" || length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj; } var Sizzle = /*! * Sizzle CSS Selector Engine v2.2.0-pre * http://sizzlejs.com/ * * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-16 */ (function( window ) { var i, support, Expr, getText, isXML, tokenize, compile, select, outermostContext, sortInput, hasDuplicate, // Local document vars setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, // Instance-specific data expando = "sizzle" + 1 * new Date(), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; } return 0; }, // General-purpose constants MAX_NEGATIVE = 1 << 31, // Instance methods hasOwn = ({}).hasOwnProperty, arr = [], pop = arr.pop, push_native = arr.push, push = arr.push, slice = arr.slice, // Use a stripped-down indexOf as it's faster than native // http://jsperf.com/thor-indexof-vs-for/5 indexOf = function( list, elem ) { var i = 0, len = list.length; for ( ; i < len; i++ ) { if ( list[i] === elem ) { return i; } } return -1; }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", // Regular expressions // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // http://www.w3.org/TR/css3-syntax/#characters characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", // Loosely modeled on CSS identifier characters // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier identifier = characterEncoding.replace( "w", "w#" ), // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors attributes = "\\[" + whitespace + "*(" + characterEncoding + ")(?:" + whitespace + // Operator (capture 2) "*([*^$|!~]?=)" + whitespace + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + "*\\]", pseudos = ":(" + characterEncoding + ")(?:\\((" + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: // 1. quoted (capture 3; capture 4 or capture 5) "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + // 2. simple (capture 6) "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + // 3. anything else (capture 2) ".*" + ")\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rwhitespace = new RegExp( whitespace + "+", "g" ), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { "ID": new RegExp( "^#(" + characterEncoding + ")" ), "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), // For use in libraries implementing .is() // We use this for POS matching in `select` "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rnative = /^[^{]+\{\s*\[native \w/, // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, rescape = /'|\\/g, // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), funescape = function( _, escaped, escapedWhitespace ) { var high = "0x" + escaped - 0x10000; // NaN means non-codepoint // Support: Firefox<24 // Workaround erroneous numeric interpretation of +"0x" return high !== high || escapedWhitespace ? escaped : high < 0 ? // BMP codepoint String.fromCharCode( high + 0x10000 ) : // Supplemental Plane codepoint (surrogate pair) String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }, // Used for iframes // See setDocument() // Removing the function wrapper causes a "Permission Denied" // error in IE unloadHandler = function() { setDocument(); }; // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call( preferredDoc.childNodes )), preferredDoc.childNodes ); // Support: Android<4.0 // Detect silently failing push.apply arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { push = { apply: arr.length ? // Leverage slice if possible function( target, els ) { push_native.apply( target, slice.call(els) ); } : // Support: IE<9 // Otherwise append directly function( target, els ) { var j = target.length, i = 0; // Can't trust NodeList.length while ( (target[j++] = els[i++]) ) {} target.length = j - 1; } }; } function Sizzle( selector, context, results, seed ) { var match, elem, m, nodeType, // QSA vars i, groups, old, nid, newContext, newSelector; if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { setDocument( context ); } context = context || document; results = results || []; nodeType = context.nodeType; if ( typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { return results; } if ( !seed && documentIsHTML ) { // Try to shortcut find operations when possible (e.g., not under DocumentFragment) if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { // Speed-up: Sizzle("#ID") if ( (m = match[1]) ) { if ( nodeType === 9 ) { elem = context.getElementById( m ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document (jQuery #6963) if ( elem && elem.parentNode ) { // Handle the case where IE, Opera, and Webkit return items // by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } } else { // Context is not a document if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Speed-up: Sizzle("TAG") } else if ( match[2] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Speed-up: Sizzle(".CLASS") } else if ( (m = match[3]) && support.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // QSA path if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { nid = old = expando; newContext = context; newSelector = nodeType !== 1 && selector; // qSA works strangely on Element-rooted queries // We can work around this by specifying an extra ID on the root // and working up from there (Thanks to Andrew Dupont for the technique) // IE 8 doesn't work on object elements if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { groups = tokenize( selector ); if ( (old = context.getAttribute("id")) ) { nid = old.replace( rescape, "\\$&" ); } else { context.setAttribute( "id", nid ); } nid = "[id='" + nid + "'] "; i = groups.length; while ( i-- ) { groups[i] = nid + toSelector( groups[i] ); } newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; newSelector = groups.join(","); } if ( newSelector ) { try { push.apply( results, newContext.querySelectorAll( newSelector ) ); return results; } catch(qsaError) { } finally { if ( !old ) { context.removeAttribute("id"); } } } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * Create key-value caches of limited size * @returns {Function(string, Object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key + " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return (cache[ key + " " ] = value); } return cache; } /** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; } /** * Support testing using an element * @param {Function} fn Passed the created div and expects a boolean result */ function assert( fn ) { var div = document.createElement("div"); try { return !!fn( div ); } catch (e) { return false; } finally { // Remove from its parent by default if ( div.parentNode ) { div.parentNode.removeChild( div ); } // release memory in IE div = null; } } /** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { var arr = attrs.split("|"), i = attrs.length; while ( i-- ) { Expr.attrHandle[ arr[i] ] = handler; } } /** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE ); // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( (cur = cur.nextSibling) ) { if ( cur === b ) { return -1; } } } return a ? 1 : -1; } /** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } /** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; } /** * Returns a function to use in pseudos for positionals * @param {Function} fn */ function createPositionalPseudo( fn ) { return markFunction(function( argument ) { argument = +argument; return markFunction(function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ (j = matchIndexes[i]) ] ) { seed[j] = !(matches[j] = seed[j]); } } }); }); } /** * Checks a node for validity as a Sizzle context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value */ function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; } // Expose support vars for convenience support = Sizzle.support = {}; /** * Detects XML nodes * @param {Element|Object} elem An element or a document * @returns {Boolean} True iff elem is a non-HTML XML node */ isXML = Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; /** * Sets document-related variables once based on the current document * @param {Element|Object} [doc] An element or document object to use to set the document * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { var hasCompare, parent, doc = node ? node.ownerDocument || node : preferredDoc; // If no document and documentElement is available, return if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Set our document document = doc; docElem = doc.documentElement; parent = doc.defaultView; // Support: IE>8 // If iframe document is assigned to "document" variable and if iframe has been reloaded, // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 // IE6-8 do not support the defaultView property so parent will be undefined if ( parent && parent !== parent.top ) { // IE11 does not have attachEvent, so all must suffer if ( parent.addEventListener ) { parent.addEventListener( "unload", unloadHandler, false ); } else if ( parent.attachEvent ) { parent.attachEvent( "onunload", unloadHandler ); } } /* Support tests ---------------------------------------------------------------------- */ documentIsHTML = !isXML( doc ); /* Attributes ---------------------------------------------------------------------- */ // Support: IE<8 // Verify that getAttribute really returns attributes and not properties // (excepting IE8 booleans) support.attributes = assert(function( div ) { div.className = "i"; return !div.getAttribute("className"); }); /* getElement(s)By* ---------------------------------------------------------------------- */ // Check if getElementsByTagName("*") returns only elements support.getElementsByTagName = assert(function( div ) { div.appendChild( doc.createComment("") ); return !div.getElementsByTagName("*").length; }); // Support: IE<9 support.getElementsByClassName = rnative.test( doc.getElementsByClassName ); // Support: IE<10 // Check if getElementById returns elements by name // The broken getElementById methods don't pick up programatically-set names, // so use a roundabout getElementsByName test support.getById = assert(function( div ) { docElem.appendChild( div ).id = expando; return !doc.getElementsByName || !doc.getElementsByName( expando ).length; }); // ID find and filter if ( support.getById ) { Expr.find["ID"] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var m = context.getElementById( id ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 return m && m.parentNode ? [ m ] : []; } }; Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { return elem.getAttribute("id") === attrId; }; }; } else { // Support: IE6/7 // getElementById is not reliable as a find shortcut delete Expr.find["ID"]; Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); return node && node.value === attrId; }; }; } // Tag Expr.find["TAG"] = support.getElementsByTagName ? function( tag, context ) { if ( typeof context.getElementsByTagName !== "undefined" ) { return context.getElementsByTagName( tag ); // DocumentFragment nodes don't have gEBTN } else if ( support.qsa ) { return context.querySelectorAll( tag ); } } : function( tag, context ) { var elem, tmp = [], i = 0, // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { while ( (elem = results[i++]) ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }; // Class Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { if ( documentIsHTML ) { return context.getElementsByClassName( className ); } }; /* QSA/matchesSelector ---------------------------------------------------------------------- */ // QSA and matchesSelector support // matchesSelector(:active) reports false when true (IE9/Opera 11.5) rbuggyMatches = []; // qSa(:focus) reports false when true (Chrome 21) // We allow this because of a bug in IE8/9 that throws an error // whenever `document.activeElement` is accessed on an iframe // So, we allow :focus to pass through QSA all the time to avoid the IE error // See http://bugs.jquery.com/ticket/13378 rbuggyQSA = []; if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { // Build QSA regex // Regex strategy adopted from Diego Perini assert(function( div ) { // Select is set to empty string on purpose // This is to test IE's treatment of not explicitly // setting a boolean content attribute, // since its presence should be enough // http://bugs.jquery.com/ticket/12359 docElem.appendChild( div ).innerHTML = "" + ""; // Support: IE8, Opera 11-12.16 // Nothing should be selected when empty strings follow ^= or $= or *= // The test attribute must be unknown in Opera but "safe" for WinRT // http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section if ( div.querySelectorAll("[msallowcapture^='']").length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); } // Support: IE8 // Boolean attributes and "value" are not treated correctly if ( !div.querySelectorAll("[selected]").length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); } // Support: Chrome<29, Android<4.2+, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.7+ if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) { rbuggyQSA.push("~="); } // Webkit/Opera - :checked should return selected option elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked // IE8 throws error here and will not see later tests if ( !div.querySelectorAll(":checked").length ) { rbuggyQSA.push(":checked"); } // Support: Safari 8+, iOS 8+ // https://bugs.webkit.org/show_bug.cgi?id=136851 // In-page `selector#id sibing-combinator selector` fails if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) { rbuggyQSA.push(".#.+[+~]"); } }); assert(function( div ) { // Support: Windows 8 Native Apps // The type and name attributes are restricted during .innerHTML assignment var input = doc.createElement("input"); input.setAttribute( "type", "hidden" ); div.appendChild( input ).setAttribute( "name", "D" ); // Support: IE8 // Enforce case-sensitivity of name attribute if ( div.querySelectorAll("[name=d]").length ) { rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here and will not see later tests if ( !div.querySelectorAll(":enabled").length ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Opera 10-11 does not throw on post-comma invalid pseudos div.querySelectorAll("*,:x"); rbuggyQSA.push(",.*:"); }); } if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector) )) ) { assert(function( div ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) support.disconnectedMatch = matches.call( div, "div" ); // This should fail with an exception // Gecko does not error, returns false instead matches.call( div, "[s!='']:x" ); rbuggyMatches.push( "!=", pseudos ); }); } rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); /* Contains ---------------------------------------------------------------------- */ hasCompare = rnative.test( docElem.compareDocumentPosition ); // Element contains another // Purposefully does not implement inclusive descendent // As in, an element does not contain itself contains = hasCompare || rnative.test( docElem.contains ) ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && ( adown.contains ? adown.contains( bup ) : a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 )); } : function( a, b ) { if ( b ) { while ( (b = b.parentNode) ) { if ( b === a ) { return true; } } } return false; }; /* Sorting ---------------------------------------------------------------------- */ // Document order sorting sortOrder = hasCompare ? function( a, b ) { // Flag for duplicate removal if ( a === b ) { hasDuplicate = true; return 0; } // Sort on method existence if only one input has compareDocumentPosition var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; if ( compare ) { return compare; } // Calculate position if both inputs belong to the same document compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? a.compareDocumentPosition( b ) : // Otherwise we know they are disconnected 1; // Disconnected nodes if ( compare & 1 || (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { // Choose the first element that is related to our preferred document if ( a === doc || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { return -1; } if ( b === doc || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { return 1; } // Maintain original order return sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; } : function( a, b ) { // Exit early if the nodes are identical if ( a === b ) { hasDuplicate = true; return 0; } var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [ a ], bp = [ b ]; // Parentless nodes are either documents or disconnected if ( !aup || !bup ) { return a === doc ? -1 : b === doc ? 1 : aup ? -1 : bup ? 1 : sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; // If the nodes are siblings, we can do a quick check } else if ( aup === bup ) { return siblingCheck( a, b ); } // Otherwise we need full lists of their ancestors for comparison cur = a; while ( (cur = cur.parentNode) ) { ap.unshift( cur ); } cur = b; while ( (cur = cur.parentNode) ) { bp.unshift( cur ); } // Walk down the tree looking for a discrepancy while ( ap[i] === bp[i] ) { i++; } return i ? // Do a sibling check if the nodes have a common ancestor siblingCheck( ap[i], bp[i] ) : // Otherwise nodes in our document sort first ap[i] === preferredDoc ? -1 : bp[i] === preferredDoc ? 1 : 0; }; return doc; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } // Make sure that attribute selectors are quoted expr = expr.replace( rattributeQuotes, "='$1']" ); if ( support.matchesSelector && documentIsHTML && ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch (e) {} } return Sizzle( expr, document, null, [ elem ] ).length > 0; }; Sizzle.contains = function( context, elem ) { // Set document vars if needed if ( ( context.ownerDocument || context ) !== document ) { setDocument( context ); } return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], // Don't get fooled by Object.prototype properties (jQuery #13807) val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined; return val !== undefined ? val : support.attributes || !documentIsHTML ? elem.getAttribute( name ) : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null; }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Document sorting and removing duplicates * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice( 0 ); results.sort( sortOrder ); if ( hasDuplicate ) { while ( (elem = results[i++]) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } // Clear input after sorting to release objects // See https://github.com/jquery/sizzle/pull/225 sortInput = null; return results; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( !nodeType ) { // If no nodeType, this is expected to be an array while ( (node = elem[i++]) ) { // Do not traverse comment nodes ret += getText( node ); } } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (jQuery #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes return ret; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[1] = match[1].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); if ( match[2] === "~=" ) { match[3] = " " + match[3] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 4 xn-component of xn+y argument ([+-]?\d*n|) 5 sign of xn-component 6 x of xn-component 7 sign of y-component 8 y of y-component */ match[1] = match[1].toLowerCase(); if ( match[1].slice( 0, 3 ) === "nth" ) { // nth-* requires argument if ( !match[3] ) { Sizzle.error( match[0] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); // other types prohibit arguments } else if ( match[3] ) { Sizzle.error( match[0] ); } return match; }, "PSEUDO": function( match ) { var excess, unquoted = !match[6] && match[2]; if ( matchExpr["CHILD"].test( match[0] ) ) { return null; } // Accept quoted arguments as-is if ( match[3] ) { match[2] = match[4] || match[5] || ""; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && // Get excess from tokenize (recursively) (excess = tokenize( unquoted, true )) && // advance to the next closing parenthesis (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { // excess is a negative index match[0] = match[0].slice( 0, excess ); match[2] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "TAG": function( nodeNameSelector ) { var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? function() { return true; } : function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className + " " ]; return pattern || (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && classCache( className, function( elem ) { return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); }); }, "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.slice( -check.length ) === check : operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : false; }; }, "CHILD": function( type, what, argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; return first === 1 && last === 0 ? // Shortcut for :nth-*(n) function( elem ) { return !!elem.parentNode; } : function( elem, context, xml ) { var cache, outerCache, node, diff, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType; if ( parent ) { // :(first|last|only)-(child|of-type) if ( simple ) { while ( dir ) { node = elem; while ( (node = node[ dir ]) ) { if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { return false; } } // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } return true; } start = [ forward ? parent.firstChild : parent.lastChild ]; // non-xml :nth-child(...) stores cache data on `parent` if ( forward && useCache ) { // Seek `elem` from a previously-cached index outerCache = parent[ expando ] || (parent[ expando ] = {}); cache = outerCache[ type ] || []; nodeIndex = cache[0] === dirruns && cache[1]; diff = cache[0] === dirruns && cache[2]; node = nodeIndex && parent.childNodes[ nodeIndex ]; while ( (node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start (diff = nodeIndex = 0) || start.pop()) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { outerCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } // Use previously-cached element index if available } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { diff = cache[1]; // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) } else { // Use the same loop as above to seek `elem` from the start while ( (node = ++nodeIndex && node && node[ dir ] || (diff = nodeIndex = 0) || start.pop()) ) { if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; } if ( node === elem ) { break; } } } } // Incorporate the offset, then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // http://www.w3.org/TR/selectors/#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction(function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf( seed, matched[i] ); seed[ idx ] = !( matches[ idx ] = matched[i] ); } }) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { // Potentially complex pseudos "not": markFunction(function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction(function( seed, matches, context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( (elem = unmatched[i]) ) { seed[i] = !(matches[i] = elem); } } }) : function( elem, context, xml ) { input[0] = elem; matcher( input, null, xml, results ); // Don't keep the element (issue #299) input[0] = null; return !results.pop(); }; }), "has": markFunction(function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; }), "contains": markFunction(function( text ) { text = text.replace( runescape, funescape ); return function( elem ) { return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; }; }), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value // being equal to the identifier C, // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." // http://www.w3.org/TR/selectors/#lang-pseudo "lang": markFunction( function( lang ) { // lang value must be a valid identifier if ( !ridentifier.test(lang || "") ) { Sizzle.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { if ( (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); return false; }; }), // Miscellaneous "target": function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, "root": function( elem ) { return elem === docElem; }, "focus": function( elem ) { return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); }, // Boolean properties "enabled": function( elem ) { return elem.disabled === false; }, "disabled": function( elem ) { return elem.disabled === true; }, "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, // Contents "empty": function( elem ) { // http://www.w3.org/TR/selectors/#empty-pseudo // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), // but not by others (comment: 8; processing instruction: 7; etc.) // nodeType < 6 works because attributes (2) do not appear as children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { if ( elem.nodeType < 6 ) { return false; } } return true; }, "parent": function( elem ) { return !Expr.pseudos["empty"]( elem ); }, // Element/input types "header": function( elem ) { return rheader.test( elem.nodeName ); }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "text": function( elem ) { var attr; return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && // Support: IE<8 // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); }, // Position-in-collection "first": createPositionalPseudo(function() { return [ 0 ]; }), "last": createPositionalPseudo(function( matchIndexes, length ) { return [ length - 1 ]; }), "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; }), "even": createPositionalPseudo(function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "odd": createPositionalPseudo(function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; }), "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; }) } }; Expr.pseudos["nth"] = Expr.pseudos["eq"]; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { Expr.pseudos[ i ] = createButtonPseudo( i ); } // Easy API for creating new setFilters function setFilters() {} setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); tokenize = Sizzle.tokenize = function( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || (match = rcomma.exec( soFar )) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[0].length ) || soFar; } groups.push( (tokens = []) ); } matched = false; // Combinators if ( (match = rcombinators.exec( soFar )) ) { matched = match.shift(); tokens.push({ value: matched, // Cast descendant combinators to space type: match[0].replace( rtrim, " " ) }); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || (match = preFilters[ type ]( match ))) ) { matched = match.shift(); tokens.push({ value: matched, type: type, matches: match }); soFar = soFar.slice( matched.length ); } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); }; function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[i].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, checkNonElements = base && dir === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } } : // Check against all ancestor/preceding elements function( elem, context, xml ) { var oldCache, outerCache, newCache = [ dirruns, doneName ]; // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching if ( xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; } } } } else { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { outerCache = elem[ expando ] || (elem[ expando ] = {}); if ( (oldCache = outerCache[ dir ]) && oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { // Assign to newCache so results back-propagate to previous elements return (newCache[ 2 ] = oldCache[ 2 ]); } else { // Reuse newcache so results back-propagate to previous elements outerCache[ dir ] = newCache; // A match means we're done; a fail means we have to keep checking if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { return true; } } } } } }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[i]( elem, context, xml ) ) { return false; } } return true; } : matchers[0]; } function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results ); } return results; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( (elem = unmatched[i]) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction(function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( (elem = temp[i]) ) { matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) ) { // Restore matcherIn since elem is not yet a final match temp.push( (matcherIn[i] = elem) ); } } postFinder( null, (matcherOut = []), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) && (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { seed[temp] = !(results[temp] = elem); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } }); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[0].type ], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( (checkContext = context).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); // Avoid hanging onto element (issue #299) checkContext = null; return ret; } ]; for ( ; i < len; i++ ) { if ( (matcher = Expr.relative[ tokens[i].type ]) ) { matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; } else { matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[j].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) ).replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), j < len && toSelector( tokens ) ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, // We must always have either seed elements or outermost context elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), // Use integer dirruns iff this is the outermost matcher dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), len = elems.length; if ( outermost ) { outermostContext = context !== document && context; } // Add elements passing elementMatchers directly to results // Keep `i` a string if there are no elements so `matchedCount` will be "00" below // Support: IE<9, Safari // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id for ( ; i !== len && (elem = elems[i]) != null; i++ ) { if ( byElement && elem ) { j = 0; while ( (matcher = elementMatchers[j++]) ) { if ( matcher( elem, context, xml ) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( (elem = !matcher && elem) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // Apply set filters to unmatched elements matchedCount += i; if ( bySet && i !== matchedCount ) { j = 0; while ( (matcher = setMatchers[j++]) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !(unmatched[i] || setMatched[i]) ) { setMatched[i] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !match ) { match = tokenize( selector ); } i = match.length; while ( i-- ) { cached = matcherFromTokens( match[i] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); // Save selector and tokenization cached.selector = selector; } return cached; }; /** * A low-level selection function that works with Sizzle's compiled * selector functions * @param {String|Function} selector A selector or a pre-compiled * selector function built with Sizzle.compile * @param {Element} context * @param {Array} [results] * @param {Array} [seed] A set of elements to match against */ select = Sizzle.select = function( selector, context, results, seed ) { var i, tokens, token, type, find, compiled = typeof selector === "function" && selector, match = !seed && tokenize( (selector = compiled.selector || selector) ); results = results || []; // Try to minimize operations if there is no seed and only one group if ( match.length === 1 ) { // Take a shortcut and set the context if the root selector is an ID tokens = match[0] = match[0].slice( 0 ); if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && support.getById && context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; if ( !context ) { return results; // Precompiled matchers will still verify ancestry, so step up a level } else if ( compiled ) { context = context.parentNode; } selector = selector.slice( tokens.shift().value.length ); } // Fetch a seed set for right-to-left matching i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; while ( i-- ) { token = tokens[i]; // Abort if we hit a combinator if ( Expr.relative[ (type = token.type) ] ) { break; } if ( (find = Expr.find[ type ]) ) { // Search, expanding context for leading sibling combinators if ( (seed = find( token.matches[0].replace( runescape, funescape ), rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context )) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && toSelector( tokens ); if ( !selector ) { push.apply( results, seed ); return results; } break; } } } } // Compile and execute a filtering function if one is not provided // Provide `match` to avoid retokenization if we modified the selector above ( compiled || compile( selector, match ) )( seed, context, !documentIsHTML, results, rsibling.test( selector ) && testContext( context.parentNode ) || context ); return results; }; // One-time assignments // Sort stability support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; // Support: Chrome 14-35+ // Always assume duplicates if they aren't passed to the comparison function support.detectDuplicates = !!hasDuplicate; // Initialize against the default document setDocument(); // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) // Detached nodes confoundingly follow *each other* support.sortDetached = assert(function( div1 ) { // Should return 1, but returns 4 (following) return div1.compareDocumentPosition( document.createElement("div") ) & 1; }); // Support: IE<8 // Prevent attribute/property "interpolation" // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx if ( !assert(function( div ) { div.innerHTML = ""; return div.firstChild.getAttribute("href") === "#" ; }) ) { addHandle( "type|href|height|width", function( elem, name, isXML ) { if ( !isXML ) { return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); } }); } // Support: IE<9 // Use defaultValue in place of getAttribute("value") if ( !support.attributes || !assert(function( div ) { div.innerHTML = ""; div.firstChild.setAttribute( "value", "" ); return div.firstChild.getAttribute( "value" ) === ""; }) ) { addHandle( "value", function( elem, name, isXML ) { if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { return elem.defaultValue; } }); } // Support: IE<9 // Use getAttributeNode to fetch booleans when getAttribute lies if ( !assert(function( div ) { return div.getAttribute("disabled") == null; }) ) { addHandle( booleans, function( elem, name, isXML ) { var val; if ( !isXML ) { return elem[ name ] === true ? name.toLowerCase() : (val = elem.getAttributeNode( name )) && val.specified ? val.value : null; } }); } return Sizzle; })( window ); jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; jQuery.expr[":"] = jQuery.expr.pseudos; jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; var rneedsContext = jQuery.expr.match.needsContext; var rsingleTag = (/^<(\w+)\s*\/?>(?:<\/\1>|)$/); var risSimple = /^.[^:#\[\.,]*$/; // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { /* jshint -W018 */ return !!qualifier.call( elem, i, elem ) !== not; }); } if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; }); } if ( typeof qualifier === "string" ) { if ( risSimple.test( qualifier ) ) { return jQuery.filter( qualifier, elements, not ); } qualifier = jQuery.filter( qualifier, elements ); } return jQuery.grep( elements, function( elem ) { return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not; }); } jQuery.filter = function( expr, elems, not ) { var elem = elems[ 0 ]; if ( not ) { expr = ":not(" + expr + ")"; } return elems.length === 1 && elem.nodeType === 1 ? jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { return elem.nodeType === 1; })); }; jQuery.fn.extend({ find: function( selector ) { var i, ret = [], self = this, len = self.length; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } }) ); } for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } // Needed because $( selector, context ) becomes $( context ).find( selector ) ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); ret.selector = this.selector ? this.selector + " " + selector : selector; return ret; }, filter: function( selector ) { return this.pushStack( winnow(this, selector || [], false) ); }, not: function( selector ) { return this.pushStack( winnow(this, selector || [], true) ); }, is: function( selector ) { return !!winnow( this, // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". typeof selector === "string" && rneedsContext.test( selector ) ? jQuery( selector ) : selector || [], false ).length; } }); // Initialize a jQuery object // A central reference to the root jQuery(document) var rootjQuery, // Use the correct document accordingly with window argument (sandbox) document = window.document, // A simple way to check for HTML strings // Prioritize #id over to avoid XSS via location.hash (#9521) // Strict HTML recognition (#11290: must start with <) rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, init = jQuery.fn.init = function( selector, context ) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Handle HTML strings if ( typeof selector === "string" ) { if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && (match[1] || !context) ) { // HANDLE: $(html) -> $(array) if ( match[1] ) { context = context instanceof jQuery ? context[0] : context; // scripts is true for back-compat // Intentionally let the error be thrown if parseHTML is not present jQuery.merge( this, jQuery.parseHTML( match[1], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { for ( match in context ) { // Properties of context are called as methods if possible if ( jQuery.isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes } else { this.attr( match, context[ match ] ); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById( match[2] ); // Check parentNode to catch when Blackberry 4.6 returns // nodes that are no longer in the document #6963 if ( elem && elem.parentNode ) { // Handle the case where IE and Opera return items // by name instead of ID if ( elem.id !== match[2] ) { return rootjQuery.find( selector ); } // Otherwise, we inject the element directly into the jQuery object this.length = 1; this[0] = elem; } this.context = document; this.selector = selector; return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || rootjQuery ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { this.context = this[0] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return typeof rootjQuery.ready !== "undefined" ? rootjQuery.ready( selector ) : // Execute immediately if ready is not present selector( jQuery ); } if ( selector.selector !== undefined ) { this.selector = selector.selector; this.context = selector.context; } return jQuery.makeArray( selector, this ); }; // Give the init function the jQuery prototype for later instantiation init.prototype = jQuery.fn; // Initialize central reference rootjQuery = jQuery( document ); var rparentsprev = /^(?:parents|prev(?:Until|All))/, // methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.extend({ dir: function( elem, dir, until ) { var matched = [], cur = elem[ dir ]; while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { if ( cur.nodeType === 1 ) { matched.push( cur ); } cur = cur[dir]; } return matched; }, sibling: function( n, elem ) { var r = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { r.push( n ); } } return r; } }); jQuery.fn.extend({ has: function( target ) { var i, targets = jQuery( target, this ), len = targets.length; return this.filter(function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( this, targets[i] ) ) { return true; } } }); }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, matched = [], pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ? jQuery( selectors, context || this.context ) : 0; for ( ; i < l; i++ ) { for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { // Always skip document fragments if ( cur.nodeType < 11 && (pos ? pos.index(cur) > -1 : // Don't pass non-elements to Sizzle cur.nodeType === 1 && jQuery.find.matchesSelector(cur, selectors)) ) { matched.push( cur ); break; } } } return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); }, // Determine the position of an element within // the matched set of elements index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[0] && this[0].parentNode ) ? this.first().prevAll().length : -1; } // index in selector if ( typeof elem === "string" ) { return jQuery.inArray( this[0], jQuery( elem ) ); } // Locate the position of the desired element return jQuery.inArray( // If it receives a jQuery object, the first element is used elem.jquery ? elem[0] : elem, this ); }, add: function( selector, context ) { return this.pushStack( jQuery.unique( jQuery.merge( this.get(), jQuery( selector, context ) ) ) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter(selector) ); } }); function sibling( cur, dir ) { do { cur = cur[ dir ]; } while ( cur && cur.nodeType !== 1 ); return cur; } jQuery.each({ parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return jQuery.dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return jQuery.dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return jQuery.dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return jQuery.dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return jQuery.dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return jQuery.dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return jQuery.sibling( elem.firstChild ); }, contents: function( elem ) { return jQuery.nodeName( elem, "iframe" ) ? elem.contentDocument || elem.contentWindow.document : jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var ret = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { ret = jQuery.filter( selector, ret ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { ret = jQuery.unique( ret ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { ret = ret.reverse(); } } return this.pushStack( ret ); }; }); var rnotwhite = (/\S+/g); // String to Object options format cache var optionsCache = {}; // Convert String-formatted options into Object-formatted ones and store in cache function createOptions( options ) { var object = optionsCache[ options ] = {}; jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) { object[ flag ] = true; }); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? ( optionsCache[ options ] || createOptions( options ) ) : jQuery.extend( {}, options ); var // Flag to know if list is currently firing firing, // Last fire value (for non-forgettable lists) memory, // Flag to know if list was already fired fired, // End of the loop when firing firingLength, // Index of currently firing callback (modified by remove if needed) firingIndex, // First callback to fire (used internally by add and fireWith) firingStart, // Actual callback list list = [], // Stack of fire calls for repeatable lists stack = !options.once && [], // Fire callbacks fire = function( data ) { memory = options.memory && data; fired = true; firingIndex = firingStart || 0; firingStart = 0; firingLength = list.length; firing = true; for ( ; list && firingIndex < firingLength; firingIndex++ ) { if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { memory = false; // To prevent further calls using add break; } } firing = false; if ( list ) { if ( stack ) { if ( stack.length ) { fire( stack.shift() ); } } else if ( memory ) { list = []; } else { self.disable(); } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // First, we save the current length var start = list.length; (function add( args ) { jQuery.each( args, function( _, arg ) { var type = jQuery.type( arg ); if ( type === "function" ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && type !== "string" ) { // Inspect recursively add( arg ); } }); })( arguments ); // Do we need to add the callbacks to the // current firing batch? if ( firing ) { firingLength = list.length; // With memory, if we're not firing then // we should call right away } else if ( memory ) { firingStart = start; fire( memory ); } } return this; }, // Remove a callback from the list remove: function() { if ( list ) { jQuery.each( arguments, function( _, arg ) { var index; while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( firing ) { if ( index <= firingLength ) { firingLength--; } if ( index <= firingIndex ) { firingIndex--; } } } }); } return this; }, // Check if a given callback is in the list. // If no argument is given, return whether or not list has callbacks attached. has: function( fn ) { return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); }, // Remove all callbacks from the list empty: function() { list = []; firingLength = 0; return this; }, // Have the list do nothing anymore disable: function() { list = stack = memory = undefined; return this; }, // Is it disabled? disabled: function() { return !list; }, // Lock the list in its current state lock: function() { stack = undefined; if ( !memory ) { self.disable(); } return this; }, // Is it locked? locked: function() { return !stack; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { if ( list && ( !fired || stack ) ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; if ( firing ) { stack.push( args ); } else { fire( args ); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add listener, listener list, final state [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], [ "notify", "progress", jQuery.Callbacks("memory") ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, then: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred(function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; // deferred[ done | fail | progress ] for forwarding actions to newDefer deferred[ tuple[1] ](function() { var returned = fn && fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise() .done( newDefer.resolve ) .fail( newDefer.reject ) .progress( newDefer.notify ); } else { newDefer[ tuple[ 0 ] + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); } }); }); fns = null; }).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Keep pipe for back-compat promise.pipe = promise.then; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 3 ]; // promise[ done | fail | progress ] = list.add promise[ tuple[1] ] = list.add; // Handle state if ( stateString ) { list.add(function() { // state = [ resolved | rejected ] state = stateString; // [ reject_list | resolve_list ].disable; progress_list.lock }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); } // deferred[ resolve | reject | notify ] deferred[ tuple[0] ] = function() { deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); return this; }; deferred[ tuple[0] + "With" ] = list.fireWith; }); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( subordinate /* , ..., subordinateN */ ) { var i = 0, resolveValues = slice.call( arguments ), length = resolveValues.length, // the count of uncompleted subordinates remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, // the master Deferred. If resolveValues consist of only a single Deferred, just use that. deferred = remaining === 1 ? subordinate : jQuery.Deferred(), // Update function for both resolve and progress values updateFunc = function( i, contexts, values ) { return function( value ) { contexts[ i ] = this; values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( values === progressValues ) { deferred.notifyWith( contexts, values ); } else if ( !(--remaining) ) { deferred.resolveWith( contexts, values ); } }; }, progressValues, progressContexts, resolveContexts; // add listeners to Deferred subordinates; treat others as resolved if ( length > 1 ) { progressValues = new Array( length ); progressContexts = new Array( length ); resolveContexts = new Array( length ); for ( ; i < length; i++ ) { if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { resolveValues[ i ].promise() .done( updateFunc( i, resolveContexts, resolveValues ) ) .fail( deferred.reject ) .progress( updateFunc( i, progressContexts, progressValues ) ); } else { --remaining; } } } // if we're not waiting on anything, resolve the master if ( !remaining ) { deferred.resolveWith( resolveContexts, resolveValues ); } return deferred.promise(); } }); // The deferred used on DOM ready var readyList; jQuery.fn.ready = function( fn ) { // Add the callback jQuery.ready.promise().done( fn ); return this; }; jQuery.extend({ // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). if ( !document.body ) { return setTimeout( jQuery.ready ); } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); // Trigger any bound ready events if ( jQuery.fn.triggerHandler ) { jQuery( document ).triggerHandler( "ready" ); jQuery( document ).off( "ready" ); } } }); /** * Clean-up method for dom ready events */ function detach() { if ( document.addEventListener ) { document.removeEventListener( "DOMContentLoaded", completed, false ); window.removeEventListener( "load", completed, false ); } else { document.detachEvent( "onreadystatechange", completed ); window.detachEvent( "onload", completed ); } } /** * The ready event handler and self cleanup method */ function completed() { // readyState === "complete" is good enough for us to call the dom ready in oldIE if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) { detach(); jQuery.ready(); } } jQuery.ready.promise = function( obj ) { if ( !readyList ) { readyList = jQuery.Deferred(); // Catch cases where $(document).ready() is called after the browser event has already occurred. // we once tried to use readyState "interactive" here, but it caused issues like the one // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 if ( document.readyState === "complete" ) { // Handle it asynchronously to allow scripts the opportunity to delay ready setTimeout( jQuery.ready ); // Standards-based browsers support DOMContentLoaded } else if ( document.addEventListener ) { // Use the handy event callback document.addEventListener( "DOMContentLoaded", completed, false ); // A fallback to window.onload, that will always work window.addEventListener( "load", completed, false ); // If IE event model is used } else { // Ensure firing before onload, maybe late but safe also for iframes document.attachEvent( "onreadystatechange", completed ); // A fallback to window.onload, that will always work window.attachEvent( "onload", completed ); // If IE and not a frame // continually check to see if the document is ready var top = false; try { top = window.frameElement == null && document.documentElement; } catch(e) {} if ( top && top.doScroll ) { (function doScrollCheck() { if ( !jQuery.isReady ) { try { // Use the trick by Diego Perini // http://javascript.nwbox.com/IEContentLoaded/ top.doScroll("left"); } catch(e) { return setTimeout( doScrollCheck, 50 ); } // detach all dom ready events detach(); // and execute any waiting functions jQuery.ready(); } })(); } } } return readyList.promise( obj ); }; var strundefined = typeof undefined; // Support: IE<9 // Iteration over object's inherited properties before its own var i; for ( i in jQuery( support ) ) { break; } support.ownLast = i !== "0"; // Note: most support tests are defined in their respective modules. // false until the test is run support.inlineBlockNeedsLayout = false; // Execute ASAP in case we need to set body.style.zoom jQuery(function() { // Minified: var a,b,c,d var val, div, body, container; body = document.getElementsByTagName( "body" )[ 0 ]; if ( !body || !body.style ) { // Return for frameset docs that don't have a body return; } // Setup div = document.createElement( "div" ); container = document.createElement( "div" ); container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px"; body.appendChild( container ).appendChild( div ); if ( typeof div.style.zoom !== strundefined ) { // Support: IE<8 // Check if natively block-level elements act like inline-block // elements when setting their display to 'inline' and giving // them layout div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1"; support.inlineBlockNeedsLayout = val = div.offsetWidth === 3; if ( val ) { // Prevent IE 6 from affecting layout for positioned elements #11048 // Prevent IE from shrinking the body in IE 7 mode #12869 // Support: IE<8 body.style.zoom = 1; } } body.removeChild( container ); }); (function() { var div = document.createElement( "div" ); // Execute the test only if not already executed in another module. if (support.deleteExpando == null) { // Support: IE<9 support.deleteExpando = true; try { delete div.test; } catch( e ) { support.deleteExpando = false; } } // Null elements to avoid leaks in IE. div = null; })(); /** * Determines whether an object can have data */ jQuery.acceptData = function( elem ) { var noData = jQuery.noData[ (elem.nodeName + " ").toLowerCase() ], nodeType = +elem.nodeType || 1; // Do not set data on non-element DOM nodes because it will not be cleared (#8335). return nodeType !== 1 && nodeType !== 9 ? false : // Nodes accept data unless otherwise specified; rejection can be conditional !noData || noData !== true && elem.getAttribute("classid") === noData; }; var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /([A-Z])/g; function dataAttr( elem, key, data ) { // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = data === "true" ? true : data === "false" ? false : data === "null" ? null : // Only convert to a number if it doesn't change the string +data + "" === data ? +data : rbrace.test( data ) ? jQuery.parseJSON( data ) : data; } catch( e ) {} // Make sure we set the data so it isn't changed later jQuery.data( elem, key, data ); } else { data = undefined; } } return data; } // checks a cache object for emptiness function isEmptyDataObject( obj ) { var name; for ( name in obj ) { // if the public data object is empty, the private is still empty if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) { continue; } if ( name !== "toJSON" ) { return false; } } return true; } function internalData( elem, name, data, pvt /* Internal Use Only */ ) { if ( !jQuery.acceptData( elem ) ) { return; } var ret, thisCache, internalKey = jQuery.expando, // We have to handle DOM nodes and JS objects differently because IE6-7 // can't GC object references properly across the DOM-JS boundary isNode = elem.nodeType, // Only DOM nodes need the global jQuery cache; JS object data is // attached directly to the object so GC can occur automatically cache = isNode ? jQuery.cache : elem, // Only defining an ID for JS objects if its cache already exists allows // the code to shortcut on the same path as a DOM node with no cache id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey; // Avoid doing any more work than we need to when trying to get data on an // object that has no data at all if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) { return; } if ( !id ) { // Only DOM nodes need a new unique ID for each element since their data // ends up in the global cache if ( isNode ) { id = elem[ internalKey ] = deletedIds.pop() || jQuery.guid++; } else { id = internalKey; } } if ( !cache[ id ] ) { // Avoid exposing jQuery metadata on plain JS objects when the object // is serialized using JSON.stringify cache[ id ] = isNode ? {} : { toJSON: jQuery.noop }; } // An object can be passed to jQuery.data instead of a key/value pair; this gets // shallow copied over onto the existing cache if ( typeof name === "object" || typeof name === "function" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } } thisCache = cache[ id ]; // jQuery data() is stored in a separate object inside the object's internal data // cache in order to avoid key collisions between internal data and user-defined // data. if ( !pvt ) { if ( !thisCache.data ) { thisCache.data = {}; } thisCache = thisCache.data; } if ( data !== undefined ) { thisCache[ jQuery.camelCase( name ) ] = data; } // Check for both converted-to-camel and non-converted data property names // If a data property was specified if ( typeof name === "string" ) { // First Try to find as-is property data ret = thisCache[ name ]; // Test for null|undefined property data if ( ret == null ) { // Try to find the camelCased property ret = thisCache[ jQuery.camelCase( name ) ]; } } else { ret = thisCache; } return ret; } function internalRemoveData( elem, name, pvt ) { if ( !jQuery.acceptData( elem ) ) { return; } var thisCache, i, isNode = elem.nodeType, // See jQuery.data for more information cache = isNode ? jQuery.cache : elem, id = isNode ? elem[ jQuery.expando ] : jQuery.expando; // If there is already no cache entry for this object, there is no // purpose in continuing if ( !cache[ id ] ) { return; } if ( name ) { thisCache = pvt ? cache[ id ] : cache[ id ].data; if ( thisCache ) { // Support array or space separated string names for data keys if ( !jQuery.isArray( name ) ) { // try the string as a key before any manipulation if ( name in thisCache ) { name = [ name ]; } else { // split the camel cased version by spaces unless a key with the spaces exists name = jQuery.camelCase( name ); if ( name in thisCache ) { name = [ name ]; } else { name = name.split(" "); } } } else { // If "name" is an array of keys... // When data is initially created, via ("key", "val") signature, // keys will be converted to camelCase. // Since there is no way to tell _how_ a key was added, remove // both plain key and camelCase key. #12786 // This will only penalize the array argument path. name = name.concat( jQuery.map( name, jQuery.camelCase ) ); } i = name.length; while ( i-- ) { delete thisCache[ name[i] ]; } // If there is no data left in the cache, we want to continue // and let the cache object itself get destroyed if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) { return; } } } // See jQuery.data for more information if ( !pvt ) { delete cache[ id ].data; // Don't destroy the parent cache unless the internal data object // had been the only thing left in it if ( !isEmptyDataObject( cache[ id ] ) ) { return; } } // Destroy the cache if ( isNode ) { jQuery.cleanData( [ elem ], true ); // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080) /* jshint eqeqeq: false */ } else if ( support.deleteExpando || cache != cache.window ) { /* jshint eqeqeq: true */ delete cache[ id ]; // When all else fails, null } else { cache[ id ] = null; } } jQuery.extend({ cache: {}, // The following elements (space-suffixed to avoid Object.prototype collisions) // throw uncatchable exceptions if you attempt to set expando properties noData: { "applet ": true, "embed ": true, // ...but Flash objects (which have this classid) *can* handle expandos "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" }, hasData: function( elem ) { elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; return !!elem && !isEmptyDataObject( elem ); }, data: function( elem, name, data ) { return internalData( elem, name, data ); }, removeData: function( elem, name ) { return internalRemoveData( elem, name ); }, // For internal use only. _data: function( elem, name, data ) { return internalData( elem, name, data, true ); }, _removeData: function( elem, name ) { return internalRemoveData( elem, name, true ); } }); jQuery.fn.extend({ data: function( key, value ) { var i, name, data, elem = this[0], attrs = elem && elem.attributes; // Special expections of .data basically thwart jQuery.access, // so implement the relevant behavior ourselves // Gets all values if ( key === undefined ) { if ( this.length ) { data = jQuery.data( elem ); if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) { i = attrs.length; while ( i-- ) { // Support: IE11+ // The attrs elements can be null (#14894) if ( attrs[ i ] ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { name = jQuery.camelCase( name.slice(5) ); dataAttr( elem, name, data[ name ] ); } } } jQuery._data( elem, "parsedAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each(function() { jQuery.data( this, key ); }); } return arguments.length > 1 ? // Sets one value this.each(function() { jQuery.data( this, key, value ); }) : // Gets one value // Try to fetch any internally stored data first elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : undefined; }, removeData: function( key ) { return this.each(function() { jQuery.removeData( this, key ); }); } }); jQuery.extend({ queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = jQuery._data( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || jQuery.isArray(data) ) { queue = jQuery._data( elem, type, jQuery.makeArray(data) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // not intended for public consumption - generates a queueHooks object, or returns the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return jQuery._data( elem, key ) || jQuery._data( elem, key, { empty: jQuery.Callbacks("once memory").add(function() { jQuery._removeData( elem, type + "queue" ); jQuery._removeData( elem, key ); }) }); } }); jQuery.fn.extend({ queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[0], type ); } return data === undefined ? this : this.each(function() { var queue = jQuery.queue( this, type, data ); // ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[0] !== "inprogress" ) { jQuery.dequeue( this, type ); } }); }, dequeue: function( type ) { return this.each(function() { jQuery.dequeue( this, type ); }); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while ( i-- ) { tmp = jQuery._data( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } }); var pnum = (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; var isHidden = function( elem, el ) { // isHidden might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); }; // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, length = elems.length, bulk = key == null; // Sets many values if ( jQuery.type( key ) === "object" ) { chainable = true; for ( i in key ) { jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); } // Sets one value } else if ( value !== undefined ) { chainable = true; if ( !jQuery.isFunction( value ) ) { raw = true; } if ( bulk ) { // Bulk operations run against the entire set if ( raw ) { fn.call( elems, value ); fn = null; // ...except when executing function values } else { bulk = fn; fn = function( elem, key, value ) { return bulk.call( jQuery( elem ), value ); }; } } if ( fn ) { for ( ; i < length; i++ ) { fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); } } } return chainable ? elems : // Gets bulk ? fn.call( elems ) : length ? fn( elems[0], key ) : emptyGet; }; var rcheckableType = (/^(?:checkbox|radio)$/i); (function() { // Minified: var a,b,c var input = document.createElement( "input" ), div = document.createElement( "div" ), fragment = document.createDocumentFragment(); // Setup div.innerHTML = "
a"; // IE strips leading whitespace when .innerHTML is used support.leadingWhitespace = div.firstChild.nodeType === 3; // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables support.tbody = !div.getElementsByTagName( "tbody" ).length; // Make sure that link elements get serialized correctly by innerHTML // This requires a wrapper element in IE support.htmlSerialize = !!div.getElementsByTagName( "link" ).length; // Makes sure cloning an html5 element does not cause problems // Where outerHTML is undefined, this still works support.html5Clone = document.createElement( "nav" ).cloneNode( true ).outerHTML !== "<:nav>"; // Check if a disconnected checkbox will retain its checked // value of true after appended to the DOM (IE6/7) input.type = "checkbox"; input.checked = true; fragment.appendChild( input ); support.appendChecked = input.checked; // Make sure textarea (and checkbox) defaultValue is properly cloned // Support: IE6-IE11+ div.innerHTML = ""; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; // #11217 - WebKit loses check when the name is after the checked attribute fragment.appendChild( div ); div.innerHTML = ""; // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 // old WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: IE<9 // Opera does not clone events (and typeof div.attachEvent === undefined). // IE9-10 clones events bound via attachEvent, but they don't trigger with .click() support.noCloneEvent = true; if ( div.attachEvent ) { div.attachEvent( "onclick", function() { support.noCloneEvent = false; }); div.cloneNode( true ).click(); } // Execute the test only if not already executed in another module. if (support.deleteExpando == null) { // Support: IE<9 support.deleteExpando = true; try { delete div.test; } catch( e ) { support.deleteExpando = false; } } })(); (function() { var i, eventName, div = document.createElement( "div" ); // Support: IE<9 (lack submit/change bubble), Firefox 23+ (lack focusin event) for ( i in { submit: true, change: true, focusin: true }) { eventName = "on" + i; if ( !(support[ i + "Bubbles" ] = eventName in window) ) { // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) div.setAttribute( eventName, "t" ); support[ i + "Bubbles" ] = div.attributes[ eventName ].expando === false; } } // Null elements to avoid leaks in IE. div = null; })(); var rformElems = /^(?:input|select|textarea)$/i, rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|pointer|contextmenu)|click/, rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; function returnTrue() { return true; } function returnFalse() { return false; } function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } } /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { global: {}, add: function( elem, types, handler, data, selector ) { var tmp, events, t, handleObjIn, special, eventHandle, handleObj, handlers, type, namespaces, origType, elemData = jQuery._data( elem ); // Don't attach events to noData or text/comment nodes (but allow plain objects) if ( !elemData ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first if ( !(events = elemData.events) ) { events = elemData.events = {}; } if ( !(eventHandle = elemData.handle) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== strundefined && (!e || jQuery.event.triggered !== e.type) ? jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : undefined; }; // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events eventHandle.elem = elem; } // Handle multiple events separated by a space types = ( types || "" ).match( rnotwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[t] ) || []; type = origType = tmp[1]; namespaces = ( tmp[2] || "" ).split( "." ).sort(); // There *must* be a type, no attaching namespace-only handlers if ( !type ) { continue; } // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend({ type: type, origType: origType, data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join(".") }, handleObjIn ); // Init the event handler queue if we're the first if ( !(handlers = events[ type ]) ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener/attachEvent if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { // Bind the global event handler to the element if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle, false ); } else if ( elem.attachEvent ) { elem.attachEvent( "on" + type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } // Nullify elem to prevent memory leaks in IE elem = null; }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var j, handleObj, tmp, origCount, t, events, special, handlers, type, namespaces, origType, elemData = jQuery.hasData( elem ) && jQuery._data( elem ); if ( !elemData || !(events = elemData.events) ) { return; } // Once for each type.namespace in types; type may be omitted types = ( types || "" ).match( rnotwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[t] ) || []; type = origType = tmp[1]; namespaces = ( tmp[2] || "" ).split( "." ).sort(); // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector ? special.delegateType : special.bindType ) || type; handlers = events[ type ] || []; tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); // Remove matching events origCount = j = handlers.length; while ( j-- ) { handleObj = handlers[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !tmp || tmp.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { handlers.splice( j, 1 ); if ( handleObj.selector ) { handlers.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( origCount && !handlers.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { delete elemData.handle; // removeData also checks for emptiness and clears the expando if empty // so use it instead of delete jQuery._removeData( elem, "events" ); } }, trigger: function( event, data, elem, onlyHandlers ) { var handle, ontype, cur, bubbleType, special, tmp, i, eventPath = [ elem || document ], type = hasOwn.call( event, "type" ) ? event.type : event, namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; cur = tmp = elem = elem || document; // Don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf(".") >= 0 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split("."); type = namespaces.shift(); namespaces.sort(); } ontype = type.indexOf(":") < 0 && "on" + type; // Caller can pass in a jQuery.Event object, Object, or just an event type string event = event[ jQuery.expando ] ? event : new jQuery.Event( type, typeof event === "object" && event ); // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) event.isTrigger = onlyHandlers ? 2 : 3; event.namespace = namespaces.join("."); event.namespace_re = event.namespace ? new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : null; // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data == null ? [ event ] : jQuery.makeArray( data, [ event ] ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; if ( !rfocusMorph.test( bubbleType + type ) ) { cur = cur.parentNode; } for ( ; cur; cur = cur.parentNode ) { eventPath.push( cur ); tmp = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( tmp === (elem.ownerDocument || document) ) { eventPath.push( tmp.defaultView || tmp.parentWindow || window ); } } // Fire handlers on the event path i = 0; while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { event.type = i > 1 ? bubbleType : special.bindType || type; // jQuery handler handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Native handler handle = ontype && cur[ ontype ]; if ( handle && handle.apply && jQuery.acceptData( cur ) ) { event.result = handle.apply( cur, data ); if ( event.result === false ) { event.preventDefault(); } } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && jQuery.acceptData( elem ) ) { // Call a native DOM method on the target with the same name name as the event. // Can't use an .isFunction() check here because IE6/7 fails that test. // Don't do default actions on window, that's where global variables be (#6170) if ( ontype && elem[ type ] && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method tmp = elem[ ontype ]; if ( tmp ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; try { elem[ type ](); } catch ( e ) { // IE<9 dies on focus/blur to hidden element (#1486,#12518) // only reproducible on winXP IE8 native, not IE9 in IE8 mode } jQuery.event.triggered = undefined; if ( tmp ) { elem[ ontype ] = tmp; } } } } return event.result; }, dispatch: function( event ) { // Make a writable jQuery.Event from the native event object event = jQuery.event.fix( event ); var i, ret, handleObj, matched, j, handlerQueue = [], args = slice.call( arguments ), handlers = ( jQuery._data( this, "events" ) || {} )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[0] = event; event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers handlerQueue = jQuery.event.handlers.call( this, event, handlers ); // Run delegates first; they may want to stop propagation beneath us i = 0; while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { event.currentTarget = matched.elem; j = 0; while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { // Triggered event must either 1) have no namespace, or // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) .apply( matched.elem, args ); if ( ret !== undefined ) { if ( (event.result = ret) === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, handlers: function( event, handlers ) { var sel, handleObj, matches, i, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; // Find delegate handlers // Black-hole SVG instance trees (#13180) // Avoid non-left-click bubbling in Firefox (#3861) if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { /* jshint eqeqeq: false */ for ( ; cur != this; cur = cur.parentNode || this ) { /* jshint eqeqeq: true */ // Don't check non-elements (#13208) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) if ( cur.nodeType === 1 && (cur.disabled !== true || event.type !== "click") ) { matches = []; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; // Don't conflict with Object.prototype properties (#13203) sel = handleObj.selector + " "; if ( matches[ sel ] === undefined ) { matches[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) >= 0 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( matches[ sel ] ) { matches.push( handleObj ); } } if ( matches.length ) { handlerQueue.push({ elem: cur, handlers: matches }); } } } } // Add the remaining (directly-bound) handlers if ( delegateCount < handlers.length ) { handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); } return handlerQueue; }, fix: function( event ) { if ( event[ jQuery.expando ] ) { return event; } // Create a writable copy of the event object and normalize some properties var i, prop, copy, type = event.type, originalEvent = event, fixHook = this.fixHooks[ type ]; if ( !fixHook ) { this.fixHooks[ type ] = fixHook = rmouseEvent.test( type ) ? this.mouseHooks : rkeyEvent.test( type ) ? this.keyHooks : {}; } copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; event = new jQuery.Event( originalEvent ); i = copy.length; while ( i-- ) { prop = copy[ i ]; event[ prop ] = originalEvent[ prop ]; } // Support: IE<9 // Fix target property (#1925) if ( !event.target ) { event.target = originalEvent.srcElement || document; } // Support: Chrome 23+, Safari? // Target should not be a text node (#504, #13143) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; } // Support: IE<9 // For mouse/key events, metaKey==false if it's undefined (#3368, #11328) event.metaKey = !!event.metaKey; return fixHook.filter ? fixHook.filter( event, originalEvent ) : event; }, // Includes some event props shared by KeyEvent and MouseEvent props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks: {}, keyHooks: { props: "char charCode key keyCode".split(" "), filter: function( event, original ) { // Add which for key events if ( event.which == null ) { event.which = original.charCode != null ? original.charCode : original.keyCode; } return event; } }, mouseHooks: { props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "), filter: function( event, original ) { var body, eventDoc, doc, button = original.button, fromElement = original.fromElement; // Calculate pageX/Y if missing and clientX/Y available if ( event.pageX == null && original.clientX != null ) { eventDoc = event.target.ownerDocument || document; doc = eventDoc.documentElement; body = eventDoc.body; event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); } // Add relatedTarget, if necessary if ( !event.relatedTarget && fromElement ) { event.relatedTarget = fromElement === event.target ? original.toElement : fromElement; } // Add which for click: 1 === left; 2 === middle; 3 === right // Note: button is not normalized, so don't use it if ( !event.which && button !== undefined ) { event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); } return event; } }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { // Fire native event if possible so blur/focus sequence is correct trigger: function() { if ( this !== safeActiveElement() && this.focus ) { try { this.focus(); return false; } catch ( e ) { // Support: IE<9 // If we error on focus to hidden element (#1486, #12518), // let .trigger() run the handlers } } }, delegateType: "focusin" }, blur: { trigger: function() { if ( this === safeActiveElement() && this.blur ) { this.blur(); return false; } }, delegateType: "focusout" }, click: { // For checkbox, fire native event so checked state will be right trigger: function() { if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) { this.click(); return false; } }, // For cross-browser consistency, don't fire native .click() on links _default: function( event ) { return jQuery.nodeName( event.target, "a" ); } }, beforeunload: { postDispatch: function( event ) { // Support: Firefox 20+ // Firefox doesn't alert if the returnValue field is not set. if ( event.result !== undefined && event.originalEvent ) { event.originalEvent.returnValue = event.result; } } } }, simulate: function( type, elem, event, bubble ) { // Piggyback on a donor event to simulate a different one. // Fake originalEvent to avoid donor's stopPropagation, but if the // simulated event prevents default then we do the same on the donor. var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true, originalEvent: {} } ); if ( bubble ) { jQuery.event.trigger( e, null, elem ); } else { jQuery.event.dispatch.call( elem, e ); } if ( e.isDefaultPrevented() ) { event.preventDefault(); } } }; jQuery.removeEvent = document.removeEventListener ? function( elem, type, handle ) { if ( elem.removeEventListener ) { elem.removeEventListener( type, handle, false ); } } : function( elem, type, handle ) { var name = "on" + type; if ( elem.detachEvent ) { // #8545, #7054, preventing memory leaks for custom events in IE6-8 // detachEvent needed property on element, by name of that event, to properly expose it to GC if ( typeof elem[ name ] === strundefined ) { elem[ name ] = null; } elem.detachEvent( name, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !(this instanceof jQuery.Event) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === undefined && // Support: IE < 9, Android < 4.0 src.returnValue === false ? returnTrue : returnFalse; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html jQuery.Event.prototype = { isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; if ( !e ) { return; } // If preventDefault exists, run it on the original event if ( e.preventDefault ) { e.preventDefault(); // Support: IE // Otherwise set the returnValue property of the original event to false } else { e.returnValue = false; } }, stopPropagation: function() { var e = this.originalEvent; this.isPropagationStopped = returnTrue; if ( !e ) { return; } // If stopPropagation exists, run it on the original event if ( e.stopPropagation ) { e.stopPropagation(); } // Support: IE // Set the cancelBubble property of the original event to true e.cancelBubble = true; }, stopImmediatePropagation: function() { var e = this.originalEvent; this.isImmediatePropagationStopped = returnTrue; if ( e && e.stopImmediatePropagation ) { e.stopImmediatePropagation(); } this.stopPropagation(); } }; // Create mouseenter/leave events using mouseover/out and event-time checks jQuery.each({ mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj; // For mousenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || (related !== target && !jQuery.contains( target, related )) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; }); // IE submit delegation if ( !support.submitBubbles ) { jQuery.event.special.submit = { setup: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Lazy-add a submit handler when a descendant form may potentially be submitted jQuery.event.add( this, "click._submit keypress._submit", function( e ) { // Node name check avoids a VML-related crash in IE (#9807) var elem = e.target, form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined; if ( form && !jQuery._data( form, "submitBubbles" ) ) { jQuery.event.add( form, "submit._submit", function( event ) { event._submit_bubble = true; }); jQuery._data( form, "submitBubbles", true ); } }); // return undefined since we don't need an event listener }, postDispatch: function( event ) { // If form was submitted by the user, bubble the event up the tree if ( event._submit_bubble ) { delete event._submit_bubble; if ( this.parentNode && !event.isTrigger ) { jQuery.event.simulate( "submit", this.parentNode, event, true ); } } }, teardown: function() { // Only need this for delegated form submit events if ( jQuery.nodeName( this, "form" ) ) { return false; } // Remove delegated handlers; cleanData eventually reaps submit handlers attached above jQuery.event.remove( this, "._submit" ); } }; } // IE change delegation and checkbox/radio fix if ( !support.changeBubbles ) { jQuery.event.special.change = { setup: function() { if ( rformElems.test( this.nodeName ) ) { // IE doesn't fire change on a check/radio until blur; trigger it on click // after a propertychange. Eat the blur-change in special.change.handle. // This still fires onchange a second time for check/radio after blur. if ( this.type === "checkbox" || this.type === "radio" ) { jQuery.event.add( this, "propertychange._change", function( event ) { if ( event.originalEvent.propertyName === "checked" ) { this._just_changed = true; } }); jQuery.event.add( this, "click._change", function( event ) { if ( this._just_changed && !event.isTrigger ) { this._just_changed = false; } // Allow triggered, simulated change events (#11500) jQuery.event.simulate( "change", this, event, true ); }); } return false; } // Delegated event; lazy-add a change handler on descendant inputs jQuery.event.add( this, "beforeactivate._change", function( e ) { var elem = e.target; if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "changeBubbles" ) ) { jQuery.event.add( elem, "change._change", function( event ) { if ( this.parentNode && !event.isSimulated && !event.isTrigger ) { jQuery.event.simulate( "change", this.parentNode, event, true ); } }); jQuery._data( elem, "changeBubbles", true ); } }); }, handle: function( event ) { var elem = event.target; // Swallow native change events from checkbox/radio, we already triggered them above if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) { return event.handleObj.handler.apply( this, arguments ); } }, teardown: function() { jQuery.event.remove( this, "._change" ); return !rformElems.test( this.nodeName ); } }; } // Create "bubbling" focus and blur events if ( !support.focusinBubbles ) { jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler on the document while someone wants focusin/focusout var handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); }; jQuery.event.special[ fix ] = { setup: function() { var doc = this.ownerDocument || this, attaches = jQuery._data( doc, fix ); if ( !attaches ) { doc.addEventListener( orig, handler, true ); } jQuery._data( doc, fix, ( attaches || 0 ) + 1 ); }, teardown: function() { var doc = this.ownerDocument || this, attaches = jQuery._data( doc, fix ) - 1; if ( !attaches ) { doc.removeEventListener( orig, handler, true ); jQuery._removeData( doc, fix ); } else { jQuery._data( doc, fix, attaches ); } } }; }); } jQuery.fn.extend({ on: function( types, selector, data, fn, /*INTERNAL*/ one ) { var type, origFn; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { this.on( type, selector, data, types[ type ], one ); } return this; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return this; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return this.each( function() { jQuery.event.add( this, types, fn, data, selector ); }); }, one: function( types, selector, data, fn ) { return this.on( types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each(function() { jQuery.event.remove( this, types, fn, selector ); }); }, trigger: function( type, data ) { return this.each(function() { jQuery.event.trigger( type, data, this ); }); }, triggerHandler: function( type, data ) { var elem = this[0]; if ( elem ) { return jQuery.event.trigger( type, data, elem, true ); } } }); function createSafeFragment( document ) { var list = nodeNames.split( "|" ), safeFrag = document.createDocumentFragment(); if ( safeFrag.createElement ) { while ( list.length ) { safeFrag.createElement( list.pop() ); } } return safeFrag; } var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" + "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video", rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g, rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"), rleadingWhitespace = /^\s+/, rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, rtagName = /<([\w:]+)/, rtbody = /\s*$/g, // We have to close these tags to support XHTML (#13200) wrapMap = { option: [ 1, "" ], legend: [ 1, "
", "
" ], area: [ 1, "", "" ], param: [ 1, "", "" ], thead: [ 1, "", "
" ], tr: [ 2, "", "
" ], col: [ 2, "", "
" ], td: [ 3, "", "
" ], // IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags, // unless wrapped in a div with non-breaking characters in front of it. _default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X
", "
" ] }, safeFragment = createSafeFragment( document ), fragmentDiv = safeFragment.appendChild( document.createElement("div") ); wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; function getAll( context, tag ) { var elems, elem, i = 0, found = typeof context.getElementsByTagName !== strundefined ? context.getElementsByTagName( tag || "*" ) : typeof context.querySelectorAll !== strundefined ? context.querySelectorAll( tag || "*" ) : undefined; if ( !found ) { for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { if ( !tag || jQuery.nodeName( elem, tag ) ) { found.push( elem ); } else { jQuery.merge( found, getAll( elem, tag ) ); } } } return tag === undefined || tag && jQuery.nodeName( context, tag ) ? jQuery.merge( [ context ], found ) : found; } // Used in buildFragment, fixes the defaultChecked property function fixDefaultChecked( elem ) { if ( rcheckableType.test( elem.type ) ) { elem.defaultChecked = elem.checked; } } // Support: IE<8 // Manipulating tables requires a tbody function manipulationTarget( elem, content ) { return jQuery.nodeName( elem, "table" ) && jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ? elem.getElementsByTagName("tbody")[0] || elem.appendChild( elem.ownerDocument.createElement("tbody") ) : elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type; return elem; } function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[1]; } else { elem.removeAttribute("type"); } return elem; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var elem, i = 0; for ( ; (elem = elems[i]) != null; i++ ) { jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) ); } } function cloneCopyEvent( src, dest ) { if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) { return; } var type, i, l, oldData = jQuery._data( src ), curData = jQuery._data( dest, oldData ), events = oldData.events; if ( events ) { delete curData.handle; curData.events = {}; for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } // make the cloned public data object a copy from the original if ( curData.data ) { curData.data = jQuery.extend( {}, curData.data ); } } function fixCloneNodeIssues( src, dest ) { var nodeName, e, data; // We do not need to do anything for non-Elements if ( dest.nodeType !== 1 ) { return; } nodeName = dest.nodeName.toLowerCase(); // IE6-8 copies events bound via attachEvent when using cloneNode. if ( !support.noCloneEvent && dest[ jQuery.expando ] ) { data = jQuery._data( dest ); for ( e in data.events ) { jQuery.removeEvent( dest, e, data.handle ); } // Event data gets referenced instead of copied if the expando gets copied too dest.removeAttribute( jQuery.expando ); } // IE blanks contents when cloning scripts, and tries to evaluate newly-set text if ( nodeName === "script" && dest.text !== src.text ) { disableScript( dest ).text = src.text; restoreScript( dest ); // IE6-10 improperly clones children of object elements using classid. // IE10 throws NoModificationAllowedError if parent is null, #12132. } else if ( nodeName === "object" ) { if ( dest.parentNode ) { dest.outerHTML = src.outerHTML; } // This path appears unavoidable for IE9. When cloning an object // element in IE9, the outerHTML strategy above is not sufficient. // If the src has innerHTML and the destination does not, // copy the src.innerHTML into the dest.innerHTML. #10324 if ( support.html5Clone && ( src.innerHTML && !jQuery.trim(dest.innerHTML) ) ) { dest.innerHTML = src.innerHTML; } } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) { // IE6-8 fails to persist the checked state of a cloned checkbox // or radio button. Worse, IE6-7 fail to give the cloned element // a checked appearance if the defaultChecked value isn't also set dest.defaultChecked = dest.checked = src.checked; // IE6-7 get confused and end up setting the value of a cloned // checkbox/radio button to an empty string instead of "on" if ( dest.value !== src.value ) { dest.value = src.value; } // IE6-8 fails to return the selected option to the default selected // state when cloning options } else if ( nodeName === "option" ) { dest.defaultSelected = dest.selected = src.defaultSelected; // IE6-8 fails to set the defaultValue to the correct value when // cloning other types of input fields } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } } jQuery.extend({ clone: function( elem, dataAndEvents, deepDataAndEvents ) { var destElements, node, clone, i, srcElements, inPage = jQuery.contains( elem.ownerDocument, elem ); if ( support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) { clone = elem.cloneNode( true ); // IE<=8 does not properly clone detached, unknown element nodes } else { fragmentDiv.innerHTML = elem.outerHTML; fragmentDiv.removeChild( clone = fragmentDiv.firstChild ); } if ( (!support.noCloneEvent || !support.noCloneChecked) && (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 destElements = getAll( clone ); srcElements = getAll( elem ); // Fix all IE cloning issues for ( i = 0; (node = srcElements[i]) != null; ++i ) { // Ensure that the destination node is not null; Fixes #9587 if ( destElements[i] ) { fixCloneNodeIssues( node, destElements[i] ); } } } // Copy the events from the original to the clone if ( dataAndEvents ) { if ( deepDataAndEvents ) { srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); for ( i = 0; (node = srcElements[i]) != null; i++ ) { cloneCopyEvent( node, destElements[i] ); } } else { cloneCopyEvent( elem, clone ); } } // Preserve script evaluation history destElements = getAll( clone, "script" ); if ( destElements.length > 0 ) { setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } destElements = srcElements = node = null; // Return the cloned set return clone; }, buildFragment: function( elems, context, scripts, selection ) { var j, elem, contains, tmp, tag, tbody, wrap, l = elems.length, // Ensure a safe fragment safe = createSafeFragment( context ), nodes = [], i = 0; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( jQuery.type( elem ) === "object" ) { jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { tmp = tmp || safe.appendChild( context.createElement("div") ); // Deserialize a standard representation tag = (rtagName.exec( elem ) || [ "", "" ])[ 1 ].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1>" ) + wrap[2]; // Descend through wrappers to the right content j = wrap[0]; while ( j-- ) { tmp = tmp.lastChild; } // Manually add leading whitespace removed by IE if ( !support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { nodes.push( context.createTextNode( rleadingWhitespace.exec( elem )[0] ) ); } // Remove IE's autoinserted from table fragments if ( !support.tbody ) { // String was a , *may* have spurious elem = tag === "table" && !rtbody.test( elem ) ? tmp.firstChild : // String was a bare or wrap[1] === "
" && !rtbody.test( elem ) ? tmp : 0; j = elem && elem.childNodes.length; while ( j-- ) { if ( jQuery.nodeName( (tbody = elem.childNodes[j]), "tbody" ) && !tbody.childNodes.length ) { elem.removeChild( tbody ); } } } jQuery.merge( nodes, tmp.childNodes ); // Fix #12392 for WebKit and IE > 9 tmp.textContent = ""; // Fix #12392 for oldIE while ( tmp.firstChild ) { tmp.removeChild( tmp.firstChild ); } // Remember the top-level container for proper cleanup tmp = safe.lastChild; } } } // Fix #11356: Clear elements from fragment if ( tmp ) { safe.removeChild( tmp ); } // Reset defaultChecked for any radios and checkboxes // about to be appended to the DOM in IE 6/7 (#8060) if ( !support.appendChecked ) { jQuery.grep( getAll( nodes, "input" ), fixDefaultChecked ); } i = 0; while ( (elem = nodes[ i++ ]) ) { // #4087 - If origin and destination elements are the same, and this is // that element, do not do anything if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { continue; } contains = jQuery.contains( elem.ownerDocument, elem ); // Append to fragment tmp = getAll( safe.appendChild( elem ), "script" ); // Preserve script evaluation history if ( contains ) { setGlobalEval( tmp ); } // Capture executables if ( scripts ) { j = 0; while ( (elem = tmp[ j++ ]) ) { if ( rscriptType.test( elem.type || "" ) ) { scripts.push( elem ); } } } } tmp = null; return safe; }, cleanData: function( elems, /* internal */ acceptData ) { var elem, type, id, data, i = 0, internalKey = jQuery.expando, cache = jQuery.cache, deleteExpando = support.deleteExpando, special = jQuery.event.special; for ( ; (elem = elems[i]) != null; i++ ) { if ( acceptData || jQuery.acceptData( elem ) ) { id = elem[ internalKey ]; data = id && cache[ id ]; if ( data ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Remove cache only if it was not already removed by jQuery.event.remove if ( cache[ id ] ) { delete cache[ id ]; // IE does not allow us to delete expando properties from nodes, // nor does it have a removeAttribute function on Document nodes; // we must handle all of these cases if ( deleteExpando ) { delete elem[ internalKey ]; } else if ( typeof elem.removeAttribute !== strundefined ) { elem.removeAttribute( internalKey ); } else { elem[ internalKey ] = null; } deletedIds.push( id ); } } } } } }); jQuery.fn.extend({ text: function( value ) { return access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) ); }, null, value, arguments.length ); }, append: function() { return this.domManip( arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.appendChild( elem ); } }); }, prepend: function() { return this.domManip( arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.insertBefore( elem, target.firstChild ); } }); }, before: function() { return this.domManip( arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this ); } }); }, after: function() { return this.domManip( arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this.nextSibling ); } }); }, remove: function( selector, keepData /* Internal Use Only */ ) { var elem, elems = selector ? jQuery.filter( selector, this ) : this, i = 0; for ( ; (elem = elems[i]) != null; i++ ) { if ( !keepData && elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem ) ); } if ( elem.parentNode ) { if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { setGlobalEval( getAll( elem, "script" ) ); } elem.parentNode.removeChild( elem ); } } return this; }, empty: function() { var elem, i = 0; for ( ; (elem = this[i]) != null; i++ ) { // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); } // Remove any remaining nodes while ( elem.firstChild ) { elem.removeChild( elem.firstChild ); } // If this is a select, ensure that it displays empty (#12336) // Support: IE<9 if ( elem.options && jQuery.nodeName( elem, "select" ) ) { elem.options.length = 0; } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map(function() { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); }); }, html: function( value ) { return access( this, function( value ) { var elem = this[ 0 ] || {}, i = 0, l = this.length; if ( value === undefined ) { return elem.nodeType === 1 ? elem.innerHTML.replace( rinlinejQuery, "" ) : undefined; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && ( support.htmlSerialize || !rnoshimcache.test( value ) ) && ( support.leadingWhitespace || !rleadingWhitespace.test( value ) ) && !wrapMap[ (rtagName.exec( value ) || [ "", "" ])[ 1 ].toLowerCase() ] ) { value = value.replace( rxhtmlTag, "<$1>" ); try { for (; i < l; i++ ) { // Remove element nodes and prevent memory leaks elem = this[i] || {}; if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch(e) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function() { var arg = arguments[ 0 ]; // Make the changes, replacing each context element with the new content this.domManip( arguments, function( elem ) { arg = this.parentNode; jQuery.cleanData( getAll( this ) ); if ( arg ) { arg.replaceChild( elem, this ); } }); // Force removal if there was no new content (e.g., from empty arguments) return arg && (arg.length || arg.nodeType) ? this : this.remove(); }, detach: function( selector ) { return this.remove( selector, true ); }, domManip: function( args, callback ) { // Flatten any nested arrays args = concat.apply( [], args ); var first, node, hasScripts, scripts, doc, fragment, i = 0, l = this.length, set = this, iNoClone = l - 1, value = args[0], isFunction = jQuery.isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit if ( isFunction || ( l > 1 && typeof value === "string" && !support.checkClone && rchecked.test( value ) ) ) { return this.each(function( index ) { var self = set.eq( index ); if ( isFunction ) { args[0] = value.call( this, index, self.html() ); } self.domManip( args, callback ); }); } if ( l ) { fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this ); first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } if ( first ) { scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); hasScripts = scripts.length; // Use the original fragment for the last item instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). for ( ; i < l; i++ ) { node = fragment; if ( i !== iNoClone ) { node = jQuery.clone( node, true, true ); // Keep references to cloned scripts for later restoration if ( hasScripts ) { jQuery.merge( scripts, getAll( node, "script" ) ); } } callback.call( this[i], node, i ); } if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; // Reenable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && !jQuery._data( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src ) { // Optional AJAX dependency, but won't run scripts if not present if ( jQuery._evalUrl ) { jQuery._evalUrl( node.src ); } } else { jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) ); } } } } // Fix #11809: Avoid leaking memory fragment = first = null; } } return this; } }); jQuery.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, i = 0, ret = [], insert = jQuery( selector ), last = insert.length - 1; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone(true); jQuery( insert[i] )[ original ]( elems ); // Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get() push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; }); var iframe, elemdisplay = {}; /** * Retrieve the actual display of a element * @param {String} name nodeName of the element * @param {Object} doc Document object */ // Called only from within defaultDisplay function actualDisplay( name, doc ) { var style, elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), // getDefaultComputedStyle might be reliably used only on attached element display = window.getDefaultComputedStyle && ( style = window.getDefaultComputedStyle( elem[ 0 ] ) ) ? // Use of this method is a temporary fix (more like optmization) until something better comes along, // since it was removed from specification and supported only in FF style.display : jQuery.css( elem[ 0 ], "display" ); // We don't have any data stored on the element, // so use "detach" method as fast way to get rid of the element elem.detach(); return display; } /** * Try to determine the default display value of an element * @param {String} nodeName */ function defaultDisplay( nodeName ) { var doc = document, display = elemdisplay[ nodeName ]; if ( !display ) { display = actualDisplay( nodeName, doc ); // If the simple way fails, read from inside an iframe if ( display === "none" || !display ) { // Use the already-created iframe if possible iframe = (iframe || jQuery( "